diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 3be5d7e4b39cb..15dca843ee389 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -70,7 +70,7 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( (await doAnyChangesMatch([ - /^src\/plugins\/data/, + /^src\/platform\/plugins\/shared\/data/, /^x-pack\/platform\/plugins\/shared\/actions/, /^x-pack\/platform\/plugins\/shared\/alerting/, /^x-pack\/platform\/plugins\/shared\/event_log/, @@ -311,7 +311,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^package.json/, /^src\/platform\/packages\/shared\/kbn-discover-utils/, /^packages\/kbn-doc-links/, - /^packages\/kbn-dom-drag-drop/, + /^src\/platform\/packages\/shared\/kbn-dom-drag-drop/, /^src\/platform\/packages\/shared\/kbn-es-query/, /^src\/platform\/packages\/shared\/kbn-i18n/, /^src\/platform\/packages\/shared\/kbn-i18n-react/, @@ -332,9 +332,9 @@ const getPipeline = (filename: string, removeSteps = true) => { /^packages\/react/, /^packages\/shared-ux/, /^src\/core/, - /^src\/plugins\/charts/, + /^src\/platform\/plugins\/shared\/charts/, /^src\/platform\/plugins\/shared\/controls/, - /^src\/plugins\/data/, + /^src\/platform\/plugins\/shared\/data/, /^src\/platform\/plugins\/shared\/data_views/, /^src\/platform\/plugins\/shared\/discover/, /^src\/platform\/plugins\/shared\/field_formats/, @@ -344,7 +344,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^src\/platform\/plugins\/shared\/saved_search/, /^src\/platform\/plugins\/shared\/ui_actions/, /^src\/platform\/plugins\/shared\/unified_histogram/, - /^src\/plugins\/unified_search/, + /^src\/platform\/plugins\/shared\/unified_search/, /^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant/, /^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant-common/, /^x-pack\/solutions\/security\/packages/, diff --git a/.eslintignore b/.eslintignore index f6b96a17727fb..817ec50ad8f42 100644 --- a/.eslintignore +++ b/.eslintignore @@ -21,7 +21,7 @@ snapshots.js # plugin overrides /src/core/lib/kbn_internal_native_observable -/src/plugins/data/common/es_query/kuery/ast/_generated_/** +/src/platform/plugins/shared/data/common/es_query/kuery/ast/_generated_/** /x-pack/platform/plugins/private/canvas/canvas_plugin /x-pack/platform/plugins/private/canvas/shareable_runtime/build /x-pack/platform/plugins/private/canvas/storybook/build diff --git a/.eslintrc.js b/.eslintrc.js index b3f82aa7ef183..d9d3e47929182 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -127,7 +127,7 @@ const VENN_DIAGRAM_HEADER = ` * This file is forked from the venn.js project (https://github.com/benfred/venn.js/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See \`x-pack/plugins/graph/public/components/venn_diagram/vennjs/LICENSE\` for more information. + * See \`x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/LICENSE\` for more information. */ `; @@ -183,7 +183,7 @@ const DEV_PATTERNS = [ ...DEV_PACKAGE_DIRS.map((pkg) => `${pkg}/**/*`), ...DEV_DIRECTORIES.map((dir) => `{packages,src,x-pack}/**/${dir}/**/*`), ...DEV_FILE_PATTERNS.map((file) => `{packages,src,x-pack}/**/${file}`), - 'packages/kbn-interpreter/tasks/**/*', + 'src/platform/packages/shared/kbn-interpreter/tasks/**/*', 'src/dev/**/*', 'x-pack/{dev-tools,tasks,test,test_serverless,build_chromium}/**/*', 'x-pack/performance/**/*', @@ -599,7 +599,9 @@ module.exports = { * venn.js fork requires special license headers */ { - files: ['x-pack/plugins/graph/public/components/venn_diagram/vennjs/**/*.{js,mjs,ts,tsx}'], + files: [ + 'x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/**/*.{js,mjs,ts,tsx}', + ], rules: { '@kbn/eslint/require-license-header': [ 'error', @@ -1571,7 +1573,7 @@ module.exports = { * Lens overrides */ { - files: ['x-pack/plugins/lens/**/*.{ts,tsx}'], + files: ['x-pack/platform/plugins/shared/lens/**/*.{ts,tsx}'], rules: { '@typescript-eslint/no-explicit-any': 'error', }, @@ -1787,7 +1789,7 @@ module.exports = { * TSVB overrides */ { - files: ['src/plugins/vis_types/timeseries/**/*.{js,mjs,ts,tsx}'], + files: ['src/platform/plugins/shared/vis_types/timeseries/**/*.{js,mjs,ts,tsx}'], rules: { 'import/no-default-export': 'error', }, diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index bd8e1e6857db2..d561ea275079d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -64,7 +64,7 @@ packages/kbn-bfetch-error @elastic/appex-sharedux examples/bfetch_explorer @elastic/appex-sharedux src/plugins/bfetch @elastic/appex-sharedux packages/kbn-calculate-auto @elastic/obs-ux-management-team -packages/kbn-calculate-width-from-char-count @elastic/kibana-visualizations +src/platform/packages/shared/kbn-calculate-width-from-char-count @elastic/kibana-visualizations x-pack/platform/plugins/private/canvas @elastic/kibana-presentation packages/kbn-capture-oas-snapshot-cli @elastic/kibana-core x-pack/test/cases_api_integration/common/plugins/cases @elastic/response-ops @@ -72,9 +72,9 @@ src/platform/packages/shared/kbn-cases-components @elastic/response-ops x-pack/platform/plugins/shared/cases @elastic/response-ops src/platform/packages/shared/kbn-cbor @elastic/kibana-operations src/platform/packages/shared/kbn-cell-actions @elastic/security-threat-hunting-explore -src/plugins/chart_expressions/common @elastic/kibana-visualizations -packages/kbn-chart-icons @elastic/kibana-visualizations -src/plugins/charts @elastic/kibana-visualizations +src/platform/packages/shared/chart-expressions-common @elastic/kibana-visualizations +src/platform/packages/shared/kbn-chart-icons @elastic/kibana-visualizations +src/platform/plugins/shared/charts @elastic/kibana-visualizations packages/kbn-check-mappings-update-cli @elastic/kibana-core packages/kbn-check-prod-native-modules-cli @elastic/kibana-operations packages/kbn-ci-stats-core @elastic/kibana-operations @@ -98,7 +98,7 @@ x-pack/solutions/security/plugins/cloud_security_posture @elastic/kibana-cloud-s packages/shared-ux/code_editor/impl @elastic/appex-sharedux packages/shared-ux/code_editor/mocks @elastic/appex-sharedux packages/kbn-code-owners @elastic/appex-qa -packages/kbn-coloring @elastic/kibana-visualizations +src/platform/packages/shared/kbn-coloring @elastic/kibana-visualizations src/platform/packages/shared/kbn-config @elastic/kibana-core src/platform/packages/private/kbn-config-mocks @elastic/kibana-core src/platform/packages/shared/kbn-config-schema @elastic/kibana-core @@ -354,10 +354,10 @@ packages/kbn-cypress-config @elastic/kibana-operations x-pack/platform/plugins/shared/dashboard_enhanced @elastic/kibana-presentation src/platform/plugins/shared/dashboard @elastic/kibana-presentation x-pack/platform/packages/shared/kbn-data-forge @elastic/obs-ux-management-team -src/plugins/data @elastic/kibana-visualizations @elastic/kibana-data-discovery +src/platform/plugins/shared/data @elastic/kibana-visualizations @elastic/kibana-data-discovery x-pack/platform/plugins/shared/data_quality @elastic/obs-ux-logs-team test/plugin_functional/plugins/data_search @elastic/kibana-data-discovery -packages/kbn-data-service @elastic/kibana-visualizations @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-data-service @elastic/kibana-visualizations @elastic/kibana-data-discovery x-pack/solutions/security/packages/data-stream-adapter @elastic/security-threat-hunting x-pack/platform/plugins/private/data_usage @elastic/obs-ai-assistant @elastic/security-solution src/platform/plugins/shared/data_view_editor @elastic/kibana-data-discovery @@ -397,7 +397,7 @@ src/platform/plugins/shared/discover_shared @elastic/kibana-data-discovery @elas src/platform/packages/shared/kbn-discover-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-doc-links @elastic/docs packages/kbn-docs-utils @elastic/kibana-operations -packages/kbn-dom-drag-drop @elastic/kibana-visualizations @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-dom-drag-drop @elastic/kibana-visualizations @elastic/kibana-data-discovery src/platform/packages/shared/kbn-ebt-tools @elastic/kibana-core x-pack/solutions/security/packages/ecs_data_quality_dashboard @elastic/security-threat-hunting-explore x-pack/solutions/security/plugins/ecs_data_quality_dashboard @elastic/security-threat-hunting-explore @@ -443,10 +443,10 @@ src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql examples/esql_validation_example @elastic/kibana-esql test/plugin_functional/plugins/eui_provider_dev_warning @elastic/appex-sharedux -packages/kbn-event-annotation-common @elastic/kibana-visualizations -packages/kbn-event-annotation-components @elastic/kibana-visualizations -src/plugins/event_annotation_listing @elastic/kibana-visualizations -src/plugins/event_annotation @elastic/kibana-visualizations +src/platform/packages/shared/kbn-event-annotation-common @elastic/kibana-visualizations +src/platform/packages/shared/kbn-event-annotation-components @elastic/kibana-visualizations +src/platform/plugins/private/event_annotation_listing @elastic/kibana-visualizations +src/platform/plugins/private/event_annotation @elastic/kibana-visualizations x-pack/test/plugin_api_integration/plugins/event_log @elastic/response-ops x-pack/platform/plugins/shared/event_log @elastic/response-ops x-pack/solutions/security/packages/expandable-flyout @elastic/security-threat-hunting-investigations @@ -454,20 +454,20 @@ packages/kbn-expect @elastic/kibana-operations @elastic/appex-qa x-pack/examples/exploratory_view_example @elastic/obs-ux-infra_services-team x-pack/solutions/observability/plugins/exploratory_view @elastic/obs-ux-management-team src/platform/plugins/shared/expression_error @elastic/kibana-presentation -src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations -src/plugins/chart_expressions/expression_heatmap @elastic/kibana-visualizations +src/platform/plugins/shared/chart_expressions/expression_gauge @elastic/kibana-visualizations +src/platform/plugins/shared/chart_expressions/expression_heatmap @elastic/kibana-visualizations src/platform/plugins/shared/expression_image @elastic/kibana-presentation -src/plugins/chart_expressions/expression_legacy_metric @elastic/kibana-visualizations +src/platform/plugins/shared/chart_expressions/expression_legacy_metric @elastic/kibana-visualizations src/platform/plugins/shared/expression_metric @elastic/kibana-presentation -src/plugins/chart_expressions/expression_metric @elastic/kibana-visualizations -src/plugins/chart_expressions/expression_partition_vis @elastic/kibana-visualizations +src/platform/plugins/shared/chart_expressions/expression_metric @elastic/kibana-visualizations +src/platform/plugins/shared/chart_expressions/expression_partition_vis @elastic/kibana-visualizations src/platform/plugins/shared/expression_repeat_image @elastic/kibana-presentation src/platform/plugins/shared/expression_reveal_image @elastic/kibana-presentation src/platform/plugins/shared/expression_shape @elastic/kibana-presentation -src/plugins/chart_expressions/expression_tagcloud @elastic/kibana-visualizations -src/plugins/chart_expressions/expression_xy @elastic/kibana-visualizations +src/platform/plugins/shared/chart_expressions/expression_tagcloud @elastic/kibana-visualizations +src/platform/plugins/shared/chart_expressions/expression_xy @elastic/kibana-visualizations examples/expressions_explorer @elastic/kibana-visualizations -src/plugins/expressions @elastic/kibana-visualizations +src/platform/plugins/shared/expressions @elastic/kibana-visualizations packages/kbn-failed-test-reporter-cli @elastic/kibana-operations @elastic/appex-qa examples/feature_control_examples @elastic/kibana-security examples/feature_flags_example @elastic/kibana-core @@ -504,7 +504,7 @@ x-pack/platform/plugins/private/global_search_bar @elastic/appex-sharedux x-pack/platform/plugins/shared/global_search @elastic/appex-sharedux x-pack/platform/plugins/private/global_search_providers @elastic/appex-sharedux x-pack/test/plugin_functional/plugins/global_search_test @elastic/kibana-core -x-pack/plugins/graph @elastic/kibana-visualizations +x-pack/platform/plugins/private/graph @elastic/kibana-visualizations examples/grid_example @elastic/kibana-presentation packages/kbn-grid-layout @elastic/kibana-presentation x-pack/platform/plugins/private/grokdebugger @elastic/kibana-management @@ -545,7 +545,7 @@ src/platform/plugins/shared/inspector @elastic/kibana-presentation x-pack/platform/plugins/shared/integration_assistant @elastic/security-scalability src/platform/plugins/private/interactive_setup @elastic/kibana-security test/interactive_setup_api_integration/plugins/test_endpoints @elastic/kibana-security -packages/kbn-interpreter @elastic/kibana-visualizations +src/platform/packages/shared/kbn-interpreter @elastic/kibana-visualizations x-pack/solutions/observability/plugins/inventory/e2e @elastic/obs-ux-infra_services-team x-pack/solutions/observability/plugins/inventory @elastic/obs-ux-infra_services-team x-pack/solutions/observability/plugins/investigate_app @elastic/obs-ux-management-team @@ -573,9 +573,9 @@ x-pack/platform/packages/shared/kbn-langchain @elastic/security-generative-ai src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql x-pack/examples/lens_config_builder_example @elastic/kibana-visualizations src/platform/packages/shared/kbn-lens-embeddable-utils @elastic/obs-ux-infra_services-team @elastic/kibana-visualizations -packages/kbn-lens-formula-docs @elastic/kibana-visualizations +src/platform/packages/private/kbn-lens-formula-docs @elastic/kibana-visualizations x-pack/examples/lens_embeddable_inline_editing_example @elastic/kibana-visualizations -x-pack/plugins/lens @elastic/kibana-visualizations +x-pack/platform/plugins/shared/lens @elastic/kibana-visualizations x-pack/platform/plugins/private/license_api_guard @elastic/kibana-management x-pack/platform/plugins/shared/license_management @elastic/kibana-management x-pack/platform/plugins/shared/licensing @elastic/kibana-core @@ -592,7 +592,7 @@ x-pack/platform/plugins/shared/observability_solution/logs_data_access @elastic/ x-pack/solutions/observability/plugins/logs_explorer @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/observability_solution/logs_shared @elastic/obs-ux-logs-team x-pack/platform/plugins/private/logstash @elastic/logstash -packages/kbn-managed-content-badge @elastic/kibana-visualizations +src/platform/packages/private/kbn-managed-content-badge @elastic/kibana-visualizations packages/kbn-managed-vscode-config @elastic/kibana-operations packages/kbn-managed-vscode-config-cli @elastic/kibana-operations src/platform/packages/shared/kbn-management/cards_navigation @elastic/kibana-management @@ -712,7 +712,7 @@ x-pack/platform/packages/shared/ai-infra/product-doc-common @elastic/appex-ai-in x-pack/solutions/observability/plugins/profiling_data_access @elastic/obs-ux-infra_services-team x-pack/solutions/observability/plugins/profiling @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-profiling-utils @elastic/obs-ux-infra_services-team -x-pack/packages/kbn-random-sampling @elastic/kibana-visualizations +x-pack/platform/packages/private/kbn-random-sampling @elastic/kibana-visualizations src/platform/packages/shared/kbn-react-field @elastic/kibana-data-discovery src/platform/packages/shared/kbn-react-hooks @elastic/obs-ux-logs-team packages/react/kibana_context/common @elastic/appex-sharedux @@ -925,7 +925,7 @@ x-pack/platform/packages/shared/kbn-slo-schema @elastic/obs-ux-management-team x-pack/platform/plugins/private/snapshot_restore @elastic/kibana-management packages/kbn-some-dev-log @elastic/kibana-operations packages/kbn-sort-package-json @elastic/kibana-operations -packages/kbn-sort-predicates @elastic/kibana-visualizations +src/platform/packages/shared/kbn-sort-predicates @elastic/kibana-visualizations x-pack/platform/plugins/shared/spaces @elastic/kibana-security x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin @elastic/kibana-security packages/kbn-spec-to-console @elastic/kibana-management @@ -970,13 +970,13 @@ x-pack/examples/third_party_lens_navigation_prompt @elastic/kibana-visualization x-pack/examples/third_party_vis_lens_example @elastic/kibana-visualizations x-pack/solutions/security/plugins/threat_intelligence @elastic/security-threat-hunting-investigations x-pack/solutions/security/plugins/timelines @elastic/security-threat-hunting-investigations -packages/kbn-timelion-grammar @elastic/kibana-visualizations +src/platform/packages/private/kbn-timelion-grammar @elastic/kibana-visualizations src/platform/packages/shared/kbn-timerange @elastic/obs-ux-logs-team -packages/kbn-tinymath @elastic/kibana-visualizations +src/platform/packages/private/kbn-tinymath @elastic/kibana-visualizations packages/kbn-tooling-log @elastic/kibana-operations x-pack/platform/plugins/private/transform @elastic/ml-ui x-pack/platform/plugins/private/translations @elastic/kibana-localization -packages/kbn-transpose-utils @elastic/kibana-visualizations +src/platform/packages/private/kbn-transpose-utils @elastic/kibana-visualizations x-pack/examples/triggers_actions_ui_example @elastic/response-ops x-pack/platform/plugins/shared/triggers_actions_ui @elastic/response-ops src/platform/packages/shared/kbn-triggers-actions-ui-types @elastic/response-ops @@ -1001,13 +1001,13 @@ src/platform/plugins/shared/unified_doc_viewer @elastic/kibana-data-discovery src/platform/packages/shared/kbn-unified-field-list @elastic/kibana-data-discovery examples/unified_field_list_examples @elastic/kibana-data-discovery src/platform/plugins/shared/unified_histogram @elastic/kibana-data-discovery -src/plugins/unified_search @elastic/kibana-visualizations +src/platform/plugins/shared/unified_search @elastic/kibana-visualizations src/platform/packages/private/kbn-unsaved-changes-badge @elastic/kibana-data-discovery src/platform/packages/shared/kbn-unsaved-changes-prompt @elastic/kibana-management x-pack/platform/plugins/private/upgrade_assistant @elastic/kibana-management x-pack/solutions/observability/plugins/uptime @elastic/obs-ux-management-team x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux -src/plugins/url_forwarding @elastic/kibana-visualizations +src/platform/plugins/private/url_forwarding @elastic/kibana-visualizations src/platform/plugins/shared/usage_collection @elastic/kibana-core test/plugin_functional/plugins/usage_collection @elastic/kibana-core packages/kbn-use-tracked-promise @elastic/obs-ux-logs-team @@ -1020,22 +1020,22 @@ src/platform/packages/shared/kbn-utils @elastic/kibana-operations x-pack/solutions/observability/plugins/ux @elastic/obs-ux-management-team examples/v8_profiler_examples @elastic/response-ops packages/kbn-validate-next-docs-cli @elastic/kibana-operations -src/plugins/vis_default_editor @elastic/kibana-visualizations -src/plugins/vis_types/gauge @elastic/kibana-visualizations -src/plugins/vis_types/heatmap @elastic/kibana-visualizations +src/platform/plugins/private/vis_default_editor @elastic/kibana-visualizations +src/platform/plugins/private/vis_types/gauge @elastic/kibana-visualizations +src/platform/plugins/private/vis_types/heatmap @elastic/kibana-visualizations src/platform/plugins/private/vis_type_markdown @elastic/kibana-presentation -src/plugins/vis_types/metric @elastic/kibana-visualizations -src/plugins/vis_types/pie @elastic/kibana-visualizations -src/plugins/vis_types/table @elastic/kibana-visualizations -src/plugins/vis_types/tagcloud @elastic/kibana-visualizations -src/plugins/vis_types/timelion @elastic/kibana-visualizations -src/plugins/vis_types/timeseries @elastic/kibana-visualizations -src/plugins/vis_types/vega @elastic/kibana-visualizations -src/plugins/vis_types/vislib @elastic/kibana-visualizations -src/plugins/vis_types/xy @elastic/kibana-visualizations -packages/kbn-visualization-ui-components @elastic/kibana-visualizations -packages/kbn-visualization-utils @elastic/kibana-visualizations -src/plugins/visualizations @elastic/kibana-visualizations +src/platform/plugins/private/vis_types/metric @elastic/kibana-visualizations +src/platform/plugins/private/vis_types/pie @elastic/kibana-visualizations +src/platform/plugins/private/vis_types/table @elastic/kibana-visualizations +src/platform/plugins/private/vis_types/tagcloud @elastic/kibana-visualizations +src/platform/plugins/private/vis_types/timelion @elastic/kibana-visualizations +src/platform/plugins/shared/vis_types/timeseries @elastic/kibana-visualizations +src/platform/plugins/private/vis_types/vega @elastic/kibana-visualizations +src/platform/plugins/private/vis_types/vislib @elastic/kibana-visualizations +src/platform/plugins/private/vis_types/xy @elastic/kibana-visualizations +src/platform/packages/shared/kbn-visualization-ui-components @elastic/kibana-visualizations +src/platform/packages/shared/kbn-visualization-utils @elastic/kibana-visualizations +src/platform/plugins/shared/visualizations @elastic/kibana-visualizations x-pack/platform/plugins/private/watcher @elastic/kibana-management packages/kbn-web-worker-stub @elastic/kibana-operations packages/kbn-whereis-pkg-cli @elastic/kibana-operations diff --git a/.github/paths-labeller.yml b/.github/paths-labeller.yml index 60914a26ad8ed..54936cdadc844 100644 --- a/.github/paths-labeller.yml +++ b/.github/paths-labeller.yml @@ -6,7 +6,7 @@ - 'x-pack/plugins/drilldowns/**/*.*' - 'x-pack/platform/plugins/shared/dashboard_enhanced/public/services/drilldowns/**/*.*' - 'Feature:ExpressionLanguage': - - 'src/plugins/expressions/**/*.*' + - 'src/platform/plugins/shared/expressions/**/*.*' - 'src/plugins/bfetch/**/*.*' - 'Team:obs-ux-infra_services': - 'x-pack/solutions/observability/plugins/apm/**/*.*' diff --git a/.i18nrc.json b/.i18nrc.json index ba9279802f849..2a692aac1dd2a 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -12,7 +12,7 @@ "bfetchError": "packages/kbn-bfetch-error", "cases": ["src/platform/packages/shared/kbn-cases-components"], "cellActions": "src/platform/packages/shared/kbn-cell-actions", - "charts": "src/plugins/charts", + "charts": "src/platform/plugins/shared/charts", "console": "src/platform/plugins/shared/console", "contentManagement": "src/platform/packages/shared/content-management", "core": ["src/core", "packages/core"], @@ -20,9 +20,9 @@ "customIntegrationsPackage": "x-pack/solutions/observability/packages/kbn-custom-integrations", "dashboard": "src/platform/plugins/shared/dashboard", "cloud": "src/platform/packages/shared/cloud", - "domDragDrop": "packages/kbn-dom-drag-drop", + "domDragDrop": "src/platform/packages/shared/kbn-dom-drag-drop", "controls": "src/platform/plugins/shared/controls", - "data": "src/plugins/data", + "data": "src/platform/plugins/shared/data", "observabilityAlertDetails": "x-pack/solutions/observability/packages/alert_details", "dataViews": "src/platform/plugins/shared/data_views", "defaultNavigation": ["packages/default-nav", "src/platform/packages/private/default-nav"], @@ -41,23 +41,23 @@ "esUi": "src/platform/plugins/shared/es_ui_shared", "expandableFlyout": "packages/kbn-expandable-flyout", "expressionError": "src/platform/plugins/shared/expression_error", - "expressionGauge": "src/plugins/chart_expressions/expression_gauge", - "expressionHeatmap": "src/plugins/chart_expressions/expression_heatmap", + "expressionGauge": "src/platform/plugins/shared/chart_expressions/expression_gauge", + "expressionHeatmap": "src/platform/plugins/shared/chart_expressions/expression_heatmap", "expressionImage": "src/platform/plugins/shared/expression_image", "expressionMetric": "src/platform/plugins/shared/expression_metric", - "expressionMetricVis": "src/plugins/chart_expressions/expression_metric", - "expressionLegacyMetricVis": "src/plugins/chart_expressions/expression_legacy_metric", - "expressionPartitionVis": "src/plugins/chart_expressions/expression_partition_vis", - "expressionXY": "src/plugins/chart_expressions/expression_xy", + "expressionMetricVis": "src/platform/plugins/shared/chart_expressions/expression_metric", + "expressionLegacyMetricVis": "src/platform/plugins/shared/chart_expressions/expression_legacy_metric", + "expressionPartitionVis": "src/platform/plugins/shared/chart_expressions/expression_partition_vis", + "expressionXY": "src/platform/plugins/shared/chart_expressions/expression_xy", "expressionRepeatImage": "src/platform/plugins/shared/expression_repeat_image", "expressionRevealImage": "src/platform/plugins/shared/expression_reveal_image", - "expressions": "src/plugins/expressions", + "expressions": "src/platform/plugins/shared/expressions", "expressionShape": "src/platform/plugins/shared/expression_shape", - "expressionTagcloud": "src/plugins/chart_expressions/expression_tagcloud", - "eventAnnotation": "src/plugins/event_annotation", - "eventAnnotationListing": "src/plugins/event_annotation_listing", - "eventAnnotationCommon": "packages/kbn-event-annotation-common", - "eventAnnotationComponents": "packages/kbn-event-annotation-components", + "expressionTagcloud": "src/platform/plugins/shared/chart_expressions/expression_tagcloud", + "eventAnnotation": "src/platform/plugins/private/event_annotation", + "eventAnnotationListing": "src/platform/plugins/private/event_annotation_listing", + "eventAnnotationCommon": "src/platform/packages/shared/kbn-event-annotation-common", + "eventAnnotationComponents": "src/platform/packages/shared/kbn-event-annotation-components", "fieldUtils": "src/platform/packages/shared/kbn-field-utils", "fieldFormats": "src/platform/plugins/shared/field_formats", "files": "src/platform/plugins/shared/files", @@ -86,7 +86,7 @@ "kibana_utils": "src/platform/plugins/shared/kibana_utils", "kibana-react": "src/platform/plugins/shared/kibana_react", "kibanaOverview": "src/platform/plugins/private/kibana_overview", - "lensFormulaDocs": "packages/kbn-lens-formula-docs", + "lensFormulaDocs": "src/platform/packages/private/kbn-lens-formula-docs", "lists": "x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src", "exceptionList-components": "x-pack/solutions/security/packages/kbn-securitysolution-exception-list-components/src", "management": [ @@ -100,7 +100,7 @@ "links": "src/platform/plugins/private/links", "newsfeed": "src/platform/plugins/shared/newsfeed", "presentationUtil": "src/platform/plugins/shared/presentation_util", - "randomSampling": "x-pack/packages/kbn-random-sampling", + "randomSampling": "x-pack/platform/packages/private/kbn-random-sampling", "reactPackages": "packages/react", "esqlEditor": "src/platform/packages/private/kbn-esql-editor", "esqlUtils": "src/platform/packages/shared/kbn-esql-utils", @@ -131,13 +131,13 @@ "sharedPlatformPackages": ["x-pack/platform/packages/shared/kbn-cloud-security-posture"], "serverlessPackages": "packages/serverless", "sse": ["src/platform/packages/shared/kbn-sse-utils"], - "coloring": "packages/kbn-coloring/src", + "coloring": "src/platform/packages/shared/kbn-coloring/src", "languageDocumentation": "src/platform/packages/private/kbn-language-documentation/src", "esql": "src/platform/plugins/shared/esql", "esqlDataGrid": "src/platform/plugins/shared/esql_datagrid", "statusPage": "src/legacy/core_plugins/status_page", "telemetry": ["src/platform/plugins/shared/telemetry", "src/platform/plugins/shared/telemetry_management_section"], - "timelion": ["src/plugins/vis_types/timelion"], + "timelion": ["src/platform/plugins/private/vis_types/timelion"], "tryInConsole": "src/platform/packages/shared/kbn-try-in-console/", "uiActions": ["src/platform/plugins/shared/ui_actions", "src/platform/packages/shared/kbn-ui-actions-browser"], "uiActionsEnhanced": "src/platform/plugins/shared/ui_actions_enhanced", @@ -145,29 +145,29 @@ "usageCollection": "src/platform/plugins/shared/usage_collection", "userProfileComponents": "src/platform/packages/shared/kbn-user-profile-components", "utils": "x-pack/solutions/security/packages/kbn-securitysolution-utils/src", - "visDefaultEditor": "src/plugins/vis_default_editor", - "visTypeGauge": "src/plugins/vis_types/gauge", - "visTypeHeatmap": "src/plugins/vis_types/heatmap", + "visDefaultEditor": "src/platform/plugins/private/vis_default_editor", + "visTypeGauge": "src/platform/plugins/private/vis_types/gauge", + "visTypeHeatmap": "src/platform/plugins/private/vis_types/heatmap", "visTypeMarkdown": "src/platform/plugins/private/vis_type_markdown", - "visTypeMetric": "src/plugins/vis_types/metric", - "visTypePie": "src/plugins/vis_types/pie", - "visTypeTable": "src/plugins/vis_types/table", - "visTypeTagCloud": "src/plugins/vis_types/tagcloud", - "visTypeTimeseries": "src/plugins/vis_types/timeseries", - "visTypeVega": "src/plugins/vis_types/vega", - "visTypeVislib": "src/plugins/vis_types/vislib", - "visTypeXy": "src/plugins/vis_types/xy", - "visualizations": "src/plugins/visualizations", - "visualizationUiComponents": "packages/kbn-visualization-ui-components", - "visualizationUtils": "packages/kbn-visualization-utils", + "visTypeMetric": "src/platform/plugins/private/vis_types/metric", + "visTypePie": "src/platform/plugins/private/vis_types/pie", + "visTypeTable": "src/platform/plugins/private/vis_types/table", + "visTypeTagCloud": "src/platform/plugins/private/vis_types/tagcloud", + "visTypeTimeseries": "src/platform/plugins/shared/vis_types/timeseries", + "visTypeVega": "src/platform/plugins/private/vis_types/vega", + "visTypeVislib": "src/platform/plugins/private/vis_types/vislib", + "visTypeXy": "src/platform/plugins/private/vis_types/xy", + "visualizations": "src/platform/plugins/shared/visualizations", + "visualizationUiComponents": "src/platform/packages/shared/kbn-visualization-ui-components", + "visualizationUtils": "src/platform/packages/shared/kbn-visualization-utils", "unifiedDocViewer": ["src/platform/plugins/shared/unified_doc_viewer", "src/platform/packages/shared/kbn-unified-doc-viewer"], - "unifiedSearch": "src/plugins/unified_search", + "unifiedSearch": "src/platform/plugins/shared/unified_search", "unifiedFieldList": "src/platform/packages/shared/kbn-unified-field-list", "unifiedHistogram": "src/platform/plugins/shared/unified_histogram", "unifiedDataTable": "src/platform/packages/shared/kbn-unified-data-table", "unsavedChangesBadge": "src/platform/packages/private/kbn-unsaved-changes-badge", "unsavedChangesPrompt": "src/platform/packages/shared/kbn-unsaved-changes-prompt", - "managedContentBadge": "packages/kbn-managed-content-badge", + "managedContentBadge": "src/platform/packages/private/kbn-managed-content-badge", "responseOpsRuleForm": "packages/response-ops/rule_form" }, "translations": [] diff --git a/docs/developer/architecture/core/elasticsearch-service.asciidoc b/docs/developer/architecture/core/elasticsearch-service.asciidoc index 0ad4226a1d7aa..a8624432b6292 100644 --- a/docs/developer/architecture/core/elasticsearch-service.asciidoc +++ b/docs/developer/architecture/core/elasticsearch-service.asciidoc @@ -2,7 +2,7 @@ == Elasticsearch service `Elasticsearch service` provides `elasticsearch.client` program API to communicate with Elasticsearch server HTTP API. -NOTE: The Elasticsearch service is only available server side. You can use the {kib-repo}blob/{branch}/src/plugins/data/README.mdx[Data plugin]. +NOTE: The Elasticsearch service is only available server side. You can use the {kib-repo}blob/{branch}/src/platform/plugins/shared/data/README.mdx[Data plugin]. `elasticsearch.client` interacts with Elasticsearch service on behalf of: diff --git a/docs/developer/architecture/development-visualize-index.asciidoc b/docs/developer/architecture/development-visualize-index.asciidoc index b941cdedf9df9..a55c43f11cce4 100644 --- a/docs/developer/architecture/development-visualize-index.asciidoc +++ b/docs/developer/architecture/development-visualize-index.asciidoc @@ -22,5 +22,5 @@ here are a few resources: * The <> documentation, where we try to capture any changes to the APIs as they occur across minors. * link:https://github.com/elastic/kibana/issues/44121[Meta issue] which is tracking the move of the plugin to the new {kib} platform * Our link:https://www.elastic.co/blog/join-our-elastic-stack-workspace-on-slack[Elastic Stack workspace on Slack]. -* The {kib-repo}blob/{branch}/src/plugins/visualizations[source code], which will continue to be +* The {kib-repo}blob/{branch}/src/platform/plugins/shared/visualizations[source code], which will continue to be the most accurate source of information. diff --git a/docs/developer/best-practices/index.asciidoc b/docs/developer/best-practices/index.asciidoc index 92c8522026cdf..69822405d4903 100644 --- a/docs/developer/best-practices/index.asciidoc +++ b/docs/developer/best-practices/index.asciidoc @@ -71,9 +71,9 @@ They take care of the nitty gritty so you can focus on creative solutions to your particular problem sphere. Some examples of common services you should consider: -* {kib-repo}tree/{branch}/src/plugins/data/README.mdx[Data +* {kib-repo}tree/{branch}/src/platform/plugins/shared/data/README.mdx[Data services] -** {kib-repo}tree/{branch}/src/plugins/data/README.mdx#search[Search +** {kib-repo}tree/{branch}/src/platform/plugins/shared/data/README.mdx#search[Search strategies] *** Use the `esSearchStrategy` to make raw queries to ES that will support async searching and partial results, as well as injecting the diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index ed2b2f18ee27b..3142361b3386c 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -36,7 +36,7 @@ as uiSettings within the code. |bfetch allows to batch HTTP requests and streams responses back. -|{kib-repo}blob/{branch}/src/plugins/charts/README.md[charts] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/charts/README.md[charts] |The Charts plugin is a way to create easier integration of shared colors, themes, types and other utilities across all Kibana charts and visualizations. @@ -61,7 +61,7 @@ as uiSettings within the code. - Adds a dashboard embeddable that can be used in other applications. -|{kib-repo}blob/{branch}/src/plugins/data/README.mdx[data] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/data/README.mdx[data] |The data plugin provides common data access services, such as search and query, for solutions and application developers. @@ -114,11 +114,11 @@ This API doesn't support angular, for registering angular dev tools, bootstrap a |This plugin contains reusable code in the form of self-contained modules (or libraries). Each of these modules exports a set of functionality relevant to the domain of the module. -|{kib-repo}blob/{branch}/src/plugins/event_annotation/README.md[eventAnnotation] +|{kib-repo}blob/{branch}/src/platform/plugins/private/event_annotation/README.md[eventAnnotation] |The Event Annotation service contains expressions for event annotations -|{kib-repo}blob/{branch}/src/plugins/event_annotation_listing/README.md[eventAnnotationListing] +|{kib-repo}blob/{branch}/src/platform/plugins/private/event_annotation_listing/README.md[eventAnnotationListing] |This plugin contains the library listing page for event annotation groups. @@ -126,11 +126,11 @@ This API doesn't support angular, for registering angular dev tools, bootstrap a |Expression Error plugin adds an error renderer to the expression plugin. The renderer will display the error image. -|{kib-repo}blob/{branch}/src/plugins/chart_expressions/expression_gauge[expressionGauge] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/chart_expressions/expression_gauge[expressionGauge] |WARNING: Missing README. -|{kib-repo}blob/{branch}/src/plugins/chart_expressions/expression_heatmap[expressionHeatmap] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/chart_expressions/expression_heatmap[expressionHeatmap] |WARNING: Missing README. @@ -138,7 +138,7 @@ This API doesn't support angular, for registering angular dev tools, bootstrap a |Expression Image plugin adds an image renderer to the expression plugin. The renderer will display the given image. -|{kib-repo}blob/{branch}/src/plugins/chart_expressions/expression_legacy_metric/README.md[expressionLegacyMetricVis] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/README.md[expressionLegacyMetricVis] |Expression MetricVis plugin adds a metric renderer and function to the expression plugin. The renderer will display the metric chart. @@ -146,11 +146,11 @@ This API doesn't support angular, for registering angular dev tools, bootstrap a |Expression Metric plugin adds a metric renderer and function to the expression plugin. -|{kib-repo}blob/{branch}/src/plugins/chart_expressions/expression_metric/README.md[expressionMetricVis] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/chart_expressions/expression_metric/README.md[expressionMetricVis] |Expression MetricVis plugin adds a metric renderer and function to the expression plugin. The renderer will display the metric chart. -|{kib-repo}blob/{branch}/src/plugins/chart_expressions/expression_partition_vis/README.md[expressionPartitionVis] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/chart_expressions/expression_partition_vis/README.md[expressionPartitionVis] |Expression Partition Visualization plugin adds a partitionVis renderer and pieVis, mosaicVis, treemapVis, waffleVis functions to the expression plugin. The renderer will display the pie, waffle, treemap and mosaic charts. @@ -169,7 +169,7 @@ by the user. The final output of the expression pipeline can be rendered using one of the *renderers* registered in `expressions` plugin. All the arguments to expression functions need to be serializable, as well as input and output. -Expression functions should try to stay 'pure'. This makes functions easy to reuse and also +Expression functions should try to stay 'pure'. This makes functions easy to reuse and also make it possible to serialize the whole chain as well as output at every step of execution. It is possible to add comments to expressions by starting them with a `//` sequence @@ -188,11 +188,11 @@ for use in their own application. |Expression Shape plugin adds a shape function to the expression plugin and an associated renderer. The renderer will display the given shape with selected decorations. -|{kib-repo}blob/{branch}/src/plugins/chart_expressions/expression_tagcloud/README.md[expressionTagcloud] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/chart_expressions/expression_tagcloud/README.md[expressionTagcloud] |Expression Tagcloud plugin adds a tagcloud renderer and function to the expression plugin. The renderer will display the Wordcloud chart. -|{kib-repo}blob/{branch}/src/plugins/chart_expressions/expression_xy/README.md[expressionXY] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/chart_expressions/expression_xy/README.md[expressionXY] |Expression XY plugin adds a xy renderer and function to the expression plugin. The renderer will display the xy chart. @@ -370,11 +370,11 @@ In general this plugin provides: It manages its own state and data fetching, and can easily be dropped into pages with minimal setup. -|{kib-repo}blob/{branch}/src/plugins/unified_search/README.md[unifiedSearch] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/unified_search/README.md[unifiedSearch] |Contains all the components of Kibana's unified search experience. Specifically: -|{kib-repo}blob/{branch}/src/plugins/url_forwarding/README.md[urlForwarding] +|{kib-repo}blob/{branch}/src/platform/plugins/private/url_forwarding/README.md[urlForwarding] |This plugins contains helpers to redirect legacy URLs. It can be used to forward old URLs to their new counterparts. @@ -382,17 +382,17 @@ It manages its own state and data fetching, and can easily be dropped into pages |The Usage Collection Service defines a set of APIs for other plugins to report the usage of their features. At the same time, it provides necessary the APIs for other services (i.e.: telemetry, monitoring, ...) to consume that usage data. -|{kib-repo}blob/{branch}/src/plugins/vis_default_editor/README.md[visDefaultEditor] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_default_editor/README.md[visDefaultEditor] |The default editor is used in most primary visualizations, e.x. Area, Data table, Pie, etc. It acts as a container for a particular visualization and options tabs. Contains the default "Data" tab in public/components/sidebar/data_tab.tsx. The plugin exposes the static DefaultEditorController class to consume. -|{kib-repo}blob/{branch}/src/plugins/vis_types/gauge[visTypeGauge] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_types/gauge[visTypeGauge] |WARNING: Missing README. -|{kib-repo}blob/{branch}/src/plugins/vis_types/heatmap[visTypeHeatmap] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_types/heatmap[visTypeHeatmap] |WARNING: Missing README. @@ -400,43 +400,43 @@ The plugin exposes the static DefaultEditorController class to consume. |The markdown visualization that can be used to place text panels on dashboards. -|{kib-repo}blob/{branch}/src/plugins/vis_types/metric[visTypeMetric] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_types/metric[visTypeMetric] |WARNING: Missing README. -|{kib-repo}blob/{branch}/src/plugins/vis_types/pie[visTypePie] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_types/pie[visTypePie] |WARNING: Missing README. -|{kib-repo}blob/{branch}/src/plugins/vis_types/table/README.md[visTypeTable] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_types/table/README.md[visTypeTable] |Contains the data table visualization, that allows presenting data in a simple table format. -|{kib-repo}blob/{branch}/src/plugins/vis_types/tagcloud[visTypeTagcloud] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_types/tagcloud[visTypeTagcloud] |WARNING: Missing README. -|{kib-repo}blob/{branch}/src/plugins/vis_types/timelion/README.md[visTypeTimelion] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_types/timelion/README.md[visTypeTimelion] |Contains the timelion visualization and the timelion backend. -|{kib-repo}blob/{branch}/src/plugins/vis_types/timeseries[visTypeTimeseries] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/vis_types/timeseries[visTypeTimeseries] |WARNING: Missing README. -|{kib-repo}blob/{branch}/src/plugins/vis_types/vega[visTypeVega] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_types/vega[visTypeVega] |WARNING: Missing README. -|{kib-repo}blob/{branch}/src/plugins/vis_types/vislib[visTypeVislib] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_types/vislib[visTypeVislib] |WARNING: Missing README. -|{kib-repo}blob/{branch}/src/plugins/vis_types/xy[visTypeXy] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_types/xy[visTypeXy] |WARNING: Missing README. -|{kib-repo}blob/{branch}/src/plugins/visualizations[visualizations] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/visualizations[visualizations] |WARNING: Missing README. @@ -622,7 +622,7 @@ or dashboards from the Kibana instance, from both server and client-side plugins |The globalSearchProviders plugin provides Kibana default search providers for the GlobalSearch plugin. -|{kib-repo}blob/{branch}/x-pack/plugins/graph/README.md[graph] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/graph/README.md[graph] |This is the main source folder of the Graph plugin. It contains all of the Kibana server and client source code. x-pack/test/functional/apps/graph contains additional functional tests. @@ -674,7 +674,7 @@ the infrastructure monitoring use-case within Kibana. |This plugin provides interactive visualizations of your Kubernetes workload and session data. -|{kib-repo}blob/{branch}/x-pack/plugins/lens/readme.md[lens] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/lens/readme.md[lens] |Lens is a visualization editor allowing to quickly and easily configure compelling visualizations to use on dashboards and canvas workpads. @@ -985,7 +985,7 @@ in their infrastructure. |=== include::{kibana-root}/src/platform/plugins/shared/dashboard/README.asciidoc[leveloffset=+1] -include::{kibana-root}/src/plugins/expressions/README.asciidoc[leveloffset=+1] +include::{kibana-root}/src/platform/plugins/shared/expressions/README.asciidoc[leveloffset=+1] include::{kibana-root}/src/platform/plugins/shared/ui_actions/README.asciidoc[leveloffset=+1] include::{kibana-root}/x-pack/platform/plugins/shared/dashboard_enhanced/README.asciidoc[leveloffset=+1] include::{kibana-root}/x-pack/platform/plugins/shared/embeddable_enhanced/README.asciidoc[leveloffset=+1] diff --git a/examples/search_examples/public/plugin.ts b/examples/search_examples/public/plugin.ts index 3b192d31f24d9..25413830135db 100644 --- a/examples/search_examples/public/plugin.ts +++ b/examples/search_examples/public/plugin.ts @@ -54,7 +54,7 @@ export class SearchExamplesPlugin links: [ { label: 'README', - href: 'https://github.com/elastic/kibana/tree/main/src/plugins/data/README.mdx', + href: 'https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/data/README.mdx', iconType: 'logoGithub', target: '_blank', size: 's', diff --git a/package.json b/package.json index 4493dfd5832db..fd8cb1a2edcab 100644 --- a/package.json +++ b/package.json @@ -198,16 +198,16 @@ "@kbn/bfetch-explorer-plugin": "link:examples/bfetch_explorer", "@kbn/bfetch-plugin": "link:src/plugins/bfetch", "@kbn/calculate-auto": "link:packages/kbn-calculate-auto", - "@kbn/calculate-width-from-char-count": "link:packages/kbn-calculate-width-from-char-count", + "@kbn/calculate-width-from-char-count": "link:src/platform/packages/shared/kbn-calculate-width-from-char-count", "@kbn/canvas-plugin": "link:x-pack/platform/plugins/private/canvas", "@kbn/cases-api-integration-test-plugin": "link:x-pack/test/cases_api_integration/common/plugins/cases", "@kbn/cases-components": "link:src/platform/packages/shared/kbn-cases-components", "@kbn/cases-plugin": "link:x-pack/platform/plugins/shared/cases", "@kbn/cbor": "link:src/platform/packages/shared/kbn-cbor", "@kbn/cell-actions": "link:src/platform/packages/shared/kbn-cell-actions", - "@kbn/chart-expressions-common": "link:src/plugins/chart_expressions/common", - "@kbn/chart-icons": "link:packages/kbn-chart-icons", - "@kbn/charts-plugin": "link:src/plugins/charts", + "@kbn/chart-expressions-common": "link:src/platform/packages/shared/chart-expressions-common", + "@kbn/chart-icons": "link:src/platform/packages/shared/kbn-chart-icons", + "@kbn/charts-plugin": "link:src/platform/plugins/shared/charts", "@kbn/cloud": "link:src/platform/packages/shared/cloud", "@kbn/cloud-chat-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_chat", "@kbn/cloud-data-migration-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration", @@ -223,7 +223,7 @@ "@kbn/cloud-security-posture-plugin": "link:x-pack/solutions/security/plugins/cloud_security_posture", "@kbn/code-editor": "link:packages/shared-ux/code_editor/impl", "@kbn/code-editor-mock": "link:packages/shared-ux/code_editor/mocks", - "@kbn/coloring": "link:packages/kbn-coloring", + "@kbn/coloring": "link:src/platform/packages/shared/kbn-coloring", "@kbn/config": "link:src/platform/packages/shared/kbn-config", "@kbn/config-mocks": "link:src/platform/packages/private/kbn-config-mocks", "@kbn/config-schema": "link:src/platform/packages/shared/kbn-config-schema", @@ -423,10 +423,10 @@ "@kbn/dashboard-enhanced-plugin": "link:x-pack/platform/plugins/shared/dashboard_enhanced", "@kbn/dashboard-plugin": "link:src/platform/plugins/shared/dashboard", "@kbn/data-forge": "link:x-pack/platform/packages/shared/kbn-data-forge", - "@kbn/data-plugin": "link:src/plugins/data", + "@kbn/data-plugin": "link:src/platform/plugins/shared/data", "@kbn/data-quality-plugin": "link:x-pack/platform/plugins/shared/data_quality", "@kbn/data-search-plugin": "link:test/plugin_functional/plugins/data_search", - "@kbn/data-service": "link:packages/kbn-data-service", + "@kbn/data-service": "link:src/platform/packages/shared/kbn-data-service", "@kbn/data-stream-adapter": "link:x-pack/solutions/security/packages/data-stream-adapter", "@kbn/data-usage-plugin": "link:x-pack/platform/plugins/private/data_usage", "@kbn/data-view-editor-plugin": "link:src/platform/plugins/shared/data_view_editor", @@ -460,7 +460,7 @@ "@kbn/discover-shared-plugin": "link:src/platform/plugins/shared/discover_shared", "@kbn/discover-utils": "link:src/platform/packages/shared/kbn-discover-utils", "@kbn/doc-links": "link:src/platform/packages/shared/kbn-doc-links", - "@kbn/dom-drag-drop": "link:packages/kbn-dom-drag-drop", + "@kbn/dom-drag-drop": "link:src/platform/packages/shared/kbn-dom-drag-drop", "@kbn/ebt-tools": "link:src/platform/packages/shared/kbn-ebt-tools", "@kbn/ecs-data-quality-dashboard": "link:x-pack/solutions/security/packages/ecs_data_quality_dashboard", "@kbn/ecs-data-quality-dashboard-plugin": "link:x-pack/solutions/security/plugins/ecs_data_quality_dashboard", @@ -497,30 +497,30 @@ "@kbn/esql-validation-autocomplete": "link:src/platform/packages/shared/kbn-esql-validation-autocomplete", "@kbn/esql-validation-example-plugin": "link:examples/esql_validation_example", "@kbn/eui-provider-dev-warning": "link:test/plugin_functional/plugins/eui_provider_dev_warning", - "@kbn/event-annotation-common": "link:packages/kbn-event-annotation-common", - "@kbn/event-annotation-components": "link:packages/kbn-event-annotation-components", - "@kbn/event-annotation-listing-plugin": "link:src/plugins/event_annotation_listing", - "@kbn/event-annotation-plugin": "link:src/plugins/event_annotation", + "@kbn/event-annotation-common": "link:src/platform/packages/shared/kbn-event-annotation-common", + "@kbn/event-annotation-components": "link:src/platform/packages/shared/kbn-event-annotation-components", + "@kbn/event-annotation-listing-plugin": "link:src/platform/plugins/private/event_annotation_listing", + "@kbn/event-annotation-plugin": "link:src/platform/plugins/private/event_annotation", "@kbn/event-log-fixture-plugin": "link:x-pack/test/plugin_api_integration/plugins/event_log", "@kbn/event-log-plugin": "link:x-pack/platform/plugins/shared/event_log", "@kbn/expandable-flyout": "link:x-pack/solutions/security/packages/expandable-flyout", "@kbn/exploratory-view-example-plugin": "link:x-pack/examples/exploratory_view_example", "@kbn/exploratory-view-plugin": "link:x-pack/solutions/observability/plugins/exploratory_view", "@kbn/expression-error-plugin": "link:src/platform/plugins/shared/expression_error", - "@kbn/expression-gauge-plugin": "link:src/plugins/chart_expressions/expression_gauge", - "@kbn/expression-heatmap-plugin": "link:src/plugins/chart_expressions/expression_heatmap", + "@kbn/expression-gauge-plugin": "link:src/platform/plugins/shared/chart_expressions/expression_gauge", + "@kbn/expression-heatmap-plugin": "link:src/platform/plugins/shared/chart_expressions/expression_heatmap", "@kbn/expression-image-plugin": "link:src/platform/plugins/shared/expression_image", - "@kbn/expression-legacy-metric-vis-plugin": "link:src/plugins/chart_expressions/expression_legacy_metric", + "@kbn/expression-legacy-metric-vis-plugin": "link:src/platform/plugins/shared/chart_expressions/expression_legacy_metric", "@kbn/expression-metric-plugin": "link:src/platform/plugins/shared/expression_metric", - "@kbn/expression-metric-vis-plugin": "link:src/plugins/chart_expressions/expression_metric", - "@kbn/expression-partition-vis-plugin": "link:src/plugins/chart_expressions/expression_partition_vis", + "@kbn/expression-metric-vis-plugin": "link:src/platform/plugins/shared/chart_expressions/expression_metric", + "@kbn/expression-partition-vis-plugin": "link:src/platform/plugins/shared/chart_expressions/expression_partition_vis", "@kbn/expression-repeat-image-plugin": "link:src/platform/plugins/shared/expression_repeat_image", "@kbn/expression-reveal-image-plugin": "link:src/platform/plugins/shared/expression_reveal_image", "@kbn/expression-shape-plugin": "link:src/platform/plugins/shared/expression_shape", - "@kbn/expression-tagcloud-plugin": "link:src/plugins/chart_expressions/expression_tagcloud", - "@kbn/expression-xy-plugin": "link:src/plugins/chart_expressions/expression_xy", + "@kbn/expression-tagcloud-plugin": "link:src/platform/plugins/shared/chart_expressions/expression_tagcloud", + "@kbn/expression-xy-plugin": "link:src/platform/plugins/shared/chart_expressions/expression_xy", "@kbn/expressions-explorer-plugin": "link:examples/expressions_explorer", - "@kbn/expressions-plugin": "link:src/plugins/expressions", + "@kbn/expressions-plugin": "link:src/platform/plugins/shared/expressions", "@kbn/feature-controls-examples-plugin": "link:examples/feature_control_examples", "@kbn/feature-flags-example-plugin": "link:examples/feature_flags_example", "@kbn/feature-usage-test-plugin": "link:x-pack/test/plugin_api_integration/plugins/feature_usage_test", @@ -549,7 +549,7 @@ "@kbn/global-search-plugin": "link:x-pack/platform/plugins/shared/global_search", "@kbn/global-search-providers-plugin": "link:x-pack/platform/plugins/private/global_search_providers", "@kbn/global-search-test-plugin": "link:x-pack/test/plugin_functional/plugins/global_search_test", - "@kbn/graph-plugin": "link:x-pack/plugins/graph", + "@kbn/graph-plugin": "link:x-pack/platform/plugins/private/graph", "@kbn/grid-example-plugin": "link:examples/grid_example", "@kbn/grid-layout": "link:packages/kbn-grid-layout", "@kbn/grokdebugger-plugin": "link:x-pack/platform/plugins/private/grokdebugger", @@ -588,7 +588,7 @@ "@kbn/integration-assistant-plugin": "link:x-pack/platform/plugins/shared/integration_assistant", "@kbn/interactive-setup-plugin": "link:src/platform/plugins/private/interactive_setup", "@kbn/interactive-setup-test-endpoints-plugin": "link:test/interactive_setup_api_integration/plugins/test_endpoints", - "@kbn/interpreter": "link:packages/kbn-interpreter", + "@kbn/interpreter": "link:src/platform/packages/shared/kbn-interpreter", "@kbn/inventory-plugin": "link:x-pack/solutions/observability/plugins/inventory", "@kbn/investigate-app-plugin": "link:x-pack/solutions/observability/plugins/investigate_app", "@kbn/investigate-plugin": "link:x-pack/solutions/observability/plugins/investigate", @@ -611,9 +611,9 @@ "@kbn/language-documentation": "link:src/platform/packages/private/kbn-language-documentation", "@kbn/lens-config-builder-example-plugin": "link:x-pack/examples/lens_config_builder_example", "@kbn/lens-embeddable-utils": "link:src/platform/packages/shared/kbn-lens-embeddable-utils", - "@kbn/lens-formula-docs": "link:packages/kbn-lens-formula-docs", + "@kbn/lens-formula-docs": "link:src/platform/packages/private/kbn-lens-formula-docs", "@kbn/lens-inline-editing-example-plugin": "link:x-pack/examples/lens_embeddable_inline_editing_example", - "@kbn/lens-plugin": "link:x-pack/plugins/lens", + "@kbn/lens-plugin": "link:x-pack/platform/plugins/shared/lens", "@kbn/license-api-guard-plugin": "link:x-pack/platform/plugins/private/license_api_guard", "@kbn/license-management-plugin": "link:x-pack/platform/plugins/shared/license_management", "@kbn/licensing-plugin": "link:x-pack/platform/plugins/shared/licensing", @@ -628,7 +628,7 @@ "@kbn/logs-explorer-plugin": "link:x-pack/solutions/observability/plugins/logs_explorer", "@kbn/logs-shared-plugin": "link:x-pack/platform/plugins/shared/observability_solution/logs_shared", "@kbn/logstash-plugin": "link:x-pack/platform/plugins/private/logstash", - "@kbn/managed-content-badge": "link:packages/kbn-managed-content-badge", + "@kbn/managed-content-badge": "link:src/platform/packages/private/kbn-managed-content-badge", "@kbn/management-cards-navigation": "link:src/platform/packages/shared/kbn-management/cards_navigation", "@kbn/management-plugin": "link:src/platform/plugins/shared/management", "@kbn/management-settings-application": "link:src/platform/packages/private/kbn-management/settings/application", @@ -730,7 +730,7 @@ "@kbn/profiling-data-access-plugin": "link:x-pack/solutions/observability/plugins/profiling_data_access", "@kbn/profiling-plugin": "link:x-pack/solutions/observability/plugins/profiling", "@kbn/profiling-utils": "link:src/platform/packages/shared/kbn-profiling-utils", - "@kbn/random-sampling": "link:x-pack/packages/kbn-random-sampling", + "@kbn/random-sampling": "link:x-pack/platform/packages/private/kbn-random-sampling", "@kbn/react-field": "link:src/platform/packages/shared/kbn-react-field", "@kbn/react-hooks": "link:src/platform/packages/shared/kbn-react-hooks", "@kbn/react-kibana-context-common": "link:packages/react/kibana_context/common", @@ -930,7 +930,7 @@ "@kbn/slo-plugin": "link:x-pack/solutions/observability/plugins/slo", "@kbn/slo-schema": "link:x-pack/platform/packages/shared/kbn-slo-schema", "@kbn/snapshot-restore-plugin": "link:x-pack/platform/plugins/private/snapshot_restore", - "@kbn/sort-predicates": "link:packages/kbn-sort-predicates", + "@kbn/sort-predicates": "link:src/platform/packages/shared/kbn-sort-predicates", "@kbn/spaces-plugin": "link:x-pack/platform/plugins/shared/spaces", "@kbn/spaces-test-plugin": "link:x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin", "@kbn/sse-utils": "link:src/platform/packages/shared/kbn-sse-utils", @@ -962,12 +962,12 @@ "@kbn/third-party-vis-lens-example-plugin": "link:x-pack/examples/third_party_vis_lens_example", "@kbn/threat-intelligence-plugin": "link:x-pack/solutions/security/plugins/threat_intelligence", "@kbn/timelines-plugin": "link:x-pack/solutions/security/plugins/timelines", - "@kbn/timelion-grammar": "link:packages/kbn-timelion-grammar", + "@kbn/timelion-grammar": "link:src/platform/packages/private/kbn-timelion-grammar", "@kbn/timerange": "link:src/platform/packages/shared/kbn-timerange", - "@kbn/tinymath": "link:packages/kbn-tinymath", + "@kbn/tinymath": "link:src/platform/packages/private/kbn-tinymath", "@kbn/transform-plugin": "link:x-pack/platform/plugins/private/transform", "@kbn/translations-plugin": "link:x-pack/platform/plugins/private/translations", - "@kbn/transpose-utils": "link:packages/kbn-transpose-utils", + "@kbn/transpose-utils": "link:src/platform/packages/private/kbn-transpose-utils", "@kbn/triggers-actions-ui-example-plugin": "link:x-pack/examples/triggers_actions_ui_example", "@kbn/triggers-actions-ui-plugin": "link:x-pack/platform/plugins/shared/triggers_actions_ui", "@kbn/triggers-actions-ui-types": "link:src/platform/packages/shared/kbn-triggers-actions-ui-types", @@ -990,13 +990,13 @@ "@kbn/unified-field-list": "link:src/platform/packages/shared/kbn-unified-field-list", "@kbn/unified-field-list-examples-plugin": "link:examples/unified_field_list_examples", "@kbn/unified-histogram-plugin": "link:src/platform/plugins/shared/unified_histogram", - "@kbn/unified-search-plugin": "link:src/plugins/unified_search", + "@kbn/unified-search-plugin": "link:src/platform/plugins/shared/unified_search", "@kbn/unsaved-changes-badge": "link:src/platform/packages/private/kbn-unsaved-changes-badge", "@kbn/unsaved-changes-prompt": "link:src/platform/packages/shared/kbn-unsaved-changes-prompt", "@kbn/upgrade-assistant-plugin": "link:x-pack/platform/plugins/private/upgrade_assistant", "@kbn/uptime-plugin": "link:x-pack/solutions/observability/plugins/uptime", "@kbn/url-drilldown-plugin": "link:x-pack/plugins/drilldowns/url_drilldown", - "@kbn/url-forwarding-plugin": "link:src/plugins/url_forwarding", + "@kbn/url-forwarding-plugin": "link:src/platform/plugins/private/url_forwarding", "@kbn/usage-collection-plugin": "link:src/platform/plugins/shared/usage_collection", "@kbn/usage-collection-test-plugin": "link:test/plugin_functional/plugins/usage_collection", "@kbn/use-tracked-promise": "link:packages/kbn-use-tracked-promise", @@ -1008,22 +1008,22 @@ "@kbn/utils": "link:src/platform/packages/shared/kbn-utils", "@kbn/ux-plugin": "link:x-pack/solutions/observability/plugins/ux", "@kbn/v8-profiler-examples-plugin": "link:examples/v8_profiler_examples", - "@kbn/vis-default-editor-plugin": "link:src/plugins/vis_default_editor", - "@kbn/vis-type-gauge-plugin": "link:src/plugins/vis_types/gauge", - "@kbn/vis-type-heatmap-plugin": "link:src/plugins/vis_types/heatmap", + "@kbn/vis-default-editor-plugin": "link:src/platform/plugins/private/vis_default_editor", + "@kbn/vis-type-gauge-plugin": "link:src/platform/plugins/private/vis_types/gauge", + "@kbn/vis-type-heatmap-plugin": "link:src/platform/plugins/private/vis_types/heatmap", "@kbn/vis-type-markdown-plugin": "link:src/platform/plugins/private/vis_type_markdown", - "@kbn/vis-type-metric-plugin": "link:src/plugins/vis_types/metric", - "@kbn/vis-type-pie-plugin": "link:src/plugins/vis_types/pie", - "@kbn/vis-type-table-plugin": "link:src/plugins/vis_types/table", - "@kbn/vis-type-tagcloud-plugin": "link:src/plugins/vis_types/tagcloud", - "@kbn/vis-type-timelion-plugin": "link:src/plugins/vis_types/timelion", - "@kbn/vis-type-timeseries-plugin": "link:src/plugins/vis_types/timeseries", - "@kbn/vis-type-vega-plugin": "link:src/plugins/vis_types/vega", - "@kbn/vis-type-vislib-plugin": "link:src/plugins/vis_types/vislib", - "@kbn/vis-type-xy-plugin": "link:src/plugins/vis_types/xy", - "@kbn/visualization-ui-components": "link:packages/kbn-visualization-ui-components", - "@kbn/visualization-utils": "link:packages/kbn-visualization-utils", - "@kbn/visualizations-plugin": "link:src/plugins/visualizations", + "@kbn/vis-type-metric-plugin": "link:src/platform/plugins/private/vis_types/metric", + "@kbn/vis-type-pie-plugin": "link:src/platform/plugins/private/vis_types/pie", + "@kbn/vis-type-table-plugin": "link:src/platform/plugins/private/vis_types/table", + "@kbn/vis-type-tagcloud-plugin": "link:src/platform/plugins/private/vis_types/tagcloud", + "@kbn/vis-type-timelion-plugin": "link:src/platform/plugins/private/vis_types/timelion", + "@kbn/vis-type-timeseries-plugin": "link:src/platform/plugins/shared/vis_types/timeseries", + "@kbn/vis-type-vega-plugin": "link:src/platform/plugins/private/vis_types/vega", + "@kbn/vis-type-vislib-plugin": "link:src/platform/plugins/private/vis_types/vislib", + "@kbn/vis-type-xy-plugin": "link:src/platform/plugins/private/vis_types/xy", + "@kbn/visualization-ui-components": "link:src/platform/packages/shared/kbn-visualization-ui-components", + "@kbn/visualization-utils": "link:src/platform/packages/shared/kbn-visualization-utils", + "@kbn/visualizations-plugin": "link:src/platform/plugins/shared/visualizations", "@kbn/watcher-plugin": "link:x-pack/platform/plugins/private/watcher", "@kbn/xstate-utils": "link:src/platform/packages/shared/kbn-xstate-utils", "@kbn/zod": "link:src/platform/packages/shared/kbn-zod", diff --git a/packages/kbn-docs-utils/src/build_api_declarations/extract_import_refs.test.ts b/packages/kbn-docs-utils/src/build_api_declarations/extract_import_refs.test.ts index 899ef40c3a648..e218d44353ec8 100644 --- a/packages/kbn-docs-utils/src/build_api_declarations/extract_import_refs.test.ts +++ b/packages/kbn-docs-utils/src/build_api_declarations/extract_import_refs.test.ts @@ -109,14 +109,14 @@ it('test extractImportReference with unknown imports', () => { it('test full file imports with no matching plugin', () => { const refs = extractImportReferences( - `typeof import("${REPO_ROOT}/src/plugins/data/common/es_query/kuery/node_types/function")`, + `typeof import("${REPO_ROOT}/src/platform/plugins/shared/data/common/es_query/kuery/node_types/function")`, plugins, log ); expect(refs).toMatchInlineSnapshot(` Array [ "typeof ", - "src/plugins/data/common/es_query/kuery/node_types/function", + "src/platform/plugins/shared/data/common/es_query/kuery/node_types/function", ] `); expect(refs.length).toBe(2); diff --git a/packages/kbn-docs-utils/src/utils.ts b/packages/kbn-docs-utils/src/utils.ts index ce9931a3d9ebd..03df0c0938e32 100644 --- a/packages/kbn-docs-utils/src/utils.ts +++ b/packages/kbn-docs-utils/src/utils.ts @@ -74,7 +74,7 @@ function escapeRegExp(regexp: string) { /** * If the file is at the top level, returns undefined, otherwise returns the * name of the first nested folder in the plugin. For example a path of - * 'src/plugins/data/public/search_services/file.ts' would return 'search_service' while + * 'src/platform/plugins/shared/data/public/search_services/file.ts' would return 'search_service' while * 'src/plugin/data/server/file.ts' would return undefined. * @param filePath */ diff --git a/packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts b/packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts index 31ec2d1f2737a..0350259f36be9 100644 --- a/packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts +++ b/packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts @@ -25,7 +25,7 @@ const testMap = [ 'x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/alerts/toggle_alert_flyout_button.tsx', 'xpack.synthetics', ], - ['src/plugins/vis_types/gauge/public/editor/collections.ts', 'visTypeGauge'], + ['src/platform/plugins/private/vis_types/gauge/public/editor/collections.ts', 'visTypeGauge'], [ 'src/platform/packages/shared/kbn-alerts-ui-shared/src/alert_lifecycle_status_badge/index.tsx', 'alertsUIShared', diff --git a/packages/kbn-lens-formula-docs/jest.config.js b/packages/kbn-lens-formula-docs/jest.config.js deleted file mode 100644 index a9b03d894d97f..0000000000000 --- a/packages/kbn-lens-formula-docs/jest.config.js +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-lens-formula-docs'], -}; diff --git a/packages/kbn-repo-source-classifier/src/repo_source_classifier.ts b/packages/kbn-repo-source-classifier/src/repo_source_classifier.ts index c0ab29f659ebd..bfa8375919889 100644 --- a/packages/kbn-repo-source-classifier/src/repo_source_classifier.ts +++ b/packages/kbn-repo-source-classifier/src/repo_source_classifier.ts @@ -82,7 +82,7 @@ export class RepoSourceClassifier { const segs = path.getSegs(); if ( segs.includes('scripts') && - !path.getRepoRel().startsWith('src/plugins/data/server/scripts/') + !path.getRepoRel().startsWith('src/platform/plugins/shared/data/server/scripts/') ) { return true; } diff --git a/packages/kbn-sort-predicates/jest.config.js b/packages/kbn-sort-predicates/jest.config.js deleted file mode 100644 index b72eb54675ae8..0000000000000 --- a/packages/kbn-sort-predicates/jest.config.js +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-sort-predicates'], -}; diff --git a/packages/kbn-tinymath/jest.config.js b/packages/kbn-tinymath/jest.config.js deleted file mode 100644 index d7e2db62cb954..0000000000000 --- a/packages/kbn-tinymath/jest.config.js +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-tinymath'], -}; diff --git a/packages/kbn-transpose-utils/jest.config.js b/packages/kbn-transpose-utils/jest.config.js deleted file mode 100644 index 1109bd9db4edb..0000000000000 --- a/packages/kbn-transpose-utils/jest.config.js +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-transpose-utils'], -}; diff --git a/packages/kbn-visualization-utils/jest.config.js b/packages/kbn-visualization-utils/jest.config.js deleted file mode 100644 index bcf289903636d..0000000000000 --- a/packages/kbn-visualization-utils/jest.config.js +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-visualization-utils'], -}; diff --git a/src/dev/build/tasks/package_json/find_used_dependencies.ts b/src/dev/build/tasks/package_json/find_used_dependencies.ts index 87540ecedf9cf..31a27ce33616c 100644 --- a/src/dev/build/tasks/package_json/find_used_dependencies.ts +++ b/src/dev/build/tasks/package_json/find_used_dependencies.ts @@ -56,7 +56,7 @@ export async function findUsedDependencies( // core entry 'src/core/server/index.js', // entries that are loaded into the server with dynamic require() calls - 'src/plugins/vis_types/timelion/server/**/*.js', + 'src/platform/plugins/private/vis_types/timelion/server/**/*.js', ], { cwd: repoRoot, 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 540b51a294983..021c168ee3d0d 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 @@ -26,13 +26,13 @@ describe(`enumeratePatterns`, () => { '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`, () => { + it(`should resolve src/platform/plugins/shared/charts/common/static/color_maps/color_maps.ts to kibana-app`, () => { const actual = enumeratePatterns(REPO_ROOT)(log)( - new Map([['src/plugins/charts/common/static/color_maps', ['kibana-app']]]) + new Map([['src/platform/plugins/shared/charts/common/static/color_maps', ['kibana-app']]]) ); expect(actual.flat()).toContain( - 'src/plugins/charts/common/static/color_maps/color_maps.ts kibana-app' + 'src/platform/plugins/shared/charts/common/static/color_maps/color_maps.ts kibana-app' ); }); }); diff --git a/src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt b/src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt index 21bfdc054d654..986f1cc0b2bf5 100644 --- a/src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt +++ b/src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt @@ -47,98 +47,98 @@ x-pack/platform/plugins/private/discover_enhanced/public/plugin.ts kibana-app x-pack/platform/plugins/private/discover_enhanced/server/config.ts kibana-app x-pack/platform/plugins/private/discover_enhanced/server/index.ts kibana-app x-pack/platform/plugins/private/discover_enhanced/server/plugin.ts kibana-app -x-pack/plugins/lens/common/api.ts kibana-app -x-pack/plugins/lens/common/constants.ts kibana-app -x-pack/plugins/lens/common/index.ts kibana-app -x-pack/plugins/lens/common/types.ts kibana-app -x-pack/plugins/lens/config.ts kibana-app -x-pack/plugins/lens/public/app_plugin/app.test.tsx kibana-app -x-pack/plugins/lens/public/app_plugin/app.tsx kibana-app -x-pack/plugins/lens/public/app_plugin/index.ts kibana-app -x-pack/plugins/lens/public/app_plugin/mounter.tsx kibana-app -x-pack/plugins/lens/public/datatable_visualization/expression.test.tsx kibana-app -x-pack/plugins/lens/public/datatable_visualization/expression.tsx kibana-app -x-pack/plugins/lens/public/datatable_visualization/index.ts kibana-app -x-pack/plugins/lens/public/datatable_visualization/visualization.test.tsx kibana-app -x-pack/plugins/lens/public/datatable_visualization/visualization.tsx kibana-app -x-pack/plugins/lens/public/drag_drop/drag_drop.test.tsx kibana-app -x-pack/plugins/lens/public/drag_drop/drag_drop.tsx kibana-app -x-pack/plugins/lens/public/drag_drop/index.ts kibana-app -x-pack/plugins/lens/public/drag_drop/providers.test.tsx kibana-app -x-pack/plugins/lens/public/drag_drop/providers.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/__mocks__/expression_helpers.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/__mocks__/suggestion_helpers.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/dimension_popover.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/index.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions.test.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.test.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_settings.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/types.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/editor_frame.test.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/editor_frame.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/expression_helpers.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/frame_layout.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/index.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/save.test.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/save.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/state_helpers.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/state_management.test.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/state_management.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_helpers.test.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_helpers.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.test.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.test.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/index.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.test.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.test.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/embeddable/embeddable.test.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/embeddable/embeddable.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/embeddable/embeddable_factory.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/embeddable/expression_wrapper.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/format_column.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/index.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/merge_tables.test.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/merge_tables.ts kibana-app -x-pack/plugins/lens/public/editor_frame_service/mocks.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/service.test.tsx kibana-app -x-pack/plugins/lens/public/editor_frame_service/service.tsx kibana-app -x-pack/plugins/lens/public/help_menu_util.tsx kibana-app -x-pack/plugins/lens/public/id_generator/id_generator.test.ts kibana-app -x-pack/plugins/lens/public/id_generator/id_generator.ts kibana-app -x-pack/plugins/lens/public/id_generator/index.ts kibana-app -x-pack/plugins/lens/public/index.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/__mocks__/loader.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/__mocks__/state_helpers.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/change_indexpattern.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/datapanel.test.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/bucket_nesting_editor.test.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/bucket_nesting_editor.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/dimension_panel.test.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/dimension_panel.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/field_select.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/format_selector.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/index.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/popover_editor.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/document_field.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/field_item.test.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/field_item.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/fields_accordion.test.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/fields_accordion.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/index.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/indexpattern.test.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/indexpattern.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/indexpattern_suggestions.test.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/indexpattern_suggestions.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/layerpanel.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/common/api.ts kibana-app +x-pack/platform/plugins/shared/lens/common/constants.ts kibana-app +x-pack/platform/plugins/shared/lens/common/index.ts kibana-app +x-pack/platform/plugins/shared/lens/common/types.ts kibana-app +x-pack/platform/plugins/shared/lens/config.ts kibana-app +x-pack/platform/plugins/shared/lens/public/app_plugin/app.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/app_plugin/app.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/app_plugin/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/app_plugin/mounter.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/datatable_visualization/expression.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/datatable_visualization/expression.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/datatable_visualization/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/datatable_visualization/visualization.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/datatable_visualization/visualization.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/drag_drop/drag_drop.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/drag_drop/drag_drop.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/drag_drop/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/drag_drop/providers.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/drag_drop/providers.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/__mocks__/expression_helpers.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/__mocks__/suggestion_helpers.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/dimension_popover.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_settings.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/types.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/editor_frame.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/editor_frame.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/expression_helpers.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/frame_layout.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/save.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/save.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/state_helpers.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/state_management.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/state_management.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_helpers.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_helpers.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_panel.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/embeddable/embeddable.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/embeddable/embeddable.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/embeddable/embeddable_factory.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/embeddable/expression_wrapper.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/format_column.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/merge_tables.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/merge_tables.ts kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/mocks.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/service.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/editor_frame_service/service.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/help_menu_util.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/id_generator/id_generator.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/id_generator/id_generator.ts kibana-app +x-pack/platform/plugins/shared/lens/public/id_generator/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/__mocks__/loader.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/__mocks__/state_helpers.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/change_indexpattern.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/datapanel.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/datapanel.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/dimension_panel/bucket_nesting_editor.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/dimension_panel/bucket_nesting_editor.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/dimension_panel/dimension_panel.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/dimension_panel/dimension_panel.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/dimension_panel/field_select.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/dimension_panel/format_selector.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/dimension_panel/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/dimension_panel/popover_editor.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/document_field.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/field_item.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/field_item.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/fields_accordion.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/fields_accordion.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/indexpattern.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/indexpattern.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/indexpattern_suggestions.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/indexpattern_suggestions.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/layerpanel.test.tsx kibana-app x-pack/platform/plugins/private/reporting/server/browsers/download/clean.ts kibana-reporting x-pack/platform/plugins/private/reporting/server/browsers/download/download.test.ts kibana-reporting x-pack/platform/plugins/private/reporting/server/browsers/download/download.ts kibana-reporting @@ -158,34 +158,34 @@ x-pack/platform/plugins/private/reporting/server/config/config.ts kibana-reporti x-pack/platform/plugins/private/reporting/server/config/create_config.test.ts kibana-reporting x-pack/platform/plugins/private/reporting/server/config/create_config.ts kibana-reporting x-pack/platform/plugins/private/reporting/server/config/default_chromium_sandbox_disabled.test.ts kibana-reporting -x-pack/plugins/lens/public/indexpattern_datasource/layerpanel.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/lens_field_icon.test.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/lens_field_icon.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/loader.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/mocks.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/no_fields_callout.test.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/no_fields_callout.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/__mocks__/index.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/cardinality.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/column_types.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/count.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/date_histogram.test.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/date_histogram.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/index.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/metrics.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms.test.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms.tsx kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/index.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/operations.test.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/operations/operations.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/pure_helpers.test.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/pure_helpers.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/rename_columns.test.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/rename_columns.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/state_helpers.test.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/state_helpers.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/to_expression.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/types.ts kibana-app -x-pack/plugins/lens/public/indexpattern_datasource/utils.ts kibana-app -x-pack/plugins/lens/public/lens_ui_telemetry/factory.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/layerpanel.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/lens_field_icon.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/lens_field_icon.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/loader.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/loader.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/mocks.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/no_fields_callout.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/no_fields_callout.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/__mocks__/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/definitions/cardinality.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/definitions/column_types.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/definitions/count.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/definitions/date_histogram.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/definitions/date_histogram.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/definitions/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/definitions/metrics.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/definitions/terms.test.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/definitions/terms.tsx kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/index.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/operations.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/operations/operations.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/pure_helpers.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/pure_helpers.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/rename_columns.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/rename_columns.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/state_helpers.test.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/state_helpers.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/to_expression.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/types.ts kibana-app +x-pack/platform/plugins/shared/lens/public/indexpattern_datasource/utils.ts kibana-app +x-pack/platform/plugins/shared/lens/public/lens_ui_telemetry/factory.test.ts kibana-app diff --git a/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js b/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js index 4838717b1c5b1..953504f4e36bc 100644 --- a/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js +++ b/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js @@ -100,7 +100,7 @@ describe(`Transform fns`, () => { }); }); - describe(`with a coveredFilePath of src/plugins/charts/common/static/color_maps/color_maps.ts`, () => { + describe(`with a coveredFilePath of src/platform/plugins/shared/charts/common/static/color_maps/color_maps.ts`, () => { const expected = 'kibana-reporting'; it(`should resolve to ${expected}`, async () => { const actual = await teamAssignment(teamAssignmentsPathMOCK)(log)(obj); @@ -112,25 +112,25 @@ describe(`Transform fns`, () => { describe(`last fn`, () => { describe(`applied to n results`, () => { it(`should pick the last one`, () => { - const nteams = `src/plugins/charts/common/static/color_maps/color_maps.ts kibana-app -src/plugins/charts/common/static/color_maps/color_maps.ts kibana-app-arch`; + const nteams = `src/platform/plugins/shared/charts/common/static/color_maps/color_maps.ts kibana-app +src/platform/plugins/shared/charts/common/static/color_maps/color_maps.ts kibana-app-arch`; const actual = last(nteams); expect(actual).toBe( - 'src/plugins/charts/common/static/color_maps/color_maps.ts kibana-app-arch' + 'src/platform/plugins/shared/charts/common/static/color_maps/color_maps.ts kibana-app-arch' ); }); }); describe(`applied to 1 result`, () => { it(`should pick that 1 result`, () => { const nteams = - 'src/plugins/charts/common/static/color_maps/color_maps.ts kibana-app-arch'; + 'src/platform/plugins/shared/charts/common/static/color_maps/color_maps.ts kibana-app-arch'; const actual = last(nteams); expect(actual).toBe( - 'src/plugins/charts/common/static/color_maps/color_maps.ts kibana-app-arch' + 'src/platform/plugins/shared/charts/common/static/color_maps/color_maps.ts kibana-app-arch' ); }); }); diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index dc307935437f6..7fffaf223266c 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -20,29 +20,32 @@ export const storybookAliases = { cloud_security_posture_graph: 'x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/.storybook', cloud: 'src/platform/packages/shared/cloud/.storybook', - coloring: 'packages/kbn-coloring/.storybook', + coloring: 'src/platform/packages/shared/kbn-coloring/.storybook', language_documentation_popover: 'src/platform/packages/private/kbn-language-documentation/.storybook', - chart_icons: 'packages/kbn-chart-icons/.storybook', + chart_icons: 'src/platform/packages/shared/kbn-chart-icons/.storybook', content_management_examples: 'examples/content_management_examples/.storybook', custom_icons: 'src/platform/packages/shared/kbn-custom-icons/.storybook', custom_integrations: 'src/platform/plugins/shared/custom_integrations/storybook', dashboard_enhanced: 'x-pack/platform/plugins/shared/dashboard_enhanced/.storybook', dashboard: 'src/platform/plugins/shared/dashboard/.storybook', - data: 'src/plugins/data/.storybook', + data: 'src/platform/plugins/shared/data/.storybook', discover: 'src/platform/plugins/shared/discover/.storybook', esql_ast_inspector: 'examples/esql_ast_inspector/.storybook', es_ui_shared: 'src/platform/plugins/shared/es_ui_shared/.storybook', expandable_flyout: 'x-pack/solutions/security/packages/expandable-flyout/.storybook', expression_error: 'src/platform/plugins/shared/expression_error/.storybook', expression_image: 'src/platform/plugins/shared/expression_image/.storybook', - expression_metric_vis: 'src/plugins/chart_expressions/expression_legacy_metric/.storybook', + expression_metric_vis: + 'src/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook', expression_metric: 'src/platform/plugins/shared/expression_metric/.storybook', - expression_partition_vis: 'src/plugins/chart_expressions/expression_partition_vis/.storybook', + expression_partition_vis: + 'src/platform/plugins/shared/chart_expressions/expression_partition_vis/.storybook', expression_repeat_image: 'src/platform/plugins/shared/expression_repeat_image/.storybook', expression_reveal_image: 'src/platform/plugins/shared/expression_reveal_image/.storybook', expression_shape: 'src/platform/plugins/shared/expression_shape/.storybook', - expression_tagcloud: 'src/plugins/chart_expressions/expression_tagcloud/.storybook', + expression_tagcloud: + 'src/platform/plugins/shared/chart_expressions/expression_tagcloud/.storybook', fleet: 'x-pack/platform/plugins/shared/fleet/.storybook', grouping: 'src/platform/packages/shared/kbn-grouping/.storybook', home: 'src/platform/plugins/shared/home/.storybook', @@ -62,7 +65,7 @@ export const storybookAliases = { observability_shared: 'x-pack/solutions/observability/plugins/observability_shared/.storybook', observability_slo: 'x-pack/solutions/observability/plugins/slo/.storybook', presentation: 'src/platform/plugins/shared/presentation_util/storybook', - random_sampling: 'x-pack/packages/kbn-random-sampling/.storybook', + random_sampling: 'x-pack/platform/packages/private/kbn-random-sampling/.storybook', esql_editor: 'src/platform/packages/private/kbn-esql-editor/.storybook', security_solution: 'x-pack/solutions/security/plugins/security_solution/.storybook', security_solution_packages: 'x-pack/solutions/security/packages/storybook/config', @@ -71,6 +74,6 @@ export const storybookAliases = { threat_intelligence: 'x-pack/solutions/security/plugins/threat_intelligence/.storybook', triggers_actions_ui: 'x-pack/platform/plugins/shared/triggers_actions_ui/.storybook', ui_actions_enhanced: 'src/platform/plugins/shared/ui_actions_enhanced/.storybook', - unified_search: 'src/plugins/unified_search/.storybook', + unified_search: 'src/platform/plugins/shared/unified_search/.storybook', profiling: 'x-pack/solutions/observability/plugins/profiling/.storybook', }; diff --git a/packages/kbn-lens-formula-docs/README.md b/src/platform/packages/private/kbn-lens-formula-docs/README.md similarity index 100% rename from packages/kbn-lens-formula-docs/README.md rename to src/platform/packages/private/kbn-lens-formula-docs/README.md diff --git a/packages/kbn-lens-formula-docs/index.ts b/src/platform/packages/private/kbn-lens-formula-docs/index.ts similarity index 100% rename from packages/kbn-lens-formula-docs/index.ts rename to src/platform/packages/private/kbn-lens-formula-docs/index.ts diff --git a/src/platform/packages/private/kbn-lens-formula-docs/jest.config.js b/src/platform/packages/private/kbn-lens-formula-docs/jest.config.js new file mode 100644 index 0000000000000..80cdb999f055a --- /dev/null +++ b/src/platform/packages/private/kbn-lens-formula-docs/jest.config.js @@ -0,0 +1,14 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-lens-formula-docs'], +}; diff --git a/packages/kbn-lens-formula-docs/kibana.jsonc b/src/platform/packages/private/kbn-lens-formula-docs/kibana.jsonc similarity index 100% rename from packages/kbn-lens-formula-docs/kibana.jsonc rename to src/platform/packages/private/kbn-lens-formula-docs/kibana.jsonc diff --git a/packages/kbn-lens-formula-docs/package.json b/src/platform/packages/private/kbn-lens-formula-docs/package.json similarity index 100% rename from packages/kbn-lens-formula-docs/package.json rename to src/platform/packages/private/kbn-lens-formula-docs/package.json diff --git a/packages/kbn-lens-formula-docs/src/math/index.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/math/index.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/math/index.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/math/index.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/average.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/average.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/average.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/average.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/cardinality.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/cardinality.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/cardinality.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/cardinality.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/count.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/count.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/count.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/count.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/counter_rate.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/counter_rate.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/counter_rate.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/counter_rate.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/cumulative_sum.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/cumulative_sum.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/cumulative_sum.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/cumulative_sum.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/differences.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/differences.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/differences.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/differences.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/helpers.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/helpers.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/helpers.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/helpers.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/interval.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/interval.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/interval.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/interval.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/last_value.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/last_value.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/last_value.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/last_value.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/max.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/max.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/max.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/max.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/median.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/median.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/median.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/median.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/min.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/min.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/min.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/min.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/moving_average.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/moving_average.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/moving_average.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/moving_average.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/normalize_by_unit.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/normalize_by_unit.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/normalize_by_unit.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/normalize_by_unit.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/now.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/now.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/now.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/now.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/overall_average.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/overall_average.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/overall_average.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/overall_average.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/overall_max.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/overall_max.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/overall_max.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/overall_max.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/overall_min.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/overall_min.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/overall_min.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/overall_min.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/overall_sum.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/overall_sum.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/overall_sum.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/overall_sum.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/percentile.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/percentile.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/percentile.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/percentile.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/percentile_ranks.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/percentile_ranks.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/percentile_ranks.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/percentile_ranks.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/std_deviation.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/std_deviation.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/std_deviation.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/std_deviation.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/sum.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/sum.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/sum.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/sum.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/time_range.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/time_range.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/time_range.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/time_range.ts diff --git a/packages/kbn-lens-formula-docs/src/operations/types.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/operations/types.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/operations/types.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/operations/types.ts diff --git a/packages/kbn-lens-formula-docs/src/sections/calculations.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/sections/calculations.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/sections/calculations.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/sections/calculations.ts diff --git a/packages/kbn-lens-formula-docs/src/sections/common.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/sections/common.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/sections/common.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/sections/common.ts diff --git a/packages/kbn-lens-formula-docs/src/sections/comparison.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/sections/comparison.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/sections/comparison.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/sections/comparison.ts diff --git a/packages/kbn-lens-formula-docs/src/sections/context.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/sections/context.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/sections/context.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/sections/context.ts diff --git a/packages/kbn-lens-formula-docs/src/sections/elasticsearch.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/sections/elasticsearch.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/sections/elasticsearch.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/sections/elasticsearch.ts diff --git a/packages/kbn-lens-formula-docs/src/sections/how_to.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/sections/how_to.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/sections/how_to.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/sections/how_to.ts diff --git a/packages/kbn-lens-formula-docs/src/sections/index.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/sections/index.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/sections/index.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/sections/index.ts diff --git a/packages/kbn-lens-formula-docs/src/sections/math.ts b/src/platform/packages/private/kbn-lens-formula-docs/src/sections/math.ts similarity index 100% rename from packages/kbn-lens-formula-docs/src/sections/math.ts rename to src/platform/packages/private/kbn-lens-formula-docs/src/sections/math.ts diff --git a/packages/kbn-lens-formula-docs/tsconfig.json b/src/platform/packages/private/kbn-lens-formula-docs/tsconfig.json similarity index 79% rename from packages/kbn-lens-formula-docs/tsconfig.json rename to src/platform/packages/private/kbn-lens-formula-docs/tsconfig.json index d28d082af4d18..b1802b20f130d 100644 --- a/packages/kbn-lens-formula-docs/tsconfig.json +++ b/src/platform/packages/private/kbn-lens-formula-docs/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": ["jest", "node"] diff --git a/packages/kbn-managed-content-badge/README.md b/src/platform/packages/private/kbn-managed-content-badge/README.md similarity index 100% rename from packages/kbn-managed-content-badge/README.md rename to src/platform/packages/private/kbn-managed-content-badge/README.md diff --git a/packages/kbn-managed-content-badge/index.ts b/src/platform/packages/private/kbn-managed-content-badge/index.ts similarity index 100% rename from packages/kbn-managed-content-badge/index.ts rename to src/platform/packages/private/kbn-managed-content-badge/index.ts diff --git a/packages/kbn-chart-icons/jest.config.js b/src/platform/packages/private/kbn-managed-content-badge/jest.config.js similarity index 82% rename from packages/kbn-chart-icons/jest.config.js rename to src/platform/packages/private/kbn-managed-content-badge/jest.config.js index 1ddf262c2a7d5..b9bb6ea9621ea 100644 --- a/packages/kbn-chart-icons/jest.config.js +++ b/src/platform/packages/private/kbn-managed-content-badge/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-chart-icons'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-managed-content-badge'], }; diff --git a/packages/kbn-managed-content-badge/kibana.jsonc b/src/platform/packages/private/kbn-managed-content-badge/kibana.jsonc similarity index 100% rename from packages/kbn-managed-content-badge/kibana.jsonc rename to src/platform/packages/private/kbn-managed-content-badge/kibana.jsonc diff --git a/packages/kbn-managed-content-badge/package.json b/src/platform/packages/private/kbn-managed-content-badge/package.json similarity index 100% rename from packages/kbn-managed-content-badge/package.json rename to src/platform/packages/private/kbn-managed-content-badge/package.json diff --git a/packages/kbn-managed-content-badge/tsconfig.json b/src/platform/packages/private/kbn-managed-content-badge/tsconfig.json similarity index 83% rename from packages/kbn-managed-content-badge/tsconfig.json rename to src/platform/packages/private/kbn-managed-content-badge/tsconfig.json index 249cf05d36c96..6e21a10375824 100644 --- a/packages/kbn-managed-content-badge/tsconfig.json +++ b/src/platform/packages/private/kbn-managed-content-badge/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-timelion-grammar/chain.peggy b/src/platform/packages/private/kbn-timelion-grammar/chain.peggy similarity index 100% rename from packages/kbn-timelion-grammar/chain.peggy rename to src/platform/packages/private/kbn-timelion-grammar/chain.peggy diff --git a/packages/kbn-timelion-grammar/index.js b/src/platform/packages/private/kbn-timelion-grammar/index.js similarity index 100% rename from packages/kbn-timelion-grammar/index.js rename to src/platform/packages/private/kbn-timelion-grammar/index.js diff --git a/packages/kbn-timelion-grammar/kibana.jsonc b/src/platform/packages/private/kbn-timelion-grammar/kibana.jsonc similarity index 100% rename from packages/kbn-timelion-grammar/kibana.jsonc rename to src/platform/packages/private/kbn-timelion-grammar/kibana.jsonc diff --git a/packages/kbn-timelion-grammar/package.json b/src/platform/packages/private/kbn-timelion-grammar/package.json similarity index 100% rename from packages/kbn-timelion-grammar/package.json rename to src/platform/packages/private/kbn-timelion-grammar/package.json diff --git a/packages/kbn-timelion-grammar/tsconfig.json b/src/platform/packages/private/kbn-timelion-grammar/tsconfig.json similarity index 72% rename from packages/kbn-timelion-grammar/tsconfig.json rename to src/platform/packages/private/kbn-timelion-grammar/tsconfig.json index 939903f56b523..297c6857d0a3a 100644 --- a/packages/kbn-timelion-grammar/tsconfig.json +++ b/src/platform/packages/private/kbn-timelion-grammar/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/packages/kbn-tinymath/README.md b/src/platform/packages/private/kbn-tinymath/README.md similarity index 92% rename from packages/kbn-tinymath/README.md rename to src/platform/packages/private/kbn-tinymath/README.md index 3db95cef9adb0..79c5afe3a2ab2 100644 --- a/packages/kbn-tinymath/README.md +++ b/src/platform/packages/private/kbn-tinymath/README.md @@ -65,11 +65,11 @@ parse('1 + random()') ### Building kbn-tinymath This package is rebuilt when running `yarn kbn bootstrap`, but can also be build directly -using `yarn build` from the `packages/kbn-tinymath` directory. +using `yarn build` from the `src/platform/packages/private/kbn-tinymath` directory. ### Running tests -To test `@kbn/tinymath` from Kibana, run `node scripts/jest --config packages/kbn-tinymath/jest.config.js` from +To test `@kbn/tinymath` from Kibana, run `node scripts/jest --config src/platform/packages/private/kbn-tinymath/jest.config.js` from the top level of Kibana. To test grammar changes it is required to run a build task before the test suite. diff --git a/packages/kbn-tinymath/docs/functions.md b/src/platform/packages/private/kbn-tinymath/docs/functions.md similarity index 100% rename from packages/kbn-tinymath/docs/functions.md rename to src/platform/packages/private/kbn-tinymath/docs/functions.md diff --git a/packages/kbn-tinymath/docs/template/functions.hbs b/src/platform/packages/private/kbn-tinymath/docs/template/functions.hbs similarity index 100% rename from packages/kbn-tinymath/docs/template/functions.hbs rename to src/platform/packages/private/kbn-tinymath/docs/template/functions.hbs diff --git a/packages/kbn-tinymath/index.d.ts b/src/platform/packages/private/kbn-tinymath/index.d.ts similarity index 100% rename from packages/kbn-tinymath/index.d.ts rename to src/platform/packages/private/kbn-tinymath/index.d.ts diff --git a/packages/kbn-coloring/jest.config.js b/src/platform/packages/private/kbn-tinymath/jest.config.js similarity index 84% rename from packages/kbn-coloring/jest.config.js rename to src/platform/packages/private/kbn-tinymath/jest.config.js index e425aa35ebc82..14ea6adfc47f0 100644 --- a/packages/kbn-coloring/jest.config.js +++ b/src/platform/packages/private/kbn-tinymath/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-coloring'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-tinymath'], }; diff --git a/packages/kbn-tinymath/kibana.jsonc b/src/platform/packages/private/kbn-tinymath/kibana.jsonc similarity index 100% rename from packages/kbn-tinymath/kibana.jsonc rename to src/platform/packages/private/kbn-tinymath/kibana.jsonc diff --git a/packages/kbn-tinymath/package.json b/src/platform/packages/private/kbn-tinymath/package.json similarity index 100% rename from packages/kbn-tinymath/package.json rename to src/platform/packages/private/kbn-tinymath/package.json diff --git a/packages/kbn-tinymath/src/functions/abs.js b/src/platform/packages/private/kbn-tinymath/src/functions/abs.js similarity index 100% rename from packages/kbn-tinymath/src/functions/abs.js rename to src/platform/packages/private/kbn-tinymath/src/functions/abs.js diff --git a/packages/kbn-tinymath/src/functions/add.js b/src/platform/packages/private/kbn-tinymath/src/functions/add.js similarity index 100% rename from packages/kbn-tinymath/src/functions/add.js rename to src/platform/packages/private/kbn-tinymath/src/functions/add.js diff --git a/packages/kbn-tinymath/src/functions/cbrt.js b/src/platform/packages/private/kbn-tinymath/src/functions/cbrt.js similarity index 100% rename from packages/kbn-tinymath/src/functions/cbrt.js rename to src/platform/packages/private/kbn-tinymath/src/functions/cbrt.js diff --git a/packages/kbn-tinymath/src/functions/ceil.js b/src/platform/packages/private/kbn-tinymath/src/functions/ceil.js similarity index 100% rename from packages/kbn-tinymath/src/functions/ceil.js rename to src/platform/packages/private/kbn-tinymath/src/functions/ceil.js diff --git a/packages/kbn-tinymath/src/functions/clamp.js b/src/platform/packages/private/kbn-tinymath/src/functions/clamp.js similarity index 100% rename from packages/kbn-tinymath/src/functions/clamp.js rename to src/platform/packages/private/kbn-tinymath/src/functions/clamp.js diff --git a/packages/kbn-tinymath/src/functions/comparison/eq.js b/src/platform/packages/private/kbn-tinymath/src/functions/comparison/eq.js similarity index 100% rename from packages/kbn-tinymath/src/functions/comparison/eq.js rename to src/platform/packages/private/kbn-tinymath/src/functions/comparison/eq.js diff --git a/packages/kbn-tinymath/src/functions/comparison/gt.js b/src/platform/packages/private/kbn-tinymath/src/functions/comparison/gt.js similarity index 100% rename from packages/kbn-tinymath/src/functions/comparison/gt.js rename to src/platform/packages/private/kbn-tinymath/src/functions/comparison/gt.js diff --git a/packages/kbn-tinymath/src/functions/comparison/gte.js b/src/platform/packages/private/kbn-tinymath/src/functions/comparison/gte.js similarity index 100% rename from packages/kbn-tinymath/src/functions/comparison/gte.js rename to src/platform/packages/private/kbn-tinymath/src/functions/comparison/gte.js diff --git a/packages/kbn-tinymath/src/functions/comparison/ifelse.js b/src/platform/packages/private/kbn-tinymath/src/functions/comparison/ifelse.js similarity index 100% rename from packages/kbn-tinymath/src/functions/comparison/ifelse.js rename to src/platform/packages/private/kbn-tinymath/src/functions/comparison/ifelse.js diff --git a/packages/kbn-tinymath/src/functions/comparison/index.js b/src/platform/packages/private/kbn-tinymath/src/functions/comparison/index.js similarity index 100% rename from packages/kbn-tinymath/src/functions/comparison/index.js rename to src/platform/packages/private/kbn-tinymath/src/functions/comparison/index.js diff --git a/packages/kbn-tinymath/src/functions/comparison/lt.js b/src/platform/packages/private/kbn-tinymath/src/functions/comparison/lt.js similarity index 100% rename from packages/kbn-tinymath/src/functions/comparison/lt.js rename to src/platform/packages/private/kbn-tinymath/src/functions/comparison/lt.js diff --git a/packages/kbn-tinymath/src/functions/comparison/lte.js b/src/platform/packages/private/kbn-tinymath/src/functions/comparison/lte.js similarity index 100% rename from packages/kbn-tinymath/src/functions/comparison/lte.js rename to src/platform/packages/private/kbn-tinymath/src/functions/comparison/lte.js diff --git a/packages/kbn-tinymath/src/functions/cos.js b/src/platform/packages/private/kbn-tinymath/src/functions/cos.js similarity index 100% rename from packages/kbn-tinymath/src/functions/cos.js rename to src/platform/packages/private/kbn-tinymath/src/functions/cos.js diff --git a/packages/kbn-tinymath/src/functions/count.js b/src/platform/packages/private/kbn-tinymath/src/functions/count.js similarity index 100% rename from packages/kbn-tinymath/src/functions/count.js rename to src/platform/packages/private/kbn-tinymath/src/functions/count.js diff --git a/packages/kbn-tinymath/src/functions/cube.js b/src/platform/packages/private/kbn-tinymath/src/functions/cube.js similarity index 100% rename from packages/kbn-tinymath/src/functions/cube.js rename to src/platform/packages/private/kbn-tinymath/src/functions/cube.js diff --git a/packages/kbn-tinymath/src/functions/defaults.js b/src/platform/packages/private/kbn-tinymath/src/functions/defaults.js similarity index 100% rename from packages/kbn-tinymath/src/functions/defaults.js rename to src/platform/packages/private/kbn-tinymath/src/functions/defaults.js diff --git a/packages/kbn-tinymath/src/functions/degtorad.js b/src/platform/packages/private/kbn-tinymath/src/functions/degtorad.js similarity index 100% rename from packages/kbn-tinymath/src/functions/degtorad.js rename to src/platform/packages/private/kbn-tinymath/src/functions/degtorad.js diff --git a/packages/kbn-tinymath/src/functions/divide.js b/src/platform/packages/private/kbn-tinymath/src/functions/divide.js similarity index 100% rename from packages/kbn-tinymath/src/functions/divide.js rename to src/platform/packages/private/kbn-tinymath/src/functions/divide.js diff --git a/packages/kbn-tinymath/src/functions/exp.js b/src/platform/packages/private/kbn-tinymath/src/functions/exp.js similarity index 100% rename from packages/kbn-tinymath/src/functions/exp.js rename to src/platform/packages/private/kbn-tinymath/src/functions/exp.js diff --git a/packages/kbn-tinymath/src/functions/first.js b/src/platform/packages/private/kbn-tinymath/src/functions/first.js similarity index 100% rename from packages/kbn-tinymath/src/functions/first.js rename to src/platform/packages/private/kbn-tinymath/src/functions/first.js diff --git a/packages/kbn-tinymath/src/functions/fix.js b/src/platform/packages/private/kbn-tinymath/src/functions/fix.js similarity index 100% rename from packages/kbn-tinymath/src/functions/fix.js rename to src/platform/packages/private/kbn-tinymath/src/functions/fix.js diff --git a/packages/kbn-tinymath/src/functions/floor.js b/src/platform/packages/private/kbn-tinymath/src/functions/floor.js similarity index 100% rename from packages/kbn-tinymath/src/functions/floor.js rename to src/platform/packages/private/kbn-tinymath/src/functions/floor.js diff --git a/packages/kbn-tinymath/src/functions/index.js b/src/platform/packages/private/kbn-tinymath/src/functions/index.js similarity index 100% rename from packages/kbn-tinymath/src/functions/index.js rename to src/platform/packages/private/kbn-tinymath/src/functions/index.js diff --git a/packages/kbn-tinymath/src/functions/last.js b/src/platform/packages/private/kbn-tinymath/src/functions/last.js similarity index 100% rename from packages/kbn-tinymath/src/functions/last.js rename to src/platform/packages/private/kbn-tinymath/src/functions/last.js diff --git a/packages/kbn-tinymath/src/functions/lib/transpose.js b/src/platform/packages/private/kbn-tinymath/src/functions/lib/transpose.js similarity index 100% rename from packages/kbn-tinymath/src/functions/lib/transpose.js rename to src/platform/packages/private/kbn-tinymath/src/functions/lib/transpose.js diff --git a/packages/kbn-tinymath/src/functions/log.js b/src/platform/packages/private/kbn-tinymath/src/functions/log.js similarity index 100% rename from packages/kbn-tinymath/src/functions/log.js rename to src/platform/packages/private/kbn-tinymath/src/functions/log.js diff --git a/packages/kbn-tinymath/src/functions/log10.js b/src/platform/packages/private/kbn-tinymath/src/functions/log10.js similarity index 100% rename from packages/kbn-tinymath/src/functions/log10.js rename to src/platform/packages/private/kbn-tinymath/src/functions/log10.js diff --git a/packages/kbn-tinymath/src/functions/max.js b/src/platform/packages/private/kbn-tinymath/src/functions/max.js similarity index 100% rename from packages/kbn-tinymath/src/functions/max.js rename to src/platform/packages/private/kbn-tinymath/src/functions/max.js diff --git a/packages/kbn-tinymath/src/functions/mean.js b/src/platform/packages/private/kbn-tinymath/src/functions/mean.js similarity index 100% rename from packages/kbn-tinymath/src/functions/mean.js rename to src/platform/packages/private/kbn-tinymath/src/functions/mean.js diff --git a/packages/kbn-tinymath/src/functions/median.js b/src/platform/packages/private/kbn-tinymath/src/functions/median.js similarity index 100% rename from packages/kbn-tinymath/src/functions/median.js rename to src/platform/packages/private/kbn-tinymath/src/functions/median.js diff --git a/packages/kbn-tinymath/src/functions/min.js b/src/platform/packages/private/kbn-tinymath/src/functions/min.js similarity index 100% rename from packages/kbn-tinymath/src/functions/min.js rename to src/platform/packages/private/kbn-tinymath/src/functions/min.js diff --git a/packages/kbn-tinymath/src/functions/mod.js b/src/platform/packages/private/kbn-tinymath/src/functions/mod.js similarity index 100% rename from packages/kbn-tinymath/src/functions/mod.js rename to src/platform/packages/private/kbn-tinymath/src/functions/mod.js diff --git a/packages/kbn-tinymath/src/functions/mode.js b/src/platform/packages/private/kbn-tinymath/src/functions/mode.js similarity index 100% rename from packages/kbn-tinymath/src/functions/mode.js rename to src/platform/packages/private/kbn-tinymath/src/functions/mode.js diff --git a/packages/kbn-tinymath/src/functions/multiply.js b/src/platform/packages/private/kbn-tinymath/src/functions/multiply.js similarity index 100% rename from packages/kbn-tinymath/src/functions/multiply.js rename to src/platform/packages/private/kbn-tinymath/src/functions/multiply.js diff --git a/packages/kbn-tinymath/src/functions/pi.js b/src/platform/packages/private/kbn-tinymath/src/functions/pi.js similarity index 100% rename from packages/kbn-tinymath/src/functions/pi.js rename to src/platform/packages/private/kbn-tinymath/src/functions/pi.js diff --git a/packages/kbn-tinymath/src/functions/pow.js b/src/platform/packages/private/kbn-tinymath/src/functions/pow.js similarity index 100% rename from packages/kbn-tinymath/src/functions/pow.js rename to src/platform/packages/private/kbn-tinymath/src/functions/pow.js diff --git a/packages/kbn-tinymath/src/functions/radtodeg.js b/src/platform/packages/private/kbn-tinymath/src/functions/radtodeg.js similarity index 100% rename from packages/kbn-tinymath/src/functions/radtodeg.js rename to src/platform/packages/private/kbn-tinymath/src/functions/radtodeg.js diff --git a/packages/kbn-tinymath/src/functions/random.js b/src/platform/packages/private/kbn-tinymath/src/functions/random.js similarity index 100% rename from packages/kbn-tinymath/src/functions/random.js rename to src/platform/packages/private/kbn-tinymath/src/functions/random.js diff --git a/packages/kbn-tinymath/src/functions/range.js b/src/platform/packages/private/kbn-tinymath/src/functions/range.js similarity index 100% rename from packages/kbn-tinymath/src/functions/range.js rename to src/platform/packages/private/kbn-tinymath/src/functions/range.js diff --git a/packages/kbn-tinymath/src/functions/round.js b/src/platform/packages/private/kbn-tinymath/src/functions/round.js similarity index 100% rename from packages/kbn-tinymath/src/functions/round.js rename to src/platform/packages/private/kbn-tinymath/src/functions/round.js diff --git a/packages/kbn-tinymath/src/functions/sin.js b/src/platform/packages/private/kbn-tinymath/src/functions/sin.js similarity index 100% rename from packages/kbn-tinymath/src/functions/sin.js rename to src/platform/packages/private/kbn-tinymath/src/functions/sin.js diff --git a/packages/kbn-tinymath/src/functions/size.js b/src/platform/packages/private/kbn-tinymath/src/functions/size.js similarity index 100% rename from packages/kbn-tinymath/src/functions/size.js rename to src/platform/packages/private/kbn-tinymath/src/functions/size.js diff --git a/packages/kbn-tinymath/src/functions/sqrt.js b/src/platform/packages/private/kbn-tinymath/src/functions/sqrt.js similarity index 100% rename from packages/kbn-tinymath/src/functions/sqrt.js rename to src/platform/packages/private/kbn-tinymath/src/functions/sqrt.js diff --git a/packages/kbn-tinymath/src/functions/square.js b/src/platform/packages/private/kbn-tinymath/src/functions/square.js similarity index 100% rename from packages/kbn-tinymath/src/functions/square.js rename to src/platform/packages/private/kbn-tinymath/src/functions/square.js diff --git a/packages/kbn-tinymath/src/functions/subtract.js b/src/platform/packages/private/kbn-tinymath/src/functions/subtract.js similarity index 100% rename from packages/kbn-tinymath/src/functions/subtract.js rename to src/platform/packages/private/kbn-tinymath/src/functions/subtract.js diff --git a/packages/kbn-tinymath/src/functions/sum.js b/src/platform/packages/private/kbn-tinymath/src/functions/sum.js similarity index 100% rename from packages/kbn-tinymath/src/functions/sum.js rename to src/platform/packages/private/kbn-tinymath/src/functions/sum.js diff --git a/packages/kbn-tinymath/src/functions/tan.js b/src/platform/packages/private/kbn-tinymath/src/functions/tan.js similarity index 100% rename from packages/kbn-tinymath/src/functions/tan.js rename to src/platform/packages/private/kbn-tinymath/src/functions/tan.js diff --git a/packages/kbn-tinymath/src/functions/unique.js b/src/platform/packages/private/kbn-tinymath/src/functions/unique.js similarity index 100% rename from packages/kbn-tinymath/src/functions/unique.js rename to src/platform/packages/private/kbn-tinymath/src/functions/unique.js diff --git a/packages/kbn-tinymath/src/grammar.peggy b/src/platform/packages/private/kbn-tinymath/src/grammar.peggy similarity index 100% rename from packages/kbn-tinymath/src/grammar.peggy rename to src/platform/packages/private/kbn-tinymath/src/grammar.peggy diff --git a/packages/kbn-tinymath/src/index.js b/src/platform/packages/private/kbn-tinymath/src/index.js similarity index 100% rename from packages/kbn-tinymath/src/index.js rename to src/platform/packages/private/kbn-tinymath/src/index.js diff --git a/packages/kbn-tinymath/test/functions/abs.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/abs.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/abs.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/abs.test.js diff --git a/packages/kbn-tinymath/test/functions/add.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/add.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/add.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/add.test.js diff --git a/packages/kbn-tinymath/test/functions/cbrt.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/cbrt.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/cbrt.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/cbrt.test.js diff --git a/packages/kbn-tinymath/test/functions/ceil.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/ceil.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/ceil.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/ceil.test.js diff --git a/packages/kbn-tinymath/test/functions/clamp.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/clamp.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/clamp.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/clamp.test.js diff --git a/packages/kbn-tinymath/test/functions/comparison/eq.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/comparison/eq.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/comparison/eq.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/comparison/eq.test.js diff --git a/packages/kbn-tinymath/test/functions/comparison/gt.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/comparison/gt.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/comparison/gt.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/comparison/gt.test.js diff --git a/packages/kbn-tinymath/test/functions/comparison/gte.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/comparison/gte.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/comparison/gte.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/comparison/gte.test.js diff --git a/packages/kbn-tinymath/test/functions/comparison/ifelse.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/comparison/ifelse.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/comparison/ifelse.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/comparison/ifelse.test.js diff --git a/packages/kbn-tinymath/test/functions/comparison/lt.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/comparison/lt.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/comparison/lt.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/comparison/lt.test.js diff --git a/packages/kbn-tinymath/test/functions/comparison/lte.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/comparison/lte.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/comparison/lte.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/comparison/lte.test.js diff --git a/packages/kbn-tinymath/test/functions/cos.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/cos.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/cos.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/cos.test.js diff --git a/packages/kbn-tinymath/test/functions/cube.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/cube.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/cube.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/cube.test.js diff --git a/packages/kbn-tinymath/test/functions/defaults.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/defaults.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/defaults.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/defaults.test.js diff --git a/packages/kbn-tinymath/test/functions/degtorad.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/degtorad.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/degtorad.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/degtorad.test.js diff --git a/packages/kbn-tinymath/test/functions/divide.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/divide.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/divide.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/divide.test.js diff --git a/packages/kbn-tinymath/test/functions/exp.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/exp.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/exp.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/exp.test.js diff --git a/packages/kbn-tinymath/test/functions/first.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/first.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/first.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/first.test.js diff --git a/packages/kbn-tinymath/test/functions/fix.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/fix.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/fix.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/fix.test.js diff --git a/packages/kbn-tinymath/test/functions/floor.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/floor.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/floor.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/floor.test.js diff --git a/packages/kbn-tinymath/test/functions/last.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/last.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/last.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/last.test.js diff --git a/packages/kbn-tinymath/test/functions/log.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/log.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/log.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/log.test.js diff --git a/packages/kbn-tinymath/test/functions/log10.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/log10.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/log10.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/log10.test.js diff --git a/packages/kbn-tinymath/test/functions/max.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/max.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/max.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/max.test.js diff --git a/packages/kbn-tinymath/test/functions/mean.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/mean.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/mean.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/mean.test.js diff --git a/packages/kbn-tinymath/test/functions/median.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/median.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/median.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/median.test.js diff --git a/packages/kbn-tinymath/test/functions/min.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/min.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/min.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/min.test.js diff --git a/packages/kbn-tinymath/test/functions/mod.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/mod.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/mod.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/mod.test.js diff --git a/packages/kbn-tinymath/test/functions/mode.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/mode.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/mode.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/mode.test.js diff --git a/packages/kbn-tinymath/test/functions/multiply.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/multiply.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/multiply.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/multiply.test.js diff --git a/packages/kbn-tinymath/test/functions/pi.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/pi.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/pi.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/pi.test.js diff --git a/packages/kbn-tinymath/test/functions/pow.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/pow.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/pow.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/pow.test.js diff --git a/packages/kbn-tinymath/test/functions/radtodeg.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/radtodeg.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/radtodeg.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/radtodeg.test.js diff --git a/packages/kbn-tinymath/test/functions/random.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/random.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/random.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/random.test.js diff --git a/packages/kbn-tinymath/test/functions/range.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/range.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/range.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/range.test.js diff --git a/packages/kbn-tinymath/test/functions/round.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/round.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/round.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/round.test.js diff --git a/packages/kbn-tinymath/test/functions/sin.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/sin.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/sin.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/sin.test.js diff --git a/packages/kbn-tinymath/test/functions/size.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/size.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/size.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/size.test.js diff --git a/packages/kbn-tinymath/test/functions/sqrt.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/sqrt.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/sqrt.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/sqrt.test.js diff --git a/packages/kbn-tinymath/test/functions/square.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/square.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/square.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/square.test.js diff --git a/packages/kbn-tinymath/test/functions/subtract.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/subtract.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/subtract.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/subtract.test.js diff --git a/packages/kbn-tinymath/test/functions/sum.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/sum.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/sum.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/sum.test.js diff --git a/packages/kbn-tinymath/test/functions/tan.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/tan.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/tan.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/tan.test.js diff --git a/packages/kbn-tinymath/test/functions/transpose.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/transpose.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/transpose.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/transpose.test.js diff --git a/packages/kbn-tinymath/test/functions/unique.test.js b/src/platform/packages/private/kbn-tinymath/test/functions/unique.test.js similarity index 100% rename from packages/kbn-tinymath/test/functions/unique.test.js rename to src/platform/packages/private/kbn-tinymath/test/functions/unique.test.js diff --git a/packages/kbn-tinymath/test/library.test.js b/src/platform/packages/private/kbn-tinymath/test/library.test.js similarity index 100% rename from packages/kbn-tinymath/test/library.test.js rename to src/platform/packages/private/kbn-tinymath/test/library.test.js diff --git a/packages/kbn-tinymath/tsconfig.json b/src/platform/packages/private/kbn-tinymath/tsconfig.json similarity index 71% rename from packages/kbn-tinymath/tsconfig.json rename to src/platform/packages/private/kbn-tinymath/tsconfig.json index 791a6d85a6853..27b21f0374cac 100644 --- a/packages/kbn-tinymath/tsconfig.json +++ b/src/platform/packages/private/kbn-tinymath/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/packages/kbn-transpose-utils/README.md b/src/platform/packages/private/kbn-transpose-utils/README.md similarity index 100% rename from packages/kbn-transpose-utils/README.md rename to src/platform/packages/private/kbn-transpose-utils/README.md diff --git a/packages/kbn-transpose-utils/index.test.ts b/src/platform/packages/private/kbn-transpose-utils/index.test.ts similarity index 100% rename from packages/kbn-transpose-utils/index.test.ts rename to src/platform/packages/private/kbn-transpose-utils/index.test.ts diff --git a/packages/kbn-transpose-utils/index.ts b/src/platform/packages/private/kbn-transpose-utils/index.ts similarity index 100% rename from packages/kbn-transpose-utils/index.ts rename to src/platform/packages/private/kbn-transpose-utils/index.ts diff --git a/src/platform/packages/private/kbn-transpose-utils/jest.config.js b/src/platform/packages/private/kbn-transpose-utils/jest.config.js new file mode 100644 index 0000000000000..3bd26b3da3178 --- /dev/null +++ b/src/platform/packages/private/kbn-transpose-utils/jest.config.js @@ -0,0 +1,14 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-transpose-utils'], +}; diff --git a/packages/kbn-transpose-utils/kibana.jsonc b/src/platform/packages/private/kbn-transpose-utils/kibana.jsonc similarity index 100% rename from packages/kbn-transpose-utils/kibana.jsonc rename to src/platform/packages/private/kbn-transpose-utils/kibana.jsonc diff --git a/packages/kbn-transpose-utils/package.json b/src/platform/packages/private/kbn-transpose-utils/package.json similarity index 100% rename from packages/kbn-transpose-utils/package.json rename to src/platform/packages/private/kbn-transpose-utils/package.json diff --git a/packages/kbn-transpose-utils/tsconfig.json b/src/platform/packages/private/kbn-transpose-utils/tsconfig.json similarity index 82% rename from packages/kbn-transpose-utils/tsconfig.json rename to src/platform/packages/private/kbn-transpose-utils/tsconfig.json index 87f865132f4b4..447899d604592 100644 --- a/packages/kbn-transpose-utils/tsconfig.json +++ b/src/platform/packages/private/kbn-transpose-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/plugins/chart_expressions/common/README.md b/src/platform/packages/shared/chart-expressions-common/README.md similarity index 100% rename from src/plugins/chart_expressions/common/README.md rename to src/platform/packages/shared/chart-expressions-common/README.md diff --git a/src/plugins/chart_expressions/common/color_categories.test.ts b/src/platform/packages/shared/chart-expressions-common/color_categories.test.ts similarity index 100% rename from src/plugins/chart_expressions/common/color_categories.test.ts rename to src/platform/packages/shared/chart-expressions-common/color_categories.test.ts diff --git a/src/plugins/chart_expressions/common/color_categories.ts b/src/platform/packages/shared/chart-expressions-common/color_categories.ts similarity index 100% rename from src/plugins/chart_expressions/common/color_categories.ts rename to src/platform/packages/shared/chart-expressions-common/color_categories.ts diff --git a/src/plugins/chart_expressions/common/index.ts b/src/platform/packages/shared/chart-expressions-common/index.ts similarity index 100% rename from src/plugins/chart_expressions/common/index.ts rename to src/platform/packages/shared/chart-expressions-common/index.ts diff --git a/packages/kbn-event-annotation-common/jest.config.js b/src/platform/packages/shared/chart-expressions-common/jest.config.js similarity index 83% rename from packages/kbn-event-annotation-common/jest.config.js rename to src/platform/packages/shared/chart-expressions-common/jest.config.js index 61c60c7572d78..b5ba25d7a25f7 100644 --- a/packages/kbn-event-annotation-common/jest.config.js +++ b/src/platform/packages/shared/chart-expressions-common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-event-annotation-common'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/chart-expressions-common'], }; diff --git a/src/plugins/chart_expressions/common/kibana.jsonc b/src/platform/packages/shared/chart-expressions-common/kibana.jsonc similarity index 100% rename from src/plugins/chart_expressions/common/kibana.jsonc rename to src/platform/packages/shared/chart-expressions-common/kibana.jsonc diff --git a/src/plugins/chart_expressions/common/package.json b/src/platform/packages/shared/chart-expressions-common/package.json similarity index 100% rename from src/plugins/chart_expressions/common/package.json rename to src/platform/packages/shared/chart-expressions-common/package.json diff --git a/src/plugins/chart_expressions/common/tsconfig.json b/src/platform/packages/shared/chart-expressions-common/tsconfig.json similarity index 87% rename from src/plugins/chart_expressions/common/tsconfig.json rename to src/platform/packages/shared/chart-expressions-common/tsconfig.json index e6426fddeda0f..23da1315eccdb 100644 --- a/src/plugins/chart_expressions/common/tsconfig.json +++ b/src/platform/packages/shared/chart-expressions-common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/plugins/chart_expressions/common/types.ts b/src/platform/packages/shared/chart-expressions-common/types.ts similarity index 100% rename from src/plugins/chart_expressions/common/types.ts rename to src/platform/packages/shared/chart-expressions-common/types.ts diff --git a/src/plugins/chart_expressions/common/utils.test.ts b/src/platform/packages/shared/chart-expressions-common/utils.test.ts similarity index 100% rename from src/plugins/chart_expressions/common/utils.test.ts rename to src/platform/packages/shared/chart-expressions-common/utils.test.ts diff --git a/src/plugins/chart_expressions/common/utils.ts b/src/platform/packages/shared/chart-expressions-common/utils.ts similarity index 100% rename from src/plugins/chart_expressions/common/utils.ts rename to src/platform/packages/shared/chart-expressions-common/utils.ts diff --git a/packages/kbn-calculate-width-from-char-count/.storybook/main.js b/src/platform/packages/shared/kbn-calculate-width-from-char-count/.storybook/main.js similarity index 100% rename from packages/kbn-calculate-width-from-char-count/.storybook/main.js rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/.storybook/main.js diff --git a/packages/kbn-calculate-width-from-char-count/README.md b/src/platform/packages/shared/kbn-calculate-width-from-char-count/README.md similarity index 100% rename from packages/kbn-calculate-width-from-char-count/README.md rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/README.md diff --git a/packages/kbn-calculate-width-from-char-count/index.ts b/src/platform/packages/shared/kbn-calculate-width-from-char-count/index.ts similarity index 100% rename from packages/kbn-calculate-width-from-char-count/index.ts rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/index.ts diff --git a/src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js b/src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js new file mode 100644 index 0000000000000..bedc110bec8c2 --- /dev/null +++ b/src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js @@ -0,0 +1,14 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test/jest_node', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-calculate-width-from-char-count'], +}; diff --git a/packages/kbn-calculate-width-from-char-count/kibana.jsonc b/src/platform/packages/shared/kbn-calculate-width-from-char-count/kibana.jsonc similarity index 100% rename from packages/kbn-calculate-width-from-char-count/kibana.jsonc rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/kibana.jsonc diff --git a/packages/kbn-calculate-width-from-char-count/package.json b/src/platform/packages/shared/kbn-calculate-width-from-char-count/package.json similarity index 100% rename from packages/kbn-calculate-width-from-char-count/package.json rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/package.json diff --git a/packages/kbn-calculate-width-from-char-count/src/calculate_width_from_char_count.test.ts b/src/platform/packages/shared/kbn-calculate-width-from-char-count/src/calculate_width_from_char_count.test.ts similarity index 100% rename from packages/kbn-calculate-width-from-char-count/src/calculate_width_from_char_count.test.ts rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/src/calculate_width_from_char_count.test.ts diff --git a/packages/kbn-calculate-width-from-char-count/src/calculate_width_from_char_count.ts b/src/platform/packages/shared/kbn-calculate-width-from-char-count/src/calculate_width_from_char_count.ts similarity index 100% rename from packages/kbn-calculate-width-from-char-count/src/calculate_width_from_char_count.ts rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/src/calculate_width_from_char_count.ts diff --git a/packages/kbn-calculate-width-from-char-count/src/calculate_width_from_entries.test.ts b/src/platform/packages/shared/kbn-calculate-width-from-char-count/src/calculate_width_from_entries.test.ts similarity index 100% rename from packages/kbn-calculate-width-from-char-count/src/calculate_width_from_entries.test.ts rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/src/calculate_width_from_entries.test.ts diff --git a/packages/kbn-calculate-width-from-char-count/src/calculate_width_from_entries.ts b/src/platform/packages/shared/kbn-calculate-width-from-char-count/src/calculate_width_from_entries.ts similarity index 100% rename from packages/kbn-calculate-width-from-char-count/src/calculate_width_from_entries.ts rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/src/calculate_width_from_entries.ts diff --git a/packages/kbn-calculate-width-from-char-count/src/index.ts b/src/platform/packages/shared/kbn-calculate-width-from-char-count/src/index.ts similarity index 100% rename from packages/kbn-calculate-width-from-char-count/src/index.ts rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/src/index.ts diff --git a/packages/kbn-calculate-width-from-char-count/tsconfig.json b/src/platform/packages/shared/kbn-calculate-width-from-char-count/tsconfig.json similarity index 82% rename from packages/kbn-calculate-width-from-char-count/tsconfig.json rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/tsconfig.json index ea0a30fa75171..180f47a36a869 100644 --- a/packages/kbn-calculate-width-from-char-count/tsconfig.json +++ b/src/platform/packages/shared/kbn-calculate-width-from-char-count/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-chart-icons/.storybook/main.js b/src/platform/packages/shared/kbn-chart-icons/.storybook/main.js similarity index 100% rename from packages/kbn-chart-icons/.storybook/main.js rename to src/platform/packages/shared/kbn-chart-icons/.storybook/main.js diff --git a/packages/kbn-chart-icons/README.md b/src/platform/packages/shared/kbn-chart-icons/README.md similarity index 100% rename from packages/kbn-chart-icons/README.md rename to src/platform/packages/shared/kbn-chart-icons/README.md diff --git a/packages/kbn-chart-icons/index.ts b/src/platform/packages/shared/kbn-chart-icons/index.ts similarity index 100% rename from packages/kbn-chart-icons/index.ts rename to src/platform/packages/shared/kbn-chart-icons/index.ts diff --git a/packages/kbn-calculate-width-from-char-count/jest.config.js b/src/platform/packages/shared/kbn-chart-icons/jest.config.js similarity index 84% rename from packages/kbn-calculate-width-from-char-count/jest.config.js rename to src/platform/packages/shared/kbn-chart-icons/jest.config.js index 3881803ebb270..b75916eaa1099 100644 --- a/packages/kbn-calculate-width-from-char-count/jest.config.js +++ b/src/platform/packages/shared/kbn-chart-icons/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-calculate-width-from-char-count'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-chart-icons'], }; diff --git a/packages/kbn-chart-icons/kibana.jsonc b/src/platform/packages/shared/kbn-chart-icons/kibana.jsonc similarity index 100% rename from packages/kbn-chart-icons/kibana.jsonc rename to src/platform/packages/shared/kbn-chart-icons/kibana.jsonc diff --git a/packages/kbn-chart-icons/package.json b/src/platform/packages/shared/kbn-chart-icons/package.json similarity index 100% rename from packages/kbn-chart-icons/package.json rename to src/platform/packages/shared/kbn-chart-icons/package.json diff --git a/packages/kbn-chart-icons/src/__stories__/icons.stories.tsx b/src/platform/packages/shared/kbn-chart-icons/src/__stories__/icons.stories.tsx similarity index 100% rename from packages/kbn-chart-icons/src/__stories__/icons.stories.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/__stories__/icons.stories.tsx diff --git a/packages/kbn-chart-icons/src/assets/annotation_icons/circle.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/annotation_icons/circle.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/annotation_icons/circle.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/annotation_icons/circle.tsx diff --git a/packages/kbn-chart-icons/src/assets/annotation_icons/index.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/annotation_icons/index.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/annotation_icons/index.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/annotation_icons/index.tsx diff --git a/packages/kbn-chart-icons/src/assets/annotation_icons/triangle.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/annotation_icons/triangle.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/annotation_icons/triangle.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/annotation_icons/triangle.tsx diff --git a/packages/kbn-chart-icons/src/assets/axis_bottom.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/axis_bottom.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/axis_bottom.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/axis_bottom.tsx diff --git a/packages/kbn-chart-icons/src/assets/axis_left.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/axis_left.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/axis_left.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/axis_left.tsx diff --git a/packages/kbn-chart-icons/src/assets/axis_right.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/axis_right.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/axis_right.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/axis_right.tsx diff --git a/packages/kbn-chart-icons/src/assets/axis_top.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/axis_top.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/axis_top.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/axis_top.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_area.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_area.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_area.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_area.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_area_percentage.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_area_percentage.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_area_percentage.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_area_percentage.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_area_stacked.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_area_stacked.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_area_stacked.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_area_stacked.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_bar.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_bar.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_bar_annotations.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_annotations.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_bar_annotations.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_annotations.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_bar_horizontal.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_horizontal.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_bar_horizontal.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_horizontal.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_bar_horizontal_percentage.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_horizontal_percentage.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_bar_horizontal_percentage.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_horizontal_percentage.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_bar_horizontal_stacked.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_horizontal_stacked.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_bar_horizontal_stacked.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_horizontal_stacked.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_bar_percentage.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_percentage.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_bar_percentage.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_percentage.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_bar_reference_line.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_reference_line.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_bar_reference_line.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_reference_line.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_bar_stacked.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_stacked.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_bar_stacked.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_bar_stacked.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_datatable.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_datatable.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_datatable.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_datatable.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_donut.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_donut.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_donut.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_donut.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_gauge.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_gauge.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_gauge.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_gauge.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_gauge_arc.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_gauge_arc.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_gauge_arc.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_gauge_arc.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_gauge_circle.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_gauge_circle.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_gauge_circle.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_gauge_circle.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_gauge_semi_circle.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_gauge_semi_circle.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_gauge_semi_circle.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_gauge_semi_circle.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_gauge_simple_icons.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_gauge_simple_icons.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_gauge_simple_icons.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_gauge_simple_icons.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_heatmap.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_heatmap.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_heatmap.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_heatmap.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_horizontal_bullet.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_horizontal_bullet.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_horizontal_bullet.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_horizontal_bullet.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_line.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_line.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_line.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_line.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_metric.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_metric.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_metric.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_metric.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_mixed_xy.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_mixed_xy.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_mixed_xy.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_mixed_xy.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_mosaic.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_mosaic.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_mosaic.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_mosaic.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_pie.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_pie.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_pie.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_pie.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_tagcloud.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_tagcloud.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_tagcloud.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_tagcloud.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_treemap.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_treemap.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_treemap.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_treemap.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_vertical_bullet.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_vertical_bullet.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_vertical_bullet.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_vertical_bullet.tsx diff --git a/packages/kbn-chart-icons/src/assets/chart_waffle.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/chart_waffle.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/chart_waffle.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/chart_waffle.tsx diff --git a/packages/kbn-chart-icons/src/assets/common_styles.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/common_styles.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/common_styles.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/common_styles.tsx diff --git a/packages/kbn-chart-icons/src/assets/donut_hole_icons.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/donut_hole_icons.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/donut_hole_icons.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/donut_hole_icons.tsx diff --git a/packages/kbn-chart-icons/src/assets/drop_illustration.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/drop_illustration.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/drop_illustration.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/drop_illustration.tsx diff --git a/packages/kbn-chart-icons/src/assets/globe_illustration.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/globe_illustration.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/globe_illustration.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/globe_illustration.tsx diff --git a/packages/kbn-chart-icons/src/assets/icon_simple_wrapper.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/icon_simple_wrapper.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/icon_simple_wrapper.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/icon_simple_wrapper.tsx diff --git a/packages/kbn-chart-icons/src/assets/index.ts b/src/platform/packages/shared/kbn-chart-icons/src/assets/index.ts similarity index 100% rename from packages/kbn-chart-icons/src/assets/index.ts rename to src/platform/packages/shared/kbn-chart-icons/src/assets/index.ts diff --git a/packages/kbn-chart-icons/src/assets/legend.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/legend.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/legend.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/legend.tsx diff --git a/packages/kbn-chart-icons/src/assets/region_map.tsx b/src/platform/packages/shared/kbn-chart-icons/src/assets/region_map.tsx similarity index 100% rename from packages/kbn-chart-icons/src/assets/region_map.tsx rename to src/platform/packages/shared/kbn-chart-icons/src/assets/region_map.tsx diff --git a/packages/kbn-chart-icons/tsconfig.json b/src/platform/packages/shared/kbn-chart-icons/tsconfig.json similarity index 85% rename from packages/kbn-chart-icons/tsconfig.json rename to src/platform/packages/shared/kbn-chart-icons/tsconfig.json index c4f38f3a8ec94..cc843830192f8 100644 --- a/packages/kbn-chart-icons/tsconfig.json +++ b/src/platform/packages/shared/kbn-chart-icons/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-coloring/.storybook/main.js b/src/platform/packages/shared/kbn-coloring/.storybook/main.js similarity index 100% rename from packages/kbn-coloring/.storybook/main.js rename to src/platform/packages/shared/kbn-coloring/.storybook/main.js diff --git a/packages/kbn-coloring/README.md b/src/platform/packages/shared/kbn-coloring/README.md similarity index 100% rename from packages/kbn-coloring/README.md rename to src/platform/packages/shared/kbn-coloring/README.md diff --git a/packages/kbn-coloring/index.ts b/src/platform/packages/shared/kbn-coloring/index.ts similarity index 100% rename from packages/kbn-coloring/index.ts rename to src/platform/packages/shared/kbn-coloring/index.ts diff --git a/packages/kbn-dom-drag-drop/jest.config.js b/src/platform/packages/shared/kbn-coloring/jest.config.js similarity index 84% rename from packages/kbn-dom-drag-drop/jest.config.js rename to src/platform/packages/shared/kbn-coloring/jest.config.js index 854ac94b02a47..cad1365380997 100644 --- a/packages/kbn-dom-drag-drop/jest.config.js +++ b/src/platform/packages/shared/kbn-coloring/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-dom-drag-drop'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-coloring'], }; diff --git a/packages/kbn-coloring/kibana.jsonc b/src/platform/packages/shared/kbn-coloring/kibana.jsonc similarity index 100% rename from packages/kbn-coloring/kibana.jsonc rename to src/platform/packages/shared/kbn-coloring/kibana.jsonc diff --git a/packages/kbn-coloring/package.json b/src/platform/packages/shared/kbn-coloring/package.json similarity index 100% rename from packages/kbn-coloring/package.json rename to src/platform/packages/shared/kbn-coloring/package.json diff --git a/packages/kbn-coloring/src/color_manipulation/index.ts b/src/platform/packages/shared/kbn-coloring/src/color_manipulation/index.ts similarity index 100% rename from packages/kbn-coloring/src/color_manipulation/index.ts rename to src/platform/packages/shared/kbn-coloring/src/color_manipulation/index.ts diff --git a/packages/kbn-coloring/src/palettes/constants.ts b/src/platform/packages/shared/kbn-coloring/src/palettes/constants.ts similarity index 100% rename from packages/kbn-coloring/src/palettes/constants.ts rename to src/platform/packages/shared/kbn-coloring/src/palettes/constants.ts diff --git a/packages/kbn-coloring/src/palettes/index.ts b/src/platform/packages/shared/kbn-coloring/src/palettes/index.ts similarity index 100% rename from packages/kbn-coloring/src/palettes/index.ts rename to src/platform/packages/shared/kbn-coloring/src/palettes/index.ts diff --git a/packages/kbn-coloring/src/palettes/mocks/palettes_registry.ts b/src/platform/packages/shared/kbn-coloring/src/palettes/mocks/palettes_registry.ts similarity index 100% rename from packages/kbn-coloring/src/palettes/mocks/palettes_registry.ts rename to src/platform/packages/shared/kbn-coloring/src/palettes/mocks/palettes_registry.ts diff --git a/packages/kbn-coloring/src/palettes/types.ts b/src/platform/packages/shared/kbn-coloring/src/palettes/types.ts similarity index 100% rename from packages/kbn-coloring/src/palettes/types.ts rename to src/platform/packages/shared/kbn-coloring/src/palettes/types.ts diff --git a/packages/kbn-coloring/src/palettes/utils.test.ts b/src/platform/packages/shared/kbn-coloring/src/palettes/utils.test.ts similarity index 100% rename from packages/kbn-coloring/src/palettes/utils.test.ts rename to src/platform/packages/shared/kbn-coloring/src/palettes/utils.test.ts diff --git a/packages/kbn-coloring/src/palettes/utils.ts b/src/platform/packages/shared/kbn-coloring/src/palettes/utils.ts similarity index 100% rename from packages/kbn-coloring/src/palettes/utils.ts rename to src/platform/packages/shared/kbn-coloring/src/palettes/utils.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/README.md b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/README.md similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/README.md rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/README.md diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/__stories__/color_mapping.stories.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/__stories__/color_mapping.stories.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/__stories__/color_mapping.stories.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/__stories__/color_mapping.stories.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/categorical_color_mapping.test.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/categorical_color_mapping.test.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/categorical_color_mapping.test.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/categorical_color_mapping.test.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/categorical_color_mapping.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/categorical_color_mapping.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/categorical_color_mapping.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/categorical_color_mapping.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/color/color_handling.test.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/color/color_handling.test.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/color/color_handling.test.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/color/color_handling.test.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/color/color_handling.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/color/color_handling.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/color/color_handling.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/color/color_handling.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/color/color_math.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/color/color_math.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/color/color_math.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/color/color_math.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/color/rule_matching.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/color/rule_matching.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/color/rule_matching.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/color/rule_matching.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/assignment/assignment.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/assignment/assignment.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/assignment/assignment.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/assignment/assignment.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/assignment/match.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/assignment/match.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/assignment/match.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/assignment/match.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/assignment/range.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/assignment/range.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/assignment/range.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/assignment/range.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/assignment/special_assignment.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/assignment/special_assignment.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/assignment/special_assignment.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/assignment/special_assignment.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/color_picker/color_picker.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/color_picker/color_picker.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/color_picker/color_picker.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/color_picker/color_picker.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/color_picker/color_swatch.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/color_picker/color_swatch.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/color_picker/color_swatch.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/color_picker/color_swatch.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/color_picker/palette_colors.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/color_picker/palette_colors.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/color_picker/palette_colors.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/color_picker/palette_colors.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/color_picker/rgb_picker.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/color_picker/rgb_picker.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/color_picker/rgb_picker.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/color_picker/rgb_picker.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/container/assigments.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/container/assigments.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/container/assigments.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/container/assigments.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/container/container.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/container/container.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/container/container.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/container/container.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/container/unassigned_terms_config.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/container/unassigned_terms_config.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/container/unassigned_terms_config.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/container/unassigned_terms_config.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/gradient.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/gradient.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/gradient.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/gradient.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/gradient_add_stop.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/gradient_add_stop.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/gradient_add_stop.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/gradient_add_stop.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/palette_selector.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/palette_selector.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/palette_selector.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/palette_selector.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/scale.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/scale.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/scale.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/scale.tsx diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/config/assignments.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/config/assignments.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/config/assignments.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/config/assignments.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/config/default_color_mapping.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/config/default_color_mapping.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/config/default_color_mapping.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/config/default_color_mapping.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/config/index.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/config/index.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/config/index.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/config/index.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/config/types.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/config/types.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/config/types.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/config/types.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/index.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/index.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/index.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/index.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/state/color_mapping.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/state/color_mapping.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/state/color_mapping.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/state/color_mapping.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/state/selectors.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/state/selectors.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/state/selectors.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/state/selectors.ts diff --git a/packages/kbn-coloring/src/shared_components/color_mapping/state/ui.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/state/ui.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/color_mapping/state/ui.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/state/ui.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/__stories__/customizable_palette.stories.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/__stories__/customizable_palette.stories.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/__stories__/customizable_palette.stories.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/__stories__/customizable_palette.stories.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/__stories__/palettes.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/__stories__/palettes.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/__stories__/palettes.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/__stories__/palettes.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/assets/distribute_equally.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/assets/distribute_equally.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/assets/distribute_equally.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/assets/distribute_equally.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/assets/infinity.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/assets/infinity.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/assets/infinity.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/assets/infinity.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/assets/related.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/assets/related.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/assets/related.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/assets/related.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/assets/value_max.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/assets/value_max.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/assets/value_max.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/assets/value_max.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/assets/value_min.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/assets/value_min.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/assets/value_min.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/assets/value_min.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges.test.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges.test.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges.test.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges.test.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_context.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_context.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_context.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_context.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_extra_actions.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_extra_actions.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_extra_actions.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_extra_actions.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_item.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_item.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_item.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_item.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_item_buttons.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_item_buttons.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_item_buttons.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_item_buttons.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_validation.test.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_validation.test.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_validation.test.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_validation.test.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_validation.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_validation.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_validation.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_validation.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/index.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/index.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/index.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/index.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/types.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/types.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/types.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/types.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_crud.test.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_crud.test.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_crud.test.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_crud.test.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_crud.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_crud.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_crud.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_crud.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_extra_actions.test.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_extra_actions.test.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_extra_actions.test.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_extra_actions.test.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_extra_actions.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_extra_actions.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_extra_actions.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/color_ranges_extra_actions.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/index.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/index.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/index.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/index.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/utils.test.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/utils.test.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/utils.test.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/utils.test.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/utils.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/utils.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/color_ranges/utils/utils.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/color_ranges/utils/utils.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/index.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/index.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/index.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/index.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/mocks/palettes_registry.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/mocks/palettes_registry.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/mocks/palettes_registry.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/mocks/palettes_registry.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/palette_configuration.test.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/palette_configuration.test.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/palette_configuration.test.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/palette_configuration.test.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/palette_configuration.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/palette_configuration.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/palette_configuration.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/palette_configuration.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/palette_configuration_reducer.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/palette_configuration_reducer.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/palette_configuration_reducer.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/palette_configuration_reducer.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/palette_picker.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/palette_picker.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/palette_picker.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/palette_picker.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/tooltip_wrapper.tsx b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/tooltip_wrapper.tsx similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/tooltip_wrapper.tsx rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/tooltip_wrapper.tsx diff --git a/packages/kbn-coloring/src/shared_components/coloring/types.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/types.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/types.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/types.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/utils.test.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/utils.test.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/utils.test.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/utils.test.ts diff --git a/packages/kbn-coloring/src/shared_components/coloring/utils.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/utils.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/coloring/utils.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/coloring/utils.ts diff --git a/packages/kbn-coloring/src/shared_components/index.ts b/src/platform/packages/shared/kbn-coloring/src/shared_components/index.ts similarity index 100% rename from packages/kbn-coloring/src/shared_components/index.ts rename to src/platform/packages/shared/kbn-coloring/src/shared_components/index.ts diff --git a/packages/kbn-coloring/tsconfig.json b/src/platform/packages/shared/kbn-coloring/tsconfig.json similarity index 91% rename from packages/kbn-coloring/tsconfig.json rename to src/platform/packages/shared/kbn-coloring/tsconfig.json index 3a97faa1b9d3a..c6a01ef773bae 100644 --- a/packages/kbn-coloring/tsconfig.json +++ b/src/platform/packages/shared/kbn-coloring/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-data-service/README.md b/src/platform/packages/shared/kbn-data-service/README.md similarity index 100% rename from packages/kbn-data-service/README.md rename to src/platform/packages/shared/kbn-data-service/README.md diff --git a/packages/kbn-data-service/index.ts b/src/platform/packages/shared/kbn-data-service/index.ts similarity index 100% rename from packages/kbn-data-service/index.ts rename to src/platform/packages/shared/kbn-data-service/index.ts diff --git a/packages/kbn-data-service/jest.config.js b/src/platform/packages/shared/kbn-data-service/jest.config.js similarity index 83% rename from packages/kbn-data-service/jest.config.js rename to src/platform/packages/shared/kbn-data-service/jest.config.js index 741dc0dbc28d5..dcfcff99540c7 100644 --- a/packages/kbn-data-service/jest.config.js +++ b/src/platform/packages/shared/kbn-data-service/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-data-service'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-data-service'], }; diff --git a/packages/kbn-data-service/kibana.jsonc b/src/platform/packages/shared/kbn-data-service/kibana.jsonc similarity index 100% rename from packages/kbn-data-service/kibana.jsonc rename to src/platform/packages/shared/kbn-data-service/kibana.jsonc diff --git a/packages/kbn-data-service/package.json b/src/platform/packages/shared/kbn-data-service/package.json similarity index 100% rename from packages/kbn-data-service/package.json rename to src/platform/packages/shared/kbn-data-service/package.json diff --git a/packages/kbn-data-service/src/constants.ts b/src/platform/packages/shared/kbn-data-service/src/constants.ts similarity index 100% rename from packages/kbn-data-service/src/constants.ts rename to src/platform/packages/shared/kbn-data-service/src/constants.ts diff --git a/packages/kbn-data-service/src/es_query/get_es_query_config.test.ts b/src/platform/packages/shared/kbn-data-service/src/es_query/get_es_query_config.test.ts similarity index 100% rename from packages/kbn-data-service/src/es_query/get_es_query_config.test.ts rename to src/platform/packages/shared/kbn-data-service/src/es_query/get_es_query_config.test.ts diff --git a/packages/kbn-data-service/src/es_query/get_es_query_config.ts b/src/platform/packages/shared/kbn-data-service/src/es_query/get_es_query_config.ts similarity index 100% rename from packages/kbn-data-service/src/es_query/get_es_query_config.ts rename to src/platform/packages/shared/kbn-data-service/src/es_query/get_es_query_config.ts diff --git a/packages/kbn-data-service/src/es_query/index.ts b/src/platform/packages/shared/kbn-data-service/src/es_query/index.ts similarity index 100% rename from packages/kbn-data-service/src/es_query/index.ts rename to src/platform/packages/shared/kbn-data-service/src/es_query/index.ts diff --git a/packages/kbn-data-service/src/es_query/stubs/exists_filter.ts b/src/platform/packages/shared/kbn-data-service/src/es_query/stubs/exists_filter.ts similarity index 100% rename from packages/kbn-data-service/src/es_query/stubs/exists_filter.ts rename to src/platform/packages/shared/kbn-data-service/src/es_query/stubs/exists_filter.ts diff --git a/packages/kbn-data-service/src/es_query/stubs/index.ts b/src/platform/packages/shared/kbn-data-service/src/es_query/stubs/index.ts similarity index 100% rename from packages/kbn-data-service/src/es_query/stubs/index.ts rename to src/platform/packages/shared/kbn-data-service/src/es_query/stubs/index.ts diff --git a/packages/kbn-data-service/src/es_query/stubs/phrase_filter.ts b/src/platform/packages/shared/kbn-data-service/src/es_query/stubs/phrase_filter.ts similarity index 100% rename from packages/kbn-data-service/src/es_query/stubs/phrase_filter.ts rename to src/platform/packages/shared/kbn-data-service/src/es_query/stubs/phrase_filter.ts diff --git a/packages/kbn-data-service/src/es_query/stubs/phrases_filter.ts b/src/platform/packages/shared/kbn-data-service/src/es_query/stubs/phrases_filter.ts similarity index 100% rename from packages/kbn-data-service/src/es_query/stubs/phrases_filter.ts rename to src/platform/packages/shared/kbn-data-service/src/es_query/stubs/phrases_filter.ts diff --git a/packages/kbn-data-service/src/es_query/stubs/range_filter.ts b/src/platform/packages/shared/kbn-data-service/src/es_query/stubs/range_filter.ts similarity index 100% rename from packages/kbn-data-service/src/es_query/stubs/range_filter.ts rename to src/platform/packages/shared/kbn-data-service/src/es_query/stubs/range_filter.ts diff --git a/packages/kbn-data-service/src/search/tabify/__snapshots__/tabify_docs.test.ts.snap b/src/platform/packages/shared/kbn-data-service/src/search/tabify/__snapshots__/tabify_docs.test.ts.snap similarity index 100% rename from packages/kbn-data-service/src/search/tabify/__snapshots__/tabify_docs.test.ts.snap rename to src/platform/packages/shared/kbn-data-service/src/search/tabify/__snapshots__/tabify_docs.test.ts.snap diff --git a/packages/kbn-data-service/src/search/tabify/index.ts b/src/platform/packages/shared/kbn-data-service/src/search/tabify/index.ts similarity index 100% rename from packages/kbn-data-service/src/search/tabify/index.ts rename to src/platform/packages/shared/kbn-data-service/src/search/tabify/index.ts diff --git a/packages/kbn-data-service/src/search/tabify/tabify_docs.test.ts b/src/platform/packages/shared/kbn-data-service/src/search/tabify/tabify_docs.test.ts similarity index 100% rename from packages/kbn-data-service/src/search/tabify/tabify_docs.test.ts rename to src/platform/packages/shared/kbn-data-service/src/search/tabify/tabify_docs.test.ts diff --git a/packages/kbn-data-service/src/search/tabify/tabify_docs.ts b/src/platform/packages/shared/kbn-data-service/src/search/tabify/tabify_docs.ts similarity index 100% rename from packages/kbn-data-service/src/search/tabify/tabify_docs.ts rename to src/platform/packages/shared/kbn-data-service/src/search/tabify/tabify_docs.ts diff --git a/packages/kbn-data-service/src/types.ts b/src/platform/packages/shared/kbn-data-service/src/types.ts similarity index 100% rename from packages/kbn-data-service/src/types.ts rename to src/platform/packages/shared/kbn-data-service/src/types.ts diff --git a/packages/kbn-data-service/tsconfig.json b/src/platform/packages/shared/kbn-data-service/tsconfig.json similarity index 85% rename from packages/kbn-data-service/tsconfig.json rename to src/platform/packages/shared/kbn-data-service/tsconfig.json index 6f5d59dfb94c1..556935a9fa775 100644 --- a/packages/kbn-data-service/tsconfig.json +++ b/src/platform/packages/shared/kbn-data-service/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/packages/kbn-dom-drag-drop/README.md b/src/platform/packages/shared/kbn-dom-drag-drop/README.md similarity index 100% rename from packages/kbn-dom-drag-drop/README.md rename to src/platform/packages/shared/kbn-dom-drag-drop/README.md diff --git a/packages/kbn-dom-drag-drop/index.ts b/src/platform/packages/shared/kbn-dom-drag-drop/index.ts similarity index 100% rename from packages/kbn-dom-drag-drop/index.ts rename to src/platform/packages/shared/kbn-dom-drag-drop/index.ts diff --git a/src/platform/packages/shared/kbn-dom-drag-drop/jest.config.js b/src/platform/packages/shared/kbn-dom-drag-drop/jest.config.js new file mode 100644 index 0000000000000..959cce467567d --- /dev/null +++ b/src/platform/packages/shared/kbn-dom-drag-drop/jest.config.js @@ -0,0 +1,14 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-dom-drag-drop'], +}; diff --git a/packages/kbn-dom-drag-drop/kibana.jsonc b/src/platform/packages/shared/kbn-dom-drag-drop/kibana.jsonc similarity index 100% rename from packages/kbn-dom-drag-drop/kibana.jsonc rename to src/platform/packages/shared/kbn-dom-drag-drop/kibana.jsonc diff --git a/packages/kbn-dom-drag-drop/package.json b/src/platform/packages/shared/kbn-dom-drag-drop/package.json similarity index 100% rename from packages/kbn-dom-drag-drop/package.json rename to src/platform/packages/shared/kbn-dom-drag-drop/package.json diff --git a/packages/kbn-dom-drag-drop/src/constants.ts b/src/platform/packages/shared/kbn-dom-drag-drop/src/constants.ts similarity index 100% rename from packages/kbn-dom-drag-drop/src/constants.ts rename to src/platform/packages/shared/kbn-dom-drag-drop/src/constants.ts diff --git a/packages/kbn-dom-drag-drop/src/drag_drop_reordering.test.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/drag_drop_reordering.test.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/drag_drop_reordering.test.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/drag_drop_reordering.test.tsx diff --git a/packages/kbn-dom-drag-drop/src/draggable.test.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/draggable.test.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/draggable.test.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/draggable.test.tsx diff --git a/packages/kbn-dom-drag-drop/src/draggable.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/draggable.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/draggable.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/draggable.tsx diff --git a/packages/kbn-dom-drag-drop/src/drop_overlay_wrapper.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/drop_overlay_wrapper.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/drop_overlay_wrapper.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/drop_overlay_wrapper.tsx diff --git a/packages/kbn-dom-drag-drop/src/drop_targets/index.ts b/src/platform/packages/shared/kbn-dom-drag-drop/src/drop_targets/index.ts similarity index 100% rename from packages/kbn-dom-drag-drop/src/drop_targets/index.ts rename to src/platform/packages/shared/kbn-dom-drag-drop/src/drop_targets/index.ts diff --git a/packages/kbn-dom-drag-drop/src/drop_targets/swap_duplicate_combine.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/drop_targets/swap_duplicate_combine.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/drop_targets/swap_duplicate_combine.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/drop_targets/swap_duplicate_combine.tsx diff --git a/packages/kbn-dom-drag-drop/src/droppable.test.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/droppable.test.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/droppable.test.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/droppable.test.tsx diff --git a/packages/kbn-dom-drag-drop/src/droppable.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/droppable.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/droppable.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/droppable.tsx diff --git a/packages/kbn-dom-drag-drop/src/index.ts b/src/platform/packages/shared/kbn-dom-drag-drop/src/index.ts similarity index 100% rename from packages/kbn-dom-drag-drop/src/index.ts rename to src/platform/packages/shared/kbn-dom-drag-drop/src/index.ts diff --git a/packages/kbn-dom-drag-drop/src/providers/announcements.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/providers/announcements.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/providers/announcements.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/providers/announcements.tsx diff --git a/packages/kbn-dom-drag-drop/src/providers/index.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/providers/index.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/providers/index.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/providers/index.tsx diff --git a/packages/kbn-dom-drag-drop/src/providers/providers.test.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/providers/providers.test.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/providers/providers.test.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/providers/providers.test.tsx diff --git a/packages/kbn-dom-drag-drop/src/providers/providers.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/providers/providers.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/providers/providers.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/providers/providers.tsx diff --git a/packages/kbn-dom-drag-drop/src/providers/reorder_provider.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/providers/reorder_provider.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/providers/reorder_provider.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/providers/reorder_provider.tsx diff --git a/packages/kbn-dom-drag-drop/src/providers/types.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/providers/types.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/providers/types.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/providers/types.tsx diff --git a/packages/kbn-dom-drag-drop/src/sass/drag_drop_mixins.scss b/src/platform/packages/shared/kbn-dom-drag-drop/src/sass/drag_drop_mixins.scss similarity index 100% rename from packages/kbn-dom-drag-drop/src/sass/drag_drop_mixins.scss rename to src/platform/packages/shared/kbn-dom-drag-drop/src/sass/drag_drop_mixins.scss diff --git a/packages/kbn-dom-drag-drop/src/sass/draggable.scss b/src/platform/packages/shared/kbn-dom-drag-drop/src/sass/draggable.scss similarity index 100% rename from packages/kbn-dom-drag-drop/src/sass/draggable.scss rename to src/platform/packages/shared/kbn-dom-drag-drop/src/sass/draggable.scss diff --git a/packages/kbn-dom-drag-drop/src/sass/droppable.scss b/src/platform/packages/shared/kbn-dom-drag-drop/src/sass/droppable.scss similarity index 100% rename from packages/kbn-dom-drag-drop/src/sass/droppable.scss rename to src/platform/packages/shared/kbn-dom-drag-drop/src/sass/droppable.scss diff --git a/packages/kbn-dom-drag-drop/src/test_utils.tsx b/src/platform/packages/shared/kbn-dom-drag-drop/src/test_utils.tsx similarity index 100% rename from packages/kbn-dom-drag-drop/src/test_utils.tsx rename to src/platform/packages/shared/kbn-dom-drag-drop/src/test_utils.tsx diff --git a/packages/kbn-dom-drag-drop/src/types.ts b/src/platform/packages/shared/kbn-dom-drag-drop/src/types.ts similarity index 100% rename from packages/kbn-dom-drag-drop/src/types.ts rename to src/platform/packages/shared/kbn-dom-drag-drop/src/types.ts diff --git a/packages/kbn-dom-drag-drop/tsconfig.json b/src/platform/packages/shared/kbn-dom-drag-drop/tsconfig.json similarity index 77% rename from packages/kbn-dom-drag-drop/tsconfig.json rename to src/platform/packages/shared/kbn-dom-drag-drop/tsconfig.json index 32c95c26ba416..4ba5250fed361 100644 --- a/packages/kbn-dom-drag-drop/tsconfig.json +++ b/src/platform/packages/shared/kbn-dom-drag-drop/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/packages/kbn-event-annotation-common/README.md b/src/platform/packages/shared/kbn-event-annotation-common/README.md similarity index 100% rename from packages/kbn-event-annotation-common/README.md rename to src/platform/packages/shared/kbn-event-annotation-common/README.md diff --git a/packages/kbn-event-annotation-common/index.ts b/src/platform/packages/shared/kbn-event-annotation-common/index.ts similarity index 100% rename from packages/kbn-event-annotation-common/index.ts rename to src/platform/packages/shared/kbn-event-annotation-common/index.ts diff --git a/packages/kbn-managed-content-badge/jest.config.js b/src/platform/packages/shared/kbn-event-annotation-common/jest.config.js similarity index 82% rename from packages/kbn-managed-content-badge/jest.config.js rename to src/platform/packages/shared/kbn-event-annotation-common/jest.config.js index 59f8560574997..5a8665ff7b363 100644 --- a/packages/kbn-managed-content-badge/jest.config.js +++ b/src/platform/packages/shared/kbn-event-annotation-common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-managed-content-badge'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-event-annotation-common'], }; diff --git a/packages/kbn-event-annotation-common/kibana.jsonc b/src/platform/packages/shared/kbn-event-annotation-common/kibana.jsonc similarity index 100% rename from packages/kbn-event-annotation-common/kibana.jsonc rename to src/platform/packages/shared/kbn-event-annotation-common/kibana.jsonc diff --git a/packages/kbn-event-annotation-common/package.json b/src/platform/packages/shared/kbn-event-annotation-common/package.json similarity index 100% rename from packages/kbn-event-annotation-common/package.json rename to src/platform/packages/shared/kbn-event-annotation-common/package.json diff --git a/packages/kbn-event-annotation-common/tsconfig.json b/src/platform/packages/shared/kbn-event-annotation-common/tsconfig.json similarity index 87% rename from packages/kbn-event-annotation-common/tsconfig.json rename to src/platform/packages/shared/kbn-event-annotation-common/tsconfig.json index e3e84223bbbe7..92d1688fc2c05 100644 --- a/packages/kbn-event-annotation-common/tsconfig.json +++ b/src/platform/packages/shared/kbn-event-annotation-common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-event-annotation-common/types.ts b/src/platform/packages/shared/kbn-event-annotation-common/types.ts similarity index 100% rename from packages/kbn-event-annotation-common/types.ts rename to src/platform/packages/shared/kbn-event-annotation-common/types.ts diff --git a/packages/kbn-event-annotation-common/util.ts b/src/platform/packages/shared/kbn-event-annotation-common/util.ts similarity index 100% rename from packages/kbn-event-annotation-common/util.ts rename to src/platform/packages/shared/kbn-event-annotation-common/util.ts diff --git a/packages/kbn-event-annotation-components/README.md b/src/platform/packages/shared/kbn-event-annotation-components/README.md similarity index 100% rename from packages/kbn-event-annotation-components/README.md rename to src/platform/packages/shared/kbn-event-annotation-components/README.md diff --git a/packages/kbn-event-annotation-components/components/annotation_editor_controls/annotation_editor_controls.tsx b/src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/annotation_editor_controls.tsx similarity index 100% rename from packages/kbn-event-annotation-components/components/annotation_editor_controls/annotation_editor_controls.tsx rename to src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/annotation_editor_controls.tsx diff --git a/packages/kbn-event-annotation-components/components/annotation_editor_controls/helpers.ts b/src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/helpers.ts similarity index 100% rename from packages/kbn-event-annotation-components/components/annotation_editor_controls/helpers.ts rename to src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/helpers.ts diff --git a/packages/kbn-event-annotation-components/components/annotation_editor_controls/icon_set.ts b/src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/icon_set.ts similarity index 100% rename from packages/kbn-event-annotation-components/components/annotation_editor_controls/icon_set.ts rename to src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/icon_set.ts diff --git a/packages/kbn-event-annotation-components/components/annotation_editor_controls/index.scss b/src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/index.scss similarity index 100% rename from packages/kbn-event-annotation-components/components/annotation_editor_controls/index.scss rename to src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/index.scss diff --git a/packages/kbn-event-annotation-components/components/annotation_editor_controls/index.test.tsx b/src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/index.test.tsx similarity index 100% rename from packages/kbn-event-annotation-components/components/annotation_editor_controls/index.test.tsx rename to src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/index.test.tsx diff --git a/packages/kbn-event-annotation-components/components/annotation_editor_controls/index.tsx b/src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/index.tsx similarity index 100% rename from packages/kbn-event-annotation-components/components/annotation_editor_controls/index.tsx rename to src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/index.tsx diff --git a/packages/kbn-event-annotation-components/components/annotation_editor_controls/manual_annotation_panel.tsx b/src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/manual_annotation_panel.tsx similarity index 100% rename from packages/kbn-event-annotation-components/components/annotation_editor_controls/manual_annotation_panel.tsx rename to src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/manual_annotation_panel.tsx diff --git a/packages/kbn-event-annotation-components/components/annotation_editor_controls/query_annotation_panel.tsx b/src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/query_annotation_panel.tsx similarity index 100% rename from packages/kbn-event-annotation-components/components/annotation_editor_controls/query_annotation_panel.tsx rename to src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/query_annotation_panel.tsx diff --git a/packages/kbn-event-annotation-components/components/annotation_editor_controls/range_annotation_panel.tsx b/src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/range_annotation_panel.tsx similarity index 100% rename from packages/kbn-event-annotation-components/components/annotation_editor_controls/range_annotation_panel.tsx rename to src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/range_annotation_panel.tsx diff --git a/packages/kbn-event-annotation-components/components/annotation_editor_controls/tooltip_annotation_panel.tsx b/src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/tooltip_annotation_panel.tsx similarity index 100% rename from packages/kbn-event-annotation-components/components/annotation_editor_controls/tooltip_annotation_panel.tsx rename to src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/tooltip_annotation_panel.tsx diff --git a/packages/kbn-event-annotation-components/components/annotation_editor_controls/types.ts b/src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/types.ts similarity index 100% rename from packages/kbn-event-annotation-components/components/annotation_editor_controls/types.ts rename to src/platform/packages/shared/kbn-event-annotation-components/components/annotation_editor_controls/types.ts diff --git a/packages/kbn-event-annotation-components/components/event_annotation_group_saved_object_finder.tsx b/src/platform/packages/shared/kbn-event-annotation-components/components/event_annotation_group_saved_object_finder.tsx similarity index 100% rename from packages/kbn-event-annotation-components/components/event_annotation_group_saved_object_finder.tsx rename to src/platform/packages/shared/kbn-event-annotation-components/components/event_annotation_group_saved_object_finder.tsx diff --git a/packages/kbn-event-annotation-components/components/get_annotation_accessor.ts b/src/platform/packages/shared/kbn-event-annotation-components/components/get_annotation_accessor.ts similarity index 100% rename from packages/kbn-event-annotation-components/components/get_annotation_accessor.ts rename to src/platform/packages/shared/kbn-event-annotation-components/components/get_annotation_accessor.ts diff --git a/packages/kbn-event-annotation-components/components/index.ts b/src/platform/packages/shared/kbn-event-annotation-components/components/index.ts similarity index 100% rename from packages/kbn-event-annotation-components/components/index.ts rename to src/platform/packages/shared/kbn-event-annotation-components/components/index.ts diff --git a/packages/kbn-event-annotation-components/constants.ts b/src/platform/packages/shared/kbn-event-annotation-components/constants.ts similarity index 100% rename from packages/kbn-event-annotation-components/constants.ts rename to src/platform/packages/shared/kbn-event-annotation-components/constants.ts diff --git a/packages/kbn-event-annotation-components/index.ts b/src/platform/packages/shared/kbn-event-annotation-components/index.ts similarity index 100% rename from packages/kbn-event-annotation-components/index.ts rename to src/platform/packages/shared/kbn-event-annotation-components/index.ts diff --git a/packages/kbn-visualization-ui-components/jest.config.js b/src/platform/packages/shared/kbn-event-annotation-components/jest.config.js similarity index 82% rename from packages/kbn-visualization-ui-components/jest.config.js rename to src/platform/packages/shared/kbn-event-annotation-components/jest.config.js index 08b801fcbb173..47328ffafe5f8 100644 --- a/packages/kbn-visualization-ui-components/jest.config.js +++ b/src/platform/packages/shared/kbn-event-annotation-components/jest.config.js @@ -9,7 +9,7 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-visualization-ui-components'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-event-annotation-components'], setupFiles: ['jest-canvas-mock'], }; diff --git a/packages/kbn-event-annotation-components/kibana.jsonc b/src/platform/packages/shared/kbn-event-annotation-components/kibana.jsonc similarity index 100% rename from packages/kbn-event-annotation-components/kibana.jsonc rename to src/platform/packages/shared/kbn-event-annotation-components/kibana.jsonc diff --git a/packages/kbn-event-annotation-components/package.json b/src/platform/packages/shared/kbn-event-annotation-components/package.json similarity index 100% rename from packages/kbn-event-annotation-components/package.json rename to src/platform/packages/shared/kbn-event-annotation-components/package.json diff --git a/packages/kbn-event-annotation-components/tsconfig.json b/src/platform/packages/shared/kbn-event-annotation-components/tsconfig.json similarity index 92% rename from packages/kbn-event-annotation-components/tsconfig.json rename to src/platform/packages/shared/kbn-event-annotation-components/tsconfig.json index e7e5f468f4665..037ef70bfaf82 100644 --- a/packages/kbn-event-annotation-components/tsconfig.json +++ b/src/platform/packages/shared/kbn-event-annotation-components/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-event-annotation-components/types.ts b/src/platform/packages/shared/kbn-event-annotation-components/types.ts similarity index 100% rename from packages/kbn-event-annotation-components/types.ts rename to src/platform/packages/shared/kbn-event-annotation-components/types.ts diff --git a/packages/kbn-interpreter/index.ts b/src/platform/packages/shared/kbn-interpreter/index.ts similarity index 100% rename from packages/kbn-interpreter/index.ts rename to src/platform/packages/shared/kbn-interpreter/index.ts diff --git a/packages/kbn-interpreter/jest.config.js b/src/platform/packages/shared/kbn-interpreter/jest.config.js similarity index 83% rename from packages/kbn-interpreter/jest.config.js rename to src/platform/packages/shared/kbn-interpreter/jest.config.js index 38ae40dedaa75..7156f951efd39 100644 --- a/packages/kbn-interpreter/jest.config.js +++ b/src/platform/packages/shared/kbn-interpreter/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-interpreter'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-interpreter'], }; diff --git a/packages/kbn-interpreter/kibana.jsonc b/src/platform/packages/shared/kbn-interpreter/kibana.jsonc similarity index 100% rename from packages/kbn-interpreter/kibana.jsonc rename to src/platform/packages/shared/kbn-interpreter/kibana.jsonc diff --git a/packages/kbn-interpreter/package.json b/src/platform/packages/shared/kbn-interpreter/package.json similarity index 100% rename from packages/kbn-interpreter/package.json rename to src/platform/packages/shared/kbn-interpreter/package.json diff --git a/packages/kbn-interpreter/src/common/index.ts b/src/platform/packages/shared/kbn-interpreter/src/common/index.ts similarity index 100% rename from packages/kbn-interpreter/src/common/index.ts rename to src/platform/packages/shared/kbn-interpreter/src/common/index.ts diff --git a/packages/kbn-interpreter/src/common/lib/arg.js b/src/platform/packages/shared/kbn-interpreter/src/common/lib/arg.js similarity index 100% rename from packages/kbn-interpreter/src/common/lib/arg.js rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/arg.js diff --git a/packages/kbn-interpreter/src/common/lib/arg.test.js b/src/platform/packages/shared/kbn-interpreter/src/common/lib/arg.test.js similarity index 100% rename from packages/kbn-interpreter/src/common/lib/arg.test.js rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/arg.test.js diff --git a/packages/kbn-interpreter/src/common/lib/ast/ast.ts b/src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/ast.ts similarity index 100% rename from packages/kbn-interpreter/src/common/lib/ast/ast.ts rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/ast.ts diff --git a/packages/kbn-interpreter/src/common/lib/ast/compare.ts b/src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/compare.ts similarity index 100% rename from packages/kbn-interpreter/src/common/lib/ast/compare.ts rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/compare.ts diff --git a/packages/kbn-interpreter/src/common/lib/ast/from_expression.test.js b/src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/from_expression.test.js similarity index 100% rename from packages/kbn-interpreter/src/common/lib/ast/from_expression.test.js rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/from_expression.test.js diff --git a/packages/kbn-interpreter/src/common/lib/ast/from_expression.ts b/src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/from_expression.ts similarity index 100% rename from packages/kbn-interpreter/src/common/lib/ast/from_expression.ts rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/from_expression.ts diff --git a/packages/kbn-interpreter/src/common/lib/ast/index.ts b/src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/index.ts similarity index 100% rename from packages/kbn-interpreter/src/common/lib/ast/index.ts rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/index.ts diff --git a/packages/kbn-interpreter/src/common/lib/ast/patch.ts b/src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/patch.ts similarity index 100% rename from packages/kbn-interpreter/src/common/lib/ast/patch.ts rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/patch.ts diff --git a/packages/kbn-interpreter/src/common/lib/ast/safe_element_from_expression.ts b/src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/safe_element_from_expression.ts similarity index 100% rename from packages/kbn-interpreter/src/common/lib/ast/safe_element_from_expression.ts rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/safe_element_from_expression.ts diff --git a/packages/kbn-interpreter/src/common/lib/ast/to_expression.test.js b/src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/to_expression.test.js similarity index 100% rename from packages/kbn-interpreter/src/common/lib/ast/to_expression.test.js rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/to_expression.test.js diff --git a/packages/kbn-interpreter/src/common/lib/ast/to_expression.ts b/src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/to_expression.ts similarity index 100% rename from packages/kbn-interpreter/src/common/lib/ast/to_expression.ts rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/ast/to_expression.ts diff --git a/packages/kbn-interpreter/src/common/lib/cast.js b/src/platform/packages/shared/kbn-interpreter/src/common/lib/cast.js similarity index 100% rename from packages/kbn-interpreter/src/common/lib/cast.js rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/cast.js diff --git a/packages/kbn-interpreter/src/common/lib/fn.js b/src/platform/packages/shared/kbn-interpreter/src/common/lib/fn.js similarity index 100% rename from packages/kbn-interpreter/src/common/lib/fn.js rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/fn.js diff --git a/packages/kbn-interpreter/src/common/lib/get_by_alias.js b/src/platform/packages/shared/kbn-interpreter/src/common/lib/get_by_alias.js similarity index 100% rename from packages/kbn-interpreter/src/common/lib/get_by_alias.js rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/get_by_alias.js diff --git a/packages/kbn-interpreter/src/common/lib/get_by_alias.test.js b/src/platform/packages/shared/kbn-interpreter/src/common/lib/get_by_alias.test.js similarity index 100% rename from packages/kbn-interpreter/src/common/lib/get_by_alias.test.js rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/get_by_alias.test.js diff --git a/packages/kbn-interpreter/src/common/lib/get_type.ts b/src/platform/packages/shared/kbn-interpreter/src/common/lib/get_type.ts similarity index 100% rename from packages/kbn-interpreter/src/common/lib/get_type.ts rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/get_type.ts diff --git a/packages/kbn-interpreter/src/common/lib/grammar.peggy b/src/platform/packages/shared/kbn-interpreter/src/common/lib/grammar.peggy similarity index 100% rename from packages/kbn-interpreter/src/common/lib/grammar.peggy rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/grammar.peggy diff --git a/packages/kbn-interpreter/src/common/lib/grammar.peggy.config.json b/src/platform/packages/shared/kbn-interpreter/src/common/lib/grammar.peggy.config.json similarity index 100% rename from packages/kbn-interpreter/src/common/lib/grammar.peggy.config.json rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/grammar.peggy.config.json diff --git a/packages/kbn-interpreter/src/common/lib/parse.ts b/src/platform/packages/shared/kbn-interpreter/src/common/lib/parse.ts similarity index 100% rename from packages/kbn-interpreter/src/common/lib/parse.ts rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/parse.ts diff --git a/packages/kbn-interpreter/src/common/lib/registry.test.js b/src/platform/packages/shared/kbn-interpreter/src/common/lib/registry.test.js similarity index 100% rename from packages/kbn-interpreter/src/common/lib/registry.test.js rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/registry.test.js diff --git a/packages/kbn-interpreter/src/common/lib/registry.ts b/src/platform/packages/shared/kbn-interpreter/src/common/lib/registry.ts similarity index 100% rename from packages/kbn-interpreter/src/common/lib/registry.ts rename to src/platform/packages/shared/kbn-interpreter/src/common/lib/registry.ts diff --git a/packages/kbn-interpreter/src/common/registries.js b/src/platform/packages/shared/kbn-interpreter/src/common/registries.js similarity index 100% rename from packages/kbn-interpreter/src/common/registries.js rename to src/platform/packages/shared/kbn-interpreter/src/common/registries.js diff --git a/packages/kbn-interpreter/tsconfig.json b/src/platform/packages/shared/kbn-interpreter/tsconfig.json similarity index 85% rename from packages/kbn-interpreter/tsconfig.json rename to src/platform/packages/shared/kbn-interpreter/tsconfig.json index dc10af2e6fba6..fb931cd43f9f7 100644 --- a/packages/kbn-interpreter/tsconfig.json +++ b/src/platform/packages/shared/kbn-interpreter/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-sort-predicates/README.md b/src/platform/packages/shared/kbn-sort-predicates/README.md similarity index 100% rename from packages/kbn-sort-predicates/README.md rename to src/platform/packages/shared/kbn-sort-predicates/README.md diff --git a/packages/kbn-sort-predicates/index.ts b/src/platform/packages/shared/kbn-sort-predicates/index.ts similarity index 100% rename from packages/kbn-sort-predicates/index.ts rename to src/platform/packages/shared/kbn-sort-predicates/index.ts diff --git a/src/platform/packages/shared/kbn-sort-predicates/jest.config.js b/src/platform/packages/shared/kbn-sort-predicates/jest.config.js new file mode 100644 index 0000000000000..460bbf6ab7d2c --- /dev/null +++ b/src/platform/packages/shared/kbn-sort-predicates/jest.config.js @@ -0,0 +1,14 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-sort-predicates'], +}; diff --git a/packages/kbn-sort-predicates/kibana.jsonc b/src/platform/packages/shared/kbn-sort-predicates/kibana.jsonc similarity index 100% rename from packages/kbn-sort-predicates/kibana.jsonc rename to src/platform/packages/shared/kbn-sort-predicates/kibana.jsonc diff --git a/packages/kbn-sort-predicates/package.json b/src/platform/packages/shared/kbn-sort-predicates/package.json similarity index 100% rename from packages/kbn-sort-predicates/package.json rename to src/platform/packages/shared/kbn-sort-predicates/package.json diff --git a/packages/kbn-sort-predicates/src/sorting.test.ts b/src/platform/packages/shared/kbn-sort-predicates/src/sorting.test.ts similarity index 100% rename from packages/kbn-sort-predicates/src/sorting.test.ts rename to src/platform/packages/shared/kbn-sort-predicates/src/sorting.test.ts diff --git a/packages/kbn-sort-predicates/src/sorting.ts b/src/platform/packages/shared/kbn-sort-predicates/src/sorting.ts similarity index 100% rename from packages/kbn-sort-predicates/src/sorting.ts rename to src/platform/packages/shared/kbn-sort-predicates/src/sorting.ts diff --git a/packages/kbn-sort-predicates/tsconfig.json b/src/platform/packages/shared/kbn-sort-predicates/tsconfig.json similarity index 84% rename from packages/kbn-sort-predicates/tsconfig.json rename to src/platform/packages/shared/kbn-sort-predicates/tsconfig.json index 3bc215c57f5e7..f8a02093c39a6 100644 --- a/packages/kbn-sort-predicates/tsconfig.json +++ b/src/platform/packages/shared/kbn-sort-predicates/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-visualization-ui-components/README.md b/src/platform/packages/shared/kbn-visualization-ui-components/README.md similarity index 100% rename from packages/kbn-visualization-ui-components/README.md rename to src/platform/packages/shared/kbn-visualization-ui-components/README.md diff --git a/packages/kbn-visualization-ui-components/components/chart_switch_trigger.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/chart_switch_trigger.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/chart_switch_trigger.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/chart_switch_trigger.tsx diff --git a/packages/kbn-visualization-ui-components/components/color_picker.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/color_picker.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/color_picker.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/color_picker.tsx diff --git a/packages/kbn-visualization-ui-components/components/debounced_input.test.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/debounced_input.test.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/debounced_input.test.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/debounced_input.test.tsx diff --git a/packages/kbn-visualization-ui-components/components/debounced_input.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/debounced_input.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/debounced_input.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/debounced_input.tsx diff --git a/packages/kbn-visualization-ui-components/components/dimension_buttons/constants.ts b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/constants.ts similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_buttons/constants.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/constants.ts diff --git a/packages/kbn-visualization-ui-components/components/dimension_buttons/dimension_button.test.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/dimension_button.test.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_buttons/dimension_button.test.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/dimension_button.test.tsx diff --git a/packages/kbn-visualization-ui-components/components/dimension_buttons/dimension_button.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/dimension_button.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_buttons/dimension_button.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/dimension_button.tsx diff --git a/packages/kbn-visualization-ui-components/components/dimension_buttons/dimension_button_icon.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/dimension_button_icon.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_buttons/dimension_button_icon.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/dimension_button_icon.tsx diff --git a/packages/kbn-visualization-ui-components/components/dimension_buttons/empty_button.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/empty_button.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_buttons/empty_button.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/empty_button.tsx diff --git a/packages/kbn-visualization-ui-components/components/dimension_buttons/index.ts b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/index.ts similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_buttons/index.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/index.ts diff --git a/packages/kbn-visualization-ui-components/components/dimension_buttons/palette_indicator.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/palette_indicator.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_buttons/palette_indicator.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/palette_indicator.tsx diff --git a/packages/kbn-visualization-ui-components/components/dimension_buttons/trigger.test.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/trigger.test.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_buttons/trigger.test.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/trigger.test.tsx diff --git a/packages/kbn-visualization-ui-components/components/dimension_buttons/trigger.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/trigger.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_buttons/trigger.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/trigger.tsx diff --git a/packages/kbn-visualization-ui-components/components/dimension_buttons/types.ts b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/types.ts similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_buttons/types.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_buttons/types.ts diff --git a/packages/kbn-visualization-ui-components/components/dimension_editor_section.scss b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_editor_section.scss similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_editor_section.scss rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_editor_section.scss diff --git a/packages/kbn-visualization-ui-components/components/dimension_editor_section.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_editor_section.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/dimension_editor_section.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/dimension_editor_section.tsx diff --git a/packages/kbn-visualization-ui-components/components/drag_drop_bucket/buckets.test.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/buckets.test.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/drag_drop_bucket/buckets.test.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/buckets.test.tsx diff --git a/packages/kbn-visualization-ui-components/components/drag_drop_bucket/buckets.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/buckets.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/drag_drop_bucket/buckets.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/buckets.tsx diff --git a/packages/kbn-visualization-ui-components/components/drag_drop_bucket/default_bucket_container.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/default_bucket_container.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/drag_drop_bucket/default_bucket_container.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/default_bucket_container.tsx diff --git a/packages/kbn-visualization-ui-components/components/drag_drop_bucket/fields_bucket_container.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/fields_bucket_container.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/drag_drop_bucket/fields_bucket_container.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/fields_bucket_container.tsx diff --git a/packages/kbn-visualization-ui-components/components/drag_drop_bucket/index.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/index.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/drag_drop_bucket/index.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/index.tsx diff --git a/packages/kbn-visualization-ui-components/components/drag_drop_bucket/new_bucket_button.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/new_bucket_button.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/drag_drop_bucket/new_bucket_button.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/new_bucket_button.tsx diff --git a/packages/kbn-visualization-ui-components/components/drag_drop_bucket/types.ts b/src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/types.ts similarity index 100% rename from packages/kbn-visualization-ui-components/components/drag_drop_bucket/types.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/components/drag_drop_bucket/types.ts diff --git a/packages/kbn-visualization-ui-components/components/field_picker/field_picker.scss b/src/platform/packages/shared/kbn-visualization-ui-components/components/field_picker/field_picker.scss similarity index 100% rename from packages/kbn-visualization-ui-components/components/field_picker/field_picker.scss rename to src/platform/packages/shared/kbn-visualization-ui-components/components/field_picker/field_picker.scss diff --git a/packages/kbn-visualization-ui-components/components/field_picker/field_picker.test.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/field_picker/field_picker.test.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/field_picker/field_picker.test.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/field_picker/field_picker.test.tsx diff --git a/packages/kbn-visualization-ui-components/components/field_picker/field_picker.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/field_picker/field_picker.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/field_picker/field_picker.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/field_picker/field_picker.tsx diff --git a/packages/kbn-visualization-ui-components/components/field_picker/index.ts b/src/platform/packages/shared/kbn-visualization-ui-components/components/field_picker/index.ts similarity index 100% rename from packages/kbn-visualization-ui-components/components/field_picker/index.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/components/field_picker/index.ts diff --git a/packages/kbn-visualization-ui-components/components/field_picker/types.ts b/src/platform/packages/shared/kbn-visualization-ui-components/components/field_picker/types.ts similarity index 100% rename from packages/kbn-visualization-ui-components/components/field_picker/types.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/components/field_picker/types.ts diff --git a/packages/kbn-visualization-ui-components/components/icon_select.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/icon_select.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/icon_select.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/icon_select.tsx diff --git a/packages/kbn-visualization-ui-components/components/index.ts b/src/platform/packages/shared/kbn-visualization-ui-components/components/index.ts similarity index 100% rename from packages/kbn-visualization-ui-components/components/index.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/components/index.ts diff --git a/packages/kbn-visualization-ui-components/components/line_style_settings.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/line_style_settings.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/line_style_settings.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/line_style_settings.tsx diff --git a/packages/kbn-visualization-ui-components/components/name_input.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/name_input.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/name_input.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/name_input.tsx diff --git a/packages/kbn-visualization-ui-components/components/query_input/filter_query_input.scss b/src/platform/packages/shared/kbn-visualization-ui-components/components/query_input/filter_query_input.scss similarity index 100% rename from packages/kbn-visualization-ui-components/components/query_input/filter_query_input.scss rename to src/platform/packages/shared/kbn-visualization-ui-components/components/query_input/filter_query_input.scss diff --git a/packages/kbn-visualization-ui-components/components/query_input/filter_query_input.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/query_input/filter_query_input.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/query_input/filter_query_input.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/query_input/filter_query_input.tsx diff --git a/packages/kbn-visualization-ui-components/components/query_input/helpers.ts b/src/platform/packages/shared/kbn-visualization-ui-components/components/query_input/helpers.ts similarity index 100% rename from packages/kbn-visualization-ui-components/components/query_input/helpers.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/components/query_input/helpers.ts diff --git a/packages/kbn-visualization-ui-components/components/query_input/index.ts b/src/platform/packages/shared/kbn-visualization-ui-components/components/query_input/index.ts similarity index 100% rename from packages/kbn-visualization-ui-components/components/query_input/index.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/components/query_input/index.ts diff --git a/packages/kbn-visualization-ui-components/components/query_input/query_input.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/query_input/query_input.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/query_input/query_input.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/query_input/query_input.tsx diff --git a/packages/kbn-visualization-ui-components/components/text_decoration_setting.tsx b/src/platform/packages/shared/kbn-visualization-ui-components/components/text_decoration_setting.tsx similarity index 100% rename from packages/kbn-visualization-ui-components/components/text_decoration_setting.tsx rename to src/platform/packages/shared/kbn-visualization-ui-components/components/text_decoration_setting.tsx diff --git a/packages/kbn-visualization-ui-components/index.ts b/src/platform/packages/shared/kbn-visualization-ui-components/index.ts similarity index 100% rename from packages/kbn-visualization-ui-components/index.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/index.ts diff --git a/packages/kbn-event-annotation-components/jest.config.js b/src/platform/packages/shared/kbn-visualization-ui-components/jest.config.js similarity index 82% rename from packages/kbn-event-annotation-components/jest.config.js rename to src/platform/packages/shared/kbn-visualization-ui-components/jest.config.js index 62b40300befaa..1c68c8f7ae555 100644 --- a/packages/kbn-event-annotation-components/jest.config.js +++ b/src/platform/packages/shared/kbn-visualization-ui-components/jest.config.js @@ -9,7 +9,7 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-event-annotation-components'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-visualization-ui-components'], setupFiles: ['jest-canvas-mock'], }; diff --git a/packages/kbn-visualization-ui-components/kibana.jsonc b/src/platform/packages/shared/kbn-visualization-ui-components/kibana.jsonc similarity index 100% rename from packages/kbn-visualization-ui-components/kibana.jsonc rename to src/platform/packages/shared/kbn-visualization-ui-components/kibana.jsonc diff --git a/packages/kbn-visualization-ui-components/package.json b/src/platform/packages/shared/kbn-visualization-ui-components/package.json similarity index 100% rename from packages/kbn-visualization-ui-components/package.json rename to src/platform/packages/shared/kbn-visualization-ui-components/package.json diff --git a/packages/kbn-visualization-ui-components/tsconfig.json b/src/platform/packages/shared/kbn-visualization-ui-components/tsconfig.json similarity index 94% rename from packages/kbn-visualization-ui-components/tsconfig.json rename to src/platform/packages/shared/kbn-visualization-ui-components/tsconfig.json index 9a32aedb62a4c..f65b144e8b86d 100644 --- a/packages/kbn-visualization-ui-components/tsconfig.json +++ b/src/platform/packages/shared/kbn-visualization-ui-components/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-visualization-ui-components/types.ts b/src/platform/packages/shared/kbn-visualization-ui-components/types.ts similarity index 100% rename from packages/kbn-visualization-ui-components/types.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/types.ts diff --git a/packages/kbn-visualization-ui-components/util.ts b/src/platform/packages/shared/kbn-visualization-ui-components/util.ts similarity index 100% rename from packages/kbn-visualization-ui-components/util.ts rename to src/platform/packages/shared/kbn-visualization-ui-components/util.ts diff --git a/packages/kbn-visualization-utils/README.md b/src/platform/packages/shared/kbn-visualization-utils/README.md similarity index 100% rename from packages/kbn-visualization-utils/README.md rename to src/platform/packages/shared/kbn-visualization-utils/README.md diff --git a/packages/kbn-visualization-utils/__mocks__/suggestions_mock.ts b/src/platform/packages/shared/kbn-visualization-utils/__mocks__/suggestions_mock.ts similarity index 100% rename from packages/kbn-visualization-utils/__mocks__/suggestions_mock.ts rename to src/platform/packages/shared/kbn-visualization-utils/__mocks__/suggestions_mock.ts diff --git a/packages/kbn-visualization-utils/index.ts b/src/platform/packages/shared/kbn-visualization-utils/index.ts similarity index 100% rename from packages/kbn-visualization-utils/index.ts rename to src/platform/packages/shared/kbn-visualization-utils/index.ts diff --git a/src/platform/packages/shared/kbn-visualization-utils/jest.config.js b/src/platform/packages/shared/kbn-visualization-utils/jest.config.js new file mode 100644 index 0000000000000..56dbc512a68b0 --- /dev/null +++ b/src/platform/packages/shared/kbn-visualization-utils/jest.config.js @@ -0,0 +1,14 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-visualization-utils'], +}; diff --git a/packages/kbn-visualization-utils/kibana.jsonc b/src/platform/packages/shared/kbn-visualization-utils/kibana.jsonc similarity index 100% rename from packages/kbn-visualization-utils/kibana.jsonc rename to src/platform/packages/shared/kbn-visualization-utils/kibana.jsonc diff --git a/packages/kbn-visualization-utils/package.json b/src/platform/packages/shared/kbn-visualization-utils/package.json similarity index 100% rename from packages/kbn-visualization-utils/package.json rename to src/platform/packages/shared/kbn-visualization-utils/package.json diff --git a/packages/kbn-visualization-utils/src/debounced_value.test.ts b/src/platform/packages/shared/kbn-visualization-utils/src/debounced_value.test.ts similarity index 100% rename from packages/kbn-visualization-utils/src/debounced_value.test.ts rename to src/platform/packages/shared/kbn-visualization-utils/src/debounced_value.test.ts diff --git a/packages/kbn-visualization-utils/src/debounced_value.ts b/src/platform/packages/shared/kbn-visualization-utils/src/debounced_value.ts similarity index 100% rename from packages/kbn-visualization-utils/src/debounced_value.ts rename to src/platform/packages/shared/kbn-visualization-utils/src/debounced_value.ts diff --git a/packages/kbn-visualization-utils/src/get_datasource_id.ts b/src/platform/packages/shared/kbn-visualization-utils/src/get_datasource_id.ts similarity index 100% rename from packages/kbn-visualization-utils/src/get_datasource_id.ts rename to src/platform/packages/shared/kbn-visualization-utils/src/get_datasource_id.ts diff --git a/packages/kbn-visualization-utils/src/get_lens_attributes.test.ts b/src/platform/packages/shared/kbn-visualization-utils/src/get_lens_attributes.test.ts similarity index 100% rename from packages/kbn-visualization-utils/src/get_lens_attributes.test.ts rename to src/platform/packages/shared/kbn-visualization-utils/src/get_lens_attributes.test.ts diff --git a/packages/kbn-visualization-utils/src/get_lens_attributes.ts b/src/platform/packages/shared/kbn-visualization-utils/src/get_lens_attributes.ts similarity index 100% rename from packages/kbn-visualization-utils/src/get_lens_attributes.ts rename to src/platform/packages/shared/kbn-visualization-utils/src/get_lens_attributes.ts diff --git a/packages/kbn-visualization-utils/src/get_timezone.test.ts b/src/platform/packages/shared/kbn-visualization-utils/src/get_timezone.test.ts similarity index 100% rename from packages/kbn-visualization-utils/src/get_timezone.test.ts rename to src/platform/packages/shared/kbn-visualization-utils/src/get_timezone.test.ts diff --git a/packages/kbn-visualization-utils/src/get_timezone.ts b/src/platform/packages/shared/kbn-visualization-utils/src/get_timezone.ts similarity index 100% rename from packages/kbn-visualization-utils/src/get_timezone.ts rename to src/platform/packages/shared/kbn-visualization-utils/src/get_timezone.ts diff --git a/packages/kbn-visualization-utils/src/map_vis_to_chart_type.ts b/src/platform/packages/shared/kbn-visualization-utils/src/map_vis_to_chart_type.ts similarity index 100% rename from packages/kbn-visualization-utils/src/map_vis_to_chart_type.ts rename to src/platform/packages/shared/kbn-visualization-utils/src/map_vis_to_chart_type.ts diff --git a/packages/kbn-visualization-utils/src/tooltip_wrapper.tsx b/src/platform/packages/shared/kbn-visualization-utils/src/tooltip_wrapper.tsx similarity index 100% rename from packages/kbn-visualization-utils/src/tooltip_wrapper.tsx rename to src/platform/packages/shared/kbn-visualization-utils/src/tooltip_wrapper.tsx diff --git a/packages/kbn-visualization-utils/src/types.ts b/src/platform/packages/shared/kbn-visualization-utils/src/types.ts similarity index 100% rename from packages/kbn-visualization-utils/src/types.ts rename to src/platform/packages/shared/kbn-visualization-utils/src/types.ts diff --git a/packages/kbn-visualization-utils/tsconfig.json b/src/platform/packages/shared/kbn-visualization-utils/tsconfig.json similarity index 85% rename from packages/kbn-visualization-utils/tsconfig.json rename to src/platform/packages/shared/kbn-visualization-utils/tsconfig.json index 5c2e71305c3fe..edb910462f51a 100644 --- a/packages/kbn-visualization-utils/tsconfig.json +++ b/src/platform/packages/shared/kbn-visualization-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "include": ["*.ts", "src/**/*", "__mocks__/**/*.ts"], "compilerOptions": { "outDir": "target/types" diff --git a/src/plugins/event_annotation/.i18nrc.json b/src/platform/plugins/private/event_annotation/.i18nrc.json similarity index 100% rename from src/plugins/event_annotation/.i18nrc.json rename to src/platform/plugins/private/event_annotation/.i18nrc.json diff --git a/src/plugins/event_annotation/README.md b/src/platform/plugins/private/event_annotation/README.md similarity index 100% rename from src/plugins/event_annotation/README.md rename to src/platform/plugins/private/event_annotation/README.md diff --git a/src/plugins/event_annotation/common/constants.ts b/src/platform/plugins/private/event_annotation/common/constants.ts similarity index 100% rename from src/plugins/event_annotation/common/constants.ts rename to src/platform/plugins/private/event_annotation/common/constants.ts diff --git a/src/plugins/event_annotation/common/content_management/constants.ts b/src/platform/plugins/private/event_annotation/common/content_management/constants.ts similarity index 100% rename from src/plugins/event_annotation/common/content_management/constants.ts rename to src/platform/plugins/private/event_annotation/common/content_management/constants.ts diff --git a/src/plugins/event_annotation/common/content_management/index.ts b/src/platform/plugins/private/event_annotation/common/content_management/index.ts similarity index 100% rename from src/plugins/event_annotation/common/content_management/index.ts rename to src/platform/plugins/private/event_annotation/common/content_management/index.ts diff --git a/src/plugins/event_annotation/common/content_management/latest.ts b/src/platform/plugins/private/event_annotation/common/content_management/latest.ts similarity index 100% rename from src/plugins/event_annotation/common/content_management/latest.ts rename to src/platform/plugins/private/event_annotation/common/content_management/latest.ts diff --git a/src/plugins/event_annotation/common/content_management/types.ts b/src/platform/plugins/private/event_annotation/common/content_management/types.ts similarity index 100% rename from src/plugins/event_annotation/common/content_management/types.ts rename to src/platform/plugins/private/event_annotation/common/content_management/types.ts diff --git a/src/plugins/event_annotation/common/content_management/v1/index.ts b/src/platform/plugins/private/event_annotation/common/content_management/v1/index.ts similarity index 100% rename from src/plugins/event_annotation/common/content_management/v1/index.ts rename to src/platform/plugins/private/event_annotation/common/content_management/v1/index.ts diff --git a/src/plugins/event_annotation/common/content_management/v1/types.ts b/src/platform/plugins/private/event_annotation/common/content_management/v1/types.ts similarity index 100% rename from src/plugins/event_annotation/common/content_management/v1/types.ts rename to src/platform/plugins/private/event_annotation/common/content_management/v1/types.ts diff --git a/src/plugins/event_annotation/common/event_annotation_group/index.ts b/src/platform/plugins/private/event_annotation/common/event_annotation_group/index.ts similarity index 100% rename from src/plugins/event_annotation/common/event_annotation_group/index.ts rename to src/platform/plugins/private/event_annotation/common/event_annotation_group/index.ts diff --git a/src/plugins/event_annotation/common/fetch_event_annotation/index.ts b/src/platform/plugins/private/event_annotation/common/fetch_event_annotation/index.ts similarity index 100% rename from src/plugins/event_annotation/common/fetch_event_annotation/index.ts rename to src/platform/plugins/private/event_annotation/common/fetch_event_annotation/index.ts diff --git a/src/plugins/event_annotation/common/fetch_event_annotations/fetch_event_annotations_fn.ts b/src/platform/plugins/private/event_annotation/common/fetch_event_annotations/fetch_event_annotations_fn.ts similarity index 100% rename from src/plugins/event_annotation/common/fetch_event_annotations/fetch_event_annotations_fn.ts rename to src/platform/plugins/private/event_annotation/common/fetch_event_annotations/fetch_event_annotations_fn.ts diff --git a/src/plugins/event_annotation/common/fetch_event_annotations/handle_request.ts b/src/platform/plugins/private/event_annotation/common/fetch_event_annotations/handle_request.ts similarity index 100% rename from src/plugins/event_annotation/common/fetch_event_annotations/handle_request.ts rename to src/platform/plugins/private/event_annotation/common/fetch_event_annotations/handle_request.ts diff --git a/src/plugins/event_annotation/common/fetch_event_annotations/index.ts b/src/platform/plugins/private/event_annotation/common/fetch_event_annotations/index.ts similarity index 100% rename from src/plugins/event_annotation/common/fetch_event_annotations/index.ts rename to src/platform/plugins/private/event_annotation/common/fetch_event_annotations/index.ts diff --git a/src/plugins/event_annotation/common/fetch_event_annotations/request_event_annotations.ts b/src/platform/plugins/private/event_annotation/common/fetch_event_annotations/request_event_annotations.ts similarity index 100% rename from src/plugins/event_annotation/common/fetch_event_annotations/request_event_annotations.ts rename to src/platform/plugins/private/event_annotation/common/fetch_event_annotations/request_event_annotations.ts diff --git a/src/plugins/event_annotation/common/fetch_event_annotations/types.ts b/src/platform/plugins/private/event_annotation/common/fetch_event_annotations/types.ts similarity index 100% rename from src/plugins/event_annotation/common/fetch_event_annotations/types.ts rename to src/platform/plugins/private/event_annotation/common/fetch_event_annotations/types.ts diff --git a/src/plugins/event_annotation/common/fetch_event_annotations/utils.ts b/src/platform/plugins/private/event_annotation/common/fetch_event_annotations/utils.ts similarity index 100% rename from src/plugins/event_annotation/common/fetch_event_annotations/utils.ts rename to src/platform/plugins/private/event_annotation/common/fetch_event_annotations/utils.ts diff --git a/src/plugins/event_annotation/common/index.ts b/src/platform/plugins/private/event_annotation/common/index.ts similarity index 100% rename from src/plugins/event_annotation/common/index.ts rename to src/platform/plugins/private/event_annotation/common/index.ts diff --git a/src/plugins/event_annotation/common/manual_event_annotation/index.ts b/src/platform/plugins/private/event_annotation/common/manual_event_annotation/index.ts similarity index 100% rename from src/plugins/event_annotation/common/manual_event_annotation/index.ts rename to src/platform/plugins/private/event_annotation/common/manual_event_annotation/index.ts diff --git a/src/plugins/event_annotation/common/manual_event_annotation/types.ts b/src/platform/plugins/private/event_annotation/common/manual_event_annotation/types.ts similarity index 100% rename from src/plugins/event_annotation/common/manual_event_annotation/types.ts rename to src/platform/plugins/private/event_annotation/common/manual_event_annotation/types.ts diff --git a/src/plugins/event_annotation/common/query_point_event_annotation/index.ts b/src/platform/plugins/private/event_annotation/common/query_point_event_annotation/index.ts similarity index 100% rename from src/plugins/event_annotation/common/query_point_event_annotation/index.ts rename to src/platform/plugins/private/event_annotation/common/query_point_event_annotation/index.ts diff --git a/src/plugins/event_annotation/common/query_point_event_annotation/types.ts b/src/platform/plugins/private/event_annotation/common/query_point_event_annotation/types.ts similarity index 100% rename from src/plugins/event_annotation/common/query_point_event_annotation/types.ts rename to src/platform/plugins/private/event_annotation/common/query_point_event_annotation/types.ts diff --git a/src/plugins/event_annotation/common/types.ts b/src/platform/plugins/private/event_annotation/common/types.ts similarity index 100% rename from src/plugins/event_annotation/common/types.ts rename to src/platform/plugins/private/event_annotation/common/types.ts diff --git a/src/plugins/event_annotation_listing/jest.config.js b/src/platform/plugins/private/event_annotation/jest.config.js similarity index 66% rename from src/plugins/event_annotation_listing/jest.config.js rename to src/platform/plugins/private/event_annotation/jest.config.js index 1a1f85ef69b67..39dbe120fbcb9 100644 --- a/src/plugins/event_annotation_listing/jest.config.js +++ b/src/platform/plugins/private/event_annotation/jest.config.js @@ -9,12 +9,13 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/event_annotation_listing'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/event_annotation_listing', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/event_annotation'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/event_annotation', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/event_annotation_listing/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/private/event_annotation/{common,public,server}/**/*.{ts,tsx}', ], setupFiles: ['jest-canvas-mock'], }; diff --git a/src/plugins/event_annotation/kibana.jsonc b/src/platform/plugins/private/event_annotation/kibana.jsonc similarity index 100% rename from src/plugins/event_annotation/kibana.jsonc rename to src/platform/plugins/private/event_annotation/kibana.jsonc diff --git a/src/plugins/event_annotation/public/components/event_annotation_group_saved_object_finder.tsx b/src/platform/plugins/private/event_annotation/public/components/event_annotation_group_saved_object_finder.tsx similarity index 100% rename from src/plugins/event_annotation/public/components/event_annotation_group_saved_object_finder.tsx rename to src/platform/plugins/private/event_annotation/public/components/event_annotation_group_saved_object_finder.tsx diff --git a/src/plugins/event_annotation/public/event_annotation_service/README.md b/src/platform/plugins/private/event_annotation/public/event_annotation_service/README.md similarity index 100% rename from src/plugins/event_annotation/public/event_annotation_service/README.md rename to src/platform/plugins/private/event_annotation/public/event_annotation_service/README.md diff --git a/src/plugins/event_annotation/public/event_annotation_service/__snapshots__/service.test.ts.snap b/src/platform/plugins/private/event_annotation/public/event_annotation_service/__snapshots__/service.test.ts.snap similarity index 100% rename from src/plugins/event_annotation/public/event_annotation_service/__snapshots__/service.test.ts.snap rename to src/platform/plugins/private/event_annotation/public/event_annotation_service/__snapshots__/service.test.ts.snap diff --git a/src/plugins/event_annotation/public/event_annotation_service/index.tsx b/src/platform/plugins/private/event_annotation/public/event_annotation_service/index.tsx similarity index 100% rename from src/plugins/event_annotation/public/event_annotation_service/index.tsx rename to src/platform/plugins/private/event_annotation/public/event_annotation_service/index.tsx diff --git a/src/plugins/event_annotation/public/event_annotation_service/service.test.ts b/src/platform/plugins/private/event_annotation/public/event_annotation_service/service.test.ts similarity index 100% rename from src/plugins/event_annotation/public/event_annotation_service/service.test.ts rename to src/platform/plugins/private/event_annotation/public/event_annotation_service/service.test.ts diff --git a/src/plugins/event_annotation/public/event_annotation_service/service.tsx b/src/platform/plugins/private/event_annotation/public/event_annotation_service/service.tsx similarity index 100% rename from src/plugins/event_annotation/public/event_annotation_service/service.tsx rename to src/platform/plugins/private/event_annotation/public/event_annotation_service/service.tsx diff --git a/src/plugins/event_annotation/public/fetch_event_annotations/__snapshots__/fetch_event_annotations.test.ts.snap b/src/platform/plugins/private/event_annotation/public/fetch_event_annotations/__snapshots__/fetch_event_annotations.test.ts.snap similarity index 100% rename from src/plugins/event_annotation/public/fetch_event_annotations/__snapshots__/fetch_event_annotations.test.ts.snap rename to src/platform/plugins/private/event_annotation/public/fetch_event_annotations/__snapshots__/fetch_event_annotations.test.ts.snap diff --git a/src/plugins/event_annotation/public/fetch_event_annotations/fetch_event_annotations.test.ts b/src/platform/plugins/private/event_annotation/public/fetch_event_annotations/fetch_event_annotations.test.ts similarity index 100% rename from src/plugins/event_annotation/public/fetch_event_annotations/fetch_event_annotations.test.ts rename to src/platform/plugins/private/event_annotation/public/fetch_event_annotations/fetch_event_annotations.test.ts diff --git a/src/plugins/event_annotation/public/fetch_event_annotations/index.ts b/src/platform/plugins/private/event_annotation/public/fetch_event_annotations/index.ts similarity index 100% rename from src/plugins/event_annotation/public/fetch_event_annotations/index.ts rename to src/platform/plugins/private/event_annotation/public/fetch_event_annotations/index.ts diff --git a/src/plugins/event_annotation/public/index.ts b/src/platform/plugins/private/event_annotation/public/index.ts similarity index 100% rename from src/plugins/event_annotation/public/index.ts rename to src/platform/plugins/private/event_annotation/public/index.ts diff --git a/src/plugins/event_annotation/public/mocks.ts b/src/platform/plugins/private/event_annotation/public/mocks.ts similarity index 100% rename from src/plugins/event_annotation/public/mocks.ts rename to src/platform/plugins/private/event_annotation/public/mocks.ts diff --git a/src/plugins/event_annotation/public/plugin.ts b/src/platform/plugins/private/event_annotation/public/plugin.ts similarity index 100% rename from src/plugins/event_annotation/public/plugin.ts rename to src/platform/plugins/private/event_annotation/public/plugin.ts diff --git a/src/plugins/event_annotation/server/content_management/event_annotation_group_storage.ts b/src/platform/plugins/private/event_annotation/server/content_management/event_annotation_group_storage.ts similarity index 100% rename from src/plugins/event_annotation/server/content_management/event_annotation_group_storage.ts rename to src/platform/plugins/private/event_annotation/server/content_management/event_annotation_group_storage.ts diff --git a/src/plugins/event_annotation/server/content_management/index.ts b/src/platform/plugins/private/event_annotation/server/content_management/index.ts similarity index 100% rename from src/plugins/event_annotation/server/content_management/index.ts rename to src/platform/plugins/private/event_annotation/server/content_management/index.ts diff --git a/src/plugins/event_annotation/server/content_management/schema/cm_services.ts b/src/platform/plugins/private/event_annotation/server/content_management/schema/cm_services.ts similarity index 100% rename from src/plugins/event_annotation/server/content_management/schema/cm_services.ts rename to src/platform/plugins/private/event_annotation/server/content_management/schema/cm_services.ts diff --git a/src/plugins/event_annotation/server/content_management/schema/v1/cm_services.ts b/src/platform/plugins/private/event_annotation/server/content_management/schema/v1/cm_services.ts similarity index 100% rename from src/plugins/event_annotation/server/content_management/schema/v1/cm_services.ts rename to src/platform/plugins/private/event_annotation/server/content_management/schema/v1/cm_services.ts diff --git a/src/plugins/event_annotation/server/fetch_event_annotations/index.ts b/src/platform/plugins/private/event_annotation/server/fetch_event_annotations/index.ts similarity index 100% rename from src/plugins/event_annotation/server/fetch_event_annotations/index.ts rename to src/platform/plugins/private/event_annotation/server/fetch_event_annotations/index.ts diff --git a/src/plugins/event_annotation/server/index.ts b/src/platform/plugins/private/event_annotation/server/index.ts similarity index 100% rename from src/plugins/event_annotation/server/index.ts rename to src/platform/plugins/private/event_annotation/server/index.ts diff --git a/src/plugins/event_annotation/server/plugin.ts b/src/platform/plugins/private/event_annotation/server/plugin.ts similarity index 100% rename from src/plugins/event_annotation/server/plugin.ts rename to src/platform/plugins/private/event_annotation/server/plugin.ts diff --git a/src/plugins/event_annotation/server/saved_objects.ts b/src/platform/plugins/private/event_annotation/server/saved_objects.ts similarity index 100% rename from src/plugins/event_annotation/server/saved_objects.ts rename to src/platform/plugins/private/event_annotation/server/saved_objects.ts diff --git a/src/plugins/event_annotation/tsconfig.json b/src/platform/plugins/private/event_annotation/tsconfig.json similarity index 95% rename from src/plugins/event_annotation/tsconfig.json rename to src/platform/plugins/private/event_annotation/tsconfig.json index f6117e5f92aed..cbe947b4579fc 100644 --- a/src/plugins/event_annotation/tsconfig.json +++ b/src/platform/plugins/private/event_annotation/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/event_annotation_listing/.i18nrc.json b/src/platform/plugins/private/event_annotation_listing/.i18nrc.json similarity index 100% rename from src/plugins/event_annotation_listing/.i18nrc.json rename to src/platform/plugins/private/event_annotation_listing/.i18nrc.json diff --git a/src/plugins/event_annotation_listing/README.md b/src/platform/plugins/private/event_annotation_listing/README.md similarity index 100% rename from src/plugins/event_annotation_listing/README.md rename to src/platform/plugins/private/event_annotation_listing/README.md diff --git a/src/platform/plugins/private/event_annotation_listing/jest.config.js b/src/platform/plugins/private/event_annotation_listing/jest.config.js new file mode 100644 index 0000000000000..c6f66690b199f --- /dev/null +++ b/src/platform/plugins/private/event_annotation_listing/jest.config.js @@ -0,0 +1,21 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/event_annotation_listing'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/event_annotation_listing', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/private/event_annotation_listing/{common,public,server}/**/*.{ts,tsx}', + ], + setupFiles: ['jest-canvas-mock'], +}; diff --git a/src/plugins/event_annotation_listing/kibana.jsonc b/src/platform/plugins/private/event_annotation_listing/kibana.jsonc similarity index 100% rename from src/plugins/event_annotation_listing/kibana.jsonc rename to src/platform/plugins/private/event_annotation_listing/kibana.jsonc diff --git a/src/plugins/event_annotation_listing/public/components/group_editor_flyout/__snapshots__/group_editor_flyout.test.tsx.snap b/src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/__snapshots__/group_editor_flyout.test.tsx.snap similarity index 100% rename from src/plugins/event_annotation_listing/public/components/group_editor_flyout/__snapshots__/group_editor_flyout.test.tsx.snap rename to src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/__snapshots__/group_editor_flyout.test.tsx.snap diff --git a/src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/annotation_list.tsx b/src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/annotation_list.tsx similarity index 100% rename from src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/annotation_list.tsx rename to src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/annotation_list.tsx diff --git a/src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/group_editor_controls.test.tsx b/src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/group_editor_controls.test.tsx similarity index 100% rename from src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/group_editor_controls.test.tsx rename to src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/group_editor_controls.test.tsx diff --git a/src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/group_editor_controls.tsx b/src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/group_editor_controls.tsx similarity index 100% rename from src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/group_editor_controls.tsx rename to src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/group_editor_controls.tsx diff --git a/src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/index.ts b/src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/index.ts similarity index 100% rename from src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/index.ts rename to src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_controls/index.ts diff --git a/src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_flyout.test.tsx b/src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_flyout.test.tsx similarity index 100% rename from src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_flyout.test.tsx rename to src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_flyout.test.tsx diff --git a/src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_flyout.tsx b/src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_flyout.tsx similarity index 100% rename from src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_editor_flyout.tsx rename to src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_editor_flyout.tsx diff --git a/src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_preview.test.tsx b/src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_preview.test.tsx similarity index 100% rename from src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_preview.test.tsx rename to src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_preview.test.tsx diff --git a/src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_preview.tsx b/src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_preview.tsx similarity index 100% rename from src/plugins/event_annotation_listing/public/components/group_editor_flyout/group_preview.tsx rename to src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/group_preview.tsx diff --git a/src/plugins/event_annotation_listing/public/components/group_editor_flyout/index.ts b/src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/index.ts similarity index 100% rename from src/plugins/event_annotation_listing/public/components/group_editor_flyout/index.ts rename to src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/index.ts diff --git a/src/plugins/event_annotation_listing/public/components/group_editor_flyout/lens_attributes.ts b/src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/lens_attributes.ts similarity index 100% rename from src/plugins/event_annotation_listing/public/components/group_editor_flyout/lens_attributes.ts rename to src/platform/plugins/private/event_annotation_listing/public/components/group_editor_flyout/lens_attributes.ts diff --git a/src/plugins/event_annotation_listing/public/components/table_list.test.tsx b/src/platform/plugins/private/event_annotation_listing/public/components/table_list.test.tsx similarity index 100% rename from src/plugins/event_annotation_listing/public/components/table_list.test.tsx rename to src/platform/plugins/private/event_annotation_listing/public/components/table_list.test.tsx diff --git a/src/plugins/event_annotation_listing/public/components/table_list.tsx b/src/platform/plugins/private/event_annotation_listing/public/components/table_list.tsx similarity index 100% rename from src/plugins/event_annotation_listing/public/components/table_list.tsx rename to src/platform/plugins/private/event_annotation_listing/public/components/table_list.tsx diff --git a/src/plugins/event_annotation_listing/public/constants.ts b/src/platform/plugins/private/event_annotation_listing/public/constants.ts similarity index 100% rename from src/plugins/event_annotation_listing/public/constants.ts rename to src/platform/plugins/private/event_annotation_listing/public/constants.ts diff --git a/src/plugins/event_annotation_listing/public/get_table_list.tsx b/src/platform/plugins/private/event_annotation_listing/public/get_table_list.tsx similarity index 100% rename from src/plugins/event_annotation_listing/public/get_table_list.tsx rename to src/platform/plugins/private/event_annotation_listing/public/get_table_list.tsx diff --git a/src/plugins/event_annotation_listing/public/index.ts b/src/platform/plugins/private/event_annotation_listing/public/index.ts similarity index 100% rename from src/plugins/event_annotation_listing/public/index.ts rename to src/platform/plugins/private/event_annotation_listing/public/index.ts diff --git a/src/plugins/event_annotation_listing/public/plugin.ts b/src/platform/plugins/private/event_annotation_listing/public/plugin.ts similarity index 100% rename from src/plugins/event_annotation_listing/public/plugin.ts rename to src/platform/plugins/private/event_annotation_listing/public/plugin.ts diff --git a/src/plugins/event_annotation_listing/tsconfig.json b/src/platform/plugins/private/event_annotation_listing/tsconfig.json similarity index 96% rename from src/plugins/event_annotation_listing/tsconfig.json rename to src/platform/plugins/private/event_annotation_listing/tsconfig.json index 2fb1a78ab5644..5cd9cf340bf1d 100644 --- a/src/plugins/event_annotation_listing/tsconfig.json +++ b/src/platform/plugins/private/event_annotation_listing/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/url_forwarding/README.md b/src/platform/plugins/private/url_forwarding/README.md similarity index 100% rename from src/plugins/url_forwarding/README.md rename to src/platform/plugins/private/url_forwarding/README.md diff --git a/src/plugins/chart_expressions/expression_xy/jest.config.js b/src/platform/plugins/private/url_forwarding/jest.config.js similarity index 68% rename from src/plugins/chart_expressions/expression_xy/jest.config.js rename to src/platform/plugins/private/url_forwarding/jest.config.js index f852b83ecd6ae..ed7f9d4cb0d5d 100644 --- a/src/plugins/chart_expressions/expression_xy/jest.config.js +++ b/src/platform/plugins/private/url_forwarding/jest.config.js @@ -9,12 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../', - roots: ['/src/plugins/chart_expressions/expression_xy'], + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/url_forwarding'], coverageDirectory: - '/target/kibana-coverage/jest/src/plugins/chart_expressions/expression_xy', + '/target/kibana-coverage/jest/src/platform/plugins/private/url_forwarding', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/chart_expressions/expression_xy/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/private/url_forwarding/public/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/url_forwarding/kibana.jsonc b/src/platform/plugins/private/url_forwarding/kibana.jsonc similarity index 100% rename from src/plugins/url_forwarding/kibana.jsonc rename to src/platform/plugins/private/url_forwarding/kibana.jsonc diff --git a/src/plugins/url_forwarding/public/forward_app/forward_app.test.ts b/src/platform/plugins/private/url_forwarding/public/forward_app/forward_app.test.ts similarity index 100% rename from src/plugins/url_forwarding/public/forward_app/forward_app.test.ts rename to src/platform/plugins/private/url_forwarding/public/forward_app/forward_app.test.ts diff --git a/src/plugins/url_forwarding/public/forward_app/forward_app.ts b/src/platform/plugins/private/url_forwarding/public/forward_app/forward_app.ts similarity index 100% rename from src/plugins/url_forwarding/public/forward_app/forward_app.ts rename to src/platform/plugins/private/url_forwarding/public/forward_app/forward_app.ts diff --git a/src/plugins/url_forwarding/public/forward_app/index.ts b/src/platform/plugins/private/url_forwarding/public/forward_app/index.ts similarity index 100% rename from src/plugins/url_forwarding/public/forward_app/index.ts rename to src/platform/plugins/private/url_forwarding/public/forward_app/index.ts diff --git a/src/plugins/url_forwarding/public/forward_app/navigate_to_legacy_kibana_url.test.ts b/src/platform/plugins/private/url_forwarding/public/forward_app/navigate_to_legacy_kibana_url.test.ts similarity index 100% rename from src/plugins/url_forwarding/public/forward_app/navigate_to_legacy_kibana_url.test.ts rename to src/platform/plugins/private/url_forwarding/public/forward_app/navigate_to_legacy_kibana_url.test.ts diff --git a/src/plugins/url_forwarding/public/forward_app/navigate_to_legacy_kibana_url.ts b/src/platform/plugins/private/url_forwarding/public/forward_app/navigate_to_legacy_kibana_url.ts similarity index 100% rename from src/plugins/url_forwarding/public/forward_app/navigate_to_legacy_kibana_url.ts rename to src/platform/plugins/private/url_forwarding/public/forward_app/navigate_to_legacy_kibana_url.ts diff --git a/src/plugins/url_forwarding/public/forward_app/normalize_path.ts b/src/platform/plugins/private/url_forwarding/public/forward_app/normalize_path.ts similarity index 100% rename from src/plugins/url_forwarding/public/forward_app/normalize_path.ts rename to src/platform/plugins/private/url_forwarding/public/forward_app/normalize_path.ts diff --git a/src/plugins/url_forwarding/public/index.ts b/src/platform/plugins/private/url_forwarding/public/index.ts similarity index 93% rename from src/plugins/url_forwarding/public/index.ts rename to src/platform/plugins/private/url_forwarding/public/index.ts index 81d14cfd5e1b3..8da437d81dbf4 100644 --- a/src/plugins/url_forwarding/public/index.ts +++ b/src/platform/plugins/private/url_forwarding/public/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/110891 -/* eslint-disable @kbn/eslint/no_export_all */ import { UrlForwardingPlugin } from './plugin'; diff --git a/src/plugins/url_forwarding/public/mocks.ts b/src/platform/plugins/private/url_forwarding/public/mocks.ts similarity index 100% rename from src/plugins/url_forwarding/public/mocks.ts rename to src/platform/plugins/private/url_forwarding/public/mocks.ts diff --git a/src/plugins/url_forwarding/public/plugin.ts b/src/platform/plugins/private/url_forwarding/public/plugin.ts similarity index 100% rename from src/plugins/url_forwarding/public/plugin.ts rename to src/platform/plugins/private/url_forwarding/public/plugin.ts diff --git a/src/plugins/url_forwarding/tsconfig.json b/src/platform/plugins/private/url_forwarding/tsconfig.json similarity index 77% rename from src/plugins/url_forwarding/tsconfig.json rename to src/platform/plugins/private/url_forwarding/tsconfig.json index f4db29b839cf8..edd72af71a807 100644 --- a/src/plugins/url_forwarding/tsconfig.json +++ b/src/platform/plugins/private/url_forwarding/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/vis_default_editor/README.md b/src/platform/plugins/private/vis_default_editor/README.md similarity index 85% rename from src/plugins/vis_default_editor/README.md rename to src/platform/plugins/private/vis_default_editor/README.md index 8607dfe486ace..6b212c5fa9f61 100644 --- a/src/plugins/vis_default_editor/README.md +++ b/src/platform/plugins/private/vis_default_editor/README.md @@ -5,7 +5,7 @@ It acts as a container for a particular visualization and options tabs. Contains The plugin exposes the static `DefaultEditorController` class to consume. ```ts -import { DefaultEditorController } from '../../vis_default_editor/public'; +import { DefaultEditorController } from '../../../../vis_default_editor/public'; const editor = new DefaultEditorController( element, diff --git a/src/plugins/chart_expressions/expression_metric/jest.config.js b/src/platform/plugins/private/vis_default_editor/jest.config.js similarity index 67% rename from src/plugins/chart_expressions/expression_metric/jest.config.js rename to src/platform/plugins/private/vis_default_editor/jest.config.js index f2f48e4cd3959..9b0478534745c 100644 --- a/src/plugins/chart_expressions/expression_metric/jest.config.js +++ b/src/platform/plugins/private/vis_default_editor/jest.config.js @@ -9,12 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../', - roots: ['/src/plugins/chart_expressions/expression_metric'], + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/vis_default_editor'], coverageDirectory: - '/target/kibana-coverage/jest/src/plugins/chart_expressions/expression_metric', + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_default_editor', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/chart_expressions/expression_metric/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/private/vis_default_editor/public/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/vis_default_editor/kibana.jsonc b/src/platform/plugins/private/vis_default_editor/kibana.jsonc similarity index 100% rename from src/plugins/vis_default_editor/kibana.jsonc rename to src/platform/plugins/private/vis_default_editor/kibana.jsonc diff --git a/src/plugins/vis_default_editor/public/_agg.scss b/src/platform/plugins/private/vis_default_editor/public/_agg.scss similarity index 100% rename from src/plugins/vis_default_editor/public/_agg.scss rename to src/platform/plugins/private/vis_default_editor/public/_agg.scss diff --git a/src/plugins/vis_default_editor/public/_agg_params.scss b/src/platform/plugins/private/vis_default_editor/public/_agg_params.scss similarity index 100% rename from src/plugins/vis_default_editor/public/_agg_params.scss rename to src/platform/plugins/private/vis_default_editor/public/_agg_params.scss diff --git a/src/plugins/vis_default_editor/public/_default.scss b/src/platform/plugins/private/vis_default_editor/public/_default.scss similarity index 100% rename from src/plugins/vis_default_editor/public/_default.scss rename to src/platform/plugins/private/vis_default_editor/public/_default.scss diff --git a/src/plugins/vis_default_editor/public/_sidebar.scss b/src/platform/plugins/private/vis_default_editor/public/_sidebar.scss similarity index 100% rename from src/plugins/vis_default_editor/public/_sidebar.scss rename to src/platform/plugins/private/vis_default_editor/public/_sidebar.scss diff --git a/src/plugins/vis_default_editor/public/agg_filters/agg_type_field_filters.ts b/src/platform/plugins/private/vis_default_editor/public/agg_filters/agg_type_field_filters.ts similarity index 100% rename from src/plugins/vis_default_editor/public/agg_filters/agg_type_field_filters.ts rename to src/platform/plugins/private/vis_default_editor/public/agg_filters/agg_type_field_filters.ts diff --git a/src/plugins/vis_default_editor/public/agg_filters/agg_type_filters.ts b/src/platform/plugins/private/vis_default_editor/public/agg_filters/agg_type_filters.ts similarity index 100% rename from src/plugins/vis_default_editor/public/agg_filters/agg_type_filters.ts rename to src/platform/plugins/private/vis_default_editor/public/agg_filters/agg_type_filters.ts diff --git a/src/plugins/vis_default_editor/public/agg_filters/index.ts b/src/platform/plugins/private/vis_default_editor/public/agg_filters/index.ts similarity index 100% rename from src/plugins/vis_default_editor/public/agg_filters/index.ts rename to src/platform/plugins/private/vis_default_editor/public/agg_filters/index.ts diff --git a/src/plugins/vis_default_editor/public/components/__snapshots__/agg.test.tsx.snap b/src/platform/plugins/private/vis_default_editor/public/components/__snapshots__/agg.test.tsx.snap similarity index 100% rename from src/plugins/vis_default_editor/public/components/__snapshots__/agg.test.tsx.snap rename to src/platform/plugins/private/vis_default_editor/public/components/__snapshots__/agg.test.tsx.snap diff --git a/src/plugins/vis_default_editor/public/components/__snapshots__/agg_group.test.tsx.snap b/src/platform/plugins/private/vis_default_editor/public/components/__snapshots__/agg_group.test.tsx.snap similarity index 100% rename from src/plugins/vis_default_editor/public/components/__snapshots__/agg_group.test.tsx.snap rename to src/platform/plugins/private/vis_default_editor/public/components/__snapshots__/agg_group.test.tsx.snap diff --git a/src/plugins/vis_default_editor/public/components/agg.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/agg.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/agg.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/agg.tsx b/src/platform/plugins/private/vis_default_editor/public/components/agg.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/agg.tsx diff --git a/src/plugins/vis_default_editor/public/components/agg_add.tsx b/src/platform/plugins/private/vis_default_editor/public/components/agg_add.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_add.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/agg_add.tsx diff --git a/src/plugins/vis_default_editor/public/components/agg_common_props.ts b/src/platform/plugins/private/vis_default_editor/public/components/agg_common_props.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_common_props.ts rename to src/platform/plugins/private/vis_default_editor/public/components/agg_common_props.ts diff --git a/src/plugins/vis_default_editor/public/components/agg_group.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/agg_group.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_group.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/agg_group.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/agg_group.tsx b/src/platform/plugins/private/vis_default_editor/public/components/agg_group.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_group.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/agg_group.tsx diff --git a/src/plugins/vis_default_editor/public/components/agg_group_helper.test.ts b/src/platform/plugins/private/vis_default_editor/public/components/agg_group_helper.test.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_group_helper.test.ts rename to src/platform/plugins/private/vis_default_editor/public/components/agg_group_helper.test.ts diff --git a/src/plugins/vis_default_editor/public/components/agg_group_helper.tsx b/src/platform/plugins/private/vis_default_editor/public/components/agg_group_helper.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_group_helper.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/agg_group_helper.tsx diff --git a/src/plugins/vis_default_editor/public/components/agg_group_state.tsx b/src/platform/plugins/private/vis_default_editor/public/components/agg_group_state.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_group_state.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/agg_group_state.tsx diff --git a/src/plugins/vis_default_editor/public/components/agg_param.tsx b/src/platform/plugins/private/vis_default_editor/public/components/agg_param.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_param.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/agg_param.tsx diff --git a/src/plugins/vis_default_editor/public/components/agg_param_props.ts b/src/platform/plugins/private/vis_default_editor/public/components/agg_param_props.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_param_props.ts rename to src/platform/plugins/private/vis_default_editor/public/components/agg_param_props.ts diff --git a/src/plugins/vis_default_editor/public/components/agg_params.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/agg_params.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_params.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/agg_params.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/agg_params.tsx b/src/platform/plugins/private/vis_default_editor/public/components/agg_params.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_params.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/agg_params.tsx diff --git a/src/plugins/vis_default_editor/public/components/agg_params_helper.test.ts b/src/platform/plugins/private/vis_default_editor/public/components/agg_params_helper.test.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_params_helper.test.ts rename to src/platform/plugins/private/vis_default_editor/public/components/agg_params_helper.test.ts diff --git a/src/plugins/vis_default_editor/public/components/agg_params_helper.ts b/src/platform/plugins/private/vis_default_editor/public/components/agg_params_helper.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_params_helper.ts rename to src/platform/plugins/private/vis_default_editor/public/components/agg_params_helper.ts diff --git a/src/plugins/vis_default_editor/public/components/agg_params_map.ts b/src/platform/plugins/private/vis_default_editor/public/components/agg_params_map.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_params_map.ts rename to src/platform/plugins/private/vis_default_editor/public/components/agg_params_map.ts diff --git a/src/plugins/vis_default_editor/public/components/agg_params_state.ts b/src/platform/plugins/private/vis_default_editor/public/components/agg_params_state.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_params_state.ts rename to src/platform/plugins/private/vis_default_editor/public/components/agg_params_state.ts diff --git a/src/plugins/vis_default_editor/public/components/agg_select.tsx b/src/platform/plugins/private/vis_default_editor/public/components/agg_select.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/agg_select.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/agg_select.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/__snapshots__/extended_bounds.test.tsx.snap b/src/platform/plugins/private/vis_default_editor/public/components/controls/__snapshots__/extended_bounds.test.tsx.snap similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/__snapshots__/extended_bounds.test.tsx.snap rename to src/platform/plugins/private/vis_default_editor/public/components/controls/__snapshots__/extended_bounds.test.tsx.snap diff --git a/src/plugins/vis_default_editor/public/components/controls/__snapshots__/metric_agg.test.tsx.snap b/src/platform/plugins/private/vis_default_editor/public/components/controls/__snapshots__/metric_agg.test.tsx.snap similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/__snapshots__/metric_agg.test.tsx.snap rename to src/platform/plugins/private/vis_default_editor/public/components/controls/__snapshots__/metric_agg.test.tsx.snap diff --git a/src/plugins/vis_default_editor/public/components/controls/__snapshots__/size.test.tsx.snap b/src/platform/plugins/private/vis_default_editor/public/components/controls/__snapshots__/size.test.tsx.snap similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/__snapshots__/size.test.tsx.snap rename to src/platform/plugins/private/vis_default_editor/public/components/controls/__snapshots__/size.test.tsx.snap diff --git a/src/plugins/vis_default_editor/public/components/controls/__snapshots__/time_interval.test.tsx.snap b/src/platform/plugins/private/vis_default_editor/public/components/controls/__snapshots__/time_interval.test.tsx.snap similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/__snapshots__/time_interval.test.tsx.snap rename to src/platform/plugins/private/vis_default_editor/public/components/controls/__snapshots__/time_interval.test.tsx.snap diff --git a/src/plugins/vis_default_editor/public/components/controls/__snapshots__/top_aggregate.test.tsx.snap b/src/platform/plugins/private/vis_default_editor/public/components/controls/__snapshots__/top_aggregate.test.tsx.snap similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/__snapshots__/top_aggregate.test.tsx.snap rename to src/platform/plugins/private/vis_default_editor/public/components/controls/__snapshots__/top_aggregate.test.tsx.snap diff --git a/src/plugins/vis_default_editor/public/components/controls/agg_control_props.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/agg_control_props.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/agg_control_props.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/agg_control_props.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/agg_utils.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/agg_utils.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/agg_utils.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/agg_utils.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/components/from_to_list.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/from_to_list.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/from_to_list.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/from_to_list.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/components/input_list.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/input_list.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/input_list.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/input_list.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/components/mask_list.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/mask_list.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/mask_list.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/mask_list.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/__snapshots__/number_list.test.tsx.snap b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/__snapshots__/number_list.test.tsx.snap similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/number_list/__snapshots__/number_list.test.tsx.snap rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/__snapshots__/number_list.test.tsx.snap diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/__snapshots__/number_row.test.tsx.snap b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/__snapshots__/number_row.test.tsx.snap similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/number_list/__snapshots__/number_row.test.tsx.snap rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/__snapshots__/number_row.test.tsx.snap diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/index.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/index.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/number_list/index.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/index.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/number_list.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/number_list.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/number_list/number_list.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/number_list.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/number_list.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/number_list.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/number_list/number_list.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/number_list.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/number_row.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/number_row.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/number_list/number_row.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/number_row.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/number_row.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/number_row.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/number_list/number_row.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/number_row.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/range.test.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/range.test.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/number_list/range.test.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/range.test.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/range.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/range.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/number_list/range.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/range.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/utils.test.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/utils.test.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/number_list/utils.test.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/utils.test.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/components/number_list/utils.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/utils.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/number_list/utils.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/number_list/utils.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/components/simple_number_list.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/components/simple_number_list.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/components/simple_number_list.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/components/simple_number_list.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/date_ranges.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/date_ranges.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/date_ranges.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/date_ranges.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/date_ranges.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/date_ranges.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/date_ranges.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/date_ranges.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/drop_partials.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/drop_partials.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/drop_partials.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/drop_partials.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/extended_bounds.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/extended_bounds.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/extended_bounds.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/extended_bounds.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/extended_bounds.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/extended_bounds.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/extended_bounds.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/extended_bounds.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/field.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/field.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/field.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/field.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/field.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/field.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/field.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/field.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/filter.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/filter.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/filter.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/filter.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/filters.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/filters.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/filters.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/filters.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/has_extended_bounds.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/has_extended_bounds.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/has_extended_bounds.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/has_extended_bounds.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/include_exclude.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/include_exclude.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/include_exclude.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/include_exclude.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/index.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/index.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/index.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/index.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/ip_prefix.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/ip_prefix.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/ip_prefix.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/ip_prefix.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/ip_range_type.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/ip_range_type.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/ip_range_type.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/ip_range_type.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/ip_ranges.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/ip_ranges.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/ip_ranges.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/ip_ranges.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/max_bars.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/max_bars.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/max_bars.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/max_bars.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/metric_agg.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/metric_agg.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/metric_agg.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/metric_agg.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/metric_agg.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/metric_agg.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/metric_agg.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/metric_agg.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/min_doc_count.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/min_doc_count.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/min_doc_count.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/min_doc_count.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/missing_bucket.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/missing_bucket.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/missing_bucket.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/missing_bucket.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/number_interval.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/number_interval.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/number_interval.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/number_interval.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/order.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/order.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/order.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/order.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/order_agg.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/order_agg.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/order_agg.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/order_agg.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/order_agg.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/order_agg.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/order_agg.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/order_agg.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/order_by.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/order_by.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/order_by.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/order_by.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/other_bucket.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/other_bucket.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/other_bucket.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/other_bucket.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/palette_picker.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/palette_picker.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/palette_picker.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/palette_picker.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/palette_picker.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/palette_picker.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/palette_picker.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/palette_picker.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/percentile_ranks.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/percentile_ranks.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/percentile_ranks.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/percentile_ranks.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/percentiles.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/percentiles.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/percentiles.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/percentiles.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/percentiles.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/percentiles.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/percentiles.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/percentiles.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/radius_ratio_option.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/radius_ratio_option.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/radius_ratio_option.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/radius_ratio_option.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/range_control.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/range_control.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/range_control.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/range_control.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/ranges.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/ranges.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/ranges.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/ranges.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/raw_json.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/raw_json.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/raw_json.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/raw_json.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/rows_or_columns.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/rows_or_columns.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/rows_or_columns.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/rows_or_columns.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/scale_metrics.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/scale_metrics.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/scale_metrics.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/scale_metrics.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/size.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/size.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/size.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/size.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/size.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/size.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/size.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/size.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/string.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/string.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/string.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/string.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/sub_agg.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/sub_agg.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/sub_agg.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/sub_agg.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/sub_metric.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/sub_metric.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/sub_metric.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/sub_metric.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/switch.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/switch.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/switch.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/switch.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/test_utils.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/test_utils.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/test_utils.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/test_utils.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/time_interval.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/time_interval.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/time_interval.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/time_interval.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/time_interval.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/time_interval.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/time_interval.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/time_interval.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/top_aggregate.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/top_aggregate.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/top_aggregate.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/top_aggregate.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/top_aggregate.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/top_aggregate.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/top_aggregate.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/top_aggregate.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/top_field.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/top_field.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/top_field.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/top_field.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/top_size.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/top_size.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/top_size.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/top_size.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/top_sort_field.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/top_sort_field.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/top_sort_field.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/top_sort_field.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/utils/agg_utils.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/utils/agg_utils.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/utils/agg_utils.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/utils/agg_utils.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/utils/index.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/utils/index.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/utils/index.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/utils/index.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/utils/inline_comp_wrapper.tsx b/src/platform/plugins/private/vis_default_editor/public/components/controls/utils/inline_comp_wrapper.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/utils/inline_comp_wrapper.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/controls/utils/inline_comp_wrapper.tsx diff --git a/src/plugins/vis_default_editor/public/components/controls/utils/strings/comma_separated_list.test.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/utils/strings/comma_separated_list.test.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/utils/strings/comma_separated_list.test.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/utils/strings/comma_separated_list.test.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/utils/strings/comma_separated_list.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/utils/strings/comma_separated_list.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/utils/strings/comma_separated_list.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/utils/strings/comma_separated_list.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/utils/strings/index.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/utils/strings/index.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/utils/strings/index.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/utils/strings/index.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/utils/strings/prose.test.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/utils/strings/prose.test.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/utils/strings/prose.test.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/utils/strings/prose.test.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/utils/strings/prose.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/utils/strings/prose.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/utils/strings/prose.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/utils/strings/prose.ts diff --git a/src/plugins/vis_default_editor/public/components/controls/utils/use_handlers.ts b/src/platform/plugins/private/vis_default_editor/public/components/controls/utils/use_handlers.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/controls/utils/use_handlers.ts rename to src/platform/plugins/private/vis_default_editor/public/components/controls/utils/use_handlers.ts diff --git a/src/plugins/vis_default_editor/public/components/options/basic_options.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/basic_options.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/basic_options.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/basic_options.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/color_ranges.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/color_ranges.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/color_ranges.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/color_ranges.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/color_schema.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/color_schema.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/color_schema.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/color_schema.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/index.ts b/src/platform/plugins/private/vis_default_editor/public/components/options/index.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/index.ts rename to src/platform/plugins/private/vis_default_editor/public/components/options/index.ts diff --git a/src/plugins/vis_default_editor/public/components/options/legend_size_settings.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/legend_size_settings.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/legend_size_settings.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/legend_size_settings.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/legend_size_settings.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/legend_size_settings.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/legend_size_settings.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/legend_size_settings.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/long_legend_options.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/long_legend_options.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/long_legend_options.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/long_legend_options.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/long_legend_options.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/long_legend_options.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/long_legend_options.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/long_legend_options.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/number_input.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/number_input.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/number_input.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/number_input.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/percentage_mode.test.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/percentage_mode.test.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/percentage_mode.test.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/percentage_mode.test.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/percentage_mode.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/percentage_mode.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/percentage_mode.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/percentage_mode.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/range.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/range.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/range.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/range.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/required_number_input.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/required_number_input.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/required_number_input.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/required_number_input.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/select.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/select.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/select.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/select.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/switch.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/switch.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/switch.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/switch.tsx diff --git a/src/plugins/vis_default_editor/public/components/options/text_input.tsx b/src/platform/plugins/private/vis_default_editor/public/components/options/text_input.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/options/text_input.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/options/text_input.tsx diff --git a/src/plugins/vis_default_editor/public/components/sidebar/controls.tsx b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/controls.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/controls.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/controls.tsx diff --git a/src/plugins/vis_default_editor/public/components/sidebar/data_tab.tsx b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/data_tab.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/data_tab.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/data_tab.tsx diff --git a/src/plugins/vis_default_editor/public/components/sidebar/index.ts b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/index.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/index.ts rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/index.ts diff --git a/src/plugins/vis_default_editor/public/components/sidebar/navbar.tsx b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/navbar.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/navbar.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/navbar.tsx diff --git a/src/plugins/vis_default_editor/public/components/sidebar/sidebar.tsx b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/sidebar.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/sidebar.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/sidebar.tsx diff --git a/src/plugins/vis_default_editor/public/components/sidebar/sidebar_title.tsx b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/sidebar_title.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/sidebar_title.tsx rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/sidebar_title.tsx diff --git a/src/plugins/vis_default_editor/public/components/sidebar/state/actions.ts b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/state/actions.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/state/actions.ts rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/state/actions.ts diff --git a/src/plugins/vis_default_editor/public/components/sidebar/state/constants.ts b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/state/constants.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/state/constants.ts rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/state/constants.ts diff --git a/src/plugins/vis_default_editor/public/components/sidebar/state/editor_form_state.ts b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/state/editor_form_state.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/state/editor_form_state.ts rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/state/editor_form_state.ts diff --git a/src/plugins/vis_default_editor/public/components/sidebar/state/index.ts b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/state/index.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/state/index.ts rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/state/index.ts diff --git a/src/plugins/vis_default_editor/public/components/sidebar/state/reducers.ts b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/state/reducers.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/state/reducers.ts rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/state/reducers.ts diff --git a/src/plugins/vis_default_editor/public/components/sidebar/use_option_tabs.ts b/src/platform/plugins/private/vis_default_editor/public/components/sidebar/use_option_tabs.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/sidebar/use_option_tabs.ts rename to src/platform/plugins/private/vis_default_editor/public/components/sidebar/use_option_tabs.ts diff --git a/src/plugins/vis_default_editor/public/components/utils/editor_config.ts b/src/platform/plugins/private/vis_default_editor/public/components/utils/editor_config.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/utils/editor_config.ts rename to src/platform/plugins/private/vis_default_editor/public/components/utils/editor_config.ts diff --git a/src/plugins/vis_default_editor/public/components/utils/index.ts b/src/platform/plugins/private/vis_default_editor/public/components/utils/index.ts similarity index 100% rename from src/plugins/vis_default_editor/public/components/utils/index.ts rename to src/platform/plugins/private/vis_default_editor/public/components/utils/index.ts diff --git a/src/plugins/vis_default_editor/public/default_editor.tsx b/src/platform/plugins/private/vis_default_editor/public/default_editor.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/default_editor.tsx rename to src/platform/plugins/private/vis_default_editor/public/default_editor.tsx diff --git a/src/plugins/vis_default_editor/public/default_editor_controller.tsx b/src/platform/plugins/private/vis_default_editor/public/default_editor_controller.tsx similarity index 100% rename from src/plugins/vis_default_editor/public/default_editor_controller.tsx rename to src/platform/plugins/private/vis_default_editor/public/default_editor_controller.tsx diff --git a/src/plugins/vis_default_editor/public/editor_size.ts b/src/platform/plugins/private/vis_default_editor/public/editor_size.ts similarity index 100% rename from src/plugins/vis_default_editor/public/editor_size.ts rename to src/platform/plugins/private/vis_default_editor/public/editor_size.ts diff --git a/src/plugins/vis_default_editor/public/index.scss b/src/platform/plugins/private/vis_default_editor/public/index.scss similarity index 100% rename from src/plugins/vis_default_editor/public/index.scss rename to src/platform/plugins/private/vis_default_editor/public/index.scss diff --git a/src/plugins/vis_default_editor/public/index.ts b/src/platform/plugins/private/vis_default_editor/public/index.ts similarity index 100% rename from src/plugins/vis_default_editor/public/index.ts rename to src/platform/plugins/private/vis_default_editor/public/index.ts diff --git a/src/plugins/vis_default_editor/public/plugin.ts b/src/platform/plugins/private/vis_default_editor/public/plugin.ts similarity index 100% rename from src/plugins/vis_default_editor/public/plugin.ts rename to src/platform/plugins/private/vis_default_editor/public/plugin.ts diff --git a/src/plugins/vis_default_editor/public/schemas.ts b/src/platform/plugins/private/vis_default_editor/public/schemas.ts similarity index 100% rename from src/plugins/vis_default_editor/public/schemas.ts rename to src/platform/plugins/private/vis_default_editor/public/schemas.ts diff --git a/src/plugins/vis_default_editor/public/services.ts b/src/platform/plugins/private/vis_default_editor/public/services.ts similarity index 100% rename from src/plugins/vis_default_editor/public/services.ts rename to src/platform/plugins/private/vis_default_editor/public/services.ts diff --git a/src/plugins/vis_default_editor/public/types.ts b/src/platform/plugins/private/vis_default_editor/public/types.ts similarity index 100% rename from src/plugins/vis_default_editor/public/types.ts rename to src/platform/plugins/private/vis_default_editor/public/types.ts diff --git a/src/plugins/vis_default_editor/public/utils.test.ts b/src/platform/plugins/private/vis_default_editor/public/utils.test.ts similarity index 100% rename from src/plugins/vis_default_editor/public/utils.test.ts rename to src/platform/plugins/private/vis_default_editor/public/utils.test.ts diff --git a/src/plugins/vis_default_editor/public/utils.ts b/src/platform/plugins/private/vis_default_editor/public/utils.ts similarity index 100% rename from src/plugins/vis_default_editor/public/utils.ts rename to src/platform/plugins/private/vis_default_editor/public/utils.ts diff --git a/src/plugins/vis_default_editor/tsconfig.json b/src/platform/plugins/private/vis_default_editor/tsconfig.json similarity index 93% rename from src/plugins/vis_default_editor/tsconfig.json rename to src/platform/plugins/private/vis_default_editor/tsconfig.json index e3eef1bdcd326..df31f0b196ab6 100644 --- a/src/plugins/vis_default_editor/tsconfig.json +++ b/src/platform/plugins/private/vis_default_editor/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/vis_types/gauge/common/index.ts b/src/platform/plugins/private/vis_types/gauge/common/index.ts similarity index 100% rename from src/plugins/vis_types/gauge/common/index.ts rename to src/platform/plugins/private/vis_types/gauge/common/index.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/jest.config.js b/src/platform/plugins/private/vis_types/gauge/jest.config.js similarity index 67% rename from src/plugins/chart_expressions/expression_heatmap/jest.config.js rename to src/platform/plugins/private/vis_types/gauge/jest.config.js index f1424f95bf184..03e931c487cfa 100644 --- a/src/plugins/chart_expressions/expression_heatmap/jest.config.js +++ b/src/platform/plugins/private/vis_types/gauge/jest.config.js @@ -9,12 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../', - roots: ['/src/plugins/chart_expressions/expression_heatmap'], + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/private/vis_types/gauge'], coverageDirectory: - '/target/kibana-coverage/jest/src/plugins/chart_expressions/expression_heatmap', + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/gauge', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/chart_expressions/expression_heatmap/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/private/vis_types/gauge/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/vis_types/gauge/kibana.jsonc b/src/platform/plugins/private/vis_types/gauge/kibana.jsonc similarity index 100% rename from src/plugins/vis_types/gauge/kibana.jsonc rename to src/platform/plugins/private/vis_types/gauge/kibana.jsonc diff --git a/src/plugins/vis_types/gauge/public/__snapshots__/to_ast.test.ts.snap b/src/platform/plugins/private/vis_types/gauge/public/__snapshots__/to_ast.test.ts.snap similarity index 100% rename from src/plugins/vis_types/gauge/public/__snapshots__/to_ast.test.ts.snap rename to src/platform/plugins/private/vis_types/gauge/public/__snapshots__/to_ast.test.ts.snap diff --git a/src/plugins/vis_types/gauge/public/convert_to_lens/configurations/gauge.test.ts b/src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/configurations/gauge.test.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/convert_to_lens/configurations/gauge.test.ts rename to src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/configurations/gauge.test.ts diff --git a/src/plugins/vis_types/gauge/public/convert_to_lens/configurations/gauge.ts b/src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/configurations/gauge.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/convert_to_lens/configurations/gauge.ts rename to src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/configurations/gauge.ts diff --git a/src/plugins/vis_types/gauge/public/convert_to_lens/configurations/goal.test.ts b/src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/configurations/goal.test.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/convert_to_lens/configurations/goal.test.ts rename to src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/configurations/goal.test.ts diff --git a/src/plugins/vis_types/gauge/public/convert_to_lens/configurations/goal.ts b/src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/configurations/goal.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/convert_to_lens/configurations/goal.ts rename to src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/configurations/goal.ts diff --git a/src/plugins/vis_types/gauge/public/convert_to_lens/gauge.test.ts b/src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/gauge.test.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/convert_to_lens/gauge.test.ts rename to src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/gauge.test.ts diff --git a/src/plugins/vis_types/gauge/public/convert_to_lens/gauge.ts b/src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/gauge.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/convert_to_lens/gauge.ts rename to src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/gauge.ts diff --git a/src/plugins/vis_types/gauge/public/convert_to_lens/goal.test.ts b/src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/goal.test.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/convert_to_lens/goal.test.ts rename to src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/goal.test.ts diff --git a/src/plugins/vis_types/gauge/public/convert_to_lens/goal.ts b/src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/goal.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/convert_to_lens/goal.ts rename to src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/goal.ts diff --git a/src/plugins/vis_types/gauge/public/convert_to_lens/index.ts b/src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/index.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/convert_to_lens/index.ts rename to src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/index.ts diff --git a/src/plugins/vis_types/gauge/public/convert_to_lens/types.ts b/src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/types.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/convert_to_lens/types.ts rename to src/platform/plugins/private/vis_types/gauge/public/convert_to_lens/types.ts diff --git a/src/plugins/vis_types/gauge/public/editor/collections.ts b/src/platform/plugins/private/vis_types/gauge/public/editor/collections.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/editor/collections.ts rename to src/platform/plugins/private/vis_types/gauge/public/editor/collections.ts diff --git a/src/plugins/vis_types/gauge/public/editor/components/gauge/index.tsx b/src/platform/plugins/private/vis_types/gauge/public/editor/components/gauge/index.tsx similarity index 100% rename from src/plugins/vis_types/gauge/public/editor/components/gauge/index.tsx rename to src/platform/plugins/private/vis_types/gauge/public/editor/components/gauge/index.tsx diff --git a/src/plugins/vis_types/gauge/public/editor/components/gauge/labels_panel.tsx b/src/platform/plugins/private/vis_types/gauge/public/editor/components/gauge/labels_panel.tsx similarity index 100% rename from src/plugins/vis_types/gauge/public/editor/components/gauge/labels_panel.tsx rename to src/platform/plugins/private/vis_types/gauge/public/editor/components/gauge/labels_panel.tsx diff --git a/src/plugins/vis_types/gauge/public/editor/components/gauge/ranges_panel.tsx b/src/platform/plugins/private/vis_types/gauge/public/editor/components/gauge/ranges_panel.tsx similarity index 100% rename from src/plugins/vis_types/gauge/public/editor/components/gauge/ranges_panel.tsx rename to src/platform/plugins/private/vis_types/gauge/public/editor/components/gauge/ranges_panel.tsx diff --git a/src/plugins/vis_types/gauge/public/editor/components/gauge/style_panel.tsx b/src/platform/plugins/private/vis_types/gauge/public/editor/components/gauge/style_panel.tsx similarity index 100% rename from src/plugins/vis_types/gauge/public/editor/components/gauge/style_panel.tsx rename to src/platform/plugins/private/vis_types/gauge/public/editor/components/gauge/style_panel.tsx diff --git a/src/plugins/vis_types/gauge/public/editor/components/index.tsx b/src/platform/plugins/private/vis_types/gauge/public/editor/components/index.tsx similarity index 100% rename from src/plugins/vis_types/gauge/public/editor/components/index.tsx rename to src/platform/plugins/private/vis_types/gauge/public/editor/components/index.tsx diff --git a/src/plugins/vis_types/gauge/public/editor/index.ts b/src/platform/plugins/private/vis_types/gauge/public/editor/index.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/editor/index.ts rename to src/platform/plugins/private/vis_types/gauge/public/editor/index.ts diff --git a/src/plugins/vis_types/gauge/public/index.ts b/src/platform/plugins/private/vis_types/gauge/public/index.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/index.ts rename to src/platform/plugins/private/vis_types/gauge/public/index.ts diff --git a/src/plugins/vis_types/gauge/public/plugin.ts b/src/platform/plugins/private/vis_types/gauge/public/plugin.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/plugin.ts rename to src/platform/plugins/private/vis_types/gauge/public/plugin.ts diff --git a/src/plugins/vis_types/gauge/public/services.ts b/src/platform/plugins/private/vis_types/gauge/public/services.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/services.ts rename to src/platform/plugins/private/vis_types/gauge/public/services.ts diff --git a/src/plugins/vis_types/gauge/public/to_ast.test.ts b/src/platform/plugins/private/vis_types/gauge/public/to_ast.test.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/to_ast.test.ts rename to src/platform/plugins/private/vis_types/gauge/public/to_ast.test.ts diff --git a/src/plugins/vis_types/gauge/public/to_ast.ts b/src/platform/plugins/private/vis_types/gauge/public/to_ast.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/to_ast.ts rename to src/platform/plugins/private/vis_types/gauge/public/to_ast.ts diff --git a/src/plugins/vis_types/gauge/public/types.ts b/src/platform/plugins/private/vis_types/gauge/public/types.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/types.ts rename to src/platform/plugins/private/vis_types/gauge/public/types.ts diff --git a/src/plugins/vis_types/gauge/public/vis_type/gauge.tsx b/src/platform/plugins/private/vis_types/gauge/public/vis_type/gauge.tsx similarity index 100% rename from src/plugins/vis_types/gauge/public/vis_type/gauge.tsx rename to src/platform/plugins/private/vis_types/gauge/public/vis_type/gauge.tsx diff --git a/src/plugins/vis_types/gauge/public/vis_type/goal.tsx b/src/platform/plugins/private/vis_types/gauge/public/vis_type/goal.tsx similarity index 100% rename from src/plugins/vis_types/gauge/public/vis_type/goal.tsx rename to src/platform/plugins/private/vis_types/gauge/public/vis_type/goal.tsx diff --git a/src/plugins/vis_types/gauge/public/vis_type/index.ts b/src/platform/plugins/private/vis_types/gauge/public/vis_type/index.ts similarity index 100% rename from src/plugins/vis_types/gauge/public/vis_type/index.ts rename to src/platform/plugins/private/vis_types/gauge/public/vis_type/index.ts diff --git a/src/plugins/vis_types/gauge/public/vis_type/split_tooltip.tsx b/src/platform/plugins/private/vis_types/gauge/public/vis_type/split_tooltip.tsx similarity index 100% rename from src/plugins/vis_types/gauge/public/vis_type/split_tooltip.tsx rename to src/platform/plugins/private/vis_types/gauge/public/vis_type/split_tooltip.tsx diff --git a/src/plugins/vis_types/gauge/server/config.ts b/src/platform/plugins/private/vis_types/gauge/server/config.ts similarity index 100% rename from src/plugins/vis_types/gauge/server/config.ts rename to src/platform/plugins/private/vis_types/gauge/server/config.ts diff --git a/src/plugins/vis_types/gauge/server/index.ts b/src/platform/plugins/private/vis_types/gauge/server/index.ts similarity index 100% rename from src/plugins/vis_types/gauge/server/index.ts rename to src/platform/plugins/private/vis_types/gauge/server/index.ts diff --git a/src/plugins/vis_types/gauge/server/plugin.ts b/src/platform/plugins/private/vis_types/gauge/server/plugin.ts similarity index 100% rename from src/plugins/vis_types/gauge/server/plugin.ts rename to src/platform/plugins/private/vis_types/gauge/server/plugin.ts diff --git a/src/plugins/vis_types/gauge/tsconfig.json b/src/platform/plugins/private/vis_types/gauge/tsconfig.json similarity index 91% rename from src/plugins/vis_types/gauge/tsconfig.json rename to src/platform/plugins/private/vis_types/gauge/tsconfig.json index a892fe625ee43..b31e27b0cd8a8 100644 --- a/src/plugins/vis_types/gauge/tsconfig.json +++ b/src/platform/plugins/private/vis_types/gauge/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/vis_types/heatmap/common/index.ts b/src/platform/plugins/private/vis_types/heatmap/common/index.ts similarity index 100% rename from src/plugins/vis_types/heatmap/common/index.ts rename to src/platform/plugins/private/vis_types/heatmap/common/index.ts diff --git a/src/plugins/chart_expressions/expression_gauge/jest.config.js b/src/platform/plugins/private/vis_types/heatmap/jest.config.js similarity index 71% rename from src/plugins/chart_expressions/expression_gauge/jest.config.js rename to src/platform/plugins/private/vis_types/heatmap/jest.config.js index 7e8fc9b085e78..0b06b519839bd 100644 --- a/src/plugins/chart_expressions/expression_gauge/jest.config.js +++ b/src/platform/plugins/private/vis_types/heatmap/jest.config.js @@ -9,12 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../', - roots: ['/src/plugins/chart_expressions/expression_gauge'], + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/private/vis_types/heatmap'], coverageDirectory: - '/target/kibana-coverage/jest/src/plugins/chart_expressions/expression_gauge', + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/heatmap', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/chart_expressions/expression_gauge/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/private/vis_types/heatmap/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/vis_types/heatmap/kibana.jsonc b/src/platform/plugins/private/vis_types/heatmap/kibana.jsonc similarity index 100% rename from src/plugins/vis_types/heatmap/kibana.jsonc rename to src/platform/plugins/private/vis_types/heatmap/kibana.jsonc diff --git a/src/plugins/vis_types/heatmap/public/__snapshots__/to_ast.test.ts.snap b/src/platform/plugins/private/vis_types/heatmap/public/__snapshots__/to_ast.test.ts.snap similarity index 100% rename from src/plugins/vis_types/heatmap/public/__snapshots__/to_ast.test.ts.snap rename to src/platform/plugins/private/vis_types/heatmap/public/__snapshots__/to_ast.test.ts.snap diff --git a/src/plugins/vis_types/heatmap/public/convert_to_lens/configurations/index.test.ts b/src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/configurations/index.test.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/convert_to_lens/configurations/index.test.ts rename to src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/configurations/index.test.ts diff --git a/src/plugins/vis_types/heatmap/public/convert_to_lens/configurations/index.ts b/src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/configurations/index.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/convert_to_lens/configurations/index.ts rename to src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/configurations/index.ts diff --git a/src/plugins/vis_types/heatmap/public/convert_to_lens/configurations/palette.ts b/src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/configurations/palette.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/convert_to_lens/configurations/palette.ts rename to src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/configurations/palette.ts diff --git a/src/plugins/vis_types/heatmap/public/convert_to_lens/index.test.ts b/src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/index.test.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/convert_to_lens/index.test.ts rename to src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/index.test.ts diff --git a/src/plugins/vis_types/heatmap/public/convert_to_lens/index.ts b/src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/index.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/convert_to_lens/index.ts rename to src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/index.ts diff --git a/src/plugins/vis_types/heatmap/public/convert_to_lens/types.ts b/src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/types.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/convert_to_lens/types.ts rename to src/platform/plugins/private/vis_types/heatmap/public/convert_to_lens/types.ts diff --git a/src/plugins/vis_types/heatmap/public/editor/collections.ts b/src/platform/plugins/private/vis_types/heatmap/public/editor/collections.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/editor/collections.ts rename to src/platform/plugins/private/vis_types/heatmap/public/editor/collections.ts diff --git a/src/plugins/vis_types/heatmap/public/editor/components/heatmap.test.tsx b/src/platform/plugins/private/vis_types/heatmap/public/editor/components/heatmap.test.tsx similarity index 100% rename from src/plugins/vis_types/heatmap/public/editor/components/heatmap.test.tsx rename to src/platform/plugins/private/vis_types/heatmap/public/editor/components/heatmap.test.tsx diff --git a/src/plugins/vis_types/heatmap/public/editor/components/heatmap.tsx b/src/platform/plugins/private/vis_types/heatmap/public/editor/components/heatmap.tsx similarity index 100% rename from src/plugins/vis_types/heatmap/public/editor/components/heatmap.tsx rename to src/platform/plugins/private/vis_types/heatmap/public/editor/components/heatmap.tsx diff --git a/src/plugins/vis_types/heatmap/public/editor/components/index.tsx b/src/platform/plugins/private/vis_types/heatmap/public/editor/components/index.tsx similarity index 100% rename from src/plugins/vis_types/heatmap/public/editor/components/index.tsx rename to src/platform/plugins/private/vis_types/heatmap/public/editor/components/index.tsx diff --git a/src/plugins/vis_types/heatmap/public/editor/components/labels_panel.tsx b/src/platform/plugins/private/vis_types/heatmap/public/editor/components/labels_panel.tsx similarity index 100% rename from src/plugins/vis_types/heatmap/public/editor/components/labels_panel.tsx rename to src/platform/plugins/private/vis_types/heatmap/public/editor/components/labels_panel.tsx diff --git a/src/plugins/vis_types/heatmap/public/index.ts b/src/platform/plugins/private/vis_types/heatmap/public/index.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/index.ts rename to src/platform/plugins/private/vis_types/heatmap/public/index.ts diff --git a/src/plugins/vis_types/heatmap/public/plugin.ts b/src/platform/plugins/private/vis_types/heatmap/public/plugin.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/plugin.ts rename to src/platform/plugins/private/vis_types/heatmap/public/plugin.ts diff --git a/src/plugins/vis_types/heatmap/public/sample_vis.test.mocks.ts b/src/platform/plugins/private/vis_types/heatmap/public/sample_vis.test.mocks.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/sample_vis.test.mocks.ts rename to src/platform/plugins/private/vis_types/heatmap/public/sample_vis.test.mocks.ts diff --git a/src/plugins/vis_types/heatmap/public/services.ts b/src/platform/plugins/private/vis_types/heatmap/public/services.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/services.ts rename to src/platform/plugins/private/vis_types/heatmap/public/services.ts diff --git a/src/plugins/vis_types/heatmap/public/to_ast.test.ts b/src/platform/plugins/private/vis_types/heatmap/public/to_ast.test.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/to_ast.test.ts rename to src/platform/plugins/private/vis_types/heatmap/public/to_ast.test.ts diff --git a/src/plugins/vis_types/heatmap/public/to_ast.ts b/src/platform/plugins/private/vis_types/heatmap/public/to_ast.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/to_ast.ts rename to src/platform/plugins/private/vis_types/heatmap/public/to_ast.ts diff --git a/src/plugins/vis_types/heatmap/public/types.ts b/src/platform/plugins/private/vis_types/heatmap/public/types.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/types.ts rename to src/platform/plugins/private/vis_types/heatmap/public/types.ts diff --git a/src/plugins/vis_types/heatmap/public/utils/palette.test.ts b/src/platform/plugins/private/vis_types/heatmap/public/utils/palette.test.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/utils/palette.test.ts rename to src/platform/plugins/private/vis_types/heatmap/public/utils/palette.test.ts diff --git a/src/plugins/vis_types/heatmap/public/utils/palette.ts b/src/platform/plugins/private/vis_types/heatmap/public/utils/palette.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/utils/palette.ts rename to src/platform/plugins/private/vis_types/heatmap/public/utils/palette.ts diff --git a/src/plugins/vis_types/heatmap/public/vis_type/heatmap.ts b/src/platform/plugins/private/vis_types/heatmap/public/vis_type/heatmap.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/vis_type/heatmap.ts rename to src/platform/plugins/private/vis_types/heatmap/public/vis_type/heatmap.ts diff --git a/src/plugins/vis_types/heatmap/public/vis_type/index.ts b/src/platform/plugins/private/vis_types/heatmap/public/vis_type/index.ts similarity index 100% rename from src/plugins/vis_types/heatmap/public/vis_type/index.ts rename to src/platform/plugins/private/vis_types/heatmap/public/vis_type/index.ts diff --git a/src/plugins/vis_types/heatmap/server/config.ts b/src/platform/plugins/private/vis_types/heatmap/server/config.ts similarity index 100% rename from src/plugins/vis_types/heatmap/server/config.ts rename to src/platform/plugins/private/vis_types/heatmap/server/config.ts diff --git a/src/plugins/vis_types/heatmap/server/index.ts b/src/platform/plugins/private/vis_types/heatmap/server/index.ts similarity index 100% rename from src/plugins/vis_types/heatmap/server/index.ts rename to src/platform/plugins/private/vis_types/heatmap/server/index.ts diff --git a/src/plugins/vis_types/heatmap/server/plugin.ts b/src/platform/plugins/private/vis_types/heatmap/server/plugin.ts similarity index 100% rename from src/plugins/vis_types/heatmap/server/plugin.ts rename to src/platform/plugins/private/vis_types/heatmap/server/plugin.ts diff --git a/src/plugins/vis_types/heatmap/tsconfig.json b/src/platform/plugins/private/vis_types/heatmap/tsconfig.json similarity index 92% rename from src/plugins/vis_types/heatmap/tsconfig.json rename to src/platform/plugins/private/vis_types/heatmap/tsconfig.json index 8789fcba137f0..dc3f5a9acc84a 100644 --- a/src/plugins/vis_types/heatmap/tsconfig.json +++ b/src/platform/plugins/private/vis_types/heatmap/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/platform/plugins/private/vis_types/metric/jest.config.js b/src/platform/plugins/private/vis_types/metric/jest.config.js new file mode 100644 index 0000000000000..bc7b4f516395b --- /dev/null +++ b/src/platform/plugins/private/vis_types/metric/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/private/vis_types/metric'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/metric', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/metric/{public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/vis_types/metric/kibana.jsonc b/src/platform/plugins/private/vis_types/metric/kibana.jsonc similarity index 100% rename from src/plugins/vis_types/metric/kibana.jsonc rename to src/platform/plugins/private/vis_types/metric/kibana.jsonc diff --git a/src/plugins/vis_types/metric/public/__snapshots__/to_ast.test.ts.snap b/src/platform/plugins/private/vis_types/metric/public/__snapshots__/to_ast.test.ts.snap similarity index 100% rename from src/plugins/vis_types/metric/public/__snapshots__/to_ast.test.ts.snap rename to src/platform/plugins/private/vis_types/metric/public/__snapshots__/to_ast.test.ts.snap diff --git a/src/plugins/vis_types/metric/public/components/index.ts b/src/platform/plugins/private/vis_types/metric/public/components/index.ts similarity index 100% rename from src/plugins/vis_types/metric/public/components/index.ts rename to src/platform/plugins/private/vis_types/metric/public/components/index.ts diff --git a/src/plugins/vis_types/metric/public/components/metric_vis_options.tsx b/src/platform/plugins/private/vis_types/metric/public/components/metric_vis_options.tsx similarity index 100% rename from src/plugins/vis_types/metric/public/components/metric_vis_options.tsx rename to src/platform/plugins/private/vis_types/metric/public/components/metric_vis_options.tsx diff --git a/src/plugins/vis_types/metric/public/convert_to_lens/configurations/index.test.ts b/src/platform/plugins/private/vis_types/metric/public/convert_to_lens/configurations/index.test.ts similarity index 100% rename from src/plugins/vis_types/metric/public/convert_to_lens/configurations/index.test.ts rename to src/platform/plugins/private/vis_types/metric/public/convert_to_lens/configurations/index.test.ts diff --git a/src/plugins/vis_types/metric/public/convert_to_lens/configurations/index.ts b/src/platform/plugins/private/vis_types/metric/public/convert_to_lens/configurations/index.ts similarity index 100% rename from src/plugins/vis_types/metric/public/convert_to_lens/configurations/index.ts rename to src/platform/plugins/private/vis_types/metric/public/convert_to_lens/configurations/index.ts diff --git a/src/plugins/vis_types/metric/public/convert_to_lens/index.test.ts b/src/platform/plugins/private/vis_types/metric/public/convert_to_lens/index.test.ts similarity index 100% rename from src/plugins/vis_types/metric/public/convert_to_lens/index.test.ts rename to src/platform/plugins/private/vis_types/metric/public/convert_to_lens/index.test.ts diff --git a/src/plugins/vis_types/metric/public/convert_to_lens/index.ts b/src/platform/plugins/private/vis_types/metric/public/convert_to_lens/index.ts similarity index 100% rename from src/plugins/vis_types/metric/public/convert_to_lens/index.ts rename to src/platform/plugins/private/vis_types/metric/public/convert_to_lens/index.ts diff --git a/src/plugins/vis_types/metric/public/convert_to_lens/types.ts b/src/platform/plugins/private/vis_types/metric/public/convert_to_lens/types.ts similarity index 100% rename from src/plugins/vis_types/metric/public/convert_to_lens/types.ts rename to src/platform/plugins/private/vis_types/metric/public/convert_to_lens/types.ts diff --git a/src/plugins/vis_types/metric/public/index.ts b/src/platform/plugins/private/vis_types/metric/public/index.ts similarity index 100% rename from src/plugins/vis_types/metric/public/index.ts rename to src/platform/plugins/private/vis_types/metric/public/index.ts diff --git a/src/plugins/vis_types/metric/public/metric_vis_type.ts b/src/platform/plugins/private/vis_types/metric/public/metric_vis_type.ts similarity index 100% rename from src/plugins/vis_types/metric/public/metric_vis_type.ts rename to src/platform/plugins/private/vis_types/metric/public/metric_vis_type.ts diff --git a/src/plugins/vis_types/metric/public/plugin.ts b/src/platform/plugins/private/vis_types/metric/public/plugin.ts similarity index 100% rename from src/plugins/vis_types/metric/public/plugin.ts rename to src/platform/plugins/private/vis_types/metric/public/plugin.ts diff --git a/src/plugins/vis_types/metric/public/services.ts b/src/platform/plugins/private/vis_types/metric/public/services.ts similarity index 100% rename from src/plugins/vis_types/metric/public/services.ts rename to src/platform/plugins/private/vis_types/metric/public/services.ts diff --git a/src/plugins/vis_types/metric/public/to_ast.test.ts b/src/platform/plugins/private/vis_types/metric/public/to_ast.test.ts similarity index 100% rename from src/plugins/vis_types/metric/public/to_ast.test.ts rename to src/platform/plugins/private/vis_types/metric/public/to_ast.test.ts diff --git a/src/plugins/vis_types/metric/public/to_ast.ts b/src/platform/plugins/private/vis_types/metric/public/to_ast.ts similarity index 100% rename from src/plugins/vis_types/metric/public/to_ast.ts rename to src/platform/plugins/private/vis_types/metric/public/to_ast.ts diff --git a/src/plugins/vis_types/metric/public/types.ts b/src/platform/plugins/private/vis_types/metric/public/types.ts similarity index 100% rename from src/plugins/vis_types/metric/public/types.ts rename to src/platform/plugins/private/vis_types/metric/public/types.ts diff --git a/src/plugins/vis_types/metric/server/config.ts b/src/platform/plugins/private/vis_types/metric/server/config.ts similarity index 100% rename from src/plugins/vis_types/metric/server/config.ts rename to src/platform/plugins/private/vis_types/metric/server/config.ts diff --git a/src/plugins/vis_types/metric/server/index.ts b/src/platform/plugins/private/vis_types/metric/server/index.ts similarity index 100% rename from src/plugins/vis_types/metric/server/index.ts rename to src/platform/plugins/private/vis_types/metric/server/index.ts diff --git a/src/plugins/vis_types/metric/tsconfig.json b/src/platform/plugins/private/vis_types/metric/tsconfig.json similarity index 90% rename from src/plugins/vis_types/metric/tsconfig.json rename to src/platform/plugins/private/vis_types/metric/tsconfig.json index 4b6f5c5df812e..31ff681d1129a 100644 --- a/src/plugins/vis_types/metric/tsconfig.json +++ b/src/platform/plugins/private/vis_types/metric/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/vis_types/pie/common/index.ts b/src/platform/plugins/private/vis_types/pie/common/index.ts similarity index 100% rename from src/plugins/vis_types/pie/common/index.ts rename to src/platform/plugins/private/vis_types/pie/common/index.ts diff --git a/src/platform/plugins/private/vis_types/pie/jest.config.js b/src/platform/plugins/private/vis_types/pie/jest.config.js new file mode 100644 index 0000000000000..55d69a830a1e7 --- /dev/null +++ b/src/platform/plugins/private/vis_types/pie/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/private/vis_types/pie'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/pie', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/pie/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/vis_types/pie/kibana.jsonc b/src/platform/plugins/private/vis_types/pie/kibana.jsonc similarity index 100% rename from src/plugins/vis_types/pie/kibana.jsonc rename to src/platform/plugins/private/vis_types/pie/kibana.jsonc diff --git a/src/plugins/vis_types/pie/public/__snapshots__/to_ast.test.ts.snap b/src/platform/plugins/private/vis_types/pie/public/__snapshots__/to_ast.test.ts.snap similarity index 100% rename from src/plugins/vis_types/pie/public/__snapshots__/to_ast.test.ts.snap rename to src/platform/plugins/private/vis_types/pie/public/__snapshots__/to_ast.test.ts.snap diff --git a/src/plugins/vis_types/pie/public/convert_to_lens/configurations/index.test.ts b/src/platform/plugins/private/vis_types/pie/public/convert_to_lens/configurations/index.test.ts similarity index 100% rename from src/plugins/vis_types/pie/public/convert_to_lens/configurations/index.test.ts rename to src/platform/plugins/private/vis_types/pie/public/convert_to_lens/configurations/index.test.ts diff --git a/src/plugins/vis_types/pie/public/convert_to_lens/configurations/index.ts b/src/platform/plugins/private/vis_types/pie/public/convert_to_lens/configurations/index.ts similarity index 100% rename from src/plugins/vis_types/pie/public/convert_to_lens/configurations/index.ts rename to src/platform/plugins/private/vis_types/pie/public/convert_to_lens/configurations/index.ts diff --git a/src/plugins/vis_types/pie/public/convert_to_lens/index.test.ts b/src/platform/plugins/private/vis_types/pie/public/convert_to_lens/index.test.ts similarity index 100% rename from src/plugins/vis_types/pie/public/convert_to_lens/index.test.ts rename to src/platform/plugins/private/vis_types/pie/public/convert_to_lens/index.test.ts diff --git a/src/plugins/vis_types/pie/public/convert_to_lens/index.ts b/src/platform/plugins/private/vis_types/pie/public/convert_to_lens/index.ts similarity index 100% rename from src/plugins/vis_types/pie/public/convert_to_lens/index.ts rename to src/platform/plugins/private/vis_types/pie/public/convert_to_lens/index.ts diff --git a/src/plugins/vis_types/pie/public/convert_to_lens/types.ts b/src/platform/plugins/private/vis_types/pie/public/convert_to_lens/types.ts similarity index 100% rename from src/plugins/vis_types/pie/public/convert_to_lens/types.ts rename to src/platform/plugins/private/vis_types/pie/public/convert_to_lens/types.ts diff --git a/src/plugins/vis_types/pie/public/editor/collections.ts b/src/platform/plugins/private/vis_types/pie/public/editor/collections.ts similarity index 100% rename from src/plugins/vis_types/pie/public/editor/collections.ts rename to src/platform/plugins/private/vis_types/pie/public/editor/collections.ts diff --git a/src/plugins/vis_types/pie/public/editor/components/index.tsx b/src/platform/plugins/private/vis_types/pie/public/editor/components/index.tsx similarity index 100% rename from src/plugins/vis_types/pie/public/editor/components/index.tsx rename to src/platform/plugins/private/vis_types/pie/public/editor/components/index.tsx diff --git a/src/plugins/vis_types/pie/public/editor/components/pie.test.tsx b/src/platform/plugins/private/vis_types/pie/public/editor/components/pie.test.tsx similarity index 100% rename from src/plugins/vis_types/pie/public/editor/components/pie.test.tsx rename to src/platform/plugins/private/vis_types/pie/public/editor/components/pie.test.tsx diff --git a/src/plugins/vis_types/pie/public/editor/components/pie.tsx b/src/platform/plugins/private/vis_types/pie/public/editor/components/pie.tsx similarity index 100% rename from src/plugins/vis_types/pie/public/editor/components/pie.tsx rename to src/platform/plugins/private/vis_types/pie/public/editor/components/pie.tsx diff --git a/src/plugins/vis_types/pie/public/editor/components/truncate_labels.test.tsx b/src/platform/plugins/private/vis_types/pie/public/editor/components/truncate_labels.test.tsx similarity index 100% rename from src/plugins/vis_types/pie/public/editor/components/truncate_labels.test.tsx rename to src/platform/plugins/private/vis_types/pie/public/editor/components/truncate_labels.test.tsx diff --git a/src/plugins/vis_types/pie/public/editor/components/truncate_labels.tsx b/src/platform/plugins/private/vis_types/pie/public/editor/components/truncate_labels.tsx similarity index 100% rename from src/plugins/vis_types/pie/public/editor/components/truncate_labels.tsx rename to src/platform/plugins/private/vis_types/pie/public/editor/components/truncate_labels.tsx diff --git a/src/plugins/vis_types/pie/public/editor/positions.ts b/src/platform/plugins/private/vis_types/pie/public/editor/positions.ts similarity index 100% rename from src/plugins/vis_types/pie/public/editor/positions.ts rename to src/platform/plugins/private/vis_types/pie/public/editor/positions.ts diff --git a/src/plugins/vis_types/pie/public/index.ts b/src/platform/plugins/private/vis_types/pie/public/index.ts similarity index 100% rename from src/plugins/vis_types/pie/public/index.ts rename to src/platform/plugins/private/vis_types/pie/public/index.ts diff --git a/src/plugins/vis_types/pie/public/plugin.ts b/src/platform/plugins/private/vis_types/pie/public/plugin.ts similarity index 100% rename from src/plugins/vis_types/pie/public/plugin.ts rename to src/platform/plugins/private/vis_types/pie/public/plugin.ts diff --git a/src/plugins/vis_types/pie/public/sample_vis.test.mocks.ts b/src/platform/plugins/private/vis_types/pie/public/sample_vis.test.mocks.ts similarity index 100% rename from src/plugins/vis_types/pie/public/sample_vis.test.mocks.ts rename to src/platform/plugins/private/vis_types/pie/public/sample_vis.test.mocks.ts diff --git a/src/plugins/vis_types/pie/public/services.ts b/src/platform/plugins/private/vis_types/pie/public/services.ts similarity index 100% rename from src/plugins/vis_types/pie/public/services.ts rename to src/platform/plugins/private/vis_types/pie/public/services.ts diff --git a/src/plugins/vis_types/pie/public/to_ast.test.ts b/src/platform/plugins/private/vis_types/pie/public/to_ast.test.ts similarity index 100% rename from src/plugins/vis_types/pie/public/to_ast.test.ts rename to src/platform/plugins/private/vis_types/pie/public/to_ast.test.ts diff --git a/src/plugins/vis_types/pie/public/to_ast.ts b/src/platform/plugins/private/vis_types/pie/public/to_ast.ts similarity index 100% rename from src/plugins/vis_types/pie/public/to_ast.ts rename to src/platform/plugins/private/vis_types/pie/public/to_ast.ts diff --git a/src/plugins/data/common/search/strategies/eql_search/index.ts b/src/platform/plugins/private/vis_types/pie/public/types/index.ts similarity index 100% rename from src/plugins/data/common/search/strategies/eql_search/index.ts rename to src/platform/plugins/private/vis_types/pie/public/types/index.ts diff --git a/src/plugins/vis_types/pie/public/types/types.ts b/src/platform/plugins/private/vis_types/pie/public/types/types.ts similarity index 100% rename from src/plugins/vis_types/pie/public/types/types.ts rename to src/platform/plugins/private/vis_types/pie/public/types/types.ts diff --git a/src/plugins/vis_types/pie/public/vis_type/index.ts b/src/platform/plugins/private/vis_types/pie/public/vis_type/index.ts similarity index 100% rename from src/plugins/vis_types/pie/public/vis_type/index.ts rename to src/platform/plugins/private/vis_types/pie/public/vis_type/index.ts diff --git a/src/plugins/vis_types/pie/public/vis_type/pie.ts b/src/platform/plugins/private/vis_types/pie/public/vis_type/pie.ts similarity index 100% rename from src/plugins/vis_types/pie/public/vis_type/pie.ts rename to src/platform/plugins/private/vis_types/pie/public/vis_type/pie.ts diff --git a/src/plugins/vis_types/pie/server/config.ts b/src/platform/plugins/private/vis_types/pie/server/config.ts similarity index 100% rename from src/plugins/vis_types/pie/server/config.ts rename to src/platform/plugins/private/vis_types/pie/server/config.ts diff --git a/src/plugins/vis_types/pie/server/index.ts b/src/platform/plugins/private/vis_types/pie/server/index.ts similarity index 100% rename from src/plugins/vis_types/pie/server/index.ts rename to src/platform/plugins/private/vis_types/pie/server/index.ts diff --git a/src/plugins/vis_types/pie/server/plugin.ts b/src/platform/plugins/private/vis_types/pie/server/plugin.ts similarity index 100% rename from src/plugins/vis_types/pie/server/plugin.ts rename to src/platform/plugins/private/vis_types/pie/server/plugin.ts diff --git a/src/plugins/vis_types/pie/tsconfig.json b/src/platform/plugins/private/vis_types/pie/tsconfig.json similarity index 92% rename from src/plugins/vis_types/pie/tsconfig.json rename to src/platform/plugins/private/vis_types/pie/tsconfig.json index 97d652a38bbb7..b9550f8e53bf6 100644 --- a/src/plugins/vis_types/pie/tsconfig.json +++ b/src/platform/plugins/private/vis_types/pie/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/vis_types/table/README.md b/src/platform/plugins/private/vis_types/table/README.md similarity index 100% rename from src/plugins/vis_types/table/README.md rename to src/platform/plugins/private/vis_types/table/README.md diff --git a/src/plugins/vis_types/table/common/index.ts b/src/platform/plugins/private/vis_types/table/common/index.ts similarity index 100% rename from src/plugins/vis_types/table/common/index.ts rename to src/platform/plugins/private/vis_types/table/common/index.ts diff --git a/src/plugins/vis_types/table/common/types.ts b/src/platform/plugins/private/vis_types/table/common/types.ts similarity index 100% rename from src/plugins/vis_types/table/common/types.ts rename to src/platform/plugins/private/vis_types/table/common/types.ts diff --git a/src/platform/plugins/private/vis_types/table/jest.config.js b/src/platform/plugins/private/vis_types/table/jest.config.js new file mode 100644 index 0000000000000..5fa8fc0c3297c --- /dev/null +++ b/src/platform/plugins/private/vis_types/table/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/private/vis_types/table'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/table', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/table/{common,public,server}/**/*.{js,ts,tsx}', + ], +}; diff --git a/src/plugins/vis_types/table/kibana.jsonc b/src/platform/plugins/private/vis_types/table/kibana.jsonc similarity index 100% rename from src/plugins/vis_types/table/kibana.jsonc rename to src/platform/plugins/private/vis_types/table/kibana.jsonc diff --git a/src/plugins/vis_types/table/public/__snapshots__/table_vis_fn.test.ts.snap b/src/platform/plugins/private/vis_types/table/public/__snapshots__/table_vis_fn.test.ts.snap similarity index 100% rename from src/plugins/vis_types/table/public/__snapshots__/table_vis_fn.test.ts.snap rename to src/platform/plugins/private/vis_types/table/public/__snapshots__/table_vis_fn.test.ts.snap diff --git a/src/plugins/vis_types/table/public/components/__snapshots__/table_vis_basic.test.tsx.snap b/src/platform/plugins/private/vis_types/table/public/components/__snapshots__/table_vis_basic.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/table/public/components/__snapshots__/table_vis_basic.test.tsx.snap rename to src/platform/plugins/private/vis_types/table/public/components/__snapshots__/table_vis_basic.test.tsx.snap diff --git a/src/plugins/vis_types/table/public/components/__snapshots__/table_vis_cell.test.tsx.snap b/src/platform/plugins/private/vis_types/table/public/components/__snapshots__/table_vis_cell.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/table/public/components/__snapshots__/table_vis_cell.test.tsx.snap rename to src/platform/plugins/private/vis_types/table/public/components/__snapshots__/table_vis_cell.test.tsx.snap diff --git a/src/plugins/vis_types/table/public/components/index.ts b/src/platform/plugins/private/vis_types/table/public/components/index.ts similarity index 100% rename from src/plugins/vis_types/table/public/components/index.ts rename to src/platform/plugins/private/vis_types/table/public/components/index.ts diff --git a/src/plugins/vis_types/table/public/components/table_vis_basic.test.tsx b/src/platform/plugins/private/vis_types/table/public/components/table_vis_basic.test.tsx similarity index 100% rename from src/plugins/vis_types/table/public/components/table_vis_basic.test.tsx rename to src/platform/plugins/private/vis_types/table/public/components/table_vis_basic.test.tsx diff --git a/src/plugins/vis_types/table/public/components/table_vis_basic.tsx b/src/platform/plugins/private/vis_types/table/public/components/table_vis_basic.tsx similarity index 100% rename from src/plugins/vis_types/table/public/components/table_vis_basic.tsx rename to src/platform/plugins/private/vis_types/table/public/components/table_vis_basic.tsx diff --git a/src/plugins/vis_types/table/public/components/table_vis_cell.test.tsx b/src/platform/plugins/private/vis_types/table/public/components/table_vis_cell.test.tsx similarity index 100% rename from src/plugins/vis_types/table/public/components/table_vis_cell.test.tsx rename to src/platform/plugins/private/vis_types/table/public/components/table_vis_cell.test.tsx diff --git a/src/plugins/vis_types/table/public/components/table_vis_cell.tsx b/src/platform/plugins/private/vis_types/table/public/components/table_vis_cell.tsx similarity index 100% rename from src/plugins/vis_types/table/public/components/table_vis_cell.tsx rename to src/platform/plugins/private/vis_types/table/public/components/table_vis_cell.tsx diff --git a/src/plugins/vis_types/table/public/components/table_vis_columns.tsx b/src/platform/plugins/private/vis_types/table/public/components/table_vis_columns.tsx similarity index 100% rename from src/plugins/vis_types/table/public/components/table_vis_columns.tsx rename to src/platform/plugins/private/vis_types/table/public/components/table_vis_columns.tsx diff --git a/src/plugins/vis_types/table/public/components/table_vis_controls.tsx b/src/platform/plugins/private/vis_types/table/public/components/table_vis_controls.tsx similarity index 100% rename from src/plugins/vis_types/table/public/components/table_vis_controls.tsx rename to src/platform/plugins/private/vis_types/table/public/components/table_vis_controls.tsx diff --git a/src/plugins/vis_types/table/public/components/table_vis_options.tsx b/src/platform/plugins/private/vis_types/table/public/components/table_vis_options.tsx similarity index 100% rename from src/plugins/vis_types/table/public/components/table_vis_options.tsx rename to src/platform/plugins/private/vis_types/table/public/components/table_vis_options.tsx diff --git a/src/plugins/vis_types/table/public/components/table_vis_options_lazy.tsx b/src/platform/plugins/private/vis_types/table/public/components/table_vis_options_lazy.tsx similarity index 100% rename from src/plugins/vis_types/table/public/components/table_vis_options_lazy.tsx rename to src/platform/plugins/private/vis_types/table/public/components/table_vis_options_lazy.tsx diff --git a/src/plugins/vis_types/table/public/components/table_vis_split.tsx b/src/platform/plugins/private/vis_types/table/public/components/table_vis_split.tsx similarity index 100% rename from src/plugins/vis_types/table/public/components/table_vis_split.tsx rename to src/platform/plugins/private/vis_types/table/public/components/table_vis_split.tsx diff --git a/src/plugins/vis_types/table/public/components/table_visualization.scss b/src/platform/plugins/private/vis_types/table/public/components/table_visualization.scss similarity index 100% rename from src/plugins/vis_types/table/public/components/table_visualization.scss rename to src/platform/plugins/private/vis_types/table/public/components/table_visualization.scss diff --git a/src/plugins/vis_types/table/public/components/table_visualization.test.tsx b/src/platform/plugins/private/vis_types/table/public/components/table_visualization.test.tsx similarity index 100% rename from src/plugins/vis_types/table/public/components/table_visualization.test.tsx rename to src/platform/plugins/private/vis_types/table/public/components/table_visualization.test.tsx diff --git a/src/plugins/vis_types/table/public/components/table_visualization.tsx b/src/platform/plugins/private/vis_types/table/public/components/table_visualization.tsx similarity index 100% rename from src/plugins/vis_types/table/public/components/table_visualization.tsx rename to src/platform/plugins/private/vis_types/table/public/components/table_visualization.tsx diff --git a/src/plugins/vis_types/table/public/components/utils.test.ts b/src/platform/plugins/private/vis_types/table/public/components/utils.test.ts similarity index 100% rename from src/plugins/vis_types/table/public/components/utils.test.ts rename to src/platform/plugins/private/vis_types/table/public/components/utils.test.ts diff --git a/src/plugins/vis_types/table/public/components/utils.ts b/src/platform/plugins/private/vis_types/table/public/components/utils.ts similarity index 100% rename from src/plugins/vis_types/table/public/components/utils.ts rename to src/platform/plugins/private/vis_types/table/public/components/utils.ts diff --git a/src/plugins/vis_types/table/public/convert_to_lens/configurations/index.test.ts b/src/platform/plugins/private/vis_types/table/public/convert_to_lens/configurations/index.test.ts similarity index 100% rename from src/plugins/vis_types/table/public/convert_to_lens/configurations/index.test.ts rename to src/platform/plugins/private/vis_types/table/public/convert_to_lens/configurations/index.test.ts diff --git a/src/plugins/vis_types/table/public/convert_to_lens/configurations/index.ts b/src/platform/plugins/private/vis_types/table/public/convert_to_lens/configurations/index.ts similarity index 100% rename from src/plugins/vis_types/table/public/convert_to_lens/configurations/index.ts rename to src/platform/plugins/private/vis_types/table/public/convert_to_lens/configurations/index.ts diff --git a/src/plugins/vis_types/table/public/convert_to_lens/index.test.ts b/src/platform/plugins/private/vis_types/table/public/convert_to_lens/index.test.ts similarity index 100% rename from src/plugins/vis_types/table/public/convert_to_lens/index.test.ts rename to src/platform/plugins/private/vis_types/table/public/convert_to_lens/index.test.ts diff --git a/src/plugins/vis_types/table/public/convert_to_lens/index.ts b/src/platform/plugins/private/vis_types/table/public/convert_to_lens/index.ts similarity index 100% rename from src/plugins/vis_types/table/public/convert_to_lens/index.ts rename to src/platform/plugins/private/vis_types/table/public/convert_to_lens/index.ts diff --git a/src/plugins/vis_types/table/public/convert_to_lens/types.ts b/src/platform/plugins/private/vis_types/table/public/convert_to_lens/types.ts similarity index 100% rename from src/plugins/vis_types/table/public/convert_to_lens/types.ts rename to src/platform/plugins/private/vis_types/table/public/convert_to_lens/types.ts diff --git a/src/plugins/vis_types/table/public/index.ts b/src/platform/plugins/private/vis_types/table/public/index.ts similarity index 100% rename from src/plugins/vis_types/table/public/index.ts rename to src/platform/plugins/private/vis_types/table/public/index.ts diff --git a/src/plugins/vis_types/table/public/plugin.ts b/src/platform/plugins/private/vis_types/table/public/plugin.ts similarity index 100% rename from src/plugins/vis_types/table/public/plugin.ts rename to src/platform/plugins/private/vis_types/table/public/plugin.ts diff --git a/src/plugins/vis_types/table/public/register_vis.ts b/src/platform/plugins/private/vis_types/table/public/register_vis.ts similarity index 100% rename from src/plugins/vis_types/table/public/register_vis.ts rename to src/platform/plugins/private/vis_types/table/public/register_vis.ts diff --git a/src/plugins/vis_types/table/public/services.ts b/src/platform/plugins/private/vis_types/table/public/services.ts similarity index 100% rename from src/plugins/vis_types/table/public/services.ts rename to src/platform/plugins/private/vis_types/table/public/services.ts diff --git a/src/plugins/vis_types/table/public/table_vis_fn.test.ts b/src/platform/plugins/private/vis_types/table/public/table_vis_fn.test.ts similarity index 100% rename from src/plugins/vis_types/table/public/table_vis_fn.test.ts rename to src/platform/plugins/private/vis_types/table/public/table_vis_fn.test.ts diff --git a/src/plugins/vis_types/table/public/table_vis_fn.ts b/src/platform/plugins/private/vis_types/table/public/table_vis_fn.ts similarity index 100% rename from src/plugins/vis_types/table/public/table_vis_fn.ts rename to src/platform/plugins/private/vis_types/table/public/table_vis_fn.ts diff --git a/src/plugins/vis_types/table/public/table_vis_renderer.tsx b/src/platform/plugins/private/vis_types/table/public/table_vis_renderer.tsx similarity index 100% rename from src/plugins/vis_types/table/public/table_vis_renderer.tsx rename to src/platform/plugins/private/vis_types/table/public/table_vis_renderer.tsx diff --git a/src/plugins/vis_types/table/public/table_vis_type.ts b/src/platform/plugins/private/vis_types/table/public/table_vis_type.ts similarity index 100% rename from src/plugins/vis_types/table/public/table_vis_type.ts rename to src/platform/plugins/private/vis_types/table/public/table_vis_type.ts diff --git a/src/plugins/vis_types/table/public/to_ast.test.ts b/src/platform/plugins/private/vis_types/table/public/to_ast.test.ts similarity index 100% rename from src/plugins/vis_types/table/public/to_ast.test.ts rename to src/platform/plugins/private/vis_types/table/public/to_ast.test.ts diff --git a/src/plugins/vis_types/table/public/to_ast.ts b/src/platform/plugins/private/vis_types/table/public/to_ast.ts similarity index 100% rename from src/plugins/vis_types/table/public/to_ast.ts rename to src/platform/plugins/private/vis_types/table/public/to_ast.ts diff --git a/src/plugins/vis_types/table/public/types.ts b/src/platform/plugins/private/vis_types/table/public/types.ts similarity index 100% rename from src/plugins/vis_types/table/public/types.ts rename to src/platform/plugins/private/vis_types/table/public/types.ts diff --git a/src/plugins/vis_types/table/public/utils/add_percentage_column.test.ts b/src/platform/plugins/private/vis_types/table/public/utils/add_percentage_column.test.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/add_percentage_column.test.ts rename to src/platform/plugins/private/vis_types/table/public/utils/add_percentage_column.test.ts diff --git a/src/plugins/vis_types/table/public/utils/add_percentage_column.ts b/src/platform/plugins/private/vis_types/table/public/utils/add_percentage_column.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/add_percentage_column.ts rename to src/platform/plugins/private/vis_types/table/public/utils/add_percentage_column.ts diff --git a/src/plugins/vis_types/table/public/utils/create_formatted_table.test.ts b/src/platform/plugins/private/vis_types/table/public/utils/create_formatted_table.test.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/create_formatted_table.test.ts rename to src/platform/plugins/private/vis_types/table/public/utils/create_formatted_table.test.ts diff --git a/src/plugins/vis_types/table/public/utils/create_formatted_table.ts b/src/platform/plugins/private/vis_types/table/public/utils/create_formatted_table.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/create_formatted_table.ts rename to src/platform/plugins/private/vis_types/table/public/utils/create_formatted_table.ts diff --git a/src/plugins/vis_types/table/public/utils/index.ts b/src/platform/plugins/private/vis_types/table/public/utils/index.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/index.ts rename to src/platform/plugins/private/vis_types/table/public/utils/index.ts diff --git a/src/plugins/vis_types/table/public/utils/table_vis_response_handler.test.ts b/src/platform/plugins/private/vis_types/table/public/utils/table_vis_response_handler.test.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/table_vis_response_handler.test.ts rename to src/platform/plugins/private/vis_types/table/public/utils/table_vis_response_handler.test.ts diff --git a/src/plugins/vis_types/table/public/utils/table_vis_response_handler.ts b/src/platform/plugins/private/vis_types/table/public/utils/table_vis_response_handler.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/table_vis_response_handler.ts rename to src/platform/plugins/private/vis_types/table/public/utils/table_vis_response_handler.ts diff --git a/src/plugins/vis_types/table/public/utils/use/index.ts b/src/platform/plugins/private/vis_types/table/public/utils/use/index.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/use/index.ts rename to src/platform/plugins/private/vis_types/table/public/utils/use/index.ts diff --git a/src/plugins/vis_types/table/public/utils/use/use_pagination.test.ts b/src/platform/plugins/private/vis_types/table/public/utils/use/use_pagination.test.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/use/use_pagination.test.ts rename to src/platform/plugins/private/vis_types/table/public/utils/use/use_pagination.test.ts diff --git a/src/plugins/vis_types/table/public/utils/use/use_pagination.ts b/src/platform/plugins/private/vis_types/table/public/utils/use/use_pagination.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/use/use_pagination.ts rename to src/platform/plugins/private/vis_types/table/public/utils/use/use_pagination.ts diff --git a/src/plugins/vis_types/table/public/utils/use/use_ui_state.test.ts b/src/platform/plugins/private/vis_types/table/public/utils/use/use_ui_state.test.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/use/use_ui_state.test.ts rename to src/platform/plugins/private/vis_types/table/public/utils/use/use_ui_state.test.ts diff --git a/src/plugins/vis_types/table/public/utils/use/use_ui_state.ts b/src/platform/plugins/private/vis_types/table/public/utils/use/use_ui_state.ts similarity index 100% rename from src/plugins/vis_types/table/public/utils/use/use_ui_state.ts rename to src/platform/plugins/private/vis_types/table/public/utils/use/use_ui_state.ts diff --git a/src/plugins/vis_types/table/server/config.ts b/src/platform/plugins/private/vis_types/table/server/config.ts similarity index 100% rename from src/plugins/vis_types/table/server/config.ts rename to src/platform/plugins/private/vis_types/table/server/config.ts diff --git a/src/plugins/vis_types/table/server/index.ts b/src/platform/plugins/private/vis_types/table/server/index.ts similarity index 100% rename from src/plugins/vis_types/table/server/index.ts rename to src/platform/plugins/private/vis_types/table/server/index.ts diff --git a/src/plugins/vis_types/table/tsconfig.json b/src/platform/plugins/private/vis_types/table/tsconfig.json similarity index 92% rename from src/plugins/vis_types/table/tsconfig.json rename to src/platform/plugins/private/vis_types/table/tsconfig.json index 3c68049c0ac36..e8f086fe14216 100644 --- a/src/plugins/vis_types/table/tsconfig.json +++ b/src/platform/plugins/private/vis_types/table/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/platform/plugins/private/vis_types/tagcloud/jest.config.js b/src/platform/plugins/private/vis_types/tagcloud/jest.config.js new file mode 100644 index 0000000000000..d1c2241eeaa09 --- /dev/null +++ b/src/platform/plugins/private/vis_types/tagcloud/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/private/vis_types/tagcloud'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/tagcloud', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/tagcloud/{public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/vis_types/tagcloud/kibana.jsonc b/src/platform/plugins/private/vis_types/tagcloud/kibana.jsonc similarity index 100% rename from src/plugins/vis_types/tagcloud/kibana.jsonc rename to src/platform/plugins/private/vis_types/tagcloud/kibana.jsonc diff --git a/src/plugins/vis_types/tagcloud/public/__snapshots__/to_ast.test.ts.snap b/src/platform/plugins/private/vis_types/tagcloud/public/__snapshots__/to_ast.test.ts.snap similarity index 100% rename from src/plugins/vis_types/tagcloud/public/__snapshots__/to_ast.test.ts.snap rename to src/platform/plugins/private/vis_types/tagcloud/public/__snapshots__/to_ast.test.ts.snap diff --git a/src/plugins/vis_types/tagcloud/public/components/collections.ts b/src/platform/plugins/private/vis_types/tagcloud/public/components/collections.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/public/components/collections.ts rename to src/platform/plugins/private/vis_types/tagcloud/public/components/collections.ts diff --git a/src/plugins/vis_types/tagcloud/public/components/get_tag_cloud_options.tsx b/src/platform/plugins/private/vis_types/tagcloud/public/components/get_tag_cloud_options.tsx similarity index 100% rename from src/plugins/vis_types/tagcloud/public/components/get_tag_cloud_options.tsx rename to src/platform/plugins/private/vis_types/tagcloud/public/components/get_tag_cloud_options.tsx diff --git a/src/plugins/vis_types/tagcloud/public/components/tag_cloud_options.tsx b/src/platform/plugins/private/vis_types/tagcloud/public/components/tag_cloud_options.tsx similarity index 100% rename from src/plugins/vis_types/tagcloud/public/components/tag_cloud_options.tsx rename to src/platform/plugins/private/vis_types/tagcloud/public/components/tag_cloud_options.tsx diff --git a/src/plugins/vis_types/tagcloud/public/convert_to_lens/index.test.ts b/src/platform/plugins/private/vis_types/tagcloud/public/convert_to_lens/index.test.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/public/convert_to_lens/index.test.ts rename to src/platform/plugins/private/vis_types/tagcloud/public/convert_to_lens/index.test.ts diff --git a/src/plugins/vis_types/tagcloud/public/convert_to_lens/index.ts b/src/platform/plugins/private/vis_types/tagcloud/public/convert_to_lens/index.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/public/convert_to_lens/index.ts rename to src/platform/plugins/private/vis_types/tagcloud/public/convert_to_lens/index.ts diff --git a/src/plugins/vis_types/tagcloud/public/index.ts b/src/platform/plugins/private/vis_types/tagcloud/public/index.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/public/index.ts rename to src/platform/plugins/private/vis_types/tagcloud/public/index.ts diff --git a/src/plugins/vis_types/tagcloud/public/plugin.ts b/src/platform/plugins/private/vis_types/tagcloud/public/plugin.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/public/plugin.ts rename to src/platform/plugins/private/vis_types/tagcloud/public/plugin.ts diff --git a/src/plugins/vis_types/tagcloud/public/services.ts b/src/platform/plugins/private/vis_types/tagcloud/public/services.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/public/services.ts rename to src/platform/plugins/private/vis_types/tagcloud/public/services.ts diff --git a/src/plugins/vis_types/tagcloud/public/tag_cloud_type.ts b/src/platform/plugins/private/vis_types/tagcloud/public/tag_cloud_type.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/public/tag_cloud_type.ts rename to src/platform/plugins/private/vis_types/tagcloud/public/tag_cloud_type.ts diff --git a/src/plugins/vis_types/tagcloud/public/to_ast.test.ts b/src/platform/plugins/private/vis_types/tagcloud/public/to_ast.test.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/public/to_ast.test.ts rename to src/platform/plugins/private/vis_types/tagcloud/public/to_ast.test.ts diff --git a/src/plugins/vis_types/tagcloud/public/to_ast.ts b/src/platform/plugins/private/vis_types/tagcloud/public/to_ast.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/public/to_ast.ts rename to src/platform/plugins/private/vis_types/tagcloud/public/to_ast.ts diff --git a/src/plugins/vis_types/tagcloud/public/types.ts b/src/platform/plugins/private/vis_types/tagcloud/public/types.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/public/types.ts rename to src/platform/plugins/private/vis_types/tagcloud/public/types.ts diff --git a/src/plugins/vis_types/tagcloud/server/config.ts b/src/platform/plugins/private/vis_types/tagcloud/server/config.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/server/config.ts rename to src/platform/plugins/private/vis_types/tagcloud/server/config.ts diff --git a/src/plugins/vis_types/tagcloud/server/index.ts b/src/platform/plugins/private/vis_types/tagcloud/server/index.ts similarity index 100% rename from src/plugins/vis_types/tagcloud/server/index.ts rename to src/platform/plugins/private/vis_types/tagcloud/server/index.ts diff --git a/src/plugins/vis_types/tagcloud/tsconfig.json b/src/platform/plugins/private/vis_types/tagcloud/tsconfig.json similarity index 90% rename from src/plugins/vis_types/tagcloud/tsconfig.json rename to src/platform/plugins/private/vis_types/tagcloud/tsconfig.json index 844e910554e1f..d8967a0fc4c11 100644 --- a/src/plugins/vis_types/tagcloud/tsconfig.json +++ b/src/platform/plugins/private/vis_types/tagcloud/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/vis_types/timelion/README.md b/src/platform/plugins/private/vis_types/timelion/README.md similarity index 100% rename from src/plugins/vis_types/timelion/README.md rename to src/platform/plugins/private/vis_types/timelion/README.md diff --git a/src/plugins/vis_types/timelion/common/constants.ts b/src/platform/plugins/private/vis_types/timelion/common/constants.ts similarity index 100% rename from src/plugins/vis_types/timelion/common/constants.ts rename to src/platform/plugins/private/vis_types/timelion/common/constants.ts diff --git a/src/plugins/vis_types/timelion/common/lib/calculate_interval.test.ts b/src/platform/plugins/private/vis_types/timelion/common/lib/calculate_interval.test.ts similarity index 100% rename from src/plugins/vis_types/timelion/common/lib/calculate_interval.test.ts rename to src/platform/plugins/private/vis_types/timelion/common/lib/calculate_interval.test.ts diff --git a/src/plugins/vis_types/timelion/common/lib/calculate_interval.ts b/src/platform/plugins/private/vis_types/timelion/common/lib/calculate_interval.ts similarity index 100% rename from src/plugins/vis_types/timelion/common/lib/calculate_interval.ts rename to src/platform/plugins/private/vis_types/timelion/common/lib/calculate_interval.ts diff --git a/src/plugins/vis_types/timelion/common/lib/index.ts b/src/platform/plugins/private/vis_types/timelion/common/lib/index.ts similarity index 100% rename from src/plugins/vis_types/timelion/common/lib/index.ts rename to src/platform/plugins/private/vis_types/timelion/common/lib/index.ts diff --git a/src/plugins/vis_types/timelion/common/lib/to_milliseconds.ts b/src/platform/plugins/private/vis_types/timelion/common/lib/to_milliseconds.ts similarity index 100% rename from src/plugins/vis_types/timelion/common/lib/to_milliseconds.ts rename to src/platform/plugins/private/vis_types/timelion/common/lib/to_milliseconds.ts diff --git a/src/plugins/vis_types/timelion/common/parser.ts b/src/platform/plugins/private/vis_types/timelion/common/parser.ts similarity index 100% rename from src/plugins/vis_types/timelion/common/parser.ts rename to src/platform/plugins/private/vis_types/timelion/common/parser.ts diff --git a/src/plugins/vis_types/timelion/common/parser_async.ts b/src/platform/plugins/private/vis_types/timelion/common/parser_async.ts similarity index 100% rename from src/plugins/vis_types/timelion/common/parser_async.ts rename to src/platform/plugins/private/vis_types/timelion/common/parser_async.ts diff --git a/src/plugins/vis_types/timelion/common/types.ts b/src/platform/plugins/private/vis_types/timelion/common/types.ts similarity index 100% rename from src/plugins/vis_types/timelion/common/types.ts rename to src/platform/plugins/private/vis_types/timelion/common/types.ts diff --git a/src/plugins/vis_types/timelion/common/vis_data.ts b/src/platform/plugins/private/vis_types/timelion/common/vis_data.ts similarity index 100% rename from src/plugins/vis_types/timelion/common/vis_data.ts rename to src/platform/plugins/private/vis_types/timelion/common/vis_data.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/jest.config.js b/src/platform/plugins/private/vis_types/timelion/jest.config.js similarity index 66% rename from src/plugins/chart_expressions/expression_tagcloud/jest.config.js rename to src/platform/plugins/private/vis_types/timelion/jest.config.js index 5a74730e6fcc1..6d8e58b69358a 100644 --- a/src/plugins/chart_expressions/expression_tagcloud/jest.config.js +++ b/src/platform/plugins/private/vis_types/timelion/jest.config.js @@ -9,12 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../', - roots: ['/src/plugins/chart_expressions/expression_tagcloud'], + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/private/vis_types/timelion'], coverageDirectory: - '/target/kibana-coverage/jest/src/plugins/chart_expressions/expression_tagcloud', + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/timelion', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/chart_expressions/expression_tagcloud/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/private/vis_types/timelion/{common,public,server}/**/*.{js,ts,tsx}', ], }; diff --git a/src/plugins/vis_types/timelion/kibana.jsonc b/src/platform/plugins/private/vis_types/timelion/kibana.jsonc similarity index 100% rename from src/plugins/vis_types/timelion/kibana.jsonc rename to src/platform/plugins/private/vis_types/timelion/kibana.jsonc diff --git a/src/plugins/vis_types/timelion/public/__snapshots__/to_ast.test.ts.snap b/src/platform/plugins/private/vis_types/timelion/public/__snapshots__/to_ast.test.ts.snap similarity index 100% rename from src/plugins/vis_types/timelion/public/__snapshots__/to_ast.test.ts.snap rename to src/platform/plugins/private/vis_types/timelion/public/__snapshots__/to_ast.test.ts.snap diff --git a/src/plugins/vis_types/timelion/public/async_services.ts b/src/platform/plugins/private/vis_types/timelion/public/async_services.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/async_services.ts rename to src/platform/plugins/private/vis_types/timelion/public/async_services.ts diff --git a/src/plugins/vis_types/timelion/public/components/index.ts b/src/platform/plugins/private/vis_types/timelion/public/components/index.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/components/index.ts rename to src/platform/plugins/private/vis_types/timelion/public/components/index.ts diff --git a/src/plugins/vis_types/timelion/public/components/series/area.tsx b/src/platform/plugins/private/vis_types/timelion/public/components/series/area.tsx similarity index 100% rename from src/plugins/vis_types/timelion/public/components/series/area.tsx rename to src/platform/plugins/private/vis_types/timelion/public/components/series/area.tsx diff --git a/src/plugins/vis_types/timelion/public/components/series/bar.tsx b/src/platform/plugins/private/vis_types/timelion/public/components/series/bar.tsx similarity index 100% rename from src/plugins/vis_types/timelion/public/components/series/bar.tsx rename to src/platform/plugins/private/vis_types/timelion/public/components/series/bar.tsx diff --git a/src/plugins/vis_types/timelion/public/components/series/index.ts b/src/platform/plugins/private/vis_types/timelion/public/components/series/index.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/components/series/index.ts rename to src/platform/plugins/private/vis_types/timelion/public/components/series/index.ts diff --git a/src/plugins/vis_types/timelion/public/components/timelion_expression_input.tsx b/src/platform/plugins/private/vis_types/timelion/public/components/timelion_expression_input.tsx similarity index 100% rename from src/plugins/vis_types/timelion/public/components/timelion_expression_input.tsx rename to src/platform/plugins/private/vis_types/timelion/public/components/timelion_expression_input.tsx diff --git a/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts b/src/platform/plugins/private/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts rename to src/platform/plugins/private/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts diff --git a/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.ts b/src/platform/plugins/private/vis_types/timelion/public/components/timelion_expression_input_helpers.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.ts rename to src/platform/plugins/private/vis_types/timelion/public/components/timelion_expression_input_helpers.ts diff --git a/src/plugins/vis_types/timelion/public/components/timelion_interval.tsx b/src/platform/plugins/private/vis_types/timelion/public/components/timelion_interval.tsx similarity index 100% rename from src/plugins/vis_types/timelion/public/components/timelion_interval.tsx rename to src/platform/plugins/private/vis_types/timelion/public/components/timelion_interval.tsx diff --git a/src/plugins/vis_types/timelion/public/components/timelion_vis.scss b/src/platform/plugins/private/vis_types/timelion/public/components/timelion_vis.scss similarity index 100% rename from src/plugins/vis_types/timelion/public/components/timelion_vis.scss rename to src/platform/plugins/private/vis_types/timelion/public/components/timelion_vis.scss diff --git a/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx b/src/platform/plugins/private/vis_types/timelion/public/components/timelion_vis_component.tsx similarity index 100% rename from src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx rename to src/platform/plugins/private/vis_types/timelion/public/components/timelion_vis_component.tsx diff --git a/src/plugins/vis_types/timelion/public/helpers/arg_value_suggestions.ts b/src/platform/plugins/private/vis_types/timelion/public/helpers/arg_value_suggestions.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/helpers/arg_value_suggestions.ts rename to src/platform/plugins/private/vis_types/timelion/public/helpers/arg_value_suggestions.ts diff --git a/src/plugins/vis_types/timelion/public/helpers/chart_constants.ts b/src/platform/plugins/private/vis_types/timelion/public/helpers/chart_constants.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/helpers/chart_constants.ts rename to src/platform/plugins/private/vis_types/timelion/public/helpers/chart_constants.ts diff --git a/src/plugins/vis_types/timelion/public/helpers/panel_utils.ts b/src/platform/plugins/private/vis_types/timelion/public/helpers/panel_utils.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/helpers/panel_utils.ts rename to src/platform/plugins/private/vis_types/timelion/public/helpers/panel_utils.ts diff --git a/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts b/src/platform/plugins/private/vis_types/timelion/public/helpers/plugin_services.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/helpers/plugin_services.ts rename to src/platform/plugins/private/vis_types/timelion/public/helpers/plugin_services.ts diff --git a/src/plugins/vis_types/timelion/public/helpers/tick_formatters.test.ts b/src/platform/plugins/private/vis_types/timelion/public/helpers/tick_formatters.test.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/helpers/tick_formatters.test.ts rename to src/platform/plugins/private/vis_types/timelion/public/helpers/tick_formatters.test.ts diff --git a/src/plugins/vis_types/timelion/public/helpers/tick_formatters.ts b/src/platform/plugins/private/vis_types/timelion/public/helpers/tick_formatters.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/helpers/tick_formatters.ts rename to src/platform/plugins/private/vis_types/timelion/public/helpers/tick_formatters.ts diff --git a/src/plugins/vis_types/timelion/public/helpers/tick_generator.test.ts b/src/platform/plugins/private/vis_types/timelion/public/helpers/tick_generator.test.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/helpers/tick_generator.test.ts rename to src/platform/plugins/private/vis_types/timelion/public/helpers/tick_generator.test.ts diff --git a/src/plugins/vis_types/timelion/public/helpers/tick_generator.ts b/src/platform/plugins/private/vis_types/timelion/public/helpers/tick_generator.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/helpers/tick_generator.ts rename to src/platform/plugins/private/vis_types/timelion/public/helpers/tick_generator.ts diff --git a/src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts b/src/platform/plugins/private/vis_types/timelion/public/helpers/timelion_request_handler.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/helpers/timelion_request_handler.ts rename to src/platform/plugins/private/vis_types/timelion/public/helpers/timelion_request_handler.ts diff --git a/src/plugins/vis_types/timelion/public/helpers/xaxis_formatter.ts b/src/platform/plugins/private/vis_types/timelion/public/helpers/xaxis_formatter.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/helpers/xaxis_formatter.ts rename to src/platform/plugins/private/vis_types/timelion/public/helpers/xaxis_formatter.ts diff --git a/src/plugins/vis_types/timelion/public/index.ts b/src/platform/plugins/private/vis_types/timelion/public/index.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/index.ts rename to src/platform/plugins/private/vis_types/timelion/public/index.ts diff --git a/src/plugins/vis_types/timelion/public/plugin.ts b/src/platform/plugins/private/vis_types/timelion/public/plugin.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/plugin.ts rename to src/platform/plugins/private/vis_types/timelion/public/plugin.ts diff --git a/src/plugins/vis_types/timelion/public/timelion_options.scss b/src/platform/plugins/private/vis_types/timelion/public/timelion_options.scss similarity index 100% rename from src/plugins/vis_types/timelion/public/timelion_options.scss rename to src/platform/plugins/private/vis_types/timelion/public/timelion_options.scss diff --git a/src/plugins/vis_types/timelion/public/timelion_options.tsx b/src/platform/plugins/private/vis_types/timelion/public/timelion_options.tsx similarity index 100% rename from src/plugins/vis_types/timelion/public/timelion_options.tsx rename to src/platform/plugins/private/vis_types/timelion/public/timelion_options.tsx diff --git a/src/plugins/vis_types/timelion/public/timelion_vis_fn.ts b/src/platform/plugins/private/vis_types/timelion/public/timelion_vis_fn.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/timelion_vis_fn.ts rename to src/platform/plugins/private/vis_types/timelion/public/timelion_vis_fn.ts diff --git a/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx b/src/platform/plugins/private/vis_types/timelion/public/timelion_vis_renderer.tsx similarity index 100% rename from src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx rename to src/platform/plugins/private/vis_types/timelion/public/timelion_vis_renderer.tsx diff --git a/src/plugins/vis_types/timelion/public/timelion_vis_type.tsx b/src/platform/plugins/private/vis_types/timelion/public/timelion_vis_type.tsx similarity index 100% rename from src/plugins/vis_types/timelion/public/timelion_vis_type.tsx rename to src/platform/plugins/private/vis_types/timelion/public/timelion_vis_type.tsx diff --git a/src/plugins/vis_types/timelion/public/to_ast.test.ts b/src/platform/plugins/private/vis_types/timelion/public/to_ast.test.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/to_ast.test.ts rename to src/platform/plugins/private/vis_types/timelion/public/to_ast.test.ts diff --git a/src/plugins/vis_types/timelion/public/to_ast.ts b/src/platform/plugins/private/vis_types/timelion/public/to_ast.ts similarity index 100% rename from src/plugins/vis_types/timelion/public/to_ast.ts rename to src/platform/plugins/private/vis_types/timelion/public/to_ast.ts diff --git a/src/plugins/vis_types/timelion/server/config.ts b/src/platform/plugins/private/vis_types/timelion/server/config.ts similarity index 100% rename from src/plugins/vis_types/timelion/server/config.ts rename to src/platform/plugins/private/vis_types/timelion/server/config.ts diff --git a/src/plugins/vis_types/timelion/server/fit_functions/average.js b/src/platform/plugins/private/vis_types/timelion/server/fit_functions/average.js similarity index 100% rename from src/plugins/vis_types/timelion/server/fit_functions/average.js rename to src/platform/plugins/private/vis_types/timelion/server/fit_functions/average.js diff --git a/src/plugins/vis_types/timelion/server/fit_functions/average.test.js b/src/platform/plugins/private/vis_types/timelion/server/fit_functions/average.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/fit_functions/average.test.js rename to src/platform/plugins/private/vis_types/timelion/server/fit_functions/average.test.js diff --git a/src/plugins/vis_types/timelion/server/fit_functions/carry.js b/src/platform/plugins/private/vis_types/timelion/server/fit_functions/carry.js similarity index 100% rename from src/plugins/vis_types/timelion/server/fit_functions/carry.js rename to src/platform/plugins/private/vis_types/timelion/server/fit_functions/carry.js diff --git a/src/plugins/vis_types/timelion/server/fit_functions/carry.test.js b/src/platform/plugins/private/vis_types/timelion/server/fit_functions/carry.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/fit_functions/carry.test.js rename to src/platform/plugins/private/vis_types/timelion/server/fit_functions/carry.test.js diff --git a/src/plugins/vis_types/timelion/server/fit_functions/nearest.js b/src/platform/plugins/private/vis_types/timelion/server/fit_functions/nearest.js similarity index 100% rename from src/plugins/vis_types/timelion/server/fit_functions/nearest.js rename to src/platform/plugins/private/vis_types/timelion/server/fit_functions/nearest.js diff --git a/src/plugins/vis_types/timelion/server/fit_functions/none.js b/src/platform/plugins/private/vis_types/timelion/server/fit_functions/none.js similarity index 100% rename from src/plugins/vis_types/timelion/server/fit_functions/none.js rename to src/platform/plugins/private/vis_types/timelion/server/fit_functions/none.js diff --git a/src/plugins/vis_types/timelion/server/fit_functions/scale.js b/src/platform/plugins/private/vis_types/timelion/server/fit_functions/scale.js similarity index 100% rename from src/plugins/vis_types/timelion/server/fit_functions/scale.js rename to src/platform/plugins/private/vis_types/timelion/server/fit_functions/scale.js diff --git a/src/plugins/vis_types/timelion/server/handlers/chain_runner.js b/src/platform/plugins/private/vis_types/timelion/server/handlers/chain_runner.js similarity index 100% rename from src/plugins/vis_types/timelion/server/handlers/chain_runner.js rename to src/platform/plugins/private/vis_types/timelion/server/handlers/chain_runner.js diff --git a/src/plugins/vis_types/timelion/server/handlers/lib/arg_type.js b/src/platform/plugins/private/vis_types/timelion/server/handlers/lib/arg_type.js similarity index 100% rename from src/plugins/vis_types/timelion/server/handlers/lib/arg_type.js rename to src/platform/plugins/private/vis_types/timelion/server/handlers/lib/arg_type.js diff --git a/src/plugins/vis_types/timelion/server/handlers/lib/index_arguments.js b/src/platform/plugins/private/vis_types/timelion/server/handlers/lib/index_arguments.js similarity index 100% rename from src/plugins/vis_types/timelion/server/handlers/lib/index_arguments.js rename to src/platform/plugins/private/vis_types/timelion/server/handlers/lib/index_arguments.js diff --git a/src/plugins/vis_types/timelion/server/handlers/lib/parse_sheet.js b/src/platform/plugins/private/vis_types/timelion/server/handlers/lib/parse_sheet.js similarity index 100% rename from src/plugins/vis_types/timelion/server/handlers/lib/parse_sheet.js rename to src/platform/plugins/private/vis_types/timelion/server/handlers/lib/parse_sheet.js diff --git a/src/plugins/vis_types/timelion/server/handlers/lib/parse_sheet.test.js b/src/platform/plugins/private/vis_types/timelion/server/handlers/lib/parse_sheet.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/handlers/lib/parse_sheet.test.js rename to src/platform/plugins/private/vis_types/timelion/server/handlers/lib/parse_sheet.test.js diff --git a/src/plugins/vis_types/timelion/server/handlers/lib/preprocess_chain.js b/src/platform/plugins/private/vis_types/timelion/server/handlers/lib/preprocess_chain.js similarity index 100% rename from src/plugins/vis_types/timelion/server/handlers/lib/preprocess_chain.js rename to src/platform/plugins/private/vis_types/timelion/server/handlers/lib/preprocess_chain.js diff --git a/src/plugins/vis_types/timelion/server/handlers/lib/reposition_arguments.js b/src/platform/plugins/private/vis_types/timelion/server/handlers/lib/reposition_arguments.js similarity index 100% rename from src/plugins/vis_types/timelion/server/handlers/lib/reposition_arguments.js rename to src/platform/plugins/private/vis_types/timelion/server/handlers/lib/reposition_arguments.js diff --git a/src/plugins/vis_types/timelion/server/handlers/lib/tl_config.js b/src/platform/plugins/private/vis_types/timelion/server/handlers/lib/tl_config.js similarity index 100% rename from src/plugins/vis_types/timelion/server/handlers/lib/tl_config.js rename to src/platform/plugins/private/vis_types/timelion/server/handlers/lib/tl_config.js diff --git a/src/plugins/vis_types/timelion/server/handlers/lib/validate_arg.js b/src/platform/plugins/private/vis_types/timelion/server/handlers/lib/validate_arg.js similarity index 100% rename from src/plugins/vis_types/timelion/server/handlers/lib/validate_arg.js rename to src/platform/plugins/private/vis_types/timelion/server/handlers/lib/validate_arg.js diff --git a/src/plugins/vis_types/timelion/server/handlers/lib/validate_time.js b/src/platform/plugins/private/vis_types/timelion/server/handlers/lib/validate_time.js similarity index 100% rename from src/plugins/vis_types/timelion/server/handlers/lib/validate_time.js rename to src/platform/plugins/private/vis_types/timelion/server/handlers/lib/validate_time.js diff --git a/src/plugins/vis_types/timelion/server/index.ts b/src/platform/plugins/private/vis_types/timelion/server/index.ts similarity index 100% rename from src/plugins/vis_types/timelion/server/index.ts rename to src/platform/plugins/private/vis_types/timelion/server/index.ts diff --git a/src/plugins/vis_types/timelion/server/lib/alter.js b/src/platform/plugins/private/vis_types/timelion/server/lib/alter.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/alter.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/alter.js diff --git a/src/plugins/vis_types/timelion/server/lib/as_sorted.js b/src/platform/plugins/private/vis_types/timelion/server/lib/as_sorted.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/as_sorted.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/as_sorted.js diff --git a/src/plugins/vis_types/timelion/server/lib/build_target.js b/src/platform/plugins/private/vis_types/timelion/server/lib/build_target.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/build_target.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/build_target.js diff --git a/src/plugins/vis_types/timelion/server/lib/classes/chainable.js b/src/platform/plugins/private/vis_types/timelion/server/lib/classes/chainable.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/classes/chainable.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/classes/chainable.js diff --git a/src/plugins/vis_types/timelion/server/lib/classes/datasource.js b/src/platform/plugins/private/vis_types/timelion/server/lib/classes/datasource.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/classes/datasource.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/classes/datasource.js diff --git a/src/plugins/vis_types/timelion/server/lib/classes/timelion_function.d.ts b/src/platform/plugins/private/vis_types/timelion/server/lib/classes/timelion_function.d.ts similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/classes/timelion_function.d.ts rename to src/platform/plugins/private/vis_types/timelion/server/lib/classes/timelion_function.d.ts diff --git a/src/plugins/vis_types/timelion/server/lib/classes/timelion_function.js b/src/platform/plugins/private/vis_types/timelion/server/lib/classes/timelion_function.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/classes/timelion_function.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/classes/timelion_function.js diff --git a/src/plugins/vis_types/timelion/server/lib/config_manager.ts b/src/platform/plugins/private/vis_types/timelion/server/lib/config_manager.ts similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/config_manager.ts rename to src/platform/plugins/private/vis_types/timelion/server/lib/config_manager.ts diff --git a/src/plugins/vis_types/timelion/server/lib/functions_md.js b/src/platform/plugins/private/vis_types/timelion/server/lib/functions_md.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/functions_md.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/functions_md.js diff --git a/src/plugins/vis_types/timelion/server/lib/get_namespaced_settings.js b/src/platform/plugins/private/vis_types/timelion/server/lib/get_namespaced_settings.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/get_namespaced_settings.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/get_namespaced_settings.js diff --git a/src/plugins/vis_types/timelion/server/lib/load_functions.d.ts b/src/platform/plugins/private/vis_types/timelion/server/lib/load_functions.d.ts similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/load_functions.d.ts rename to src/platform/plugins/private/vis_types/timelion/server/lib/load_functions.d.ts diff --git a/src/plugins/vis_types/timelion/server/lib/load_functions.js b/src/platform/plugins/private/vis_types/timelion/server/lib/load_functions.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/load_functions.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/load_functions.js diff --git a/src/plugins/vis_types/timelion/server/lib/load_functions.test.js b/src/platform/plugins/private/vis_types/timelion/server/lib/load_functions.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/load_functions.test.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/load_functions.test.js diff --git a/src/plugins/vis_types/timelion/server/lib/offset_time.js b/src/platform/plugins/private/vis_types/timelion/server/lib/offset_time.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/offset_time.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/offset_time.js diff --git a/src/plugins/vis_types/timelion/server/lib/offset_time.test.js b/src/platform/plugins/private/vis_types/timelion/server/lib/offset_time.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/offset_time.test.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/offset_time.test.js diff --git a/src/plugins/vis_types/timelion/server/lib/process_function_definition.js b/src/platform/plugins/private/vis_types/timelion/server/lib/process_function_definition.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/process_function_definition.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/process_function_definition.js diff --git a/src/plugins/vis_types/timelion/server/lib/reduce.js b/src/platform/plugins/private/vis_types/timelion/server/lib/reduce.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/reduce.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/reduce.js diff --git a/src/plugins/vis_types/timelion/server/lib/split_interval.js b/src/platform/plugins/private/vis_types/timelion/server/lib/split_interval.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/split_interval.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/split_interval.js diff --git a/src/plugins/vis_types/timelion/server/lib/unzip_pairs.js b/src/platform/plugins/private/vis_types/timelion/server/lib/unzip_pairs.js similarity index 100% rename from src/plugins/vis_types/timelion/server/lib/unzip_pairs.js rename to src/platform/plugins/private/vis_types/timelion/server/lib/unzip_pairs.js diff --git a/src/plugins/vis_types/timelion/server/plugin.ts b/src/platform/plugins/private/vis_types/timelion/server/plugin.ts similarity index 100% rename from src/plugins/vis_types/timelion/server/plugin.ts rename to src/platform/plugins/private/vis_types/timelion/server/plugin.ts diff --git a/src/plugins/vis_types/timelion/server/routes/functions.ts b/src/platform/plugins/private/vis_types/timelion/server/routes/functions.ts similarity index 100% rename from src/plugins/vis_types/timelion/server/routes/functions.ts rename to src/platform/plugins/private/vis_types/timelion/server/routes/functions.ts diff --git a/src/plugins/vis_types/timelion/server/routes/run.ts b/src/platform/plugins/private/vis_types/timelion/server/routes/run.ts similarity index 100% rename from src/plugins/vis_types/timelion/server/routes/run.ts rename to src/platform/plugins/private/vis_types/timelion/server/routes/run.ts diff --git a/src/plugins/vis_types/timelion/server/series_functions/abs.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/abs.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/abs.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/abs.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/abs.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/abs.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/abs.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/abs.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/aggregate/aggregate.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/aggregate.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/aggregate/aggregate.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/aggregate.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/aggregate/avg.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/avg.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/aggregate/avg.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/avg.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/aggregate/cardinality.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/cardinality.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/aggregate/cardinality.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/cardinality.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/aggregate/first.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/first.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/aggregate/first.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/first.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/aggregate/index.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/index.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/aggregate/index.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/index.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/aggregate/last.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/last.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/aggregate/last.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/last.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/aggregate/max.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/max.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/aggregate/max.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/max.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/aggregate/min.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/min.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/aggregate/min.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/min.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/aggregate/sum.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/sum.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/aggregate/sum.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/aggregate/sum.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/bars.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/bars.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/bars.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/bars.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/bars.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/bars.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/bars.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/bars.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/color.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/color.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/color.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/color.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/color.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/color.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/color.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/color.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/condition.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/condition.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/condition.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/condition.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/condition.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/condition.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/condition.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/condition.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/cusum.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/cusum.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/cusum.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/cusum.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/cusum.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/cusum.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/cusum.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/cusum.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/derivative.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/derivative.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/derivative.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/derivative.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/derivative.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/derivative.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/derivative.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/derivative.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/divide.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/divide.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/divide.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/divide.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/divide.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/divide.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/divide.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/divide.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/es/es.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/es/es.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/es/es.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/es/es.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/es/index.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/es/index.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/es/index.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/es/index.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/es/lib/agg_body.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/es/lib/agg_body.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/es/lib/agg_body.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/es/lib/agg_body.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/es/lib/agg_response_to_series_list.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/es/lib/agg_response_to_series_list.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/es/lib/agg_response_to_series_list.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/es/lib/agg_response_to_series_list.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/es/lib/build_request.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/es/lib/build_request.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/es/lib/build_request.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/es/lib/build_request.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/es/lib/create_date_agg.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/es/lib/create_date_agg.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/es/lib/create_date_agg.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/es/lib/create_date_agg.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/first.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/first.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/first.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/first.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/first.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/first.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/first.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/first.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/fit.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/fit.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/fit.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/fit.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/fit.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/fit.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/fit.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/fit.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/fixtures/bucket_list.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/fixtures/bucket_list.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/fixtures/bucket_list.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/fixtures/bucket_list.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/fixtures/es_response.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/fixtures/es_response.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/fixtures/es_response.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/fixtures/es_response.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/fixtures/series_list.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/fixtures/series_list.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/fixtures/series_list.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/fixtures/series_list.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/fixtures/tl_config.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/fixtures/tl_config.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/fixtures/tl_config.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/fixtures/tl_config.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/hide.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/hide.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/hide.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/hide.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/hide.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/hide.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/hide.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/hide.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/holt/index.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/holt/index.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/holt/index.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/holt/index.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/holt/lib/des.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/holt/lib/des.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/holt/lib/des.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/holt/lib/des.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/holt/lib/ses.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/holt/lib/ses.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/holt/lib/ses.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/holt/lib/ses.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/holt/lib/tes.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/holt/lib/tes.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/holt/lib/tes.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/holt/lib/tes.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/label.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/label.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/label.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/label.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/label.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/label.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/label.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/label.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/legend.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/legend.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/legend.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/legend.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/legend.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/legend.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/legend.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/legend.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/lines.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/lines.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/lines.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/lines.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/lines.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/lines.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/lines.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/lines.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/log.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/log.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/log.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/log.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/log.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/log.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/log.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/log.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/max.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/max.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/max.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/max.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/max.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/max.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/max.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/max.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/min.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/min.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/min.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/min.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/min.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/min.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/min.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/min.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/movingaverage.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/movingaverage.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/movingaverage.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/movingaverage.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/movingaverage.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/movingaverage.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/movingaverage.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/movingaverage.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/movingstd.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/movingstd.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/movingstd.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/movingstd.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/movingstd.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/movingstd.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/movingstd.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/movingstd.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/multiply.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/multiply.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/multiply.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/multiply.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/multiply.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/multiply.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/multiply.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/multiply.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/points.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/points.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/points.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/points.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/points.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/points.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/points.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/points.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/precision.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/precision.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/precision.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/precision.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/precision.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/precision.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/precision.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/precision.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/props.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/props.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/props.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/props.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/range.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/range.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/range.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/range.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/range.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/range.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/range.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/range.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/scale_interval.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/scale_interval.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/scale_interval.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/scale_interval.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/scale_interval.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/scale_interval.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/scale_interval.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/scale_interval.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/static.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/static.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/static.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/static.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/static.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/static.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/static.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/static.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/subtract.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/subtract.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/subtract.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/subtract.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/subtract.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/subtract.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/subtract.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/subtract.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/sum.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/sum.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/sum.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/sum.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/sum.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/sum.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/sum.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/sum.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/test_helpers/get_series.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/test_helpers/get_series.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/test_helpers/get_series.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/test_helpers/get_series.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/test_helpers/get_series_list.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/test_helpers/get_series_list.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/test_helpers/get_series_list.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/test_helpers/get_series_list.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/test_helpers/get_single_series_list.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/test_helpers/get_single_series_list.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/test_helpers/get_single_series_list.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/test_helpers/get_single_series_list.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/test_helpers/invoke_series_fn.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/test_helpers/invoke_series_fn.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/test_helpers/invoke_series_fn.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/test_helpers/invoke_series_fn.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/title.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/title.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/title.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/title.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/title.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/title.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/title.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/title.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/trend/index.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/trend/index.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/trend/index.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/trend/index.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/trend/lib/regress.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/trend/lib/regress.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/trend/lib/regress.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/trend/lib/regress.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/trim.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/trim.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/trim.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/trim.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/trim.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/trim.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/trim.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/trim.test.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/worldbank.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/worldbank.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/worldbank.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/worldbank.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/worldbank_indicators.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/worldbank_indicators.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/worldbank_indicators.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/worldbank_indicators.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/yaxis.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/yaxis.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/yaxis.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/yaxis.js diff --git a/src/plugins/vis_types/timelion/server/series_functions/yaxis.test.js b/src/platform/plugins/private/vis_types/timelion/server/series_functions/yaxis.test.js similarity index 100% rename from src/plugins/vis_types/timelion/server/series_functions/yaxis.test.js rename to src/platform/plugins/private/vis_types/timelion/server/series_functions/yaxis.test.js diff --git a/src/plugins/vis_types/timelion/server/timelion.json b/src/platform/plugins/private/vis_types/timelion/server/timelion.json similarity index 100% rename from src/plugins/vis_types/timelion/server/timelion.json rename to src/platform/plugins/private/vis_types/timelion/server/timelion.json diff --git a/src/plugins/vis_types/timelion/server/types.ts b/src/platform/plugins/private/vis_types/timelion/server/types.ts similarity index 100% rename from src/plugins/vis_types/timelion/server/types.ts rename to src/platform/plugins/private/vis_types/timelion/server/types.ts diff --git a/src/plugins/vis_types/timelion/server/ui_settings.ts b/src/platform/plugins/private/vis_types/timelion/server/ui_settings.ts similarity index 100% rename from src/plugins/vis_types/timelion/server/ui_settings.ts rename to src/platform/plugins/private/vis_types/timelion/server/ui_settings.ts diff --git a/src/plugins/vis_types/timelion/tsconfig.json b/src/platform/plugins/private/vis_types/timelion/tsconfig.json similarity index 94% rename from src/plugins/vis_types/timelion/tsconfig.json rename to src/platform/plugins/private/vis_types/timelion/tsconfig.json index 41fd62d2aad43..d072e4b1845af 100644 --- a/src/plugins/vis_types/timelion/tsconfig.json +++ b/src/platform/plugins/private/vis_types/timelion/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/platform/plugins/private/vis_types/vega/jest.config.js b/src/platform/plugins/private/vis_types/vega/jest.config.js new file mode 100644 index 0000000000000..65e1dfb519238 --- /dev/null +++ b/src/platform/plugins/private/vis_types/vega/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/private/vis_types/vega'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/vega', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/vega/{public,server}/**/*.{js,ts,tsx}', + ], +}; diff --git a/src/plugins/vis_types/vega/kibana.jsonc b/src/platform/plugins/private/vis_types/vega/kibana.jsonc similarity index 100% rename from src/plugins/vis_types/vega/kibana.jsonc rename to src/platform/plugins/private/vis_types/vega/kibana.jsonc diff --git a/src/plugins/vis_types/vega/public/__snapshots__/vega_visualization.test.tsx.snap b/src/platform/plugins/private/vis_types/vega/public/__snapshots__/vega_visualization.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/vega/public/__snapshots__/vega_visualization.test.tsx.snap rename to src/platform/plugins/private/vis_types/vega/public/__snapshots__/vega_visualization.test.tsx.snap diff --git a/src/plugins/vis_types/vega/public/async_services.ts b/src/platform/plugins/private/vis_types/vega/public/async_services.ts similarity index 100% rename from src/plugins/vis_types/vega/public/async_services.ts rename to src/platform/plugins/private/vis_types/vega/public/async_services.ts diff --git a/src/plugins/vis_types/vega/public/components/deprecated_interval_info.test.tsx b/src/platform/plugins/private/vis_types/vega/public/components/deprecated_interval_info.test.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/components/deprecated_interval_info.test.tsx rename to src/platform/plugins/private/vis_types/vega/public/components/deprecated_interval_info.test.tsx diff --git a/src/plugins/vis_types/vega/public/components/deprecated_interval_info.tsx b/src/platform/plugins/private/vis_types/vega/public/components/deprecated_interval_info.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/components/deprecated_interval_info.tsx rename to src/platform/plugins/private/vis_types/vega/public/components/deprecated_interval_info.tsx diff --git a/src/plugins/vis_types/vega/public/components/experimental_map_vis_info.tsx b/src/platform/plugins/private/vis_types/vega/public/components/experimental_map_vis_info.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/components/experimental_map_vis_info.tsx rename to src/platform/plugins/private/vis_types/vega/public/components/experimental_map_vis_info.tsx diff --git a/src/plugins/vis_types/vega/public/components/vega_actions_menu.tsx b/src/platform/plugins/private/vis_types/vega/public/components/vega_actions_menu.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/components/vega_actions_menu.tsx rename to src/platform/plugins/private/vis_types/vega/public/components/vega_actions_menu.tsx diff --git a/src/plugins/vis_types/vega/public/components/vega_editor.scss b/src/platform/plugins/private/vis_types/vega/public/components/vega_editor.scss similarity index 100% rename from src/plugins/vis_types/vega/public/components/vega_editor.scss rename to src/platform/plugins/private/vis_types/vega/public/components/vega_editor.scss diff --git a/src/plugins/vis_types/vega/public/components/vega_help_menu.tsx b/src/platform/plugins/private/vis_types/vega/public/components/vega_help_menu.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/components/vega_help_menu.tsx rename to src/platform/plugins/private/vis_types/vega/public/components/vega_help_menu.tsx diff --git a/src/plugins/vis_types/vega/public/components/vega_info_message.tsx b/src/platform/plugins/private/vis_types/vega/public/components/vega_info_message.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/components/vega_info_message.tsx rename to src/platform/plugins/private/vis_types/vega/public/components/vega_info_message.tsx diff --git a/src/plugins/vis_types/vega/public/components/vega_vis.scss b/src/platform/plugins/private/vis_types/vega/public/components/vega_vis.scss similarity index 100% rename from src/plugins/vis_types/vega/public/components/vega_vis.scss rename to src/platform/plugins/private/vis_types/vega/public/components/vega_vis.scss diff --git a/src/plugins/vis_types/vega/public/components/vega_vis.styles.tsx b/src/platform/plugins/private/vis_types/vega/public/components/vega_vis.styles.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/components/vega_vis.styles.tsx rename to src/platform/plugins/private/vis_types/vega/public/components/vega_vis.styles.tsx diff --git a/src/plugins/vis_types/vega/public/components/vega_vis_component.tsx b/src/platform/plugins/private/vis_types/vega/public/components/vega_vis_component.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/components/vega_vis_component.tsx rename to src/platform/plugins/private/vis_types/vega/public/components/vega_vis_component.tsx diff --git a/src/plugins/vis_types/vega/public/components/vega_vis_editor.tsx b/src/platform/plugins/private/vis_types/vega/public/components/vega_vis_editor.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/components/vega_vis_editor.tsx rename to src/platform/plugins/private/vis_types/vega/public/components/vega_vis_editor.tsx diff --git a/src/plugins/vis_types/vega/public/components/vega_vis_editor_lazy.tsx b/src/platform/plugins/private/vis_types/vega/public/components/vega_vis_editor_lazy.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/components/vega_vis_editor_lazy.tsx rename to src/platform/plugins/private/vis_types/vega/public/components/vega_vis_editor_lazy.tsx diff --git a/src/plugins/vis_types/vega/public/data_model/ems_file_parser.ts b/src/platform/plugins/private/vis_types/vega/public/data_model/ems_file_parser.ts similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/ems_file_parser.ts rename to src/platform/plugins/private/vis_types/vega/public/data_model/ems_file_parser.ts diff --git a/src/plugins/vis_types/vega/public/data_model/es_query_parser.test.js b/src/platform/plugins/private/vis_types/vega/public/data_model/es_query_parser.test.js similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/es_query_parser.test.js rename to src/platform/plugins/private/vis_types/vega/public/data_model/es_query_parser.test.js diff --git a/src/plugins/vis_types/vega/public/data_model/es_query_parser.ts b/src/platform/plugins/private/vis_types/vega/public/data_model/es_query_parser.ts similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/es_query_parser.ts rename to src/platform/plugins/private/vis_types/vega/public/data_model/es_query_parser.ts diff --git a/src/plugins/vis_types/vega/public/data_model/search_api.test.ts b/src/platform/plugins/private/vis_types/vega/public/data_model/search_api.test.ts similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/search_api.test.ts rename to src/platform/plugins/private/vis_types/vega/public/data_model/search_api.test.ts diff --git a/src/plugins/vis_types/vega/public/data_model/search_api.ts b/src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/search_api.ts rename to src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts diff --git a/src/plugins/vis_types/vega/public/data_model/time_cache.test.js b/src/platform/plugins/private/vis_types/vega/public/data_model/time_cache.test.js similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/time_cache.test.js rename to src/platform/plugins/private/vis_types/vega/public/data_model/time_cache.test.js diff --git a/src/plugins/vis_types/vega/public/data_model/time_cache.ts b/src/platform/plugins/private/vis_types/vega/public/data_model/time_cache.ts similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/time_cache.ts rename to src/platform/plugins/private/vis_types/vega/public/data_model/time_cache.ts diff --git a/src/plugins/vis_types/vega/public/data_model/types.ts b/src/platform/plugins/private/vis_types/vega/public/data_model/types.ts similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/types.ts rename to src/platform/plugins/private/vis_types/vega/public/data_model/types.ts diff --git a/src/plugins/vis_types/vega/public/data_model/url_parser.ts b/src/platform/plugins/private/vis_types/vega/public/data_model/url_parser.ts similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/url_parser.ts rename to src/platform/plugins/private/vis_types/vega/public/data_model/url_parser.ts diff --git a/src/plugins/vis_types/vega/public/data_model/utils.ts b/src/platform/plugins/private/vis_types/vega/public/data_model/utils.ts similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/utils.ts rename to src/platform/plugins/private/vis_types/vega/public/data_model/utils.ts diff --git a/src/plugins/vis_types/vega/public/data_model/vega_parser.test.js b/src/platform/plugins/private/vis_types/vega/public/data_model/vega_parser.test.js similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/vega_parser.test.js rename to src/platform/plugins/private/vis_types/vega/public/data_model/vega_parser.test.js diff --git a/src/plugins/vis_types/vega/public/data_model/vega_parser.ts b/src/platform/plugins/private/vis_types/vega/public/data_model/vega_parser.ts similarity index 100% rename from src/plugins/vis_types/vega/public/data_model/vega_parser.ts rename to src/platform/plugins/private/vis_types/vega/public/data_model/vega_parser.ts diff --git a/src/plugins/vis_types/vega/public/default.spec.hjson b/src/platform/plugins/private/vis_types/vega/public/default.spec.hjson similarity index 100% rename from src/plugins/vis_types/vega/public/default.spec.hjson rename to src/platform/plugins/private/vis_types/vega/public/default.spec.hjson diff --git a/src/plugins/vis_types/vega/public/default_spec.ts b/src/platform/plugins/private/vis_types/vega/public/default_spec.ts similarity index 100% rename from src/plugins/vis_types/vega/public/default_spec.ts rename to src/platform/plugins/private/vis_types/vega/public/default_spec.ts diff --git a/src/plugins/vis_types/vega/public/index.ts b/src/platform/plugins/private/vis_types/vega/public/index.ts similarity index 100% rename from src/plugins/vis_types/vega/public/index.ts rename to src/platform/plugins/private/vis_types/vega/public/index.ts diff --git a/src/plugins/vis_types/vega/public/lib/extract_index_pattern.test.ts b/src/platform/plugins/private/vis_types/vega/public/lib/extract_index_pattern.test.ts similarity index 100% rename from src/plugins/vis_types/vega/public/lib/extract_index_pattern.test.ts rename to src/platform/plugins/private/vis_types/vega/public/lib/extract_index_pattern.test.ts diff --git a/src/plugins/vis_types/vega/public/lib/extract_index_pattern.ts b/src/platform/plugins/private/vis_types/vega/public/lib/extract_index_pattern.ts similarity index 100% rename from src/plugins/vis_types/vega/public/lib/extract_index_pattern.ts rename to src/platform/plugins/private/vis_types/vega/public/lib/extract_index_pattern.ts diff --git a/src/plugins/vis_types/vega/public/lib/vega_state_restorer.test.ts b/src/platform/plugins/private/vis_types/vega/public/lib/vega_state_restorer.test.ts similarity index 100% rename from src/plugins/vis_types/vega/public/lib/vega_state_restorer.test.ts rename to src/platform/plugins/private/vis_types/vega/public/lib/vega_state_restorer.test.ts diff --git a/src/plugins/vis_types/vega/public/lib/vega_state_restorer.ts b/src/platform/plugins/private/vis_types/vega/public/lib/vega_state_restorer.ts similarity index 100% rename from src/plugins/vis_types/vega/public/lib/vega_state_restorer.ts rename to src/platform/plugins/private/vis_types/vega/public/lib/vega_state_restorer.ts diff --git a/src/plugins/vis_types/vega/public/plugin.ts b/src/platform/plugins/private/vis_types/vega/public/plugin.ts similarity index 100% rename from src/plugins/vis_types/vega/public/plugin.ts rename to src/platform/plugins/private/vis_types/vega/public/plugin.ts diff --git a/src/plugins/vis_types/vega/public/services.ts b/src/platform/plugins/private/vis_types/vega/public/services.ts similarity index 100% rename from src/plugins/vis_types/vega/public/services.ts rename to src/platform/plugins/private/vis_types/vega/public/services.ts diff --git a/src/plugins/vis_types/vega/public/test_utils/default.spec.json b/src/platform/plugins/private/vis_types/vega/public/test_utils/default.spec.json similarity index 100% rename from src/plugins/vis_types/vega/public/test_utils/default.spec.json rename to src/platform/plugins/private/vis_types/vega/public/test_utils/default.spec.json diff --git a/src/plugins/vis_types/vega/public/test_utils/vega_graph.json b/src/platform/plugins/private/vis_types/vega/public/test_utils/vega_graph.json similarity index 100% rename from src/plugins/vis_types/vega/public/test_utils/vega_graph.json rename to src/platform/plugins/private/vis_types/vega/public/test_utils/vega_graph.json diff --git a/src/plugins/vis_types/vega/public/test_utils/vega_map_test.json b/src/platform/plugins/private/vis_types/vega/public/test_utils/vega_map_test.json similarity index 100% rename from src/plugins/vis_types/vega/public/test_utils/vega_map_test.json rename to src/platform/plugins/private/vis_types/vega/public/test_utils/vega_map_test.json diff --git a/src/plugins/vis_types/vega/public/test_utils/vegalite_graph.json b/src/platform/plugins/private/vis_types/vega/public/test_utils/vegalite_graph.json similarity index 100% rename from src/plugins/vis_types/vega/public/test_utils/vegalite_graph.json rename to src/platform/plugins/private/vis_types/vega/public/test_utils/vegalite_graph.json diff --git a/src/plugins/vis_types/vega/public/to_ast.ts b/src/platform/plugins/private/vis_types/vega/public/to_ast.ts similarity index 100% rename from src/plugins/vis_types/vega/public/to_ast.ts rename to src/platform/plugins/private/vis_types/vega/public/to_ast.ts diff --git a/src/plugins/vis_types/vega/public/vega_fn.ts b/src/platform/plugins/private/vis_types/vega/public/vega_fn.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_fn.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_fn.ts diff --git a/src/plugins/vis_types/vega/public/vega_inspector/components/data_viewer.tsx b/src/platform/plugins/private/vis_types/vega/public/vega_inspector/components/data_viewer.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/vega_inspector/components/data_viewer.tsx rename to src/platform/plugins/private/vis_types/vega/public/vega_inspector/components/data_viewer.tsx diff --git a/src/plugins/vis_types/vega/public/vega_inspector/components/index.ts b/src/platform/plugins/private/vis_types/vega/public/vega_inspector/components/index.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_inspector/components/index.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_inspector/components/index.ts diff --git a/src/plugins/vis_types/vega/public/vega_inspector/components/inspector_data_grid.tsx b/src/platform/plugins/private/vis_types/vega/public/vega_inspector/components/inspector_data_grid.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/vega_inspector/components/inspector_data_grid.tsx rename to src/platform/plugins/private/vis_types/vega/public/vega_inspector/components/inspector_data_grid.tsx diff --git a/src/plugins/vis_types/vega/public/vega_inspector/components/signal_viewer.tsx b/src/platform/plugins/private/vis_types/vega/public/vega_inspector/components/signal_viewer.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/vega_inspector/components/signal_viewer.tsx rename to src/platform/plugins/private/vis_types/vega/public/vega_inspector/components/signal_viewer.tsx diff --git a/src/plugins/vis_types/vega/public/vega_inspector/components/spec_viewer.tsx b/src/platform/plugins/private/vis_types/vega/public/vega_inspector/components/spec_viewer.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/vega_inspector/components/spec_viewer.tsx rename to src/platform/plugins/private/vis_types/vega/public/vega_inspector/components/spec_viewer.tsx diff --git a/src/plugins/vis_types/vega/public/vega_inspector/index.ts b/src/platform/plugins/private/vis_types/vega/public/vega_inspector/index.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_inspector/index.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_inspector/index.ts diff --git a/src/plugins/vis_types/vega/public/vega_inspector/vega_adapter.ts b/src/platform/plugins/private/vis_types/vega/public/vega_inspector/vega_adapter.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_inspector/vega_adapter.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_inspector/vega_adapter.ts diff --git a/src/plugins/vis_types/vega/public/vega_inspector/vega_data_inspector.scss b/src/platform/plugins/private/vis_types/vega/public/vega_inspector/vega_data_inspector.scss similarity index 100% rename from src/plugins/vis_types/vega/public/vega_inspector/vega_data_inspector.scss rename to src/platform/plugins/private/vis_types/vega/public/vega_inspector/vega_data_inspector.scss diff --git a/src/plugins/vis_types/vega/public/vega_inspector/vega_data_inspector.tsx b/src/platform/plugins/private/vis_types/vega/public/vega_inspector/vega_data_inspector.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/vega_inspector/vega_data_inspector.tsx rename to src/platform/plugins/private/vis_types/vega/public/vega_inspector/vega_data_inspector.tsx diff --git a/src/plugins/vis_types/vega/public/vega_inspector/vega_inspector.tsx b/src/platform/plugins/private/vis_types/vega/public/vega_inspector/vega_inspector.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/vega_inspector/vega_inspector.tsx rename to src/platform/plugins/private/vis_types/vega/public/vega_inspector/vega_inspector.tsx diff --git a/src/plugins/vis_types/vega/public/vega_request_handler.ts b/src/platform/plugins/private/vis_types/vega/public/vega_request_handler.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_request_handler.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_request_handler.ts diff --git a/src/plugins/vis_types/vega/public/vega_type.ts b/src/platform/plugins/private/vis_types/vega/public/vega_type.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_type.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_type.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/utils.test.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/utils.test.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/utils.test.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/utils.test.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/utils.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/utils.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/utils.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/utils.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_base_view.d.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_base_view.d.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_base_view.d.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_base_view.d.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_base_view.js b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_base_view.js similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_base_view.js rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_base_view.js diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_base_view.styles.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_base_view.styles.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_base_view.styles.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_base_view.styles.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/constants.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/constants.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/constants.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/constants.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/index.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/index.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/index.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/index.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/tms_raster_layer.test.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/tms_raster_layer.test.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/tms_raster_layer.test.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/tms_raster_layer.test.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/tms_raster_layer.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/tms_raster_layer.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/tms_raster_layer.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/tms_raster_layer.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/types.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/types.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/types.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/types.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/vega_layer.test.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/vega_layer.test.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/vega_layer.test.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/vega_layer.test.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/vega_layer.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/vega_layer.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/layers/vega_layer.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/layers/vega_layer.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/service_settings/get_service_settings.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/service_settings/get_service_settings.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/service_settings/get_service_settings.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/service_settings/get_service_settings.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/service_settings/get_service_settings_lazy.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/service_settings/get_service_settings_lazy.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/service_settings/get_service_settings_lazy.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/service_settings/get_service_settings_lazy.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings.test.js b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings.test.js similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings.test.js rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings.test.js diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings_types.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings_types.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings_types.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/service_settings/service_settings_types.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/utils/index.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/utils/index.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/utils/index.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/utils/index.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/utils/validation_helper.test.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/utils/validation_helper.test.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/utils/validation_helper.test.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/utils/validation_helper.test.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/utils/validation_helper.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/utils/validation_helper.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/utils/validation_helper.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/utils/validation_helper.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/utils/vsi_helper.test.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/utils/vsi_helper.test.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/utils/vsi_helper.test.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/utils/vsi_helper.test.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/utils/vsi_helper.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/utils/vsi_helper.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/utils/vsi_helper.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/utils/vsi_helper.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/vega_map_view.scss b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/vega_map_view.scss similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/vega_map_view.scss rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/vega_map_view.scss diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/view.test.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/view.test.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/view.test.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/view.test.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_map_view/view.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/view.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_map_view/view.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_map_view/view.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_tooltip.js b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_tooltip.js similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_tooltip.js rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_tooltip.js diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_tooltip.styles.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_tooltip.styles.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_tooltip.styles.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_tooltip.styles.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_view.d.ts b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_view.d.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_view.d.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_view.d.ts diff --git a/src/plugins/vis_types/vega/public/vega_view/vega_view.js b/src/platform/plugins/private/vis_types/vega/public/vega_view/vega_view.js similarity index 100% rename from src/plugins/vis_types/vega/public/vega_view/vega_view.js rename to src/platform/plugins/private/vis_types/vega/public/vega_view/vega_view.js diff --git a/src/plugins/vis_types/vega/public/vega_vis_renderer.tsx b/src/platform/plugins/private/vis_types/vega/public/vega_vis_renderer.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/vega_vis_renderer.tsx rename to src/platform/plugins/private/vis_types/vega/public/vega_vis_renderer.tsx diff --git a/src/plugins/vis_types/vega/public/vega_visualization.test.tsx b/src/platform/plugins/private/vis_types/vega/public/vega_visualization.test.tsx similarity index 100% rename from src/plugins/vis_types/vega/public/vega_visualization.test.tsx rename to src/platform/plugins/private/vis_types/vega/public/vega_visualization.test.tsx diff --git a/src/plugins/vis_types/vega/public/vega_visualization.ts b/src/platform/plugins/private/vis_types/vega/public/vega_visualization.ts similarity index 100% rename from src/plugins/vis_types/vega/public/vega_visualization.ts rename to src/platform/plugins/private/vis_types/vega/public/vega_visualization.ts diff --git a/src/plugins/vis_types/vega/server/config.ts b/src/platform/plugins/private/vis_types/vega/server/config.ts similarity index 100% rename from src/plugins/vis_types/vega/server/config.ts rename to src/platform/plugins/private/vis_types/vega/server/config.ts diff --git a/src/plugins/vis_types/vega/server/index.ts b/src/platform/plugins/private/vis_types/vega/server/index.ts similarity index 100% rename from src/plugins/vis_types/vega/server/index.ts rename to src/platform/plugins/private/vis_types/vega/server/index.ts diff --git a/src/plugins/vis_types/vega/server/plugin.ts b/src/platform/plugins/private/vis_types/vega/server/plugin.ts similarity index 100% rename from src/plugins/vis_types/vega/server/plugin.ts rename to src/platform/plugins/private/vis_types/vega/server/plugin.ts diff --git a/src/plugins/vis_types/vega/server/types.ts b/src/platform/plugins/private/vis_types/vega/server/types.ts similarity index 100% rename from src/plugins/vis_types/vega/server/types.ts rename to src/platform/plugins/private/vis_types/vega/server/types.ts diff --git a/src/plugins/vis_types/vega/tsconfig.json b/src/platform/plugins/private/vis_types/vega/tsconfig.json similarity index 95% rename from src/plugins/vis_types/vega/tsconfig.json rename to src/platform/plugins/private/vis_types/vega/tsconfig.json index 172dd4c60fea7..56d727935f0a1 100644 --- a/src/plugins/vis_types/vega/tsconfig.json +++ b/src/platform/plugins/private/vis_types/vega/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "strictNullChecks": false diff --git a/src/plugins/vis_types/vislib/common/index.ts b/src/platform/plugins/private/vis_types/vislib/common/index.ts similarity index 100% rename from src/plugins/vis_types/vislib/common/index.ts rename to src/platform/plugins/private/vis_types/vislib/common/index.ts diff --git a/src/platform/plugins/private/vis_types/vislib/jest.config.js b/src/platform/plugins/private/vis_types/vislib/jest.config.js new file mode 100644 index 0000000000000..c3375bc07f43f --- /dev/null +++ b/src/platform/plugins/private/vis_types/vislib/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/private/vis_types/vislib'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/vislib', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/vislib/{common,public,server}/**/*.{js,ts,tsx}', + ], +}; diff --git a/src/plugins/vis_types/vislib/kibana.jsonc b/src/platform/plugins/private/vis_types/vislib/kibana.jsonc similarity index 100% rename from src/plugins/vis_types/vislib/kibana.jsonc rename to src/platform/plugins/private/vis_types/vislib/kibana.jsonc diff --git a/src/plugins/vis_types/vislib/public/__snapshots__/to_ast.test.ts.snap b/src/platform/plugins/private/vis_types/vislib/public/__snapshots__/to_ast.test.ts.snap similarity index 100% rename from src/plugins/vis_types/vislib/public/__snapshots__/to_ast.test.ts.snap rename to src/platform/plugins/private/vis_types/vislib/public/__snapshots__/to_ast.test.ts.snap diff --git a/src/plugins/vis_types/vislib/public/fixtures/dispatch_heatmap_config.json b/src/platform/plugins/private/vis_types/vislib/public/fixtures/dispatch_heatmap_config.json similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/dispatch_heatmap_config.json rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/dispatch_heatmap_config.json diff --git a/src/plugins/vis_types/vislib/public/fixtures/dispatch_heatmap_d3.json b/src/platform/plugins/private/vis_types/vislib/public/fixtures/dispatch_heatmap_d3.json similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/dispatch_heatmap_d3.json rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/dispatch_heatmap_d3.json diff --git a/src/plugins/vis_types/vislib/public/fixtures/dispatch_heatmap_data_point.json b/src/platform/plugins/private/vis_types/vislib/public/fixtures/dispatch_heatmap_data_point.json similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/dispatch_heatmap_data_point.json rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/dispatch_heatmap_data_point.json diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_columns.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_columns.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_columns.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_columns.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_rows.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_rows.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_rows.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_rows.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_rows_series_with_holes.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_rows_series_with_holes.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_rows_series_with_holes.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_rows_series_with_holes.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_monthly_interval.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_monthly_interval.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_monthly_interval.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_monthly_interval.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_neg.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_neg.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_neg.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_neg.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_stacked_series.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_stacked_series.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/date_histogram/_stacked_series.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/date_histogram/_stacked_series.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/filters/_columns.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/filters/_columns.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/filters/_columns.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/filters/_columns.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/filters/_rows.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/filters/_rows.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/filters/_rows.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/filters/_rows.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/filters/_series.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/filters/_series.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/filters/_series.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/filters/_series.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/histogram/_columns.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/histogram/_columns.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/histogram/_columns.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/histogram/_columns.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/histogram/_rows.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/histogram/_rows.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/histogram/_rows.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/histogram/_rows.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/histogram/_series.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/histogram/_series.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/histogram/_series.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/histogram/_series.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/histogram/_slices.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/histogram/_slices.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/histogram/_slices.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/histogram/_slices.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/not_enough_data/_one_point.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/not_enough_data/_one_point.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/not_enough_data/_one_point.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/not_enough_data/_one_point.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/range/_columns.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/range/_columns.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/range/_columns.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/range/_columns.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/range/_rows.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/range/_rows.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/range/_rows.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/range/_rows.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/range/_series.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/range/_series.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/range/_series.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/range/_series.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/significant_terms/_columns.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/significant_terms/_columns.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/significant_terms/_columns.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/significant_terms/_columns.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/significant_terms/_rows.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/significant_terms/_rows.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/significant_terms/_rows.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/significant_terms/_rows.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/significant_terms/_series.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/significant_terms/_series.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/significant_terms/_series.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/significant_terms/_series.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/stacked/_stacked.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/stacked/_stacked.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/stacked/_stacked.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/stacked/_stacked.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/terms/_columns.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/terms/_columns.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/terms/_columns.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/terms/_columns.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/terms/_rows.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/terms/_rows.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/terms/_rows.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/terms/_rows.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/terms/_series.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/terms/_series.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/terms/_series.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/terms/_series.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mock_data/terms/_series_multiple.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/terms/_series_multiple.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mock_data/terms/_series_multiple.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mock_data/terms/_series_multiple.js diff --git a/src/plugins/vis_types/vislib/public/fixtures/mocks.js b/src/platform/plugins/private/vis_types/vislib/public/fixtures/mocks.js similarity index 100% rename from src/plugins/vis_types/vislib/public/fixtures/mocks.js rename to src/platform/plugins/private/vis_types/vislib/public/fixtures/mocks.js diff --git a/src/plugins/vis_types/vislib/public/gauge.ts b/src/platform/plugins/private/vis_types/vislib/public/gauge.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/gauge.ts rename to src/platform/plugins/private/vis_types/vislib/public/gauge.ts diff --git a/src/plugins/vis_types/vislib/public/goal.ts b/src/platform/plugins/private/vis_types/vislib/public/goal.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/goal.ts rename to src/platform/plugins/private/vis_types/vislib/public/goal.ts diff --git a/src/plugins/vis_types/vislib/public/heatmap.ts b/src/platform/plugins/private/vis_types/vislib/public/heatmap.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/heatmap.ts rename to src/platform/plugins/private/vis_types/vislib/public/heatmap.ts diff --git a/src/plugins/vis_types/vislib/public/index.scss b/src/platform/plugins/private/vis_types/vislib/public/index.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/index.scss rename to src/platform/plugins/private/vis_types/vislib/public/index.scss diff --git a/src/plugins/vis_types/vislib/public/index.ts b/src/platform/plugins/private/vis_types/vislib/public/index.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/index.ts rename to src/platform/plugins/private/vis_types/vislib/public/index.ts diff --git a/src/plugins/vis_types/vislib/public/plugin.ts b/src/platform/plugins/private/vis_types/vislib/public/plugin.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/plugin.ts rename to src/platform/plugins/private/vis_types/vislib/public/plugin.ts diff --git a/src/plugins/vis_types/vislib/public/services.ts b/src/platform/plugins/private/vis_types/vislib/public/services.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/services.ts rename to src/platform/plugins/private/vis_types/vislib/public/services.ts diff --git a/src/plugins/vis_types/vislib/public/to_ast.test.ts b/src/platform/plugins/private/vis_types/vislib/public/to_ast.test.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/to_ast.test.ts rename to src/platform/plugins/private/vis_types/vislib/public/to_ast.test.ts diff --git a/src/plugins/vis_types/vislib/public/to_ast.ts b/src/platform/plugins/private/vis_types/vislib/public/to_ast.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/to_ast.ts rename to src/platform/plugins/private/vis_types/vislib/public/to_ast.ts diff --git a/src/plugins/vis_types/vislib/public/types.ts b/src/platform/plugins/private/vis_types/vislib/public/types.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/types.ts rename to src/platform/plugins/private/vis_types/vislib/public/types.ts diff --git a/src/plugins/vis_types/vislib/public/vis_controller.tsx b/src/platform/plugins/private/vis_types/vislib/public/vis_controller.tsx similarity index 100% rename from src/plugins/vis_types/vislib/public/vis_controller.tsx rename to src/platform/plugins/private/vis_types/vislib/public/vis_controller.tsx diff --git a/src/plugins/vis_types/vislib/public/vis_renderer.tsx b/src/platform/plugins/private/vis_types/vislib/public/vis_renderer.tsx similarity index 100% rename from src/plugins/vis_types/vislib/public/vis_renderer.tsx rename to src/platform/plugins/private/vis_types/vislib/public/vis_renderer.tsx diff --git a/src/plugins/vis_types/vislib/public/vis_type_vislib_vis_fn.ts b/src/platform/plugins/private/vis_types/vislib/public/vis_type_vislib_vis_fn.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vis_type_vislib_vis_fn.ts rename to src/platform/plugins/private/vis_types/vislib/public/vis_type_vislib_vis_fn.ts diff --git a/src/plugins/vis_types/vislib/public/vis_wrapper.tsx b/src/platform/plugins/private/vis_types/vislib/public/vis_wrapper.tsx similarity index 100% rename from src/plugins/vis_types/vislib/public/vis_wrapper.tsx rename to src/platform/plugins/private/vis_types/vislib/public/vis_wrapper.tsx diff --git a/src/plugins/vis_types/vislib/public/vislib/VISLIB.md b/src/platform/plugins/private/vis_types/vislib/public/vislib/VISLIB.md similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/VISLIB.md rename to src/platform/plugins/private/vis_types/vislib/public/vislib/VISLIB.md diff --git a/src/plugins/vis_types/vislib/public/vislib/_index.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/_index.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/_index.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/_index.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/_variables.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/_variables.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/_variables.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/_variables.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/_vislib_vis_type.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/_vislib_vis_type.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/_vislib_vis_type.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/_vislib_vis_type.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/components/labels/data_array.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/data_array.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/labels/data_array.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/data_array.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/labels/flatten_series.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/flatten_series.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/labels/flatten_series.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/flatten_series.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/labels/index.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/index.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/labels/index.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/index.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/labels/labels.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/labels.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/labels/labels.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/labels.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/labels/labels.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/labels.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/labels/labels.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/labels.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/labels/truncate_labels.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/truncate_labels.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/labels/truncate_labels.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/truncate_labels.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/labels/uniq_labels.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/uniq_labels.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/labels/uniq_labels.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/labels/uniq_labels.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/legend/__snapshots__/legend.test.tsx.snap b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/__snapshots__/legend.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/legend/__snapshots__/legend.test.tsx.snap rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/__snapshots__/legend.test.tsx.snap diff --git a/src/plugins/vis_types/vislib/public/vislib/components/legend/_index.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_index.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/legend/_index.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_index.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/components/legend/_legend.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_legend.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/legend/_legend.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_legend.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/components/legend/index.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/index.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/legend/index.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/index.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/components/legend/legend.test.tsx b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/legend.test.tsx similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/legend/legend.test.tsx rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/legend.test.tsx diff --git a/src/plugins/vis_types/vislib/public/vislib/components/legend/legend.tsx b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/legend.tsx similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/legend/legend.tsx rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/legend.tsx diff --git a/src/plugins/vis_types/vislib/public/vislib/components/legend/legend_item.tsx b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/legend_item.tsx similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/legend/legend_item.tsx rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/legend_item.tsx diff --git a/src/plugins/vis_types/vislib/public/vislib/components/legend/models.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/models.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/legend/models.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/models.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/components/tooltip/_collect_branch.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_collect_branch.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/tooltip/_collect_branch.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_collect_branch.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/tooltip/_collect_branch.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_collect_branch.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/tooltip/_collect_branch.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_collect_branch.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/tooltip/_index.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_index.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/tooltip/_index.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_index.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/components/tooltip/_pointseries_tooltip_formatter.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_pointseries_tooltip_formatter.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/tooltip/_pointseries_tooltip_formatter.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_pointseries_tooltip_formatter.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/tooltip/_pointseries_tooltip_formatter.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_pointseries_tooltip_formatter.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/tooltip/_pointseries_tooltip_formatter.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_pointseries_tooltip_formatter.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/tooltip/_tooltip.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_tooltip.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/tooltip/_tooltip.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_tooltip.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/components/tooltip/index.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/index.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/tooltip/index.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/index.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/tooltip/position_tooltip.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/position_tooltip.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/tooltip/position_tooltip.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/position_tooltip.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/tooltip/position_tooltip.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/position_tooltip.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/tooltip/position_tooltip.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/position_tooltip.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/tooltip/tooltip.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/tooltip.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/tooltip/tooltip.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/tooltip.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/zero_injection/flatten_data.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/flatten_data.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/zero_injection/flatten_data.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/flatten_data.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/zero_injection/inject_zeros.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/inject_zeros.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/zero_injection/inject_zeros.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/inject_zeros.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/zero_injection/ordered_x_keys.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/ordered_x_keys.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/zero_injection/ordered_x_keys.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/ordered_x_keys.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/zero_injection/uniq_keys.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/uniq_keys.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/zero_injection/uniq_keys.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/uniq_keys.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/zero_injection/zero_fill_data_array.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/zero_fill_data_array.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/zero_injection/zero_fill_data_array.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/zero_fill_data_array.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/zero_injection/zero_filled_array.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/zero_filled_array.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/zero_injection/zero_filled_array.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/zero_filled_array.js diff --git a/src/plugins/vis_types/vislib/public/vislib/components/zero_injection/zero_injection.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/zero_injection.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/components/zero_injection/zero_injection.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/components/zero_injection/zero_injection.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/errors.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/errors.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/errors.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/errors.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/index.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/index.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/index.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/index.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_add_to_siri.test.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_add_to_siri.test.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_add_to_siri.test.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_add_to_siri.test.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_add_to_siri.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_add_to_siri.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_add_to_siri.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_add_to_siri.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_fake_x_aspect.test.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_fake_x_aspect.test.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_fake_x_aspect.test.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_fake_x_aspect.test.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_fake_x_aspect.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_fake_x_aspect.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_fake_x_aspect.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_fake_x_aspect.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_aspects.test.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_aspects.test.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_aspects.test.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_aspects.test.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_aspects.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_aspects.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_aspects.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_aspects.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_point.test.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_point.test.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_point.test.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_point.test.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_point.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_point.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_point.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_point.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_series.test.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_series.test.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_series.test.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_series.test.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_series.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_series.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_get_series.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_get_series.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_init_x_axis.test.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_init_x_axis.test.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_init_x_axis.test.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_init_x_axis.test.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_init_x_axis.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_init_x_axis.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_init_x_axis.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_init_x_axis.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_init_y_axis.test.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_init_y_axis.test.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_init_y_axis.test.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_init_y_axis.test.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_init_y_axis.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_init_y_axis.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_init_y_axis.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_init_y_axis.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_ordered_date_axis.test.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_ordered_date_axis.test.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_ordered_date_axis.test.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_ordered_date_axis.test.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_ordered_date_axis.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_ordered_date_axis.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/_ordered_date_axis.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/_ordered_date_axis.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/index.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/index.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/index.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/index.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/point_series.test.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/point_series.test.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/point_series.test.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/point_series.test.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/helpers/point_series/point_series.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/point_series.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/helpers/point_series/point_series.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/helpers/point_series/point_series.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/__snapshots__/dispatch_heatmap.test.js.snap b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/__snapshots__/dispatch_heatmap.test.js.snap similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/__snapshots__/dispatch_heatmap.test.js.snap rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/__snapshots__/dispatch_heatmap.test.js.snap diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/_data_label.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/_data_label.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/_data_label.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/_data_label.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/_error_handler.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/_error_handler.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/_error_handler.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/_error_handler.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/_error_handler.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/_error_handler.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/_error_handler.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/_error_handler.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/_index.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/_index.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/_index.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/_index.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/axis.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/axis.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/axis.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/axis.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/axis_config.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis_config.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/axis_config.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis_config.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/axis_labels.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis_labels.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/axis_labels.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis_labels.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/axis_scale.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis_scale.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/axis_scale.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis_scale.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/axis_title.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis_title.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/axis_title.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis_title.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/axis_title.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis_title.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/axis_title.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis_title.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/index.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/index.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/index.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/index.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/scale_modes.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/scale_modes.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/scale_modes.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/scale_modes.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/time_ticks.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/time_ticks.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/time_ticks.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/time_ticks.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/time_ticks.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/time_ticks.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/time_ticks.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/time_ticks.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/x_axis.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/x_axis.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/x_axis.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/x_axis.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/axis/y_axis.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/y_axis.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/axis/y_axis.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/y_axis.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/binder.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/binder.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/binder.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/binder.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/chart_grid.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/chart_grid.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/chart_grid.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/chart_grid.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/chart_title.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/chart_title.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/chart_title.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/chart_title.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/chart_title.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/chart_title.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/chart_title.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/chart_title.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/data.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/data.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/data.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/data.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/data.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/data.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/data.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/data.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/dispatch.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/dispatch.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/dispatch.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/dispatch.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/dispatch.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/dispatch.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/dispatch.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/dispatch.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/dispatch_heatmap.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/dispatch_heatmap.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/dispatch_heatmap.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/dispatch_heatmap.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/handler.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/handler.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/handler.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/handler.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/handler.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/handler.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/handler.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/handler.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/_index.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_index.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/_index.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_index.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/_layout.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_layout.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/_layout.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_layout.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/index.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/index.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/index.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/index.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/layout.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/layout.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/layout.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/layout.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/layout.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/layout.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/layout.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/layout.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/layout_types.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/layout_types.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/layout_types.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/layout_types.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/layout_types.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/layout_types.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/layout_types.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/layout_types.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/chart_split.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/chart_split.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/chart_split.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/chart_split.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/chart_title_split.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/chart_title_split.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/chart_title_split.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/chart_title_split.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/splits.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/splits.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/splits.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/splits.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/x_axis_split.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/x_axis_split.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/x_axis_split.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/x_axis_split.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/y_axis_split.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/y_axis_split.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/y_axis_split.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/column_chart/y_axis_split.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/chart_split.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/chart_split.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/chart_split.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/chart_split.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/chart_title_split.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/chart_title_split.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/chart_title_split.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/chart_title_split.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/splits.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/splits.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/splits.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/gauge_chart/splits.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/pie_chart/chart_split.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/pie_chart/chart_split.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/pie_chart/chart_split.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/pie_chart/chart_split.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/pie_chart/chart_title_split.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/pie_chart/chart_title_split.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/splits/pie_chart/chart_title_split.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/splits/pie_chart/chart_title_split.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/types/column_layout.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/types/column_layout.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/types/column_layout.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/types/column_layout.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/types/column_layout.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/types/column_layout.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/types/column_layout.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/types/column_layout.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/layout/types/gauge_layout.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/types/gauge_layout.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/layout/types/gauge_layout.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/types/gauge_layout.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/types/gauge.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/types/gauge.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/types/gauge.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/types/gauge.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/types/index.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/types/index.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/types/index.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/types/index.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/types/point_series.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/types/point_series.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/types/point_series.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/types/point_series.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/types/point_series.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/types/point_series.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/types/point_series.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/types/point_series.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/vis_config.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/vis_config.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/vis_config.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/vis_config.js diff --git a/src/plugins/vis_types/vislib/public/vislib/lib/vis_config.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/lib/vis_config.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/lib/vis_config.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/lib/vis_config.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/partials/touchdown_template.tsx b/src/platform/plugins/private/vis_types/vislib/public/vislib/partials/touchdown_template.tsx similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/partials/touchdown_template.tsx rename to src/platform/plugins/private/vis_types/vislib/public/vislib/partials/touchdown_template.tsx diff --git a/src/plugins/vis_types/vislib/public/vislib/percentage_mode_transform.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/percentage_mode_transform.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/percentage_mode_transform.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/percentage_mode_transform.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/response_handler.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/response_handler.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/response_handler.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/response_handler.js diff --git a/src/plugins/vis_types/vislib/public/vislib/response_handler.test.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/response_handler.test.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/response_handler.test.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/response_handler.test.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/types.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/types.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/types.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/types.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/vis.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/vis.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/vis.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/vis.js diff --git a/src/plugins/vis_types/vislib/public/vislib/vis.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/vis.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/vis.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/vis.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/_chart.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/_chart.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/_chart.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/_chart.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/_vis_fixture.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/_vis_fixture.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/_vis_fixture.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/_vis_fixture.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/chart.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/chart.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/chart.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/chart.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/gauge_chart.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauge_chart.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/gauge_chart.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauge_chart.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/gauge_chart.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauge_chart.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/gauge_chart.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauge_chart.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/gauges/_index.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_index.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/gauges/_index.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_index.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/gauges/_meter.scss b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_meter.scss similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/gauges/_meter.scss rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_meter.scss diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/gauges/gauge_types.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/gauge_types.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/gauges/gauge_types.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/gauge_types.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/gauges/meter.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/meter.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/gauges/meter.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/meter.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/point_series.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/point_series.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/point_series.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/point_series.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/point_series/_point_series.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/point_series/_point_series.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/point_series/_point_series.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/point_series/_point_series.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/point_series/_point_series.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/point_series/_point_series.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/point_series/_point_series.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/point_series/_point_series.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/point_series/heatmap_chart.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/point_series/heatmap_chart.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/point_series/heatmap_chart.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/point_series/heatmap_chart.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/point_series/heatmap_chart.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/point_series/heatmap_chart.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/point_series/heatmap_chart.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/point_series/heatmap_chart.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/time_marker.d.ts b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/time_marker.d.ts similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/time_marker.d.ts rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/time_marker.d.ts diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/time_marker.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/time_marker.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/time_marker.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/time_marker.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/time_marker.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/time_marker.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/time_marker.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/time_marker.test.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/vis_types.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/vis_types.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/vis_types.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/vis_types.js diff --git a/src/plugins/vis_types/vislib/public/vislib/visualizations/vis_types.test.js b/src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/vis_types.test.js similarity index 100% rename from src/plugins/vis_types/vislib/public/vislib/visualizations/vis_types.test.js rename to src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/vis_types.test.js diff --git a/src/plugins/vis_types/vislib/server/config.ts b/src/platform/plugins/private/vis_types/vislib/server/config.ts similarity index 100% rename from src/plugins/vis_types/vislib/server/config.ts rename to src/platform/plugins/private/vis_types/vislib/server/config.ts diff --git a/src/plugins/vis_types/vislib/server/index.ts b/src/platform/plugins/private/vis_types/vislib/server/index.ts similarity index 100% rename from src/plugins/vis_types/vislib/server/index.ts rename to src/platform/plugins/private/vis_types/vislib/server/index.ts diff --git a/src/plugins/vis_types/vislib/server/plugin.ts b/src/platform/plugins/private/vis_types/vislib/server/plugin.ts similarity index 100% rename from src/plugins/vis_types/vislib/server/plugin.ts rename to src/platform/plugins/private/vis_types/vislib/server/plugin.ts diff --git a/src/plugins/vis_types/vislib/server/ui_settings.ts b/src/platform/plugins/private/vis_types/vislib/server/ui_settings.ts similarity index 100% rename from src/plugins/vis_types/vislib/server/ui_settings.ts rename to src/platform/plugins/private/vis_types/vislib/server/ui_settings.ts diff --git a/src/plugins/vis_types/vislib/tsconfig.json b/src/platform/plugins/private/vis_types/vislib/tsconfig.json similarity index 95% rename from src/plugins/vis_types/vislib/tsconfig.json rename to src/platform/plugins/private/vis_types/vislib/tsconfig.json index 9cbe0dce7e68f..4a5f0a7c57789 100644 --- a/src/plugins/vis_types/vislib/tsconfig.json +++ b/src/platform/plugins/private/vis_types/vislib/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/vis_types/xy/common/index.ts b/src/platform/plugins/private/vis_types/xy/common/index.ts similarity index 100% rename from src/plugins/vis_types/xy/common/index.ts rename to src/platform/plugins/private/vis_types/xy/common/index.ts diff --git a/src/platform/plugins/private/vis_types/xy/jest.config.js b/src/platform/plugins/private/vis_types/xy/jest.config.js new file mode 100644 index 0000000000000..481d3f78a8797 --- /dev/null +++ b/src/platform/plugins/private/vis_types/xy/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/private/vis_types/xy'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/xy', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_types/xy/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/vis_types/xy/kibana.jsonc b/src/platform/plugins/private/vis_types/xy/kibana.jsonc similarity index 100% rename from src/plugins/vis_types/xy/kibana.jsonc rename to src/platform/plugins/private/vis_types/xy/kibana.jsonc diff --git a/src/plugins/vis_types/xy/public/__snapshots__/to_ast.test.ts.snap b/src/platform/plugins/private/vis_types/xy/public/__snapshots__/to_ast.test.ts.snap similarity index 100% rename from src/plugins/vis_types/xy/public/__snapshots__/to_ast.test.ts.snap rename to src/platform/plugins/private/vis_types/xy/public/__snapshots__/to_ast.test.ts.snap diff --git a/src/plugins/vis_types/xy/public/convert_to_lens/configurations/index.test.ts b/src/platform/plugins/private/vis_types/xy/public/convert_to_lens/configurations/index.test.ts similarity index 100% rename from src/plugins/vis_types/xy/public/convert_to_lens/configurations/index.test.ts rename to src/platform/plugins/private/vis_types/xy/public/convert_to_lens/configurations/index.test.ts diff --git a/src/plugins/vis_types/xy/public/convert_to_lens/configurations/index.ts b/src/platform/plugins/private/vis_types/xy/public/convert_to_lens/configurations/index.ts similarity index 100% rename from src/plugins/vis_types/xy/public/convert_to_lens/configurations/index.ts rename to src/platform/plugins/private/vis_types/xy/public/convert_to_lens/configurations/index.ts diff --git a/src/plugins/vis_types/xy/public/convert_to_lens/index.test.ts b/src/platform/plugins/private/vis_types/xy/public/convert_to_lens/index.test.ts similarity index 100% rename from src/plugins/vis_types/xy/public/convert_to_lens/index.test.ts rename to src/platform/plugins/private/vis_types/xy/public/convert_to_lens/index.test.ts diff --git a/src/plugins/vis_types/xy/public/convert_to_lens/index.ts b/src/platform/plugins/private/vis_types/xy/public/convert_to_lens/index.ts similarity index 100% rename from src/plugins/vis_types/xy/public/convert_to_lens/index.ts rename to src/platform/plugins/private/vis_types/xy/public/convert_to_lens/index.ts diff --git a/src/plugins/vis_types/xy/public/convert_to_lens/types.ts b/src/platform/plugins/private/vis_types/xy/public/convert_to_lens/types.ts similarity index 100% rename from src/plugins/vis_types/xy/public/convert_to_lens/types.ts rename to src/platform/plugins/private/vis_types/xy/public/convert_to_lens/types.ts diff --git a/src/plugins/vis_types/xy/public/editor/collections.ts b/src/platform/plugins/private/vis_types/xy/public/editor/collections.ts similarity index 100% rename from src/plugins/vis_types/xy/public/editor/collections.ts rename to src/platform/plugins/private/vis_types/xy/public/editor/collections.ts diff --git a/src/plugins/vis_types/xy/public/editor/common_config.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/common_config.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/common_config.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/common_config.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/common/index.ts b/src/platform/plugins/private/vis_types/xy/public/editor/components/common/index.ts similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/common/index.ts rename to src/platform/plugins/private/vis_types/xy/public/editor/components/common/index.ts diff --git a/src/plugins/vis_types/xy/public/editor/components/common/truncate_labels.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/common/truncate_labels.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/common/truncate_labels.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/common/truncate_labels.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/common/truncate_labels.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/common/truncate_labels.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/common/truncate_labels.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/common/truncate_labels.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/common/validation_wrapper.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/common/validation_wrapper.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/common/validation_wrapper.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/common/validation_wrapper.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/index.ts b/src/platform/plugins/private/vis_types/xy/public/editor/components/index.ts similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/index.ts rename to src/platform/plugins/private/vis_types/xy/public/editor/components/index.ts diff --git a/src/plugins/vis_types/xy/public/editor/components/options/index.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/index.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/index.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/index.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/category_axis_panel.test.tsx.snap b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/category_axis_panel.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/category_axis_panel.test.tsx.snap rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/category_axis_panel.test.tsx.snap diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/chart_options.test.tsx.snap b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/chart_options.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/chart_options.test.tsx.snap rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/chart_options.test.tsx.snap diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/custom_extents_options.test.tsx.snap b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/custom_extents_options.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/custom_extents_options.test.tsx.snap rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/custom_extents_options.test.tsx.snap diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/index.test.tsx.snap b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/index.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/index.test.tsx.snap rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/index.test.tsx.snap diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/label_options.test.tsx.snap b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/label_options.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/label_options.test.tsx.snap rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/label_options.test.tsx.snap diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/line_options.test.tsx.snap b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/line_options.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/line_options.test.tsx.snap rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/line_options.test.tsx.snap diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/point_options.test.tsx.snap b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/point_options.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/point_options.test.tsx.snap rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/point_options.test.tsx.snap diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/value_axes_panel.test.tsx.snap b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/value_axes_panel.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/value_axes_panel.test.tsx.snap rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/value_axes_panel.test.tsx.snap diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/value_axis_options.test.tsx.snap b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/value_axis_options.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/value_axis_options.test.tsx.snap rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/value_axis_options.test.tsx.snap diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/y_extents.test.tsx.snap b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/y_extents.test.tsx.snap similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/y_extents.test.tsx.snap rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/__snapshots__/y_extents.test.tsx.snap diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/category_axis_panel.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/category_axis_panel.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/category_axis_panel.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/category_axis_panel.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/category_axis_panel.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/category_axis_panel.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/category_axis_panel.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/category_axis_panel.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/chart_options.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/chart_options.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/chart_options.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/chart_options.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/chart_options.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/chart_options.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/chart_options.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/chart_options.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/custom_extents_options.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/custom_extents_options.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/custom_extents_options.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/custom_extents_options.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/custom_extents_options.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/custom_extents_options.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/custom_extents_options.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/custom_extents_options.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/index.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/index.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/index.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/index.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/index.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/index.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/index.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/index.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/label_options.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/label_options.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/label_options.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/label_options.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/label_options.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/label_options.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/label_options.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/label_options.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/line_options.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/line_options.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/line_options.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/line_options.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/line_options.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/line_options.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/line_options.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/line_options.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/mocks.ts b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/mocks.ts similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/mocks.ts rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/mocks.ts diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/point_options.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/point_options.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/point_options.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/point_options.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/point_options.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/point_options.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/point_options.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/point_options.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/series_panel.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/series_panel.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/series_panel.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/series_panel.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/utils.ts b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/utils.ts similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/utils.ts rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/utils.ts diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/value_axes_panel.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/value_axes_panel.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/value_axes_panel.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/value_axes_panel.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/value_axes_panel.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/value_axes_panel.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/value_axes_panel.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/value_axes_panel.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/value_axis_options.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/value_axis_options.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/value_axis_options.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/value_axis_options.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/value_axis_options.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/value_axis_options.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/value_axis_options.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/value_axis_options.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/y_extents.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/y_extents.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/y_extents.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/y_extents.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/y_extents.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/y_extents.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/metrics_axes/y_extents.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/metrics_axes/y_extents.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/point_series/elastic_charts_options.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/elastic_charts_options.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/point_series/elastic_charts_options.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/elastic_charts_options.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/point_series/grid_panel.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/grid_panel.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/point_series/grid_panel.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/grid_panel.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/point_series/index.ts b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/index.ts similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/point_series/index.ts rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/index.ts diff --git a/src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts diff --git a/src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.test.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/point_series.test.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.test.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/point_series.test.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/point_series.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/point_series.tsx diff --git a/src/plugins/vis_types/xy/public/editor/components/options/point_series/threshold_panel.tsx b/src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/threshold_panel.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/editor/components/options/point_series/threshold_panel.tsx rename to src/platform/plugins/private/vis_types/xy/public/editor/components/options/point_series/threshold_panel.tsx diff --git a/src/plugins/vis_types/xy/public/editor/index.ts b/src/platform/plugins/private/vis_types/xy/public/editor/index.ts similarity index 100% rename from src/plugins/vis_types/xy/public/editor/index.ts rename to src/platform/plugins/private/vis_types/xy/public/editor/index.ts diff --git a/src/plugins/vis_types/xy/public/editor/positions.ts b/src/platform/plugins/private/vis_types/xy/public/editor/positions.ts similarity index 100% rename from src/plugins/vis_types/xy/public/editor/positions.ts rename to src/platform/plugins/private/vis_types/xy/public/editor/positions.ts diff --git a/src/plugins/vis_types/xy/public/editor/scale_types.ts b/src/platform/plugins/private/vis_types/xy/public/editor/scale_types.ts similarity index 100% rename from src/plugins/vis_types/xy/public/editor/scale_types.ts rename to src/platform/plugins/private/vis_types/xy/public/editor/scale_types.ts diff --git a/src/plugins/vis_types/xy/public/index.ts b/src/platform/plugins/private/vis_types/xy/public/index.ts similarity index 100% rename from src/plugins/vis_types/xy/public/index.ts rename to src/platform/plugins/private/vis_types/xy/public/index.ts diff --git a/src/plugins/vis_types/xy/public/mocks.ts b/src/platform/plugins/private/vis_types/xy/public/mocks.ts similarity index 100% rename from src/plugins/vis_types/xy/public/mocks.ts rename to src/platform/plugins/private/vis_types/xy/public/mocks.ts diff --git a/src/plugins/vis_types/xy/public/plugin.ts b/src/platform/plugins/private/vis_types/xy/public/plugin.ts similarity index 100% rename from src/plugins/vis_types/xy/public/plugin.ts rename to src/platform/plugins/private/vis_types/xy/public/plugin.ts diff --git a/src/plugins/vis_types/xy/public/sample_vis.test.mocks.ts b/src/platform/plugins/private/vis_types/xy/public/sample_vis.test.mocks.ts similarity index 100% rename from src/plugins/vis_types/xy/public/sample_vis.test.mocks.ts rename to src/platform/plugins/private/vis_types/xy/public/sample_vis.test.mocks.ts diff --git a/src/plugins/vis_types/xy/public/services.ts b/src/platform/plugins/private/vis_types/xy/public/services.ts similarity index 100% rename from src/plugins/vis_types/xy/public/services.ts rename to src/platform/plugins/private/vis_types/xy/public/services.ts diff --git a/src/plugins/vis_types/xy/public/to_ast.test.ts b/src/platform/plugins/private/vis_types/xy/public/to_ast.test.ts similarity index 100% rename from src/plugins/vis_types/xy/public/to_ast.test.ts rename to src/platform/plugins/private/vis_types/xy/public/to_ast.test.ts diff --git a/src/plugins/vis_types/xy/public/to_ast.ts b/src/platform/plugins/private/vis_types/xy/public/to_ast.ts similarity index 100% rename from src/plugins/vis_types/xy/public/to_ast.ts rename to src/platform/plugins/private/vis_types/xy/public/to_ast.ts diff --git a/src/plugins/vis_types/xy/public/types/constants.ts b/src/platform/plugins/private/vis_types/xy/public/types/constants.ts similarity index 100% rename from src/plugins/vis_types/xy/public/types/constants.ts rename to src/platform/plugins/private/vis_types/xy/public/types/constants.ts diff --git a/src/plugins/vis_types/xy/public/types/index.ts b/src/platform/plugins/private/vis_types/xy/public/types/index.ts similarity index 100% rename from src/plugins/vis_types/xy/public/types/index.ts rename to src/platform/plugins/private/vis_types/xy/public/types/index.ts diff --git a/src/plugins/vis_types/xy/public/types/param.ts b/src/platform/plugins/private/vis_types/xy/public/types/param.ts similarity index 100% rename from src/plugins/vis_types/xy/public/types/param.ts rename to src/platform/plugins/private/vis_types/xy/public/types/param.ts diff --git a/src/plugins/vis_types/xy/public/utils/accessors.tsx b/src/platform/plugins/private/vis_types/xy/public/utils/accessors.tsx similarity index 100% rename from src/plugins/vis_types/xy/public/utils/accessors.tsx rename to src/platform/plugins/private/vis_types/xy/public/utils/accessors.tsx diff --git a/src/plugins/vis_types/xy/public/utils/common.ts b/src/platform/plugins/private/vis_types/xy/public/utils/common.ts similarity index 100% rename from src/plugins/vis_types/xy/public/utils/common.ts rename to src/platform/plugins/private/vis_types/xy/public/utils/common.ts diff --git a/src/plugins/vis_types/xy/public/utils/get_series_params.ts b/src/platform/plugins/private/vis_types/xy/public/utils/get_series_params.ts similarity index 100% rename from src/plugins/vis_types/xy/public/utils/get_series_params.ts rename to src/platform/plugins/private/vis_types/xy/public/utils/get_series_params.ts diff --git a/src/plugins/vis_types/xy/public/vis_types/area.ts b/src/platform/plugins/private/vis_types/xy/public/vis_types/area.ts similarity index 100% rename from src/plugins/vis_types/xy/public/vis_types/area.ts rename to src/platform/plugins/private/vis_types/xy/public/vis_types/area.ts diff --git a/src/plugins/vis_types/xy/public/vis_types/get_vis_type_from_params.test.ts b/src/platform/plugins/private/vis_types/xy/public/vis_types/get_vis_type_from_params.test.ts similarity index 100% rename from src/plugins/vis_types/xy/public/vis_types/get_vis_type_from_params.test.ts rename to src/platform/plugins/private/vis_types/xy/public/vis_types/get_vis_type_from_params.test.ts diff --git a/src/plugins/vis_types/xy/public/vis_types/get_vis_type_from_params.ts b/src/platform/plugins/private/vis_types/xy/public/vis_types/get_vis_type_from_params.ts similarity index 100% rename from src/plugins/vis_types/xy/public/vis_types/get_vis_type_from_params.ts rename to src/platform/plugins/private/vis_types/xy/public/vis_types/get_vis_type_from_params.ts diff --git a/src/plugins/vis_types/xy/public/vis_types/histogram.ts b/src/platform/plugins/private/vis_types/xy/public/vis_types/histogram.ts similarity index 100% rename from src/plugins/vis_types/xy/public/vis_types/histogram.ts rename to src/platform/plugins/private/vis_types/xy/public/vis_types/histogram.ts diff --git a/src/plugins/vis_types/xy/public/vis_types/horizontal_bar.ts b/src/platform/plugins/private/vis_types/xy/public/vis_types/horizontal_bar.ts similarity index 100% rename from src/plugins/vis_types/xy/public/vis_types/horizontal_bar.ts rename to src/platform/plugins/private/vis_types/xy/public/vis_types/horizontal_bar.ts diff --git a/src/plugins/vis_types/xy/public/vis_types/index.ts b/src/platform/plugins/private/vis_types/xy/public/vis_types/index.ts similarity index 100% rename from src/plugins/vis_types/xy/public/vis_types/index.ts rename to src/platform/plugins/private/vis_types/xy/public/vis_types/index.ts diff --git a/src/plugins/vis_types/xy/public/vis_types/line.ts b/src/platform/plugins/private/vis_types/xy/public/vis_types/line.ts similarity index 100% rename from src/plugins/vis_types/xy/public/vis_types/line.ts rename to src/platform/plugins/private/vis_types/xy/public/vis_types/line.ts diff --git a/src/plugins/vis_types/xy/server/config.ts b/src/platform/plugins/private/vis_types/xy/server/config.ts similarity index 100% rename from src/plugins/vis_types/xy/server/config.ts rename to src/platform/plugins/private/vis_types/xy/server/config.ts diff --git a/src/plugins/vis_types/xy/server/index.ts b/src/platform/plugins/private/vis_types/xy/server/index.ts similarity index 100% rename from src/plugins/vis_types/xy/server/index.ts rename to src/platform/plugins/private/vis_types/xy/server/index.ts diff --git a/src/plugins/vis_types/xy/server/plugin.ts b/src/platform/plugins/private/vis_types/xy/server/plugin.ts similarity index 100% rename from src/plugins/vis_types/xy/server/plugin.ts rename to src/platform/plugins/private/vis_types/xy/server/plugin.ts diff --git a/src/plugins/vis_types/xy/tsconfig.json b/src/platform/plugins/private/vis_types/xy/tsconfig.json similarity index 91% rename from src/plugins/vis_types/xy/tsconfig.json rename to src/platform/plugins/private/vis_types/xy/tsconfig.json index 14ed87764e518..c9c70ef60450d 100644 --- a/src/plugins/vis_types/xy/tsconfig.json +++ b/src/platform/plugins/private/vis_types/xy/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/chart_expressions/expression_gauge/common/constants.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/common/constants.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/common/constants.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/common/constants.ts diff --git a/src/plugins/chart_expressions/expression_gauge/common/expression_functions/__snapshots__/gauge_function.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_gauge/common/expression_functions/__snapshots__/gauge_function.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/common/expression_functions/__snapshots__/gauge_function.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_gauge/common/expression_functions/__snapshots__/gauge_function.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_gauge/common/expression_functions/gauge_function.test.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/common/expression_functions/gauge_function.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/common/expression_functions/gauge_function.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/common/expression_functions/gauge_function.test.ts diff --git a/src/plugins/chart_expressions/expression_gauge/common/expression_functions/gauge_function.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/common/expression_functions/gauge_function.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/common/expression_functions/gauge_function.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/common/expression_functions/gauge_function.ts diff --git a/src/plugins/chart_expressions/expression_gauge/common/expression_functions/index.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/common/expression_functions/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/common/expression_functions/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/common/expression_functions/index.ts diff --git a/src/plugins/chart_expressions/expression_gauge/common/index.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/common/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/common/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/common/index.ts diff --git a/src/plugins/chart_expressions/expression_gauge/common/types/expression_functions.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/common/types/expression_functions.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/common/types/expression_functions.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/common/types/expression_functions.ts diff --git a/src/plugins/chart_expressions/expression_gauge/common/types/expression_renderers.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/common/types/expression_renderers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/common/types/expression_renderers.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/common/types/expression_renderers.ts diff --git a/src/plugins/chart_expressions/expression_gauge/common/types/index.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/common/types/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/common/types/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/common/types/index.ts diff --git a/src/plugins/chart_expressions/expression_gauge/common/utils/index.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/common/utils/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/common/utils/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/common/utils/index.ts diff --git a/src/plugins/chart_expressions/expression_gauge/common/utils/shapes.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/common/utils/shapes.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/common/utils/shapes.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/common/utils/shapes.ts diff --git a/src/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js b/src/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js new file mode 100644 index 0000000000000..7de7af39e4335 --- /dev/null +++ b/src/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../../', + roots: ['/src/platform/plugins/shared/chart_expressions/expression_gauge'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/chart_expressions/expression_gauge', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/chart_expressions/expression_gauge/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/chart_expressions/expression_gauge/kibana.jsonc b/src/platform/plugins/shared/chart_expressions/expression_gauge/kibana.jsonc similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/kibana.jsonc rename to src/platform/plugins/shared/chart_expressions/expression_gauge/kibana.jsonc diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/gauge.scss b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/gauge.scss similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/gauge.scss rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/gauge.scss diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/gauge_component.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/gauge_component.test.tsx diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/gauge_component.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/gauge_component.tsx diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/index.scss b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/index.scss similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/index.scss rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/index.scss diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/utils/accessors.test.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/accessors.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/utils/accessors.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/accessors.test.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/utils/accessors.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/accessors.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/utils/accessors.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/accessors.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/utils/gauge_types.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/gauge_types.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/utils/gauge_types.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/gauge_types.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/utils/helpers.test.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/helpers.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/utils/helpers.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/helpers.test.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/utils/helpers.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/helpers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/utils/helpers.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/helpers.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/utils/icons.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/icons.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/utils/icons.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/icons.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/utils/index.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/utils/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/index.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/utils/use_gauge_size_by_type.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/use_gauge_size_by_type.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/components/utils/use_gauge_size_by_type.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/components/utils/use_gauge_size_by_type.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/expression_renderers/gauge_renderer.tsx b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/expression_renderers/gauge_renderer.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/expression_renderers/gauge_renderer.tsx rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/expression_renderers/gauge_renderer.tsx diff --git a/src/plugins/chart_expressions/expression_gauge/public/expression_renderers/index.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/expression_renderers/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/expression_renderers/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/expression_renderers/index.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/index.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/index.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/plugin.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/services/format_service.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/services/format_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/services/format_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/services/format_service.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/services/index.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/services/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/services/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/services/index.ts diff --git a/src/plugins/chart_expressions/expression_gauge/public/services/palette_service.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/public/services/palette_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/public/services/palette_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/public/services/palette_service.ts diff --git a/src/plugins/chart_expressions/expression_gauge/server/index.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/server/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/server/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/server/index.ts diff --git a/src/plugins/chart_expressions/expression_gauge/server/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_gauge/server/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_gauge/server/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_gauge/server/plugin.ts diff --git a/src/plugins/chart_expressions/expression_gauge/tsconfig.json b/src/platform/plugins/shared/chart_expressions/expression_gauge/tsconfig.json similarity index 93% rename from src/plugins/chart_expressions/expression_gauge/tsconfig.json rename to src/platform/plugins/shared/chart_expressions/expression_gauge/tsconfig.json index b8605187e881a..433ae8be8c783 100644 --- a/src/plugins/chart_expressions/expression_gauge/tsconfig.json +++ b/src/platform/plugins/shared/chart_expressions/expression_gauge/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true diff --git a/src/plugins/chart_expressions/expression_heatmap/common/constants.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/common/constants.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/common/constants.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/common/constants.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/__snapshots__/heatmap_function.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/__snapshots__/heatmap_function.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/common/expression_functions/__snapshots__/heatmap_function.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/__snapshots__/heatmap_function.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.test.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.test.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_legend.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/heatmap_legend.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_legend.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/heatmap_legend.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/index.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/common/expression_functions/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/common/expression_functions/index.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/common/index.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/common/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/common/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/common/index.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/common/types/expression_functions.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/common/types/expression_functions.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/common/types/expression_renderers.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/common/types/expression_renderers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/common/types/expression_renderers.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/common/types/expression_renderers.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/common/types/index.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/common/types/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/common/types/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/common/types/index.ts diff --git a/src/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js b/src/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js new file mode 100644 index 0000000000000..5df32e34f0feb --- /dev/null +++ b/src/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../../', + roots: ['/src/platform/plugins/shared/chart_expressions/expression_heatmap'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/chart_expressions/expression_heatmap', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/chart_expressions/expression_heatmap/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/chart_expressions/expression_heatmap/kibana.jsonc b/src/platform/plugins/shared/chart_expressions/expression_heatmap/kibana.jsonc similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/kibana.jsonc rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/kibana.jsonc diff --git a/src/plugins/chart_expressions/expression_heatmap/public/components/chart_split.tsx b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/chart_split.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/components/chart_split.tsx rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/chart_split.tsx diff --git a/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/heatmap_component.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/heatmap_component.test.tsx diff --git a/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx diff --git a/src/plugins/chart_expressions/expression_heatmap/public/components/helpers.test.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/helpers.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/components/helpers.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/helpers.test.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/components/helpers.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/helpers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/components/helpers.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/helpers.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/components/index.scss b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/index.scss similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/components/index.scss rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/components/index.scss diff --git a/src/plugins/chart_expressions/expression_heatmap/public/constants.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/constants.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/constants.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/constants.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/expression_renderers/heatmap_renderer.tsx b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/expression_renderers/heatmap_renderer.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/expression_renderers/heatmap_renderer.tsx rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/expression_renderers/heatmap_renderer.tsx diff --git a/src/plugins/chart_expressions/expression_heatmap/public/expression_renderers/index.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/expression_renderers/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/expression_renderers/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/expression_renderers/index.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/index.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/index.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/plugin.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/services/datatable_utilities.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/services/datatable_utilities.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/services/datatable_utilities.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/services/datatable_utilities.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/services/format_service.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/services/format_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/services/format_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/services/format_service.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/services/index.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/services/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/services/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/services/index.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/services/palette_service.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/services/palette_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/services/palette_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/services/palette_service.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/services/ui_settings.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/services/ui_settings.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/services/ui_settings.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/services/ui_settings.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/utils/get_color_picker.tsx b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/utils/get_color_picker.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/utils/get_color_picker.tsx rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/utils/get_color_picker.tsx diff --git a/src/plugins/chart_expressions/expression_heatmap/public/utils/get_split_dimension_utils.test.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/utils/get_split_dimension_utils.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/utils/get_split_dimension_utils.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/utils/get_split_dimension_utils.test.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/public/utils/get_split_dimension_utils.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/public/utils/get_split_dimension_utils.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/public/utils/get_split_dimension_utils.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/public/utils/get_split_dimension_utils.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/server/index.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/server/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/server/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/server/index.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/server/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_heatmap/server/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_heatmap/server/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/server/plugin.ts diff --git a/src/plugins/chart_expressions/expression_heatmap/tsconfig.json b/src/platform/plugins/shared/chart_expressions/expression_heatmap/tsconfig.json similarity index 93% rename from src/plugins/chart_expressions/expression_heatmap/tsconfig.json rename to src/platform/plugins/shared/chart_expressions/expression_heatmap/tsconfig.json index 552d9c2c9819e..7fd5505fcc586 100644 --- a/src/plugins/chart_expressions/expression_heatmap/tsconfig.json +++ b/src/platform/plugins/shared/chart_expressions/expression_heatmap/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true diff --git a/src/plugins/chart_expressions/expression_legacy_metric/.i18nrc.json b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/.i18nrc.json similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/.i18nrc.json rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/.i18nrc.json diff --git a/src/plugins/chart_expressions/expression_legacy_metric/.storybook/main.js b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook/main.js similarity index 91% rename from src/plugins/chart_expressions/expression_legacy_metric/.storybook/main.js rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook/main.js index e19737c87765a..18faa0335df0d 100644 --- a/src/plugins/chart_expressions/expression_legacy_metric/.storybook/main.js +++ b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook/main.js @@ -14,7 +14,7 @@ import { resolve } from 'path'; const mockConfig = { resolve: { alias: { - '../../../expression_legacy_metric/public/services': resolve( + '../../../../../expression_legacy_metric/public/services': resolve( __dirname, '../public/__mocks__/services.ts' ), diff --git a/src/plugins/chart_expressions/expression_legacy_metric/README.md b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/README.md similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/README.md rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/README.md diff --git a/src/plugins/chart_expressions/expression_legacy_metric/common/constants.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/constants.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/common/constants.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/constants.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/common/expression_functions/__snapshots__/metric_vis_function.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/expression_functions/__snapshots__/metric_vis_function.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/common/expression_functions/__snapshots__/metric_vis_function.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/expression_functions/__snapshots__/metric_vis_function.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_legacy_metric/common/expression_functions/index.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/expression_functions/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/common/expression_functions/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/expression_functions/index.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/common/expression_functions/metric_vis_function.test.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/expression_functions/metric_vis_function.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/common/expression_functions/metric_vis_function.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/expression_functions/metric_vis_function.test.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/common/expression_functions/metric_vis_function.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/expression_functions/metric_vis_function.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/common/expression_functions/metric_vis_function.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/expression_functions/metric_vis_function.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/common/index.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/common/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/index.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/common/types/expression_functions.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/types/expression_functions.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/common/types/expression_functions.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/types/expression_functions.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/common/types/expression_renderers.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/types/expression_renderers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/common/types/expression_renderers.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/types/expression_renderers.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/common/types/index.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/types/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/common/types/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/common/types/index.ts diff --git a/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js new file mode 100644 index 0000000000000..a04f233972e84 --- /dev/null +++ b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../../', + roots: ['/src/platform/plugins/shared/chart_expressions/expression_legacy_metric'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/chart_expressions/expression_legacy_metric', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/chart_expressions/expression_legacy_metric/kibana.jsonc b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/kibana.jsonc similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/kibana.jsonc rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/kibana.jsonc diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/__mocks__/format_service.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/__mocks__/format_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/__mocks__/format_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/__mocks__/format_service.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/__mocks__/palette_service.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/__mocks__/palette_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/__mocks__/palette_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/__mocks__/palette_service.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/__mocks__/services.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/__mocks__/services.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/__mocks__/services.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/__mocks__/services.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/__stories__/metric_renderer.stories.tsx b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/__stories__/metric_renderer.stories.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/__stories__/metric_renderer.stories.tsx rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/__stories__/metric_renderer.stories.tsx diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/components/__snapshots__/metric_component.test.tsx.snap b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/__snapshots__/metric_component.test.tsx.snap similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/components/__snapshots__/metric_component.test.tsx.snap rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/__snapshots__/metric_component.test.tsx.snap diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/components/__snapshots__/with_auto_scale.test.tsx.snap b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/__snapshots__/with_auto_scale.test.tsx.snap similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/components/__snapshots__/with_auto_scale.test.tsx.snap rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/__snapshots__/with_auto_scale.test.tsx.snap diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/components/metric.scss b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/metric.scss similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/components/metric.scss rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/metric.scss diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_component.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/metric_component.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_component.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/metric_component.test.tsx diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_component.tsx b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/metric_component.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_component.tsx rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/metric_component.tsx diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_value.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/metric_value.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_value.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/metric_value.test.tsx diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_value.tsx b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/metric_value.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_value.tsx rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/metric_value.tsx diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.styles.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.styles.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.styles.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.styles.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.test.tsx diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.tsx b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.tsx rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/components/with_auto_scale.tsx diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/expression_renderers/index.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/expression_renderers/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/expression_renderers/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/expression_renderers/index.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/expression_renderers/metric_vis_renderer.tsx b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/expression_renderers/metric_vis_renderer.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/expression_renderers/metric_vis_renderer.tsx rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/expression_renderers/metric_vis_renderer.tsx diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/format_service.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/format_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/format_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/format_service.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/index.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/index.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/plugin.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/services/format_service.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/services/format_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/services/format_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/services/format_service.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/services/index.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/services/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/services/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/services/index.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/services/palette_service.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/services/palette_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/services/palette_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/services/palette_service.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/utils/format.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/utils/format.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/utils/format.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/utils/format.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/utils/index.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/utils/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/utils/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/utils/index.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/utils/palette.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/utils/palette.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/public/utils/palette.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/public/utils/palette.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/server/index.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/server/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/server/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/server/index.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/server/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/server/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_legacy_metric/server/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/server/plugin.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/tsconfig.json b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/tsconfig.json similarity index 92% rename from src/plugins/chart_expressions/expression_legacy_metric/tsconfig.json rename to src/platform/plugins/shared/chart_expressions/expression_legacy_metric/tsconfig.json index ec10eda351ef4..b5ac0c93d9e31 100644 --- a/src/plugins/chart_expressions/expression_legacy_metric/tsconfig.json +++ b/src/platform/plugins/shared/chart_expressions/expression_legacy_metric/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true diff --git a/src/plugins/chart_expressions/expression_metric/.i18nrc.json b/src/platform/plugins/shared/chart_expressions/expression_metric/.i18nrc.json similarity index 100% rename from src/plugins/chart_expressions/expression_metric/.i18nrc.json rename to src/platform/plugins/shared/chart_expressions/expression_metric/.i18nrc.json diff --git a/src/plugins/chart_expressions/expression_metric/.storybook/main.js b/src/platform/plugins/shared/chart_expressions/expression_metric/.storybook/main.js similarity index 92% rename from src/plugins/chart_expressions/expression_metric/.storybook/main.js rename to src/platform/plugins/shared/chart_expressions/expression_metric/.storybook/main.js index ae80dc728682e..b12d2e91b8540 100644 --- a/src/plugins/chart_expressions/expression_metric/.storybook/main.js +++ b/src/platform/plugins/shared/chart_expressions/expression_metric/.storybook/main.js @@ -14,7 +14,7 @@ import { resolve } from 'path'; const mockConfig = { resolve: { alias: { - '../../../expression_metric/public/services': resolve( + '../../../../../expression_metric/public/services': resolve( __dirname, '../public/__mocks__/services.ts' ), diff --git a/src/plugins/chart_expressions/expression_metric/README.md b/src/platform/plugins/shared/chart_expressions/expression_metric/README.md similarity index 100% rename from src/plugins/chart_expressions/expression_metric/README.md rename to src/platform/plugins/shared/chart_expressions/expression_metric/README.md diff --git a/src/plugins/chart_expressions/expression_metric/common/constants.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/common/constants.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/common/constants.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/common/constants.ts diff --git a/src/plugins/chart_expressions/expression_metric/common/expression_functions/__snapshots__/metric_trendline_function.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/__snapshots__/metric_trendline_function.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_metric/common/expression_functions/__snapshots__/metric_trendline_function.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/__snapshots__/metric_trendline_function.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_metric/common/expression_functions/index.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/common/expression_functions/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/index.ts diff --git a/src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_trendline_function.test.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/metric_trendline_function.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_trendline_function.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/metric_trendline_function.test.ts diff --git a/src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_trendline_function.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/metric_trendline_function.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_trendline_function.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/metric_trendline_function.ts diff --git a/src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.test.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.test.ts diff --git a/src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.ts diff --git a/src/plugins/chart_expressions/expression_metric/common/index.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/common/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/common/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/common/index.ts diff --git a/src/plugins/chart_expressions/expression_metric/common/types/expression_functions.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/common/types/expression_functions.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/common/types/expression_functions.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/common/types/expression_functions.ts diff --git a/src/plugins/chart_expressions/expression_metric/common/types/expression_renderers.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/common/types/expression_renderers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/common/types/expression_renderers.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/common/types/expression_renderers.ts diff --git a/src/plugins/chart_expressions/expression_metric/common/types/index.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/common/types/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/common/types/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/common/types/index.ts diff --git a/src/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js b/src/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js new file mode 100644 index 0000000000000..99d2998a48cc3 --- /dev/null +++ b/src/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../../', + roots: ['/src/platform/plugins/shared/chart_expressions/expression_metric'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/chart_expressions/expression_metric', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/chart_expressions/expression_metric/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/chart_expressions/expression_metric/kibana.jsonc b/src/platform/plugins/shared/chart_expressions/expression_metric/kibana.jsonc similarity index 100% rename from src/plugins/chart_expressions/expression_metric/kibana.jsonc rename to src/platform/plugins/shared/chart_expressions/expression_metric/kibana.jsonc diff --git a/src/plugins/chart_expressions/expression_metric/public/__mocks__/theme_service.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/__mocks__/theme_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/__mocks__/theme_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/__mocks__/theme_service.ts diff --git a/src/plugins/chart_expressions/expression_metric/public/components/__snapshots__/metric_vis.test.tsx.snap b/src/platform/plugins/shared/chart_expressions/expression_metric/public/components/__snapshots__/metric_vis.test.tsx.snap similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/components/__snapshots__/metric_vis.test.tsx.snap rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/components/__snapshots__/metric_vis.test.tsx.snap diff --git a/src/plugins/chart_expressions/expression_metric/public/components/metric_vis.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_metric/public/components/metric_vis.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/components/metric_vis.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/components/metric_vis.test.tsx diff --git a/src/plugins/chart_expressions/expression_metric/public/components/metric_vis.tsx b/src/platform/plugins/shared/chart_expressions/expression_metric/public/components/metric_vis.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/components/metric_vis.tsx rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/components/metric_vis.tsx diff --git a/src/plugins/chart_expressions/expression_metric/public/expression_renderers/index.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/expression_renderers/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/expression_renderers/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/expression_renderers/index.ts diff --git a/src/plugins/chart_expressions/expression_metric/public/expression_renderers/metric_vis_renderer.tsx b/src/platform/plugins/shared/chart_expressions/expression_metric/public/expression_renderers/metric_vis_renderer.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/expression_renderers/metric_vis_renderer.tsx rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/expression_renderers/metric_vis_renderer.tsx diff --git a/src/plugins/chart_expressions/expression_metric/public/index.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/index.ts diff --git a/src/plugins/chart_expressions/expression_metric/public/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/plugin.ts diff --git a/src/plugins/chart_expressions/expression_metric/public/services/format_service.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/services/format_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/services/format_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/services/format_service.ts diff --git a/src/plugins/chart_expressions/expression_metric/public/services/index.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/services/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/services/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/services/index.ts diff --git a/src/plugins/chart_expressions/expression_metric/public/services/palette_service.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/services/palette_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/services/palette_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/services/palette_service.ts diff --git a/src/plugins/chart_expressions/expression_metric/public/services/theme_service.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/services/theme_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/services/theme_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/services/theme_service.ts diff --git a/src/plugins/chart_expressions/expression_metric/public/services/ui_settings.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/services/ui_settings.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/services/ui_settings.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/services/ui_settings.ts diff --git a/src/plugins/chart_expressions/expression_metric/public/utils/index.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/utils/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/utils/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/utils/index.ts diff --git a/src/plugins/chart_expressions/expression_metric/public/utils/palette_data_bounds.test.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/utils/palette_data_bounds.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/utils/palette_data_bounds.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/utils/palette_data_bounds.test.ts diff --git a/src/plugins/chart_expressions/expression_metric/public/utils/palette_data_bounds.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/public/utils/palette_data_bounds.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/public/utils/palette_data_bounds.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/public/utils/palette_data_bounds.ts diff --git a/src/plugins/chart_expressions/expression_metric/server/index.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/server/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/server/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/server/index.ts diff --git a/src/plugins/chart_expressions/expression_metric/server/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_metric/server/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_metric/server/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_metric/server/plugin.ts diff --git a/src/plugins/chart_expressions/expression_metric/tsconfig.json b/src/platform/plugins/shared/chart_expressions/expression_metric/tsconfig.json similarity index 92% rename from src/plugins/chart_expressions/expression_metric/tsconfig.json rename to src/platform/plugins/shared/chart_expressions/expression_metric/tsconfig.json index 5b000f988dfa4..82b8716161cfb 100644 --- a/src/plugins/chart_expressions/expression_metric/tsconfig.json +++ b/src/platform/plugins/shared/chart_expressions/expression_metric/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true diff --git a/src/plugins/chart_expressions/expression_partition_vis/.storybook/main.js b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/.storybook/main.js similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/.storybook/main.js rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/.storybook/main.js diff --git a/src/plugins/chart_expressions/expression_partition_vis/README.md b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/README.md similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/README.md rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/README.md diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/constants.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/constants.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/constants.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/constants.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/mosaic_vis_function.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/mosaic_vis_function.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/mosaic_vis_function.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/mosaic_vis_function.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/pie_vis_function.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/pie_vis_function.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/pie_vis_function.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/pie_vis_function.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/treemap_vis_function.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/treemap_vis_function.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/treemap_vis_function.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/treemap_vis_function.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/waffle_vis_function.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/waffle_vis_function.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/waffle_vis_function.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/waffle_vis_function.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/i18n.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/i18n.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/i18n.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/i18n.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/index.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/partition_labels_function.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/partition_labels_function.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/partition_labels_function.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/partition_labels_function.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/index.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/types/expression_functions.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/types/expression_functions.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/types/expression_functions.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/types/expression_functions.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/types/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/types/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/types/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/types/index.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/utils/consolidate_metric_columns.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/utils/consolidate_metric_columns.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/utils/consolidate_metric_columns.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/utils/consolidate_metric_columns.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/utils/consolidate_metric_columns.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/utils/consolidate_metric_columns.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/utils/consolidate_metric_columns.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/utils/consolidate_metric_columns.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/utils/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/utils/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/common/utils/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/common/utils/index.ts diff --git a/src/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js new file mode 100644 index 0000000000000..82a2efff16c3c --- /dev/null +++ b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../../', + roots: ['/src/platform/plugins/shared/chart_expressions/expression_partition_vis'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/chart_expressions/expression_partition_vis', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/chart_expressions/expression_partition_vis/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/chart_expressions/expression_partition_vis/kibana.jsonc b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/kibana.jsonc similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/kibana.jsonc rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/kibana.jsonc diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/format_service.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/format_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/format_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/format_service.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/index.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/palettes.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/palettes.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/palettes.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/palettes.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/start_deps.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/start_deps.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/start_deps.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/start_deps.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/theme.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/theme.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/theme.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/theme.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/ui_settings.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/ui_settings.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__mocks__/ui_settings.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__mocks__/ui_settings.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__stories__/mosaic_vis_renderer.stories.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/mosaic_vis_renderer.stories.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__stories__/mosaic_vis_renderer.stories.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/mosaic_vis_renderer.stories.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__stories__/pie_vis_renderer.stories.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/pie_vis_renderer.stories.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__stories__/pie_vis_renderer.stories.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/pie_vis_renderer.stories.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__stories__/shared/arg_types.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/shared/arg_types.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__stories__/shared/arg_types.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/shared/arg_types.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__stories__/shared/config.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/shared/config.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__stories__/shared/config.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/shared/config.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__stories__/shared/data.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/shared/data.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__stories__/shared/data.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/shared/data.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__stories__/shared/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/shared/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__stories__/shared/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/shared/index.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__stories__/treemap_vis_renderer.stories.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/treemap_vis_renderer.stories.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__stories__/treemap_vis_renderer.stories.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/treemap_vis_renderer.stories.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/__stories__/waffle_vis_renderer.stories.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/waffle_vis_renderer.stories.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/__stories__/waffle_vis_renderer.stories.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/__stories__/waffle_vis_renderer.stories.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/components/__snapshots__/partition_vis_component.test.tsx.snap b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/__snapshots__/partition_vis_component.test.tsx.snap similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/components/__snapshots__/partition_vis_component.test.tsx.snap rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/__snapshots__/partition_vis_component.test.tsx.snap diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/components/chart_split.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/chart_split.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/components/chart_split.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/chart_split.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/components/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/components/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/index.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/components/partition_vis_component.styles.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/partition_vis_component.styles.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/components/partition_vis_component.styles.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/partition_vis_component.styles.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/components/partition_vis_component.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/partition_vis_component.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/components/partition_vis_component.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/partition_vis_component.test.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/components/partition_vis_component.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/partition_vis_component.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/components/partition_vis_component.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/partition_vis_component.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/components/visualization_noresults.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/visualization_noresults.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/components/visualization_noresults.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/components/visualization_noresults.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/expression_renderers/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/expression_renderers/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/expression_renderers/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/expression_renderers/index.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/expression_renderers/partition_vis_renderer.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/expression_renderers/partition_vis_renderer.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/expression_renderers/partition_vis_renderer.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/expression_renderers/partition_vis_renderer.test.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/expression_renderers/partition_vis_renderer.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/expression_renderers/partition_vis_renderer.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/expression_renderers/partition_vis_renderer.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/expression_renderers/partition_vis_renderer.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/index.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/mocks.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/mocks.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/mocks.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/mocks.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/plugin.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/types.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/types.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/types.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/types.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/colors/color_mapping_accessors.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/colors/color_mapping_accessors.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/colors/color_mapping_accessors.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/colors/color_mapping_accessors.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/filter_helpers.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/filter_helpers.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/filter_helpers.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/filter_helpers.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/filter_helpers.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/filter_helpers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/filter_helpers.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/filter_helpers.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/filter_out_config.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/filter_out_config.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/filter_out_config.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/filter_out_config.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/filter_out_config.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/filter_out_config.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/filter_out_config.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/filter_out_config.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/formatters.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/formatters.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/formatters.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/formatters.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/formatters.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/formatters.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/formatters.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/formatters.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_color_picker.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_color_picker.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_color_picker.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_color_picker.test.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_color_picker.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_color_picker.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_color_picker.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_color_picker.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_columns.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_columns.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_columns.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_columns.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_columns.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_columns.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_columns.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_columns.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_distinct_series.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_distinct_series.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_distinct_series.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_distinct_series.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_distinct_series.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_distinct_series.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_distinct_series.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_distinct_series.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_icon.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_icon.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_icon.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_icon.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_legend_actions.tsx b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_legend_actions.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_legend_actions.tsx rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_legend_actions.tsx diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_partition_theme.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_partition_theme.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_partition_theme.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_partition_theme.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_partition_theme.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_partition_theme.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_partition_theme.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_partition_theme.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_partition_type.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_partition_type.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_partition_type.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_partition_type.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_split_dimension_accessor.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_split_dimension_accessor.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_split_dimension_accessor.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_split_dimension_accessor.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/get_split_dimension_accessor.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_split_dimension_accessor.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/get_split_dimension_accessor.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/get_split_dimension_accessor.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/index.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_color.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/get_color.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_color.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/get_color.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_color.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/get_color.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_color.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/get_color.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_node_labels.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/get_node_labels.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_node_labels.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/get_node_labels.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/index.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/sort_predicate.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/sort_predicate.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/sort_predicate.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/sort_predicate.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/sort_predicate.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/sort_predicate.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/sort_predicate.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/layers/sort_predicate.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/legend.test.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/legend.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/legend.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/legend.test.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/utils/legend.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/legend.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/public/utils/legend.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/public/utils/legend.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/server/index.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/server/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/server/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/server/index.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/server/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/server/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/server/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/server/plugin.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/server/types.ts b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/server/types.ts similarity index 100% rename from src/plugins/chart_expressions/expression_partition_vis/server/types.ts rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/server/types.ts diff --git a/src/plugins/chart_expressions/expression_partition_vis/tsconfig.json b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/tsconfig.json similarity index 94% rename from src/plugins/chart_expressions/expression_partition_vis/tsconfig.json rename to src/platform/plugins/shared/chart_expressions/expression_partition_vis/tsconfig.json index 1d8c4c4098728..e4929c3ebec90 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/tsconfig.json +++ b/src/platform/plugins/shared/chart_expressions/expression_partition_vis/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true diff --git a/src/plugins/chart_expressions/expression_tagcloud/.i18nrc.json b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/.i18nrc.json similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/.i18nrc.json rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/.i18nrc.json diff --git a/src/plugins/chart_expressions/expression_tagcloud/.storybook/main.js b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/.storybook/main.js similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/.storybook/main.js rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/.storybook/main.js diff --git a/src/plugins/chart_expressions/expression_tagcloud/README.md b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/README.md similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/README.md rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/README.md diff --git a/src/plugins/chart_expressions/expression_tagcloud/common/constants.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/constants.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/common/constants.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/constants.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/common/expression_functions/__snapshots__/tagcloud_function.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/expression_functions/__snapshots__/tagcloud_function.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/common/expression_functions/__snapshots__/tagcloud_function.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/expression_functions/__snapshots__/tagcloud_function.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_tagcloud/common/expression_functions/index.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/expression_functions/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/common/expression_functions/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/expression_functions/index.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/common/expression_functions/tagcloud_function.test.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/expression_functions/tagcloud_function.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/common/expression_functions/tagcloud_function.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/expression_functions/tagcloud_function.test.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/common/expression_functions/tagcloud_function.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/expression_functions/tagcloud_function.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/common/expression_functions/tagcloud_function.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/expression_functions/tagcloud_function.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/common/index.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/common/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/index.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/common/types/expression_functions.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/types/expression_functions.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/common/types/expression_functions.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/types/expression_functions.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/common/types/expression_renderers.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/types/expression_renderers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/common/types/expression_renderers.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/types/expression_renderers.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/common/types/index.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/types/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/common/types/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/common/types/index.ts diff --git a/src/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js new file mode 100644 index 0000000000000..856f3e46beffe --- /dev/null +++ b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../../', + roots: ['/src/platform/plugins/shared/chart_expressions/expression_tagcloud'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/chart_expressions/expression_tagcloud', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/chart_expressions/expression_tagcloud/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/chart_expressions/expression_tagcloud/kibana.jsonc b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/kibana.jsonc similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/kibana.jsonc rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/kibana.jsonc diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/__mocks__/format_service.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/__mocks__/format_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/__mocks__/format_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/__mocks__/format_service.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/__mocks__/palettes.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/__mocks__/palettes.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/__mocks__/palettes.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/__mocks__/palettes.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/__mocks__/theme.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/__mocks__/theme.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/__mocks__/theme.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/__mocks__/theme.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/__stories__/tagcloud_renderer.stories.tsx b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/__stories__/tagcloud_renderer.stories.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/__stories__/tagcloud_renderer.stories.tsx rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/__stories__/tagcloud_renderer.stories.tsx diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/components/index.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/components/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/components/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/components/index.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/components/tag_cloud.scss b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/components/tag_cloud.scss similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/components/tag_cloud.scss rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/components/tag_cloud.scss diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/components/tagcloud_component.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/components/tagcloud_component.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/components/tagcloud_component.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/components/tagcloud_component.test.tsx diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/components/tagcloud_component.tsx b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/components/tagcloud_component.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/components/tagcloud_component.tsx rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/components/tagcloud_component.tsx diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/expression_renderers/index.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/expression_renderers/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/expression_renderers/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/expression_renderers/index.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/expression_renderers/tagcloud_renderer.tsx b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/expression_renderers/tagcloud_renderer.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/expression_renderers/tagcloud_renderer.tsx rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/expression_renderers/tagcloud_renderer.tsx diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/format_service.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/format_service.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/format_service.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/format_service.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/index.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/index.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/public/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/public/plugin.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/server/index.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/server/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/server/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/server/index.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/server/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/server/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_tagcloud/server/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/server/plugin.ts diff --git a/src/plugins/chart_expressions/expression_tagcloud/tsconfig.json b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/tsconfig.json similarity index 93% rename from src/plugins/chart_expressions/expression_tagcloud/tsconfig.json rename to src/platform/plugins/shared/chart_expressions/expression_tagcloud/tsconfig.json index 40caf4e3b00f0..9d42df7619966 100644 --- a/src/plugins/chart_expressions/expression_tagcloud/tsconfig.json +++ b/src/platform/plugins/shared/chart_expressions/expression_tagcloud/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true diff --git a/src/plugins/chart_expressions/expression_xy/README.md b/src/platform/plugins/shared/chart_expressions/expression_xy/README.md similarity index 100% rename from src/plugins/chart_expressions/expression_xy/README.md rename to src/platform/plugins/shared/chart_expressions/expression_xy/README.md diff --git a/src/plugins/chart_expressions/expression_xy/common/__mocks__/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/__mocks__/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/__mocks__/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/__mocks__/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/constants.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/constants.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/constants.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/constants.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/__snapshots__/extended_data_layer.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/__snapshots__/extended_data_layer.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/__snapshots__/extended_data_layer.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/__snapshots__/extended_data_layer.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/__snapshots__/layered_xy_vis.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/__snapshots__/layered_xy_vis.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/__snapshots__/layered_xy_vis.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/__snapshots__/layered_xy_vis.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/__snapshots__/xy_vis.test.ts.snap b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/__snapshots__/xy_vis.test.ts.snap similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/__snapshots__/xy_vis.test.ts.snap rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/__snapshots__/xy_vis.test.ts.snap diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/annotation_layer.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/annotation_layer.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/annotation_layer.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/annotation_layer.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/axis_extent_config.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/axis_extent_config.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/axis_extent_config.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/axis_extent_config.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/common_axis_args.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/common_axis_args.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/common_axis_args.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/common_axis_args.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/common_data_layer_args.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/common_data_layer_args.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/common_data_layer_args.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/common_data_layer_args.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/common_xy_args.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/common_xy_args.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/common_xy_args.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/common_xy_args.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/common_y_config_args.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/common_y_config_args.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/common_y_config_args.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/common_y_config_args.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/data_decoration_config.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/data_decoration_config.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/data_decoration_config.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/data_decoration_config.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/event_annotations_result.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/event_annotations_result.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/event_annotations_result.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/event_annotations_result.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/extended_annotation_layer.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/extended_annotation_layer.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/extended_annotation_layer.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/extended_annotation_layer.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/extended_data_layer.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/extended_data_layer.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/extended_data_layer.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/extended_data_layer.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/extended_data_layer.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/extended_data_layer.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/extended_data_layer.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/extended_data_layer.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/extended_data_layer_fn.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/extended_data_layer_fn.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/extended_data_layer_fn.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/extended_data_layer_fn.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis_fn.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis_fn.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis_fn.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis_fn.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/legend_config.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/legend_config.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/legend_config.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/legend_config.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/legend_config.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/legend_config.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/legend_config.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/legend_config.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/legend_config_fn.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/legend_config_fn.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/legend_config_fn.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/legend_config_fn.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/reference_line.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/reference_line.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/reference_line.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/reference_line.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/reference_line.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/reference_line.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/reference_line.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/reference_line.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/reference_line_decoration_config.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/reference_line_decoration_config.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/reference_line_decoration_config.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/reference_line_decoration_config.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/reference_line_layer.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/reference_line_layer.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/reference_line_layer.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/reference_line_layer.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/reference_line_layer_fn.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/reference_line_layer_fn.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/reference_line_layer_fn.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/reference_line_layer_fn.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/validate.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/validate.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/validate.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/validate.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/x_axis_config.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/x_axis_config.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/x_axis_config.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/x_axis_config.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/xy_vis.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/xy_vis.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/xy_vis.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/xy_vis.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis_fn.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/xy_vis_fn.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis_fn.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/xy_vis_fn.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/y_axis_config.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/y_axis_config.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/expression_functions/y_axis_config.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/expression_functions/y_axis_config.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/helpers/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/helpers/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/helpers/layers.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/layers.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/helpers/layers.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/layers.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/helpers/layers.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/layers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/helpers/layers.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/layers.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/helpers/table.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/table.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/helpers/table.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/table.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/helpers/table.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/table.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/helpers/table.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/table.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/helpers/visualization.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/visualization.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/helpers/visualization.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/visualization.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/helpers/visualization.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/visualization.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/helpers/visualization.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/helpers/visualization.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/i18n/index.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/common/i18n/index.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/i18n/index.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/i18n/index.tsx diff --git a/src/plugins/chart_expressions/expression_xy/common/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/types/expression_functions.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/types/expression_functions.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/types/expression_functions.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/types/expression_functions.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/types/expression_renderers.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/types/expression_renderers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/types/expression_renderers.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/types/expression_renderers.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/types/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/types/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/types/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/types/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/utils/index.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/common/utils/index.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/utils/index.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/utils/index.tsx diff --git a/src/plugins/chart_expressions/expression_xy/common/utils/layer_types_guards.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/utils/layer_types_guards.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/utils/layer_types_guards.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/utils/layer_types_guards.ts diff --git a/src/plugins/chart_expressions/expression_xy/common/utils/log_datatables.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/common/utils/log_datatables.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/common/utils/log_datatables.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/common/utils/log_datatables.ts diff --git a/src/plugins/chart_expressions/expression_legacy_metric/jest.config.js b/src/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js similarity index 64% rename from src/plugins/chart_expressions/expression_legacy_metric/jest.config.js rename to src/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js index 8ac060a8e6fe7..275833f435bf5 100644 --- a/src/plugins/chart_expressions/expression_legacy_metric/jest.config.js +++ b/src/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js @@ -9,12 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../', - roots: ['/src/plugins/chart_expressions/expression_legacy_metric'], + rootDir: '../../../../../../', + roots: ['/src/platform/plugins/shared/chart_expressions/expression_xy'], coverageDirectory: - '/target/kibana-coverage/jest/src/plugins/chart_expressions/expression_legacy_metric', + '/target/kibana-coverage/jest/src/platform/plugins/shared/chart_expressions/expression_xy', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/chart_expressions/expression_legacy_metric/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/chart_expressions/expression_xy/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/chart_expressions/expression_xy/kibana.jsonc b/src/platform/plugins/shared/chart_expressions/expression_xy/kibana.jsonc similarity index 100% rename from src/plugins/chart_expressions/expression_xy/kibana.jsonc rename to src/platform/plugins/shared/chart_expressions/expression_xy/kibana.jsonc diff --git a/src/plugins/chart_expressions/expression_xy/public/__mocks__/index.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/__mocks__/index.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/__mocks__/index.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/__mocks__/index.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/__snapshots__/xy_chart.test.tsx.snap b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/__snapshots__/xy_chart.test.tsx.snap similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/__snapshots__/xy_chart.test.tsx.snap rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/__snapshots__/xy_chart.test.tsx.snap diff --git a/src/plugins/chart_expressions/expression_xy/public/components/annotations.scss b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/annotations.scss similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/annotations.scss rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/annotations.scss diff --git a/src/plugins/chart_expressions/expression_xy/public/components/annotations.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/annotations.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/annotations.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/annotations.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/data_layers.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/data_layers.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/data_layers.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/data_layers.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/components/legend_action.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/legend_action.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/legend_action.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/legend_action.test.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/legend_action.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/legend_action.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/legend_action.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/legend_action.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/legend_action_popover.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/legend_action_popover.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/legend_action_popover.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/legend_action_popover.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/legend_color_picker.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/legend_color_picker.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/legend_color_picker.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/legend_color_picker.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/reference_lines/_mocks.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/_mocks.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/reference_lines/_mocks.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/_mocks.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/components/reference_lines/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/reference_lines/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_line.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_line.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_line.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_line.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_line_annotations.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_line_annotations.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_line_annotations.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_line_annotations.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_line_layer.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_line_layer.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_line_layer.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_line_layer.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.scss b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.scss similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.scss rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.scss diff --git a/src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.test.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/reference_lines.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/reference_lines/utils.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/utils.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/reference_lines/utils.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/utils.test.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/reference_lines/utils.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/utils.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/reference_lines/utils.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/reference_lines/utils.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/split_chart.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/split_chart.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/split_chart.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/split_chart.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/endzone_tooltip_header.test.tsx.snap b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/endzone_tooltip_header.test.tsx.snap similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/endzone_tooltip_header.test.tsx.snap rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/endzone_tooltip_header.test.tsx.snap diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip.test.tsx.snap b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip.test.tsx.snap similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip.test.tsx.snap rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip.test.tsx.snap diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip_header.test.tsx.snap b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip_header.test.tsx.snap similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip_header.test.tsx.snap rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip_header.test.tsx.snap diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip_row.test.tsx.snap b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip_row.test.tsx.snap similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip_row.test.tsx.snap rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/__snapshots__/tooltip_row.test.tsx.snap diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/endzone_tooltip_header.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/endzone_tooltip_header.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/endzone_tooltip_header.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/endzone_tooltip_header.test.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/endzone_tooltip_header.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/endzone_tooltip_header.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/endzone_tooltip_header.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/endzone_tooltip_header.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/index.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/index.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/index.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/index.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip.scss b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip.scss similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip.scss rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip.scss diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip.test.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip_actions.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip_actions.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip_actions.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip_actions.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip_header.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip_header.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip_header.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip_header.test.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip_header.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip_header.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip_header.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip_header.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip_row.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip_row.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip_row.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip_row.test.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip_row.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip_row.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/tooltip_row.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/tooltip_row.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/tooltip/utils.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/utils.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/tooltip/utils.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/tooltip/utils.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/components/x_domain.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/x_domain.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/x_domain.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/x_domain.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/xy_chart.scss b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/xy_chart.scss similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/xy_chart.scss rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/xy_chart.scss diff --git a/src/plugins/chart_expressions/expression_xy/public/components/xy_chart.test.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/xy_chart.test.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/xy_chart.test.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/xy_chart.test.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/xy_chart.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/xy_chart.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/xy_chart.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/xy_chart.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/components/xy_current_time.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/components/xy_current_time.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/components/xy_current_time.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/components/xy_current_time.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/definitions/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/definitions/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/definitions/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/definitions/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/definitions/visualizations.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/definitions/visualizations.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/definitions/visualizations.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/definitions/visualizations.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/expression_renderers/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/expression_renderers/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/expression_renderers/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/expression_renderers/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/expression_renderers/telemetry.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/expression_renderers/telemetry.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/expression_renderers/telemetry.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/expression_renderers/telemetry.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/expression_renderers/xy_chart_renderer.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/expression_renderers/xy_chart_renderer.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/expression_renderers/xy_chart_renderer.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/expression_renderers/xy_chart_renderer.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/annotations.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/annotations.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/annotations.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/annotations.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/axes_configuration.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/axes_configuration.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/axes_configuration.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/axes_configuration.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/axes_configuration.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/axes_configuration.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/axes_configuration.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/axes_configuration.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/color/color_mapping_accessor.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/color/color_mapping_accessor.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/color/color_mapping_accessor.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/color/color_mapping_accessor.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/color_assignment.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/color_assignment.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/color_assignment.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/color_assignment.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/color_assignment.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/color_assignment.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/color_assignment.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/color_assignment.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/data_layers.tsx b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/data_layers.tsx similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/data_layers.tsx rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/data_layers.tsx diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/fitting_functions.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/fitting_functions.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/fitting_functions.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/fitting_functions.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/format.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/format.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/format.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/format.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/icon.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/icon.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/icon.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/icon.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/interval.test.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/interval.test.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/interval.test.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/interval.test.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/interval.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/interval.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/interval.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/interval.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/layers.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/layers.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/layers.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/layers.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/state.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/state.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/state.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/state.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/validate_extent.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/validate_extent.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/validate_extent.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/validate_extent.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/visualization.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/visualization.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/helpers/visualization.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/helpers/visualization.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/plugin.ts diff --git a/src/plugins/chart_expressions/expression_xy/public/types.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/public/types.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/public/types.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/public/types.ts diff --git a/src/plugins/chart_expressions/expression_xy/server/index.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/server/index.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/server/index.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/server/index.ts diff --git a/src/plugins/chart_expressions/expression_xy/server/plugin.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/server/plugin.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/server/plugin.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/server/plugin.ts diff --git a/src/plugins/chart_expressions/expression_xy/server/types.ts b/src/platform/plugins/shared/chart_expressions/expression_xy/server/types.ts similarity index 100% rename from src/plugins/chart_expressions/expression_xy/server/types.ts rename to src/platform/plugins/shared/chart_expressions/expression_xy/server/types.ts diff --git a/src/plugins/chart_expressions/expression_xy/tsconfig.json b/src/platform/plugins/shared/chart_expressions/expression_xy/tsconfig.json similarity index 94% rename from src/plugins/chart_expressions/expression_xy/tsconfig.json rename to src/platform/plugins/shared/chart_expressions/expression_xy/tsconfig.json index cd8bd4db90b89..c24593e043af0 100644 --- a/src/plugins/chart_expressions/expression_xy/tsconfig.json +++ b/src/platform/plugins/shared/chart_expressions/expression_xy/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true diff --git a/src/plugins/charts/README.md b/src/platform/plugins/shared/charts/README.md similarity index 100% rename from src/plugins/charts/README.md rename to src/platform/plugins/shared/charts/README.md diff --git a/src/plugins/charts/common/constants.ts b/src/platform/plugins/shared/charts/common/constants.ts similarity index 100% rename from src/plugins/charts/common/constants.ts rename to src/platform/plugins/shared/charts/common/constants.ts diff --git a/src/plugins/charts/common/expressions/palette/index.ts b/src/platform/plugins/shared/charts/common/expressions/palette/index.ts similarity index 100% rename from src/plugins/charts/common/expressions/palette/index.ts rename to src/platform/plugins/shared/charts/common/expressions/palette/index.ts diff --git a/src/plugins/charts/common/expressions/palette/palette.test.ts b/src/platform/plugins/shared/charts/common/expressions/palette/palette.test.ts similarity index 100% rename from src/plugins/charts/common/expressions/palette/palette.test.ts rename to src/platform/plugins/shared/charts/common/expressions/palette/palette.test.ts diff --git a/src/plugins/charts/common/expressions/palette/palette.ts b/src/platform/plugins/shared/charts/common/expressions/palette/palette.ts similarity index 100% rename from src/plugins/charts/common/expressions/palette/palette.ts rename to src/platform/plugins/shared/charts/common/expressions/palette/palette.ts diff --git a/src/plugins/charts/common/expressions/palette/palette_fn.ts b/src/platform/plugins/shared/charts/common/expressions/palette/palette_fn.ts similarity index 100% rename from src/plugins/charts/common/expressions/palette/palette_fn.ts rename to src/platform/plugins/shared/charts/common/expressions/palette/palette_fn.ts diff --git a/src/plugins/charts/common/expressions/palette/system_palette.test.ts b/src/platform/plugins/shared/charts/common/expressions/palette/system_palette.test.ts similarity index 100% rename from src/plugins/charts/common/expressions/palette/system_palette.test.ts rename to src/platform/plugins/shared/charts/common/expressions/palette/system_palette.test.ts diff --git a/src/plugins/charts/common/expressions/palette/system_palette.ts b/src/platform/plugins/shared/charts/common/expressions/palette/system_palette.ts similarity index 100% rename from src/plugins/charts/common/expressions/palette/system_palette.ts rename to src/platform/plugins/shared/charts/common/expressions/palette/system_palette.ts diff --git a/src/plugins/charts/common/expressions/palette/types.ts b/src/platform/plugins/shared/charts/common/expressions/palette/types.ts similarity index 100% rename from src/plugins/charts/common/expressions/palette/types.ts rename to src/platform/plugins/shared/charts/common/expressions/palette/types.ts diff --git a/src/plugins/charts/common/index.ts b/src/platform/plugins/shared/charts/common/index.ts similarity index 100% rename from src/plugins/charts/common/index.ts rename to src/platform/plugins/shared/charts/common/index.ts diff --git a/src/plugins/charts/common/static/color_maps/color_maps.ts b/src/platform/plugins/shared/charts/common/static/color_maps/color_maps.ts similarity index 100% rename from src/plugins/charts/common/static/color_maps/color_maps.ts rename to src/platform/plugins/shared/charts/common/static/color_maps/color_maps.ts diff --git a/src/plugins/charts/common/static/color_maps/heatmap_color.test.ts b/src/platform/plugins/shared/charts/common/static/color_maps/heatmap_color.test.ts similarity index 100% rename from src/plugins/charts/common/static/color_maps/heatmap_color.test.ts rename to src/platform/plugins/shared/charts/common/static/color_maps/heatmap_color.test.ts diff --git a/src/plugins/charts/common/static/color_maps/heatmap_color.ts b/src/platform/plugins/shared/charts/common/static/color_maps/heatmap_color.ts similarity index 100% rename from src/plugins/charts/common/static/color_maps/heatmap_color.ts rename to src/platform/plugins/shared/charts/common/static/color_maps/heatmap_color.ts diff --git a/src/plugins/charts/common/static/color_maps/index.ts b/src/platform/plugins/shared/charts/common/static/color_maps/index.ts similarity index 100% rename from src/plugins/charts/common/static/color_maps/index.ts rename to src/platform/plugins/shared/charts/common/static/color_maps/index.ts diff --git a/src/plugins/charts/common/static/components/collections.ts b/src/platform/plugins/shared/charts/common/static/components/collections.ts similarity index 100% rename from src/plugins/charts/common/static/components/collections.ts rename to src/platform/plugins/shared/charts/common/static/components/collections.ts diff --git a/src/plugins/charts/common/static/components/index.ts b/src/platform/plugins/shared/charts/common/static/components/index.ts similarity index 100% rename from src/plugins/charts/common/static/components/index.ts rename to src/platform/plugins/shared/charts/common/static/components/index.ts diff --git a/src/plugins/charts/common/static/index.ts b/src/platform/plugins/shared/charts/common/static/index.ts similarity index 100% rename from src/plugins/charts/common/static/index.ts rename to src/platform/plugins/shared/charts/common/static/index.ts diff --git a/src/plugins/charts/common/static/overrides/index.ts b/src/platform/plugins/shared/charts/common/static/overrides/index.ts similarity index 100% rename from src/plugins/charts/common/static/overrides/index.ts rename to src/platform/plugins/shared/charts/common/static/overrides/index.ts diff --git a/src/plugins/charts/common/static/overrides/settings.ts b/src/platform/plugins/shared/charts/common/static/overrides/settings.ts similarity index 100% rename from src/plugins/charts/common/static/overrides/settings.ts rename to src/platform/plugins/shared/charts/common/static/overrides/settings.ts diff --git a/src/plugins/charts/common/static/styles/index.ts b/src/platform/plugins/shared/charts/common/static/styles/index.ts similarity index 100% rename from src/plugins/charts/common/static/styles/index.ts rename to src/platform/plugins/shared/charts/common/static/styles/index.ts diff --git a/src/plugins/charts/common/static/styles/multilayer_timeaxis.ts b/src/platform/plugins/shared/charts/common/static/styles/multilayer_timeaxis.ts similarity index 100% rename from src/plugins/charts/common/static/styles/multilayer_timeaxis.ts rename to src/platform/plugins/shared/charts/common/static/styles/multilayer_timeaxis.ts diff --git a/src/plugins/charts/common/types.ts b/src/platform/plugins/shared/charts/common/types.ts similarity index 100% rename from src/plugins/charts/common/types.ts rename to src/platform/plugins/shared/charts/common/types.ts diff --git a/src/plugins/vis_types/gauge/jest.config.js b/src/platform/plugins/shared/charts/jest.config.js similarity index 75% rename from src/plugins/vis_types/gauge/jest.config.js rename to src/platform/plugins/shared/charts/jest.config.js index cbb2a2d8cf021..1979443fbd6ee 100644 --- a/src/plugins/vis_types/gauge/jest.config.js +++ b/src/platform/plugins/shared/charts/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/vis_types/gauge'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_types/gauge', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/charts'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/charts', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/vis_types/gauge/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/charts/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/charts/kibana.jsonc b/src/platform/plugins/shared/charts/kibana.jsonc similarity index 100% rename from src/plugins/charts/kibana.jsonc rename to src/platform/plugins/shared/charts/kibana.jsonc diff --git a/src/plugins/charts/public/index.ts b/src/platform/plugins/shared/charts/public/index.ts similarity index 97% rename from src/plugins/charts/public/index.ts rename to src/platform/plugins/shared/charts/public/index.ts index 6b70018ac5901..33b70e86cd027 100644 --- a/src/plugins/charts/public/index.ts +++ b/src/platform/plugins/shared/charts/public/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/110891 -/* eslint-disable @kbn/eslint/no_export_all */ import { RangeSelectContext, diff --git a/src/plugins/charts/public/mocks.ts b/src/platform/plugins/shared/charts/public/mocks.ts similarity index 100% rename from src/plugins/charts/public/mocks.ts rename to src/platform/plugins/shared/charts/public/mocks.ts diff --git a/src/plugins/charts/public/plugin.ts b/src/platform/plugins/shared/charts/public/plugin.ts similarity index 100% rename from src/plugins/charts/public/plugin.ts rename to src/platform/plugins/shared/charts/public/plugin.ts diff --git a/src/plugins/charts/public/services/active_cursor/active_cursor.test.ts b/src/platform/plugins/shared/charts/public/services/active_cursor/active_cursor.test.ts similarity index 100% rename from src/plugins/charts/public/services/active_cursor/active_cursor.test.ts rename to src/platform/plugins/shared/charts/public/services/active_cursor/active_cursor.test.ts diff --git a/src/plugins/charts/public/services/active_cursor/active_cursor.ts b/src/platform/plugins/shared/charts/public/services/active_cursor/active_cursor.ts similarity index 100% rename from src/plugins/charts/public/services/active_cursor/active_cursor.ts rename to src/platform/plugins/shared/charts/public/services/active_cursor/active_cursor.ts diff --git a/src/plugins/charts/public/services/active_cursor/active_cursor_utils.test.ts b/src/platform/plugins/shared/charts/public/services/active_cursor/active_cursor_utils.test.ts similarity index 100% rename from src/plugins/charts/public/services/active_cursor/active_cursor_utils.test.ts rename to src/platform/plugins/shared/charts/public/services/active_cursor/active_cursor_utils.test.ts diff --git a/src/plugins/charts/public/services/active_cursor/active_cursor_utils.ts b/src/platform/plugins/shared/charts/public/services/active_cursor/active_cursor_utils.ts similarity index 100% rename from src/plugins/charts/public/services/active_cursor/active_cursor_utils.ts rename to src/platform/plugins/shared/charts/public/services/active_cursor/active_cursor_utils.ts diff --git a/src/plugins/charts/public/services/active_cursor/index.ts b/src/platform/plugins/shared/charts/public/services/active_cursor/index.ts similarity index 100% rename from src/plugins/charts/public/services/active_cursor/index.ts rename to src/platform/plugins/shared/charts/public/services/active_cursor/index.ts diff --git a/src/plugins/charts/public/services/active_cursor/mock.ts b/src/platform/plugins/shared/charts/public/services/active_cursor/mock.ts similarity index 100% rename from src/plugins/charts/public/services/active_cursor/mock.ts rename to src/platform/plugins/shared/charts/public/services/active_cursor/mock.ts diff --git a/src/plugins/charts/public/services/active_cursor/types.ts b/src/platform/plugins/shared/charts/public/services/active_cursor/types.ts similarity index 100% rename from src/plugins/charts/public/services/active_cursor/types.ts rename to src/platform/plugins/shared/charts/public/services/active_cursor/types.ts diff --git a/src/plugins/charts/public/services/active_cursor/use_active_cursor.test.ts b/src/platform/plugins/shared/charts/public/services/active_cursor/use_active_cursor.test.ts similarity index 100% rename from src/plugins/charts/public/services/active_cursor/use_active_cursor.test.ts rename to src/platform/plugins/shared/charts/public/services/active_cursor/use_active_cursor.test.ts diff --git a/src/plugins/charts/public/services/active_cursor/use_active_cursor.ts b/src/platform/plugins/shared/charts/public/services/active_cursor/use_active_cursor.ts similarity index 100% rename from src/plugins/charts/public/services/active_cursor/use_active_cursor.ts rename to src/platform/plugins/shared/charts/public/services/active_cursor/use_active_cursor.ts diff --git a/src/plugins/charts/public/services/index.ts b/src/platform/plugins/shared/charts/public/services/index.ts similarity index 100% rename from src/plugins/charts/public/services/index.ts rename to src/platform/plugins/shared/charts/public/services/index.ts diff --git a/src/plugins/charts/public/services/mapped_colors/index.ts b/src/platform/plugins/shared/charts/public/services/mapped_colors/index.ts similarity index 100% rename from src/plugins/charts/public/services/mapped_colors/index.ts rename to src/platform/plugins/shared/charts/public/services/mapped_colors/index.ts diff --git a/src/plugins/charts/public/services/mapped_colors/mapped_colors.test.ts b/src/platform/plugins/shared/charts/public/services/mapped_colors/mapped_colors.test.ts similarity index 100% rename from src/plugins/charts/public/services/mapped_colors/mapped_colors.test.ts rename to src/platform/plugins/shared/charts/public/services/mapped_colors/mapped_colors.test.ts diff --git a/src/plugins/charts/public/services/mapped_colors/mapped_colors.ts b/src/platform/plugins/shared/charts/public/services/mapped_colors/mapped_colors.ts similarity index 100% rename from src/plugins/charts/public/services/mapped_colors/mapped_colors.ts rename to src/platform/plugins/shared/charts/public/services/mapped_colors/mapped_colors.ts diff --git a/src/plugins/charts/public/services/palettes/README.md b/src/platform/plugins/shared/charts/public/services/palettes/README.md similarity index 100% rename from src/plugins/charts/public/services/palettes/README.md rename to src/platform/plugins/shared/charts/public/services/palettes/README.md diff --git a/src/plugins/charts/public/services/palettes/helpers.test.ts b/src/platform/plugins/shared/charts/public/services/palettes/helpers.test.ts similarity index 100% rename from src/plugins/charts/public/services/palettes/helpers.test.ts rename to src/platform/plugins/shared/charts/public/services/palettes/helpers.test.ts diff --git a/src/plugins/charts/public/services/palettes/helpers.ts b/src/platform/plugins/shared/charts/public/services/palettes/helpers.ts similarity index 100% rename from src/plugins/charts/public/services/palettes/helpers.ts rename to src/platform/plugins/shared/charts/public/services/palettes/helpers.ts diff --git a/src/plugins/charts/public/services/palettes/lighten_color.test.ts b/src/platform/plugins/shared/charts/public/services/palettes/lighten_color.test.ts similarity index 100% rename from src/plugins/charts/public/services/palettes/lighten_color.test.ts rename to src/platform/plugins/shared/charts/public/services/palettes/lighten_color.test.ts diff --git a/src/plugins/charts/public/services/palettes/lighten_color.ts b/src/platform/plugins/shared/charts/public/services/palettes/lighten_color.ts similarity index 100% rename from src/plugins/charts/public/services/palettes/lighten_color.ts rename to src/platform/plugins/shared/charts/public/services/palettes/lighten_color.ts diff --git a/src/plugins/charts/public/services/palettes/mock.ts b/src/platform/plugins/shared/charts/public/services/palettes/mock.ts similarity index 100% rename from src/plugins/charts/public/services/palettes/mock.ts rename to src/platform/plugins/shared/charts/public/services/palettes/mock.ts diff --git a/src/plugins/charts/public/services/palettes/palettes.test.tsx b/src/platform/plugins/shared/charts/public/services/palettes/palettes.test.tsx similarity index 100% rename from src/plugins/charts/public/services/palettes/palettes.test.tsx rename to src/platform/plugins/shared/charts/public/services/palettes/palettes.test.tsx diff --git a/src/plugins/charts/public/services/palettes/palettes.tsx b/src/platform/plugins/shared/charts/public/services/palettes/palettes.tsx similarity index 100% rename from src/plugins/charts/public/services/palettes/palettes.tsx rename to src/platform/plugins/shared/charts/public/services/palettes/palettes.tsx diff --git a/src/plugins/charts/public/services/palettes/service.ts b/src/platform/plugins/shared/charts/public/services/palettes/service.ts similarity index 100% rename from src/plugins/charts/public/services/palettes/service.ts rename to src/platform/plugins/shared/charts/public/services/palettes/service.ts diff --git a/src/plugins/charts/public/services/theme/README.md b/src/platform/plugins/shared/charts/public/services/theme/README.md similarity index 100% rename from src/plugins/charts/public/services/theme/README.md rename to src/platform/plugins/shared/charts/public/services/theme/README.md diff --git a/src/plugins/charts/public/services/theme/index.ts b/src/platform/plugins/shared/charts/public/services/theme/index.ts similarity index 100% rename from src/plugins/charts/public/services/theme/index.ts rename to src/platform/plugins/shared/charts/public/services/theme/index.ts diff --git a/src/plugins/charts/public/services/theme/mock.ts b/src/platform/plugins/shared/charts/public/services/theme/mock.ts similarity index 100% rename from src/plugins/charts/public/services/theme/mock.ts rename to src/platform/plugins/shared/charts/public/services/theme/mock.ts diff --git a/src/plugins/charts/public/services/theme/theme.test.tsx b/src/platform/plugins/shared/charts/public/services/theme/theme.test.tsx similarity index 100% rename from src/plugins/charts/public/services/theme/theme.test.tsx rename to src/platform/plugins/shared/charts/public/services/theme/theme.test.tsx diff --git a/src/plugins/charts/public/services/theme/theme.ts b/src/platform/plugins/shared/charts/public/services/theme/theme.ts similarity index 100% rename from src/plugins/charts/public/services/theme/theme.ts rename to src/platform/plugins/shared/charts/public/services/theme/theme.ts diff --git a/src/plugins/charts/public/static/colors/color_palette.ts b/src/platform/plugins/shared/charts/public/static/colors/color_palette.ts similarity index 100% rename from src/plugins/charts/public/static/colors/color_palette.ts rename to src/platform/plugins/shared/charts/public/static/colors/color_palette.ts diff --git a/src/plugins/charts/public/static/colors/index.ts b/src/platform/plugins/shared/charts/public/static/colors/index.ts similarity index 100% rename from src/plugins/charts/public/static/colors/index.ts rename to src/platform/plugins/shared/charts/public/static/colors/index.ts diff --git a/src/plugins/charts/public/static/colors/seed_colors.test.ts b/src/platform/plugins/shared/charts/public/static/colors/seed_colors.test.ts similarity index 100% rename from src/plugins/charts/public/static/colors/seed_colors.test.ts rename to src/platform/plugins/shared/charts/public/static/colors/seed_colors.test.ts diff --git a/src/plugins/charts/public/static/colors/seed_colors.ts b/src/platform/plugins/shared/charts/public/static/colors/seed_colors.ts similarity index 100% rename from src/plugins/charts/public/static/colors/seed_colors.ts rename to src/platform/plugins/shared/charts/public/static/colors/seed_colors.ts diff --git a/src/plugins/charts/public/static/components/color_picker.tsx b/src/platform/plugins/shared/charts/public/static/components/color_picker.tsx similarity index 100% rename from src/plugins/charts/public/static/components/color_picker.tsx rename to src/platform/plugins/shared/charts/public/static/components/color_picker.tsx diff --git a/src/plugins/charts/public/static/components/common_chart_styles.ts b/src/platform/plugins/shared/charts/public/static/components/common_chart_styles.ts similarity index 100% rename from src/plugins/charts/public/static/components/common_chart_styles.ts rename to src/platform/plugins/shared/charts/public/static/components/common_chart_styles.ts diff --git a/src/plugins/charts/public/static/components/current_time.tsx b/src/platform/plugins/shared/charts/public/static/components/current_time.tsx similarity index 100% rename from src/plugins/charts/public/static/components/current_time.tsx rename to src/platform/plugins/shared/charts/public/static/components/current_time.tsx diff --git a/src/plugins/charts/public/static/components/empty_placeholder.tsx b/src/platform/plugins/shared/charts/public/static/components/empty_placeholder.tsx similarity index 100% rename from src/plugins/charts/public/static/components/empty_placeholder.tsx rename to src/platform/plugins/shared/charts/public/static/components/empty_placeholder.tsx diff --git a/src/plugins/charts/public/static/components/endzones.tsx b/src/platform/plugins/shared/charts/public/static/components/endzones.tsx similarity index 100% rename from src/plugins/charts/public/static/components/endzones.tsx rename to src/platform/plugins/shared/charts/public/static/components/endzones.tsx diff --git a/src/plugins/charts/public/static/components/index.ts b/src/platform/plugins/shared/charts/public/static/components/index.ts similarity index 100% rename from src/plugins/charts/public/static/components/index.ts rename to src/platform/plugins/shared/charts/public/static/components/index.ts diff --git a/src/plugins/charts/public/static/components/legend_toggle.tsx b/src/platform/plugins/shared/charts/public/static/components/legend_toggle.tsx similarity index 100% rename from src/plugins/charts/public/static/components/legend_toggle.tsx rename to src/platform/plugins/shared/charts/public/static/components/legend_toggle.tsx diff --git a/src/plugins/charts/public/static/components/warnings.tsx b/src/platform/plugins/shared/charts/public/static/components/warnings.tsx similarity index 100% rename from src/plugins/charts/public/static/components/warnings.tsx rename to src/platform/plugins/shared/charts/public/static/components/warnings.tsx diff --git a/src/plugins/charts/public/static/index.ts b/src/platform/plugins/shared/charts/public/static/index.ts similarity index 100% rename from src/plugins/charts/public/static/index.ts rename to src/platform/plugins/shared/charts/public/static/index.ts diff --git a/src/plugins/charts/server/index.ts b/src/platform/plugins/shared/charts/server/index.ts similarity index 100% rename from src/plugins/charts/server/index.ts rename to src/platform/plugins/shared/charts/server/index.ts diff --git a/src/plugins/charts/server/plugin.ts b/src/platform/plugins/shared/charts/server/plugin.ts similarity index 100% rename from src/plugins/charts/server/plugin.ts rename to src/platform/plugins/shared/charts/server/plugin.ts diff --git a/src/plugins/charts/tsconfig.json b/src/platform/plugins/shared/charts/tsconfig.json similarity index 90% rename from src/plugins/charts/tsconfig.json rename to src/platform/plugins/shared/charts/tsconfig.json index 8ad33a8517031..d55997a93a6de 100644 --- a/src/plugins/charts/tsconfig.json +++ b/src/platform/plugins/shared/charts/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/platform/plugins/shared/custom_integrations/jest.config.js b/src/platform/plugins/shared/custom_integrations/jest.config.js index 95eec08d41d38..944c08a4f409a 100644 --- a/src/platform/plugins/shared/custom_integrations/jest.config.js +++ b/src/platform/plugins/shared/custom_integrations/jest.config.js @@ -14,5 +14,7 @@ module.exports = { coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/custom_integrations', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/data/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/data/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/plugins/data/.storybook/main.js b/src/platform/plugins/shared/data/.storybook/main.js similarity index 100% rename from src/plugins/data/.storybook/main.js rename to src/platform/plugins/shared/data/.storybook/main.js diff --git a/src/plugins/data/README.mdx b/src/platform/plugins/shared/data/README.mdx similarity index 100% rename from src/plugins/data/README.mdx rename to src/platform/plugins/shared/data/README.mdx diff --git a/src/plugins/data/common/constants.ts b/src/platform/plugins/shared/data/common/constants.ts similarity index 100% rename from src/plugins/data/common/constants.ts rename to src/platform/plugins/shared/data/common/constants.ts diff --git a/src/plugins/data/common/datatable_utilities/datatable_utilities_service.test.ts b/src/platform/plugins/shared/data/common/datatable_utilities/datatable_utilities_service.test.ts similarity index 100% rename from src/plugins/data/common/datatable_utilities/datatable_utilities_service.test.ts rename to src/platform/plugins/shared/data/common/datatable_utilities/datatable_utilities_service.test.ts diff --git a/src/plugins/data/common/datatable_utilities/datatable_utilities_service.ts b/src/platform/plugins/shared/data/common/datatable_utilities/datatable_utilities_service.ts similarity index 100% rename from src/plugins/data/common/datatable_utilities/datatable_utilities_service.ts rename to src/platform/plugins/shared/data/common/datatable_utilities/datatable_utilities_service.ts diff --git a/src/plugins/data/common/datatable_utilities/index.ts b/src/platform/plugins/shared/data/common/datatable_utilities/index.ts similarity index 100% rename from src/plugins/data/common/datatable_utilities/index.ts rename to src/platform/plugins/shared/data/common/datatable_utilities/index.ts diff --git a/src/plugins/data/common/datatable_utilities/mock.ts b/src/platform/plugins/shared/data/common/datatable_utilities/mock.ts similarity index 100% rename from src/plugins/data/common/datatable_utilities/mock.ts rename to src/platform/plugins/shared/data/common/datatable_utilities/mock.ts diff --git a/src/plugins/data/common/es_query/index.ts b/src/platform/plugins/shared/data/common/es_query/index.ts similarity index 100% rename from src/plugins/data/common/es_query/index.ts rename to src/platform/plugins/shared/data/common/es_query/index.ts diff --git a/src/plugins/data/common/exports/constants.ts b/src/platform/plugins/shared/data/common/exports/constants.ts similarity index 100% rename from src/plugins/data/common/exports/constants.ts rename to src/platform/plugins/shared/data/common/exports/constants.ts diff --git a/src/plugins/data/common/exports/escape_value.test.ts b/src/platform/plugins/shared/data/common/exports/escape_value.test.ts similarity index 100% rename from src/plugins/data/common/exports/escape_value.test.ts rename to src/platform/plugins/shared/data/common/exports/escape_value.test.ts diff --git a/src/plugins/data/common/exports/escape_value.ts b/src/platform/plugins/shared/data/common/exports/escape_value.ts similarity index 100% rename from src/plugins/data/common/exports/escape_value.ts rename to src/platform/plugins/shared/data/common/exports/escape_value.ts diff --git a/src/plugins/data/common/exports/export_csv.test.ts b/src/platform/plugins/shared/data/common/exports/export_csv.test.ts similarity index 100% rename from src/plugins/data/common/exports/export_csv.test.ts rename to src/platform/plugins/shared/data/common/exports/export_csv.test.ts diff --git a/src/plugins/data/common/exports/export_csv.tsx b/src/platform/plugins/shared/data/common/exports/export_csv.tsx similarity index 100% rename from src/plugins/data/common/exports/export_csv.tsx rename to src/platform/plugins/shared/data/common/exports/export_csv.tsx diff --git a/src/plugins/data/common/exports/formula_checks.ts b/src/platform/plugins/shared/data/common/exports/formula_checks.ts similarity index 100% rename from src/plugins/data/common/exports/formula_checks.ts rename to src/platform/plugins/shared/data/common/exports/formula_checks.ts diff --git a/src/plugins/data/common/exports/index.ts b/src/platform/plugins/shared/data/common/exports/index.ts similarity index 100% rename from src/plugins/data/common/exports/index.ts rename to src/platform/plugins/shared/data/common/exports/index.ts diff --git a/src/plugins/data/common/index.ts b/src/platform/plugins/shared/data/common/index.ts similarity index 98% rename from src/plugins/data/common/index.ts rename to src/platform/plugins/shared/data/common/index.ts index 485978479b347..f802d0560f70f 100644 --- a/src/plugins/data/common/index.ts +++ b/src/platform/plugins/shared/data/common/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/109904 -/* eslint-disable @kbn/eslint/no_export_all */ export { DEFAULT_QUERY_LANGUAGE, diff --git a/src/plugins/data/common/kbn_field_types/index.ts b/src/platform/plugins/shared/data/common/kbn_field_types/index.ts similarity index 100% rename from src/plugins/data/common/kbn_field_types/index.ts rename to src/platform/plugins/shared/data/common/kbn_field_types/index.ts diff --git a/src/plugins/data/common/kbn_field_types/types.ts b/src/platform/plugins/shared/data/common/kbn_field_types/types.ts similarity index 100% rename from src/plugins/data/common/kbn_field_types/types.ts rename to src/platform/plugins/shared/data/common/kbn_field_types/types.ts diff --git a/src/plugins/data/common/mocks.ts b/src/platform/plugins/shared/data/common/mocks.ts similarity index 100% rename from src/plugins/data/common/mocks.ts rename to src/platform/plugins/shared/data/common/mocks.ts diff --git a/src/plugins/data/common/query/filters/persistable_state.test.ts b/src/platform/plugins/shared/data/common/query/filters/persistable_state.test.ts similarity index 100% rename from src/plugins/data/common/query/filters/persistable_state.test.ts rename to src/platform/plugins/shared/data/common/query/filters/persistable_state.test.ts diff --git a/src/plugins/data/common/query/filters/persistable_state.ts b/src/platform/plugins/shared/data/common/query/filters/persistable_state.ts similarity index 100% rename from src/plugins/data/common/query/filters/persistable_state.ts rename to src/platform/plugins/shared/data/common/query/filters/persistable_state.ts diff --git a/src/plugins/data/common/query/index.ts b/src/platform/plugins/shared/data/common/query/index.ts similarity index 100% rename from src/plugins/data/common/query/index.ts rename to src/platform/plugins/shared/data/common/query/index.ts diff --git a/src/plugins/data/common/query/is_query.ts b/src/platform/plugins/shared/data/common/query/is_query.ts similarity index 100% rename from src/plugins/data/common/query/is_query.ts rename to src/platform/plugins/shared/data/common/query/is_query.ts diff --git a/src/plugins/data/common/query/persistable_state.test.ts b/src/platform/plugins/shared/data/common/query/persistable_state.test.ts similarity index 100% rename from src/plugins/data/common/query/persistable_state.test.ts rename to src/platform/plugins/shared/data/common/query/persistable_state.test.ts diff --git a/src/plugins/data/common/query/persistable_state.ts b/src/platform/plugins/shared/data/common/query/persistable_state.ts similarity index 100% rename from src/plugins/data/common/query/persistable_state.ts rename to src/platform/plugins/shared/data/common/query/persistable_state.ts diff --git a/src/plugins/data/common/query/query_state.ts b/src/platform/plugins/shared/data/common/query/query_state.ts similarity index 100% rename from src/plugins/data/common/query/query_state.ts rename to src/platform/plugins/shared/data/common/query/query_state.ts diff --git a/src/plugins/data/common/query/text_based_query_state_to_ast.test.ts b/src/platform/plugins/shared/data/common/query/text_based_query_state_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/query/text_based_query_state_to_ast.test.ts rename to src/platform/plugins/shared/data/common/query/text_based_query_state_to_ast.test.ts diff --git a/src/plugins/data/common/query/text_based_query_state_to_ast.ts b/src/platform/plugins/shared/data/common/query/text_based_query_state_to_ast.ts similarity index 100% rename from src/plugins/data/common/query/text_based_query_state_to_ast.ts rename to src/platform/plugins/shared/data/common/query/text_based_query_state_to_ast.ts diff --git a/src/plugins/data/common/query/text_based_query_state_to_ast_with_validation.test.ts b/src/platform/plugins/shared/data/common/query/text_based_query_state_to_ast_with_validation.test.ts similarity index 100% rename from src/plugins/data/common/query/text_based_query_state_to_ast_with_validation.test.ts rename to src/platform/plugins/shared/data/common/query/text_based_query_state_to_ast_with_validation.test.ts diff --git a/src/plugins/data/common/query/text_based_query_state_to_ast_with_validation.ts b/src/platform/plugins/shared/data/common/query/text_based_query_state_to_ast_with_validation.ts similarity index 100% rename from src/plugins/data/common/query/text_based_query_state_to_ast_with_validation.ts rename to src/platform/plugins/shared/data/common/query/text_based_query_state_to_ast_with_validation.ts diff --git a/src/plugins/data/common/query/timefilter/get_time.test.ts b/src/platform/plugins/shared/data/common/query/timefilter/get_time.test.ts similarity index 100% rename from src/plugins/data/common/query/timefilter/get_time.test.ts rename to src/platform/plugins/shared/data/common/query/timefilter/get_time.test.ts diff --git a/src/plugins/data/common/query/timefilter/get_time.ts b/src/platform/plugins/shared/data/common/query/timefilter/get_time.ts similarity index 100% rename from src/plugins/data/common/query/timefilter/get_time.ts rename to src/platform/plugins/shared/data/common/query/timefilter/get_time.ts diff --git a/src/plugins/data/common/query/timefilter/index.ts b/src/platform/plugins/shared/data/common/query/timefilter/index.ts similarity index 100% rename from src/plugins/data/common/query/timefilter/index.ts rename to src/platform/plugins/shared/data/common/query/timefilter/index.ts diff --git a/src/plugins/data/common/query/timefilter/is_time_range.ts b/src/platform/plugins/shared/data/common/query/timefilter/is_time_range.ts similarity index 100% rename from src/plugins/data/common/query/timefilter/is_time_range.ts rename to src/platform/plugins/shared/data/common/query/timefilter/is_time_range.ts diff --git a/src/plugins/data/common/query/timefilter/types.ts b/src/platform/plugins/shared/data/common/query/timefilter/types.ts similarity index 100% rename from src/plugins/data/common/query/timefilter/types.ts rename to src/platform/plugins/shared/data/common/query/timefilter/types.ts diff --git a/src/plugins/data/common/query/types.ts b/src/platform/plugins/shared/data/common/query/types.ts similarity index 100% rename from src/plugins/data/common/query/types.ts rename to src/platform/plugins/shared/data/common/query/types.ts diff --git a/src/plugins/data/common/search/aggs/agg_config.test.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_config.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_config.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_config.test.ts diff --git a/src/plugins/data/common/search/aggs/agg_config.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_config.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_config.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_config.ts diff --git a/src/plugins/data/common/search/aggs/agg_configs.test.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_configs.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_configs.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_configs.test.ts diff --git a/src/plugins/data/common/search/aggs/agg_configs.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_configs.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_configs.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_configs.ts diff --git a/src/plugins/data/common/search/aggs/agg_groups.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_groups.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_groups.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_groups.ts diff --git a/src/plugins/data/common/search/aggs/agg_params.test.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_params.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_params.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_params.test.ts diff --git a/src/plugins/data/common/search/aggs/agg_params.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_params.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_params.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_params.ts diff --git a/src/plugins/data/common/search/aggs/agg_type.test.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_type.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_type.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_type.test.ts diff --git a/src/plugins/data/common/search/aggs/agg_type.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_type.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_type.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_type.ts diff --git a/src/plugins/data/common/search/aggs/agg_types.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_types.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_types.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_types.ts diff --git a/src/plugins/data/common/search/aggs/agg_types_registry.test.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_types_registry.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_types_registry.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_types_registry.test.ts diff --git a/src/plugins/data/common/search/aggs/agg_types_registry.ts b/src/platform/plugins/shared/data/common/search/aggs/agg_types_registry.ts similarity index 100% rename from src/plugins/data/common/search/aggs/agg_types_registry.ts rename to src/platform/plugins/shared/data/common/search/aggs/agg_types_registry.ts diff --git a/src/plugins/data/common/search/aggs/aggs_service.test.ts b/src/platform/plugins/shared/data/common/search/aggs/aggs_service.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/aggs_service.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/aggs_service.test.ts diff --git a/src/plugins/data/common/search/aggs/aggs_service.ts b/src/platform/plugins/shared/data/common/search/aggs/aggs_service.ts similarity index 100% rename from src/plugins/data/common/search/aggs/aggs_service.ts rename to src/platform/plugins/shared/data/common/search/aggs/aggs_service.ts diff --git a/src/plugins/data/common/search/aggs/buckets/_interval_options.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/_interval_options.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/_interval_options.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/_interval_options.ts diff --git a/src/plugins/data/common/search/aggs/buckets/_terms_order_helper.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/_terms_order_helper.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/_terms_order_helper.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/_terms_order_helper.ts diff --git a/src/plugins/data/common/search/aggs/buckets/_terms_other_bucket_helper.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/_terms_other_bucket_helper.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/_terms_other_bucket_helper.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/_terms_other_bucket_helper.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/_terms_other_bucket_helper.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/_terms_other_bucket_helper.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/_terms_other_bucket_helper.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/_terms_other_bucket_helper.ts diff --git a/src/plugins/data/common/search/aggs/buckets/bucket_agg_type.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/bucket_agg_type.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/bucket_agg_type.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/bucket_agg_type.ts diff --git a/src/plugins/data/common/search/aggs/buckets/bucket_agg_types.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/bucket_agg_types.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/bucket_agg_types.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/bucket_agg_types.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/date_histogram.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/date_histogram.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/date_histogram.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/date_histogram.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/date_histogram.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/date_histogram.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/date_histogram.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/date_histogram.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/date_range.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/date_range.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/date_range.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/date_range.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/date_range.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/date_range.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/date_range.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/date_range.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/filters.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/filters.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/filters.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/filters.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/filters.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/filters.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/filters.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/filters.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/histogram.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/histogram.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/histogram.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/histogram.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/histogram.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/histogram.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/histogram.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/histogram.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/ip_prefix.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/ip_prefix.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/ip_prefix.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/ip_prefix.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/ip_prefix.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/ip_prefix.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/ip_prefix.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/ip_prefix.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/ip_range.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/ip_range.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/ip_range.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/ip_range.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/ip_range.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/ip_range.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/ip_range.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/ip_range.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/multi_terms.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/multi_terms.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/multi_terms.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/multi_terms.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/range.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/range.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/range.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/range.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/range.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/range.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/range.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/range.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/terms.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/terms.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/terms.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/terms.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/create_filter/terms.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/terms.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/create_filter/terms.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/create_filter/terms.ts diff --git a/src/plugins/data/common/search/aggs/buckets/date_histogram.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/date_histogram.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/date_histogram.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/date_histogram.ts diff --git a/src/plugins/data/common/search/aggs/buckets/date_histogram_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/date_histogram_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/date_histogram_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/date_histogram_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/date_histogram_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/date_histogram_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/date_histogram_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/date_histogram_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/date_range.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/date_range.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/date_range.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/date_range.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/date_range.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/date_range.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/date_range.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/date_range.ts diff --git a/src/plugins/data/common/search/aggs/buckets/date_range_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/date_range_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/date_range_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/date_range_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/date_range_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/date_range_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/date_range_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/date_range_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/diversified_sampler.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/diversified_sampler.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/diversified_sampler.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/diversified_sampler.ts diff --git a/src/plugins/data/common/search/aggs/buckets/diversified_sampler_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/diversified_sampler_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/diversified_sampler_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/diversified_sampler_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/diversified_sampler_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/diversified_sampler_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/diversified_sampler_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/diversified_sampler_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/filter.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/filter.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/filter.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/filter.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/filter.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/filter.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/filter.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/filter.ts diff --git a/src/plugins/data/common/search/aggs/buckets/filter_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/filter_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/filter_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/filter_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/filter_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/filter_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/filter_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/filter_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/filters.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/filters.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/filters.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/filters.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/filters.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/filters.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/filters.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/filters.ts diff --git a/src/plugins/data/common/search/aggs/buckets/filters_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/filters_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/filters_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/filters_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/filters_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/filters_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/filters_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/filters_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/geo_tile.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/geo_tile.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/geo_tile.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/geo_tile.ts diff --git a/src/plugins/data/common/search/aggs/buckets/geo_tile_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/geo_tile_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/geo_tile_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/geo_tile_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/geo_tile_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/geo_tile_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/geo_tile_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/geo_tile_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/histogram.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/histogram.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/histogram.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/histogram.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/histogram.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/histogram.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/histogram.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/histogram.ts diff --git a/src/plugins/data/common/search/aggs/buckets/histogram_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/histogram_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/histogram_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/histogram_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/histogram_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/histogram_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/histogram_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/histogram_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/index.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/index.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/index.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/index.ts diff --git a/src/plugins/data/common/search/aggs/buckets/ip_prefix.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/ip_prefix.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/ip_prefix.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/ip_prefix.ts diff --git a/src/plugins/data/common/search/aggs/buckets/ip_prefix_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/ip_prefix_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/ip_prefix_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/ip_prefix_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/ip_prefix_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/ip_prefix_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/ip_prefix_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/ip_prefix_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/ip_range.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/ip_range.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/ip_range.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/ip_range.ts diff --git a/src/plugins/data/common/search/aggs/buckets/ip_range_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/ip_range_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/ip_range_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/ip_range_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/ip_range_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/ip_range_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/ip_range_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/ip_range_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/cidr_mask.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/cidr_mask.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/cidr_mask.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/cidr_mask.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/cidr_mask.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/cidr_mask.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/cidr_mask.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/cidr_mask.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/date_range.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/date_range.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/date_range.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/date_range.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/histogram_calculate_interval.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/histogram_calculate_interval.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/histogram_calculate_interval.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/histogram_calculate_interval.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/histogram_calculate_interval.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/histogram_calculate_interval.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/histogram_calculate_interval.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/histogram_calculate_interval.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/ip_prefix.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/ip_prefix.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/ip_prefix.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/ip_prefix.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/ip_range.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/ip_range.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/ip_range.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/ip_range.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/time_buckets/calc_auto_interval.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/calc_auto_interval.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/time_buckets/calc_auto_interval.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/calc_auto_interval.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/time_buckets/calc_auto_interval.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/calc_auto_interval.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/time_buckets/calc_auto_interval.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/calc_auto_interval.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/time_buckets/calc_es_interval.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/calc_es_interval.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/time_buckets/calc_es_interval.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/calc_es_interval.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/time_buckets/i18n_messages.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/i18n_messages.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/time_buckets/i18n_messages.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/i18n_messages.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/time_buckets/index.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/index.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/time_buckets/index.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/index.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/time_buckets/time_buckets.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/time_buckets.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/time_buckets/time_buckets.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/time_buckets.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/lib/time_buckets/time_buckets.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/time_buckets.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/lib/time_buckets/time_buckets.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/lib/time_buckets/time_buckets.ts diff --git a/src/plugins/data/common/search/aggs/buckets/migrate_include_exclude_format.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/migrate_include_exclude_format.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/migrate_include_exclude_format.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/migrate_include_exclude_format.ts diff --git a/src/plugins/data/common/search/aggs/buckets/multi_field_key.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/multi_field_key.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/multi_field_key.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/multi_field_key.ts diff --git a/src/plugins/data/common/search/aggs/buckets/multi_terms.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/multi_terms.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/multi_terms.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/multi_terms.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/multi_terms.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/multi_terms.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/multi_terms.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/multi_terms.ts diff --git a/src/plugins/data/common/search/aggs/buckets/multi_terms_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/multi_terms_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/multi_terms_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/multi_terms_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/range.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/range.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/range.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/range.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/range.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/range.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/range.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/range.ts diff --git a/src/plugins/data/common/search/aggs/buckets/range_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/range_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/range_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/range_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/range_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/range_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/range_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/range_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/range_key.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/range_key.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/range_key.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/range_key.ts diff --git a/src/plugins/data/common/search/aggs/buckets/rare_terms.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/rare_terms.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/rare_terms.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/rare_terms.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/rare_terms.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/rare_terms.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/rare_terms.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/rare_terms.ts diff --git a/src/plugins/data/common/search/aggs/buckets/rare_terms_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/rare_terms_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/rare_terms_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/rare_terms_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/sampler.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/sampler.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/sampler.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/sampler.ts diff --git a/src/plugins/data/common/search/aggs/buckets/sampler_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/sampler_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/sampler_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/sampler_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/sampler_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/sampler_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/sampler_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/sampler_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/shard_delay.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/shard_delay.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/shard_delay.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/shard_delay.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/shard_delay.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/shard_delay.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/shard_delay.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/shard_delay.ts diff --git a/src/plugins/data/common/search/aggs/buckets/shard_delay_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/shard_delay_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/shard_delay_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/shard_delay_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/shard_delay_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/shard_delay_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/shard_delay_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/shard_delay_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/significant_terms.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/significant_terms.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/significant_terms.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/significant_terms.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/significant_terms.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/significant_terms.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/significant_terms.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/significant_terms.ts diff --git a/src/plugins/data/common/search/aggs/buckets/significant_terms_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/significant_terms_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/significant_terms_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/significant_terms_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/significant_terms_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/significant_terms_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/significant_terms_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/significant_terms_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/significant_text.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/significant_text.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/significant_text.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/significant_text.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/significant_text.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/significant_text.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/significant_text.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/significant_text.ts diff --git a/src/plugins/data/common/search/aggs/buckets/significant_text_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/significant_text_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/significant_text_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/significant_text_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/significant_text_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/significant_text_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/significant_text_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/significant_text_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/terms.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/terms.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/terms.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/terms.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/terms.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/terms.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/terms.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/terms.ts diff --git a/src/plugins/data/common/search/aggs/buckets/terms_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/terms_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/terms_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/terms_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/terms_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/terms_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/terms_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/terms_fn.ts diff --git a/src/plugins/data/common/search/aggs/buckets/time_series.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/time_series.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/time_series.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/time_series.ts diff --git a/src/plugins/data/common/search/aggs/buckets/time_series_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/time_series_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/time_series_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/time_series_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/buckets/time_series_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/buckets/time_series_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/buckets/time_series_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/buckets/time_series_fn.ts diff --git a/src/plugins/data/common/search/aggs/index.test.ts b/src/platform/plugins/shared/data/common/search/aggs/index.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/index.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/index.test.ts diff --git a/src/plugins/data/common/search/aggs/index.ts b/src/platform/plugins/shared/data/common/search/aggs/index.ts similarity index 100% rename from src/plugins/data/common/search/aggs/index.ts rename to src/platform/plugins/shared/data/common/search/aggs/index.ts diff --git a/src/plugins/data/common/search/aggs/metrics/__snapshots__/median.test.ts.snap b/src/platform/plugins/shared/data/common/search/aggs/metrics/__snapshots__/median.test.ts.snap similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/__snapshots__/median.test.ts.snap rename to src/platform/plugins/shared/data/common/search/aggs/metrics/__snapshots__/median.test.ts.snap diff --git a/src/plugins/data/common/search/aggs/metrics/__snapshots__/single_percentile.test.ts.snap b/src/platform/plugins/shared/data/common/search/aggs/metrics/__snapshots__/single_percentile.test.ts.snap similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/__snapshots__/single_percentile.test.ts.snap rename to src/platform/plugins/shared/data/common/search/aggs/metrics/__snapshots__/single_percentile.test.ts.snap diff --git a/src/plugins/data/common/search/aggs/metrics/avg.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/avg.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/avg.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/avg.ts diff --git a/src/plugins/data/common/search/aggs/metrics/avg_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/avg_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/avg_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/avg_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/avg_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/avg_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/avg_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/avg_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_avg.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_avg.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_avg.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_avg.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_avg_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_avg_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_avg_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_avg_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_avg_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_avg_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_avg_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_avg_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_max.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_max.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_max.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_max.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_max_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_max_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_max_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_max_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_max_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_max_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_max_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_max_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_min.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_min.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_min.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_min.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_min_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_min_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_min_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_min_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_min_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_min_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_min_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_min_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_sum.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_sum.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_sum.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_sum.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_sum_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_sum_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_sum_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_sum_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/bucket_sum_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_sum_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/bucket_sum_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/bucket_sum_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/cardinality.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/cardinality.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/cardinality.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/cardinality.ts diff --git a/src/plugins/data/common/search/aggs/metrics/cardinality_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/cardinality_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/cardinality_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/cardinality_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/cardinality_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/cardinality_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/cardinality_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/cardinality_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/count.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/count.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/count.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/count.ts diff --git a/src/plugins/data/common/search/aggs/metrics/count_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/count_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/count_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/count_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/count_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/count_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/count_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/count_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/cumulative_sum.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/cumulative_sum.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/cumulative_sum.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/cumulative_sum.ts diff --git a/src/plugins/data/common/search/aggs/metrics/cumulative_sum_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/cumulative_sum_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/cumulative_sum_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/cumulative_sum_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/cumulative_sum_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/cumulative_sum_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/cumulative_sum_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/cumulative_sum_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/derivative.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/derivative.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/derivative.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/derivative.ts diff --git a/src/plugins/data/common/search/aggs/metrics/derivative_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/derivative_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/derivative_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/derivative_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/derivative_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/derivative_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/derivative_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/derivative_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/filtered_metric.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/filtered_metric.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/filtered_metric.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/filtered_metric.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/filtered_metric.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/filtered_metric.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/filtered_metric.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/filtered_metric.ts diff --git a/src/plugins/data/common/search/aggs/metrics/filtered_metric_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/filtered_metric_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/filtered_metric_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/filtered_metric_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/filtered_metric_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/filtered_metric_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/filtered_metric_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/filtered_metric_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/geo_bounds.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/geo_bounds.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/geo_bounds.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/geo_bounds.ts diff --git a/src/plugins/data/common/search/aggs/metrics/geo_bounds_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/geo_bounds_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/geo_bounds_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/geo_bounds_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/geo_bounds_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/geo_bounds_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/geo_bounds_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/geo_bounds_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/geo_centroid.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/geo_centroid.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/geo_centroid.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/geo_centroid.ts diff --git a/src/plugins/data/common/search/aggs/metrics/geo_centroid_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/geo_centroid_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/geo_centroid_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/geo_centroid_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/geo_centroid_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/geo_centroid_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/geo_centroid_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/geo_centroid_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/index.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/index.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/index.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/index.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/create_filter.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/create_filter.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/create_filter.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/create_filter.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/get_response_agg_config_class.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/get_response_agg_config_class.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/get_response_agg_config_class.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/get_response_agg_config_class.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/get_response_agg_config_class.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/get_response_agg_config_class.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/get_response_agg_config_class.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/get_response_agg_config_class.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/make_nested_label.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/make_nested_label.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/make_nested_label.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/make_nested_label.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/make_nested_label.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/make_nested_label.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/make_nested_label.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/make_nested_label.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/nested_agg_helpers.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/nested_agg_helpers.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/nested_agg_helpers.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/nested_agg_helpers.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/ordinal_suffix.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/ordinal_suffix.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/ordinal_suffix.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/ordinal_suffix.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/ordinal_suffix.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/ordinal_suffix.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/ordinal_suffix.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/ordinal_suffix.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/parent_pipeline_agg_helper.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/parent_pipeline_agg_helper.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/parent_pipeline_agg_helper.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/parent_pipeline_agg_helper.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/parent_pipeline_agg_writer.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/parent_pipeline_agg_writer.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/parent_pipeline_agg_writer.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/parent_pipeline_agg_writer.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_helper.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_helper.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_helper.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_helper.ts diff --git a/src/plugins/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_writer.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_writer.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_writer.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_writer.ts diff --git a/src/plugins/data/common/search/aggs/metrics/max.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/max.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/max.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/max.ts diff --git a/src/plugins/data/common/search/aggs/metrics/max_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/max_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/max_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/max_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/max_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/max_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/max_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/max_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/median.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/median.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/median.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/median.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/median.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/median.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/median.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/median.ts diff --git a/src/plugins/data/common/search/aggs/metrics/median_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/median_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/median_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/median_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/median_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/median_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/median_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/median_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/metric_agg_type.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/metric_agg_type.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/metric_agg_type.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/metric_agg_type.ts diff --git a/src/plugins/data/common/search/aggs/metrics/metric_agg_types.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/metric_agg_types.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/metric_agg_types.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/metric_agg_types.ts diff --git a/src/plugins/data/common/search/aggs/metrics/min.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/min.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/min.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/min.ts diff --git a/src/plugins/data/common/search/aggs/metrics/min_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/min_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/min_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/min_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/min_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/min_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/min_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/min_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/moving_avg.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/moving_avg.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/moving_avg.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/moving_avg.ts diff --git a/src/plugins/data/common/search/aggs/metrics/moving_avg_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/moving_avg_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/moving_avg_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/moving_avg_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/moving_avg_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/moving_avg_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/moving_avg_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/moving_avg_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/parent_pipeline.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/parent_pipeline.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/parent_pipeline.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/parent_pipeline.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/percentile_ranks.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/percentile_ranks.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/percentile_ranks.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/percentile_ranks.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/percentile_ranks.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/percentile_ranks.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/percentile_ranks.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/percentile_ranks.ts diff --git a/src/plugins/data/common/search/aggs/metrics/percentile_ranks_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/percentile_ranks_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/percentile_ranks_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/percentile_ranks_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/percentile_ranks_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/percentile_ranks_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/percentile_ranks_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/percentile_ranks_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/percentiles.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/percentiles.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/percentiles.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/percentiles.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles.ts diff --git a/src/plugins/data/common/search/aggs/metrics/percentiles_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/percentiles_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/percentiles_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/percentiles_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/percentiles_get_value.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles_get_value.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/percentiles_get_value.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles_get_value.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/percentiles_get_value.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles_get_value.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/percentiles_get_value.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/percentiles_get_value.ts diff --git a/src/plugins/data/common/search/aggs/metrics/rate.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/rate.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/rate.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/rate.ts diff --git a/src/plugins/data/common/search/aggs/metrics/rate_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/rate_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/rate_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/rate_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/rate_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/rate_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/rate_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/rate_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/serial_diff.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/serial_diff.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/serial_diff.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/serial_diff.ts diff --git a/src/plugins/data/common/search/aggs/metrics/serial_diff_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/serial_diff_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/serial_diff_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/serial_diff_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/serial_diff_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/serial_diff_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/serial_diff_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/serial_diff_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/sibling_pipeline.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/sibling_pipeline.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/sibling_pipeline.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/sibling_pipeline.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/single_percentile.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/single_percentile.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/single_percentile.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/single_percentile.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile.ts diff --git a/src/plugins/data/common/search/aggs/metrics/single_percentile_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/single_percentile_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/single_percentile_rank.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile_rank.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/single_percentile_rank.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile_rank.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/single_percentile_rank.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile_rank.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/single_percentile_rank.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile_rank.ts diff --git a/src/plugins/data/common/search/aggs/metrics/single_percentile_rank_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile_rank_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/single_percentile_rank_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/single_percentile_rank_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/std_deviation.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/std_deviation.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/std_deviation.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/std_deviation.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/std_deviation.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/std_deviation.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/std_deviation.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/std_deviation.ts diff --git a/src/plugins/data/common/search/aggs/metrics/std_deviation_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/std_deviation_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/std_deviation_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/std_deviation_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/std_deviation_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/std_deviation_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/std_deviation_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/std_deviation_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/sum.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/sum.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/sum.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/sum.ts diff --git a/src/plugins/data/common/search/aggs/metrics/sum_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/sum_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/sum_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/sum_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/sum_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/sum_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/sum_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/sum_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/top_hit.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/top_hit.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/top_hit.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/top_hit.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/top_hit.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/top_hit.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/top_hit.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/top_hit.ts diff --git a/src/plugins/data/common/search/aggs/metrics/top_hit_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/top_hit_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/top_hit_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/top_hit_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/top_hit_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/top_hit_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/top_hit_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/top_hit_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/top_metrics.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/top_metrics.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/top_metrics.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/top_metrics.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/top_metrics.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/top_metrics.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/top_metrics.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/top_metrics.ts diff --git a/src/plugins/data/common/search/aggs/metrics/top_metrics_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/top_metrics_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/top_metrics_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/top_metrics_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/top_metrics_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/top_metrics_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/top_metrics_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/top_metrics_fn.ts diff --git a/src/plugins/data/common/search/aggs/metrics/value_count.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/value_count.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/value_count.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/value_count.ts diff --git a/src/plugins/data/common/search/aggs/metrics/value_count_fn.test.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/value_count_fn.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/value_count_fn.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/value_count_fn.test.ts diff --git a/src/plugins/data/common/search/aggs/metrics/value_count_fn.ts b/src/platform/plugins/shared/data/common/search/aggs/metrics/value_count_fn.ts similarity index 100% rename from src/plugins/data/common/search/aggs/metrics/value_count_fn.ts rename to src/platform/plugins/shared/data/common/search/aggs/metrics/value_count_fn.ts diff --git a/src/plugins/data/common/search/aggs/param_types/agg.ts b/src/platform/plugins/shared/data/common/search/aggs/param_types/agg.ts similarity index 100% rename from src/plugins/data/common/search/aggs/param_types/agg.ts rename to src/platform/plugins/shared/data/common/search/aggs/param_types/agg.ts diff --git a/src/plugins/data/common/search/aggs/param_types/base.ts b/src/platform/plugins/shared/data/common/search/aggs/param_types/base.ts similarity index 100% rename from src/plugins/data/common/search/aggs/param_types/base.ts rename to src/platform/plugins/shared/data/common/search/aggs/param_types/base.ts diff --git a/src/plugins/data/common/search/aggs/param_types/field.test.ts b/src/platform/plugins/shared/data/common/search/aggs/param_types/field.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/param_types/field.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/param_types/field.test.ts diff --git a/src/plugins/data/common/search/aggs/param_types/field.ts b/src/platform/plugins/shared/data/common/search/aggs/param_types/field.ts similarity index 100% rename from src/plugins/data/common/search/aggs/param_types/field.ts rename to src/platform/plugins/shared/data/common/search/aggs/param_types/field.ts diff --git a/src/plugins/data/common/search/aggs/param_types/index.ts b/src/platform/plugins/shared/data/common/search/aggs/param_types/index.ts similarity index 100% rename from src/plugins/data/common/search/aggs/param_types/index.ts rename to src/platform/plugins/shared/data/common/search/aggs/param_types/index.ts diff --git a/src/plugins/data/common/search/aggs/param_types/json.test.ts b/src/platform/plugins/shared/data/common/search/aggs/param_types/json.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/param_types/json.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/param_types/json.test.ts diff --git a/src/plugins/data/common/search/aggs/param_types/json.ts b/src/platform/plugins/shared/data/common/search/aggs/param_types/json.ts similarity index 100% rename from src/plugins/data/common/search/aggs/param_types/json.ts rename to src/platform/plugins/shared/data/common/search/aggs/param_types/json.ts diff --git a/src/plugins/data/common/search/aggs/param_types/optioned.test.ts b/src/platform/plugins/shared/data/common/search/aggs/param_types/optioned.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/param_types/optioned.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/param_types/optioned.test.ts diff --git a/src/plugins/data/common/search/aggs/param_types/optioned.ts b/src/platform/plugins/shared/data/common/search/aggs/param_types/optioned.ts similarity index 100% rename from src/plugins/data/common/search/aggs/param_types/optioned.ts rename to src/platform/plugins/shared/data/common/search/aggs/param_types/optioned.ts diff --git a/src/plugins/data/common/search/aggs/param_types/string.test.ts b/src/platform/plugins/shared/data/common/search/aggs/param_types/string.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/param_types/string.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/param_types/string.test.ts diff --git a/src/plugins/data/common/search/aggs/param_types/string.ts b/src/platform/plugins/shared/data/common/search/aggs/param_types/string.ts similarity index 100% rename from src/plugins/data/common/search/aggs/param_types/string.ts rename to src/platform/plugins/shared/data/common/search/aggs/param_types/string.ts diff --git a/src/plugins/data/common/search/aggs/test_helpers/function_wrapper.ts b/src/platform/plugins/shared/data/common/search/aggs/test_helpers/function_wrapper.ts similarity index 100% rename from src/plugins/data/common/search/aggs/test_helpers/function_wrapper.ts rename to src/platform/plugins/shared/data/common/search/aggs/test_helpers/function_wrapper.ts diff --git a/src/plugins/data/common/search/aggs/test_helpers/index.ts b/src/platform/plugins/shared/data/common/search/aggs/test_helpers/index.ts similarity index 100% rename from src/plugins/data/common/search/aggs/test_helpers/index.ts rename to src/platform/plugins/shared/data/common/search/aggs/test_helpers/index.ts diff --git a/src/plugins/data/common/search/aggs/test_helpers/mock_agg_types_registry.ts b/src/platform/plugins/shared/data/common/search/aggs/test_helpers/mock_agg_types_registry.ts similarity index 100% rename from src/plugins/data/common/search/aggs/test_helpers/mock_agg_types_registry.ts rename to src/platform/plugins/shared/data/common/search/aggs/test_helpers/mock_agg_types_registry.ts diff --git a/src/plugins/data/common/search/aggs/types.ts b/src/platform/plugins/shared/data/common/search/aggs/types.ts similarity index 100% rename from src/plugins/data/common/search/aggs/types.ts rename to src/platform/plugins/shared/data/common/search/aggs/types.ts diff --git a/src/plugins/data/common/search/aggs/utils/calculate_auto_time_expression.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/calculate_auto_time_expression.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/calculate_auto_time_expression.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/calculate_auto_time_expression.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/date_histogram_interval.test.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/date_histogram_interval.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/date_histogram_interval.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/date_histogram_interval.test.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/date_histogram_interval.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/date_histogram_interval.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/date_histogram_interval.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/date_histogram_interval.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/index.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/index.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/index.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/index.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/invalid_es_calendar_interval_error.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/invalid_es_calendar_interval_error.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/invalid_es_calendar_interval_error.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/invalid_es_calendar_interval_error.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/invalid_es_interval_format_error.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/invalid_es_interval_format_error.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/invalid_es_interval_format_error.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/invalid_es_interval_format_error.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/is_valid_es_interval.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/is_valid_es_interval.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/is_valid_es_interval.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/is_valid_es_interval.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/is_valid_interval.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/is_valid_interval.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/is_valid_interval.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/is_valid_interval.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/least_common_interval.test.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/least_common_interval.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/least_common_interval.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/least_common_interval.test.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/least_common_interval.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/least_common_interval.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/least_common_interval.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/least_common_interval.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/least_common_multiple.test.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/least_common_multiple.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/least_common_multiple.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/least_common_multiple.test.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/least_common_multiple.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/least_common_multiple.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/least_common_multiple.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/least_common_multiple.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/parse_es_interval.test.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/parse_es_interval.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/parse_es_interval.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/parse_es_interval.test.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/parse_es_interval.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/parse_es_interval.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/parse_es_interval.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/parse_es_interval.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/parse_interval.test.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/parse_interval.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/parse_interval.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/parse_interval.test.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/parse_interval.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/parse_interval.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/parse_interval.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/parse_interval.ts diff --git a/src/plugins/data/common/search/aggs/utils/date_interval_utils/to_absolute_dates.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/to_absolute_dates.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/date_interval_utils/to_absolute_dates.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/date_interval_utils/to_absolute_dates.ts diff --git a/src/plugins/data/common/search/aggs/utils/get_aggs_formats.test.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/get_aggs_formats.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/get_aggs_formats.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/get_aggs_formats.test.ts diff --git a/src/plugins/data/common/search/aggs/utils/get_aggs_formats.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/get_aggs_formats.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/get_aggs_formats.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/get_aggs_formats.ts diff --git a/src/plugins/data/common/search/aggs/utils/index.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/index.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/index.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/index.ts diff --git a/src/plugins/data/common/search/aggs/utils/infer_time_zone.test.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/infer_time_zone.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/infer_time_zone.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/infer_time_zone.test.ts diff --git a/src/plugins/data/common/search/aggs/utils/infer_time_zone.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/infer_time_zone.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/infer_time_zone.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/infer_time_zone.ts diff --git a/src/plugins/data/common/search/aggs/utils/ip_address.test.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/ip_address.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/ip_address.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/ip_address.test.ts diff --git a/src/plugins/data/common/search/aggs/utils/ip_address.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/ip_address.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/ip_address.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/ip_address.ts diff --git a/src/plugins/data/common/search/aggs/utils/parse_time_shift.test.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/parse_time_shift.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/parse_time_shift.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/parse_time_shift.test.ts diff --git a/src/plugins/data/common/search/aggs/utils/parse_time_shift.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/parse_time_shift.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/parse_time_shift.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/parse_time_shift.ts diff --git a/src/plugins/data/common/search/aggs/utils/prop_filter.test.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/prop_filter.test.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/prop_filter.test.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/prop_filter.test.ts diff --git a/src/plugins/data/common/search/aggs/utils/prop_filter.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/prop_filter.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/prop_filter.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/prop_filter.ts diff --git a/src/plugins/data/common/search/aggs/utils/sampler.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/sampler.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/sampler.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/sampler.ts diff --git a/src/plugins/data/common/search/aggs/utils/time_splits.ts b/src/platform/plugins/shared/data/common/search/aggs/utils/time_splits.ts similarity index 100% rename from src/plugins/data/common/search/aggs/utils/time_splits.ts rename to src/platform/plugins/shared/data/common/search/aggs/utils/time_splits.ts diff --git a/src/plugins/data/common/search/expressions/__snapshots__/eql_raw_response.test.ts.snap b/src/platform/plugins/shared/data/common/search/expressions/__snapshots__/eql_raw_response.test.ts.snap similarity index 100% rename from src/plugins/data/common/search/expressions/__snapshots__/eql_raw_response.test.ts.snap rename to src/platform/plugins/shared/data/common/search/expressions/__snapshots__/eql_raw_response.test.ts.snap diff --git a/src/plugins/data/common/search/expressions/__snapshots__/es_raw_response.test.ts.snap b/src/platform/plugins/shared/data/common/search/expressions/__snapshots__/es_raw_response.test.ts.snap similarity index 100% rename from src/plugins/data/common/search/expressions/__snapshots__/es_raw_response.test.ts.snap rename to src/platform/plugins/shared/data/common/search/expressions/__snapshots__/es_raw_response.test.ts.snap diff --git a/src/plugins/data/common/search/expressions/__snapshots__/kibana.test.ts.snap b/src/platform/plugins/shared/data/common/search/expressions/__snapshots__/kibana.test.ts.snap similarity index 100% rename from src/plugins/data/common/search/expressions/__snapshots__/kibana.test.ts.snap rename to src/platform/plugins/shared/data/common/search/expressions/__snapshots__/kibana.test.ts.snap diff --git a/src/plugins/data/common/search/expressions/aggregate_query_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/aggregate_query_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/aggregate_query_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/aggregate_query_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/aggregate_query_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/aggregate_query_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/aggregate_query_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/aggregate_query_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/cidr.test.ts b/src/platform/plugins/shared/data/common/search/expressions/cidr.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/cidr.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/cidr.test.ts diff --git a/src/plugins/data/common/search/expressions/cidr.ts b/src/platform/plugins/shared/data/common/search/expressions/cidr.ts similarity index 100% rename from src/plugins/data/common/search/expressions/cidr.ts rename to src/platform/plugins/shared/data/common/search/expressions/cidr.ts diff --git a/src/plugins/data/common/search/expressions/cidr_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/cidr_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/cidr_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/cidr_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/cidr_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/cidr_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/cidr_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/cidr_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/date_range.test.ts b/src/platform/plugins/shared/data/common/search/expressions/date_range.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/date_range.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/date_range.test.ts diff --git a/src/plugins/data/common/search/expressions/date_range.ts b/src/platform/plugins/shared/data/common/search/expressions/date_range.ts similarity index 100% rename from src/plugins/data/common/search/expressions/date_range.ts rename to src/platform/plugins/shared/data/common/search/expressions/date_range.ts diff --git a/src/plugins/data/common/search/expressions/date_range_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/date_range_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/date_range_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/date_range_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/date_range_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/date_range_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/date_range_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/date_range_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/eql.ts b/src/platform/plugins/shared/data/common/search/expressions/eql.ts similarity index 100% rename from src/plugins/data/common/search/expressions/eql.ts rename to src/platform/plugins/shared/data/common/search/expressions/eql.ts diff --git a/src/plugins/data/common/search/expressions/eql_raw_response.test.ts b/src/platform/plugins/shared/data/common/search/expressions/eql_raw_response.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/eql_raw_response.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/eql_raw_response.test.ts diff --git a/src/plugins/data/common/search/expressions/eql_raw_response.ts b/src/platform/plugins/shared/data/common/search/expressions/eql_raw_response.ts similarity index 100% rename from src/plugins/data/common/search/expressions/eql_raw_response.ts rename to src/platform/plugins/shared/data/common/search/expressions/eql_raw_response.ts diff --git a/src/plugins/data/common/search/expressions/es_raw_response.test.ts b/src/platform/plugins/shared/data/common/search/expressions/es_raw_response.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/es_raw_response.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/es_raw_response.test.ts diff --git a/src/plugins/data/common/search/expressions/es_raw_response.ts b/src/platform/plugins/shared/data/common/search/expressions/es_raw_response.ts similarity index 100% rename from src/plugins/data/common/search/expressions/es_raw_response.ts rename to src/platform/plugins/shared/data/common/search/expressions/es_raw_response.ts diff --git a/src/plugins/data/common/search/expressions/esaggs/create_filter.test.ts b/src/platform/plugins/shared/data/common/search/expressions/esaggs/create_filter.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/esaggs/create_filter.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/esaggs/create_filter.test.ts diff --git a/src/plugins/data/common/search/expressions/esaggs/create_filter.ts b/src/platform/plugins/shared/data/common/search/expressions/esaggs/create_filter.ts similarity index 100% rename from src/plugins/data/common/search/expressions/esaggs/create_filter.ts rename to src/platform/plugins/shared/data/common/search/expressions/esaggs/create_filter.ts diff --git a/src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts b/src/platform/plugins/shared/data/common/search/expressions/esaggs/esaggs_fn.ts similarity index 100% rename from src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts rename to src/platform/plugins/shared/data/common/search/expressions/esaggs/esaggs_fn.ts diff --git a/src/plugins/data/common/search/expressions/esaggs/index.ts b/src/platform/plugins/shared/data/common/search/expressions/esaggs/index.ts similarity index 100% rename from src/plugins/data/common/search/expressions/esaggs/index.ts rename to src/platform/plugins/shared/data/common/search/expressions/esaggs/index.ts diff --git a/src/plugins/data/common/search/expressions/esaggs/request_handler.test.ts b/src/platform/plugins/shared/data/common/search/expressions/esaggs/request_handler.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/esaggs/request_handler.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/esaggs/request_handler.test.ts diff --git a/src/plugins/data/common/search/expressions/esaggs/request_handler.ts b/src/platform/plugins/shared/data/common/search/expressions/esaggs/request_handler.ts similarity index 100% rename from src/plugins/data/common/search/expressions/esaggs/request_handler.ts rename to src/platform/plugins/shared/data/common/search/expressions/esaggs/request_handler.ts diff --git a/src/plugins/data/common/search/expressions/esdsl.ts b/src/platform/plugins/shared/data/common/search/expressions/esdsl.ts similarity index 100% rename from src/plugins/data/common/search/expressions/esdsl.ts rename to src/platform/plugins/shared/data/common/search/expressions/esdsl.ts diff --git a/src/plugins/data/common/search/expressions/esql.ts b/src/platform/plugins/shared/data/common/search/expressions/esql.ts similarity index 100% rename from src/plugins/data/common/search/expressions/esql.ts rename to src/platform/plugins/shared/data/common/search/expressions/esql.ts diff --git a/src/plugins/data/common/search/expressions/essql.ts b/src/platform/plugins/shared/data/common/search/expressions/essql.ts similarity index 100% rename from src/plugins/data/common/search/expressions/essql.ts rename to src/platform/plugins/shared/data/common/search/expressions/essql.ts diff --git a/src/plugins/data/common/search/expressions/exists_filter.test.ts b/src/platform/plugins/shared/data/common/search/expressions/exists_filter.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/exists_filter.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/exists_filter.test.ts diff --git a/src/plugins/data/common/search/expressions/exists_filter.ts b/src/platform/plugins/shared/data/common/search/expressions/exists_filter.ts similarity index 100% rename from src/plugins/data/common/search/expressions/exists_filter.ts rename to src/platform/plugins/shared/data/common/search/expressions/exists_filter.ts diff --git a/src/plugins/data/common/search/expressions/extended_bounds.test.ts b/src/platform/plugins/shared/data/common/search/expressions/extended_bounds.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/extended_bounds.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/extended_bounds.test.ts diff --git a/src/plugins/data/common/search/expressions/extended_bounds.ts b/src/platform/plugins/shared/data/common/search/expressions/extended_bounds.ts similarity index 100% rename from src/plugins/data/common/search/expressions/extended_bounds.ts rename to src/platform/plugins/shared/data/common/search/expressions/extended_bounds.ts diff --git a/src/plugins/data/common/search/expressions/extended_bounds_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/extended_bounds_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/extended_bounds_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/extended_bounds_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/extended_bounds_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/extended_bounds_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/extended_bounds_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/extended_bounds_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/field.test.ts b/src/platform/plugins/shared/data/common/search/expressions/field.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/field.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/field.test.ts diff --git a/src/plugins/data/common/search/expressions/field.ts b/src/platform/plugins/shared/data/common/search/expressions/field.ts similarity index 100% rename from src/plugins/data/common/search/expressions/field.ts rename to src/platform/plugins/shared/data/common/search/expressions/field.ts diff --git a/src/plugins/data/common/search/expressions/filters_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/filters_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/filters_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/filters_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/filters_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/filters_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/filters_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/filters_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/geo_bounding_box.test.ts b/src/platform/plugins/shared/data/common/search/expressions/geo_bounding_box.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/geo_bounding_box.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/geo_bounding_box.test.ts diff --git a/src/plugins/data/common/search/expressions/geo_bounding_box.ts b/src/platform/plugins/shared/data/common/search/expressions/geo_bounding_box.ts similarity index 100% rename from src/plugins/data/common/search/expressions/geo_bounding_box.ts rename to src/platform/plugins/shared/data/common/search/expressions/geo_bounding_box.ts diff --git a/src/plugins/data/common/search/expressions/geo_bounding_box_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/geo_bounding_box_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/geo_bounding_box_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/geo_bounding_box_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/geo_bounding_box_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/geo_bounding_box_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/geo_bounding_box_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/geo_bounding_box_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/geo_point.test.ts b/src/platform/plugins/shared/data/common/search/expressions/geo_point.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/geo_point.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/geo_point.test.ts diff --git a/src/plugins/data/common/search/expressions/geo_point.ts b/src/platform/plugins/shared/data/common/search/expressions/geo_point.ts similarity index 100% rename from src/plugins/data/common/search/expressions/geo_point.ts rename to src/platform/plugins/shared/data/common/search/expressions/geo_point.ts diff --git a/src/plugins/data/common/search/expressions/geo_point_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/geo_point_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/geo_point_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/geo_point_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/geo_point_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/geo_point_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/geo_point_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/geo_point_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/index.ts b/src/platform/plugins/shared/data/common/search/expressions/index.ts similarity index 100% rename from src/plugins/data/common/search/expressions/index.ts rename to src/platform/plugins/shared/data/common/search/expressions/index.ts diff --git a/src/plugins/data/common/search/expressions/ip_prefix.test.ts b/src/platform/plugins/shared/data/common/search/expressions/ip_prefix.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/ip_prefix.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/ip_prefix.test.ts diff --git a/src/plugins/data/common/search/expressions/ip_prefix.ts b/src/platform/plugins/shared/data/common/search/expressions/ip_prefix.ts similarity index 100% rename from src/plugins/data/common/search/expressions/ip_prefix.ts rename to src/platform/plugins/shared/data/common/search/expressions/ip_prefix.ts diff --git a/src/plugins/data/common/search/expressions/ip_prefix_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/ip_prefix_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/ip_prefix_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/ip_prefix_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/ip_prefix_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/ip_prefix_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/ip_prefix_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/ip_prefix_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/ip_range.test.ts b/src/platform/plugins/shared/data/common/search/expressions/ip_range.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/ip_range.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/ip_range.test.ts diff --git a/src/plugins/data/common/search/expressions/ip_range.ts b/src/platform/plugins/shared/data/common/search/expressions/ip_range.ts similarity index 100% rename from src/plugins/data/common/search/expressions/ip_range.ts rename to src/platform/plugins/shared/data/common/search/expressions/ip_range.ts diff --git a/src/plugins/data/common/search/expressions/ip_range_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/ip_range_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/ip_range_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/ip_range_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/ip_range_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/ip_range_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/ip_range_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/ip_range_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/kibana.test.ts b/src/platform/plugins/shared/data/common/search/expressions/kibana.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/kibana.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/kibana.test.ts diff --git a/src/plugins/data/common/search/expressions/kibana.ts b/src/platform/plugins/shared/data/common/search/expressions/kibana.ts similarity index 100% rename from src/plugins/data/common/search/expressions/kibana.ts rename to src/platform/plugins/shared/data/common/search/expressions/kibana.ts diff --git a/src/plugins/data/common/search/expressions/kibana_context.ts b/src/platform/plugins/shared/data/common/search/expressions/kibana_context.ts similarity index 100% rename from src/plugins/data/common/search/expressions/kibana_context.ts rename to src/platform/plugins/shared/data/common/search/expressions/kibana_context.ts diff --git a/src/plugins/data/common/search/expressions/kibana_context_type.ts b/src/platform/plugins/shared/data/common/search/expressions/kibana_context_type.ts similarity index 100% rename from src/plugins/data/common/search/expressions/kibana_context_type.ts rename to src/platform/plugins/shared/data/common/search/expressions/kibana_context_type.ts diff --git a/src/plugins/data/common/search/expressions/kibana_filter.test.ts b/src/platform/plugins/shared/data/common/search/expressions/kibana_filter.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/kibana_filter.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/kibana_filter.test.ts diff --git a/src/plugins/data/common/search/expressions/kibana_filter.ts b/src/platform/plugins/shared/data/common/search/expressions/kibana_filter.ts similarity index 100% rename from src/plugins/data/common/search/expressions/kibana_filter.ts rename to src/platform/plugins/shared/data/common/search/expressions/kibana_filter.ts diff --git a/src/plugins/data/common/search/expressions/kql.test.ts b/src/platform/plugins/shared/data/common/search/expressions/kql.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/kql.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/kql.test.ts diff --git a/src/plugins/data/common/search/expressions/kql.ts b/src/platform/plugins/shared/data/common/search/expressions/kql.ts similarity index 100% rename from src/plugins/data/common/search/expressions/kql.ts rename to src/platform/plugins/shared/data/common/search/expressions/kql.ts diff --git a/src/plugins/data/common/search/expressions/lucene.test.ts b/src/platform/plugins/shared/data/common/search/expressions/lucene.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/lucene.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/lucene.test.ts diff --git a/src/plugins/data/common/search/expressions/lucene.ts b/src/platform/plugins/shared/data/common/search/expressions/lucene.ts similarity index 100% rename from src/plugins/data/common/search/expressions/lucene.ts rename to src/platform/plugins/shared/data/common/search/expressions/lucene.ts diff --git a/src/plugins/data/common/search/expressions/numerical_range.test.ts b/src/platform/plugins/shared/data/common/search/expressions/numerical_range.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/numerical_range.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/numerical_range.test.ts diff --git a/src/plugins/data/common/search/expressions/numerical_range.ts b/src/platform/plugins/shared/data/common/search/expressions/numerical_range.ts similarity index 100% rename from src/plugins/data/common/search/expressions/numerical_range.ts rename to src/platform/plugins/shared/data/common/search/expressions/numerical_range.ts diff --git a/src/plugins/data/common/search/expressions/numerical_range_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/numerical_range_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/numerical_range_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/numerical_range_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/numerical_range_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/numerical_range_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/numerical_range_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/numerical_range_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/phrase_filter.test.ts b/src/platform/plugins/shared/data/common/search/expressions/phrase_filter.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/phrase_filter.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/phrase_filter.test.ts diff --git a/src/plugins/data/common/search/expressions/phrase_filter.ts b/src/platform/plugins/shared/data/common/search/expressions/phrase_filter.ts similarity index 100% rename from src/plugins/data/common/search/expressions/phrase_filter.ts rename to src/platform/plugins/shared/data/common/search/expressions/phrase_filter.ts diff --git a/src/plugins/data/common/search/expressions/query_filter.test.ts b/src/platform/plugins/shared/data/common/search/expressions/query_filter.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/query_filter.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/query_filter.test.ts diff --git a/src/plugins/data/common/search/expressions/query_filter.ts b/src/platform/plugins/shared/data/common/search/expressions/query_filter.ts similarity index 100% rename from src/plugins/data/common/search/expressions/query_filter.ts rename to src/platform/plugins/shared/data/common/search/expressions/query_filter.ts diff --git a/src/plugins/data/common/search/expressions/query_filter_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/query_filter_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/query_filter_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/query_filter_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/query_filter_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/query_filter_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/query_filter_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/query_filter_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/query_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/query_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/query_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/query_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/query_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/query_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/query_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/query_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/range.test.ts b/src/platform/plugins/shared/data/common/search/expressions/range.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/range.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/range.test.ts diff --git a/src/plugins/data/common/search/expressions/range.ts b/src/platform/plugins/shared/data/common/search/expressions/range.ts similarity index 100% rename from src/plugins/data/common/search/expressions/range.ts rename to src/platform/plugins/shared/data/common/search/expressions/range.ts diff --git a/src/plugins/data/common/search/expressions/range_filter.test.ts b/src/platform/plugins/shared/data/common/search/expressions/range_filter.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/range_filter.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/range_filter.test.ts diff --git a/src/plugins/data/common/search/expressions/range_filter.ts b/src/platform/plugins/shared/data/common/search/expressions/range_filter.ts similarity index 100% rename from src/plugins/data/common/search/expressions/range_filter.ts rename to src/platform/plugins/shared/data/common/search/expressions/range_filter.ts diff --git a/src/plugins/data/common/search/expressions/remove_filter.test.ts b/src/platform/plugins/shared/data/common/search/expressions/remove_filter.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/remove_filter.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/remove_filter.test.ts diff --git a/src/plugins/data/common/search/expressions/remove_filter.ts b/src/platform/plugins/shared/data/common/search/expressions/remove_filter.ts similarity index 100% rename from src/plugins/data/common/search/expressions/remove_filter.ts rename to src/platform/plugins/shared/data/common/search/expressions/remove_filter.ts diff --git a/src/plugins/data/common/search/expressions/select_filter.test.ts b/src/platform/plugins/shared/data/common/search/expressions/select_filter.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/select_filter.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/select_filter.test.ts diff --git a/src/plugins/data/common/search/expressions/select_filter.ts b/src/platform/plugins/shared/data/common/search/expressions/select_filter.ts similarity index 100% rename from src/plugins/data/common/search/expressions/select_filter.ts rename to src/platform/plugins/shared/data/common/search/expressions/select_filter.ts diff --git a/src/plugins/data/common/search/expressions/timerange.test.ts b/src/platform/plugins/shared/data/common/search/expressions/timerange.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/timerange.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/timerange.test.ts diff --git a/src/plugins/data/common/search/expressions/timerange.ts b/src/platform/plugins/shared/data/common/search/expressions/timerange.ts similarity index 100% rename from src/plugins/data/common/search/expressions/timerange.ts rename to src/platform/plugins/shared/data/common/search/expressions/timerange.ts diff --git a/src/plugins/data/common/search/expressions/timerange_to_ast.test.ts b/src/platform/plugins/shared/data/common/search/expressions/timerange_to_ast.test.ts similarity index 100% rename from src/plugins/data/common/search/expressions/timerange_to_ast.test.ts rename to src/platform/plugins/shared/data/common/search/expressions/timerange_to_ast.test.ts diff --git a/src/plugins/data/common/search/expressions/timerange_to_ast.ts b/src/platform/plugins/shared/data/common/search/expressions/timerange_to_ast.ts similarity index 100% rename from src/plugins/data/common/search/expressions/timerange_to_ast.ts rename to src/platform/plugins/shared/data/common/search/expressions/timerange_to_ast.ts diff --git a/src/plugins/data/common/search/expressions/utils/filters_adapter.ts b/src/platform/plugins/shared/data/common/search/expressions/utils/filters_adapter.ts similarity index 100% rename from src/plugins/data/common/search/expressions/utils/filters_adapter.ts rename to src/platform/plugins/shared/data/common/search/expressions/utils/filters_adapter.ts diff --git a/src/plugins/data/common/search/expressions/utils/function_wrapper.ts b/src/platform/plugins/shared/data/common/search/expressions/utils/function_wrapper.ts similarity index 100% rename from src/plugins/data/common/search/expressions/utils/function_wrapper.ts rename to src/platform/plugins/shared/data/common/search/expressions/utils/function_wrapper.ts diff --git a/src/plugins/data/common/search/expressions/utils/index.ts b/src/platform/plugins/shared/data/common/search/expressions/utils/index.ts similarity index 100% rename from src/plugins/data/common/search/expressions/utils/index.ts rename to src/platform/plugins/shared/data/common/search/expressions/utils/index.ts diff --git a/src/plugins/data/common/search/index.ts b/src/platform/plugins/shared/data/common/search/index.ts similarity index 100% rename from src/plugins/data/common/search/index.ts rename to src/platform/plugins/shared/data/common/search/index.ts diff --git a/src/plugins/data/common/search/poll_search.test.ts b/src/platform/plugins/shared/data/common/search/poll_search.test.ts similarity index 100% rename from src/plugins/data/common/search/poll_search.test.ts rename to src/platform/plugins/shared/data/common/search/poll_search.test.ts diff --git a/src/plugins/data/common/search/poll_search.ts b/src/platform/plugins/shared/data/common/search/poll_search.ts similarity index 100% rename from src/plugins/data/common/search/poll_search.ts rename to src/platform/plugins/shared/data/common/search/poll_search.ts diff --git a/src/plugins/data/common/search/search_source/__snapshots__/search_source.test.ts.snap b/src/platform/plugins/shared/data/common/search/search_source/__snapshots__/search_source.test.ts.snap similarity index 100% rename from src/plugins/data/common/search/search_source/__snapshots__/search_source.test.ts.snap rename to src/platform/plugins/shared/data/common/search/search_source/__snapshots__/search_source.test.ts.snap diff --git a/src/plugins/data/common/search/search_source/create_search_source.test.ts b/src/platform/plugins/shared/data/common/search/search_source/create_search_source.test.ts similarity index 100% rename from src/plugins/data/common/search/search_source/create_search_source.test.ts rename to src/platform/plugins/shared/data/common/search/search_source/create_search_source.test.ts diff --git a/src/plugins/data/common/search/search_source/create_search_source.ts b/src/platform/plugins/shared/data/common/search/search_source/create_search_source.ts similarity index 100% rename from src/plugins/data/common/search/search_source/create_search_source.ts rename to src/platform/plugins/shared/data/common/search/search_source/create_search_source.ts diff --git a/src/plugins/data/common/search/search_source/extract_references.ts b/src/platform/plugins/shared/data/common/search/search_source/extract_references.ts similarity index 100% rename from src/plugins/data/common/search/search_source/extract_references.ts rename to src/platform/plugins/shared/data/common/search/search_source/extract_references.ts diff --git a/src/plugins/data/common/search/search_source/fetch/get_search_params.test.ts b/src/platform/plugins/shared/data/common/search/search_source/fetch/get_search_params.test.ts similarity index 100% rename from src/plugins/data/common/search/search_source/fetch/get_search_params.test.ts rename to src/platform/plugins/shared/data/common/search/search_source/fetch/get_search_params.test.ts diff --git a/src/plugins/data/common/search/search_source/fetch/get_search_params.ts b/src/platform/plugins/shared/data/common/search/search_source/fetch/get_search_params.ts similarity index 100% rename from src/plugins/data/common/search/search_source/fetch/get_search_params.ts rename to src/platform/plugins/shared/data/common/search/search_source/fetch/get_search_params.ts diff --git a/src/plugins/data/common/search/search_source/fetch/index.ts b/src/platform/plugins/shared/data/common/search/search_source/fetch/index.ts similarity index 100% rename from src/plugins/data/common/search/search_source/fetch/index.ts rename to src/platform/plugins/shared/data/common/search/search_source/fetch/index.ts diff --git a/src/plugins/data/common/search/search_source/fetch/request_error.ts b/src/platform/plugins/shared/data/common/search/search_source/fetch/request_error.ts similarity index 100% rename from src/plugins/data/common/search/search_source/fetch/request_error.ts rename to src/platform/plugins/shared/data/common/search/search_source/fetch/request_error.ts diff --git a/src/plugins/data/common/search/search_source/fetch/types.ts b/src/platform/plugins/shared/data/common/search/search_source/fetch/types.ts similarity index 100% rename from src/plugins/data/common/search/search_source/fetch/types.ts rename to src/platform/plugins/shared/data/common/search/search_source/fetch/types.ts diff --git a/src/plugins/data/common/search/search_source/index.ts b/src/platform/plugins/shared/data/common/search/search_source/index.ts similarity index 100% rename from src/plugins/data/common/search/search_source/index.ts rename to src/platform/plugins/shared/data/common/search/search_source/index.ts diff --git a/src/plugins/data/common/search/search_source/inject_references.test.ts b/src/platform/plugins/shared/data/common/search/search_source/inject_references.test.ts similarity index 100% rename from src/plugins/data/common/search/search_source/inject_references.test.ts rename to src/platform/plugins/shared/data/common/search/search_source/inject_references.test.ts diff --git a/src/plugins/data/common/search/search_source/inject_references.ts b/src/platform/plugins/shared/data/common/search/search_source/inject_references.ts similarity index 100% rename from src/plugins/data/common/search/search_source/inject_references.ts rename to src/platform/plugins/shared/data/common/search/search_source/inject_references.ts diff --git a/src/plugins/data/common/search/search_source/inspect/index.ts b/src/platform/plugins/shared/data/common/search/search_source/inspect/index.ts similarity index 100% rename from src/plugins/data/common/search/search_source/inspect/index.ts rename to src/platform/plugins/shared/data/common/search/search_source/inspect/index.ts diff --git a/src/plugins/data/common/search/search_source/inspect/inspector_stats.ts b/src/platform/plugins/shared/data/common/search/search_source/inspect/inspector_stats.ts similarity index 100% rename from src/plugins/data/common/search/search_source/inspect/inspector_stats.ts rename to src/platform/plugins/shared/data/common/search/search_source/inspect/inspector_stats.ts diff --git a/src/plugins/data/common/search/search_source/migrate_legacy_query.ts b/src/platform/plugins/shared/data/common/search/search_source/migrate_legacy_query.ts similarity index 100% rename from src/plugins/data/common/search/search_source/migrate_legacy_query.ts rename to src/platform/plugins/shared/data/common/search/search_source/migrate_legacy_query.ts diff --git a/src/plugins/data/common/search/search_source/mocks.ts b/src/platform/plugins/shared/data/common/search/search_source/mocks.ts similarity index 100% rename from src/plugins/data/common/search/search_source/mocks.ts rename to src/platform/plugins/shared/data/common/search/search_source/mocks.ts diff --git a/src/plugins/data/common/search/search_source/normalize_sort_request.test.ts b/src/platform/plugins/shared/data/common/search/search_source/normalize_sort_request.test.ts similarity index 100% rename from src/plugins/data/common/search/search_source/normalize_sort_request.test.ts rename to src/platform/plugins/shared/data/common/search/search_source/normalize_sort_request.test.ts diff --git a/src/plugins/data/common/search/search_source/normalize_sort_request.ts b/src/platform/plugins/shared/data/common/search/search_source/normalize_sort_request.ts similarity index 100% rename from src/plugins/data/common/search/search_source/normalize_sort_request.ts rename to src/platform/plugins/shared/data/common/search/search_source/normalize_sort_request.ts diff --git a/src/plugins/data/common/search/search_source/parse_json.ts b/src/platform/plugins/shared/data/common/search/search_source/parse_json.ts similarity index 100% rename from src/plugins/data/common/search/search_source/parse_json.ts rename to src/platform/plugins/shared/data/common/search/search_source/parse_json.ts diff --git a/src/plugins/data/common/search/search_source/query_to_fields.test.ts b/src/platform/plugins/shared/data/common/search/search_source/query_to_fields.test.ts similarity index 100% rename from src/plugins/data/common/search/search_source/query_to_fields.test.ts rename to src/platform/plugins/shared/data/common/search/search_source/query_to_fields.test.ts diff --git a/src/plugins/data/common/search/search_source/query_to_fields.ts b/src/platform/plugins/shared/data/common/search/search_source/query_to_fields.ts similarity index 100% rename from src/plugins/data/common/search/search_source/query_to_fields.ts rename to src/platform/plugins/shared/data/common/search/search_source/query_to_fields.ts diff --git a/src/plugins/data/common/search/search_source/search_source.test.ts b/src/platform/plugins/shared/data/common/search/search_source/search_source.test.ts similarity index 100% rename from src/plugins/data/common/search/search_source/search_source.test.ts rename to src/platform/plugins/shared/data/common/search/search_source/search_source.test.ts diff --git a/src/plugins/data/common/search/search_source/search_source.ts b/src/platform/plugins/shared/data/common/search/search_source/search_source.ts similarity index 100% rename from src/plugins/data/common/search/search_source/search_source.ts rename to src/platform/plugins/shared/data/common/search/search_source/search_source.ts diff --git a/src/plugins/data/common/search/search_source/search_source_service.test.ts b/src/platform/plugins/shared/data/common/search/search_source/search_source_service.test.ts similarity index 100% rename from src/plugins/data/common/search/search_source/search_source_service.test.ts rename to src/platform/plugins/shared/data/common/search/search_source/search_source_service.test.ts diff --git a/src/plugins/data/common/search/search_source/search_source_service.ts b/src/platform/plugins/shared/data/common/search/search_source/search_source_service.ts similarity index 100% rename from src/plugins/data/common/search/search_source/search_source_service.ts rename to src/platform/plugins/shared/data/common/search/search_source/search_source_service.ts diff --git a/src/plugins/data/common/search/search_source/types.ts b/src/platform/plugins/shared/data/common/search/search_source/types.ts similarity index 100% rename from src/plugins/data/common/search/search_source/types.ts rename to src/platform/plugins/shared/data/common/search/search_source/types.ts diff --git a/src/plugins/data/common/search/session/index.ts b/src/platform/plugins/shared/data/common/search/session/index.ts similarity index 100% rename from src/plugins/data/common/search/session/index.ts rename to src/platform/plugins/shared/data/common/search/session/index.ts diff --git a/src/plugins/data/common/search/session/status.ts b/src/platform/plugins/shared/data/common/search/session/status.ts similarity index 100% rename from src/plugins/data/common/search/session/status.ts rename to src/platform/plugins/shared/data/common/search/session/status.ts diff --git a/src/plugins/data/common/search/session/types.ts b/src/platform/plugins/shared/data/common/search/session/types.ts similarity index 100% rename from src/plugins/data/common/search/session/types.ts rename to src/platform/plugins/shared/data/common/search/session/types.ts diff --git a/src/plugins/data/common/search/strategies/ese_search/index.ts b/src/platform/plugins/shared/data/common/search/strategies/eql_search/index.ts similarity index 100% rename from src/plugins/data/common/search/strategies/ese_search/index.ts rename to src/platform/plugins/shared/data/common/search/strategies/eql_search/index.ts diff --git a/src/plugins/data/common/search/strategies/eql_search/types.ts b/src/platform/plugins/shared/data/common/search/strategies/eql_search/types.ts similarity index 100% rename from src/plugins/data/common/search/strategies/eql_search/types.ts rename to src/platform/plugins/shared/data/common/search/strategies/eql_search/types.ts diff --git a/src/plugins/data/common/search/strategies/es_search/index.ts b/src/platform/plugins/shared/data/common/search/strategies/es_search/index.ts similarity index 100% rename from src/plugins/data/common/search/strategies/es_search/index.ts rename to src/platform/plugins/shared/data/common/search/strategies/es_search/index.ts diff --git a/src/plugins/data/common/search/strategies/es_search/response_utils.test.ts b/src/platform/plugins/shared/data/common/search/strategies/es_search/response_utils.test.ts similarity index 100% rename from src/plugins/data/common/search/strategies/es_search/response_utils.test.ts rename to src/platform/plugins/shared/data/common/search/strategies/es_search/response_utils.test.ts diff --git a/src/plugins/data/common/search/strategies/es_search/response_utils.ts b/src/platform/plugins/shared/data/common/search/strategies/es_search/response_utils.ts similarity index 100% rename from src/plugins/data/common/search/strategies/es_search/response_utils.ts rename to src/platform/plugins/shared/data/common/search/strategies/es_search/response_utils.ts diff --git a/src/plugins/data/common/search/strategies/es_search/types.ts b/src/platform/plugins/shared/data/common/search/strategies/es_search/types.ts similarity index 100% rename from src/plugins/data/common/search/strategies/es_search/types.ts rename to src/platform/plugins/shared/data/common/search/strategies/es_search/types.ts diff --git a/src/plugins/data/common/search/strategies/esql_search/index.ts b/src/platform/plugins/shared/data/common/search/strategies/ese_search/index.ts similarity index 100% rename from src/plugins/data/common/search/strategies/esql_search/index.ts rename to src/platform/plugins/shared/data/common/search/strategies/ese_search/index.ts diff --git a/src/plugins/data/common/search/strategies/ese_search/types.ts b/src/platform/plugins/shared/data/common/search/strategies/ese_search/types.ts similarity index 100% rename from src/plugins/data/common/search/strategies/ese_search/types.ts rename to src/platform/plugins/shared/data/common/search/strategies/ese_search/types.ts diff --git a/src/plugins/data/common/search/strategies/sql_search/index.ts b/src/platform/plugins/shared/data/common/search/strategies/esql_search/index.ts similarity index 100% rename from src/plugins/data/common/search/strategies/sql_search/index.ts rename to src/platform/plugins/shared/data/common/search/strategies/esql_search/index.ts diff --git a/src/plugins/data/common/search/strategies/esql_search/types.ts b/src/platform/plugins/shared/data/common/search/strategies/esql_search/types.ts similarity index 100% rename from src/plugins/data/common/search/strategies/esql_search/types.ts rename to src/platform/plugins/shared/data/common/search/strategies/esql_search/types.ts diff --git a/src/plugins/vis_types/pie/public/types/index.ts b/src/platform/plugins/shared/data/common/search/strategies/sql_search/index.ts similarity index 100% rename from src/plugins/vis_types/pie/public/types/index.ts rename to src/platform/plugins/shared/data/common/search/strategies/sql_search/index.ts diff --git a/src/plugins/data/common/search/strategies/sql_search/types.ts b/src/platform/plugins/shared/data/common/search/strategies/sql_search/types.ts similarity index 100% rename from src/plugins/data/common/search/strategies/sql_search/types.ts rename to src/platform/plugins/shared/data/common/search/strategies/sql_search/types.ts diff --git a/src/plugins/data/common/search/tabify/buckets.test.ts b/src/platform/plugins/shared/data/common/search/tabify/buckets.test.ts similarity index 100% rename from src/plugins/data/common/search/tabify/buckets.test.ts rename to src/platform/plugins/shared/data/common/search/tabify/buckets.test.ts diff --git a/src/plugins/data/common/search/tabify/buckets.ts b/src/platform/plugins/shared/data/common/search/tabify/buckets.ts similarity index 100% rename from src/plugins/data/common/search/tabify/buckets.ts rename to src/platform/plugins/shared/data/common/search/tabify/buckets.ts diff --git a/src/plugins/data/common/search/tabify/fixtures/fake_hierarchical_data.ts b/src/platform/plugins/shared/data/common/search/tabify/fixtures/fake_hierarchical_data.ts similarity index 100% rename from src/plugins/data/common/search/tabify/fixtures/fake_hierarchical_data.ts rename to src/platform/plugins/shared/data/common/search/tabify/fixtures/fake_hierarchical_data.ts diff --git a/src/plugins/data/common/search/tabify/fixtures/fake_timeoffset_data.ts b/src/platform/plugins/shared/data/common/search/tabify/fixtures/fake_timeoffset_data.ts similarity index 100% rename from src/plugins/data/common/search/tabify/fixtures/fake_timeoffset_data.ts rename to src/platform/plugins/shared/data/common/search/tabify/fixtures/fake_timeoffset_data.ts diff --git a/src/plugins/data/common/search/tabify/get_columns.test.ts b/src/platform/plugins/shared/data/common/search/tabify/get_columns.test.ts similarity index 100% rename from src/plugins/data/common/search/tabify/get_columns.test.ts rename to src/platform/plugins/shared/data/common/search/tabify/get_columns.test.ts diff --git a/src/plugins/data/common/search/tabify/get_columns.ts b/src/platform/plugins/shared/data/common/search/tabify/get_columns.ts similarity index 100% rename from src/plugins/data/common/search/tabify/get_columns.ts rename to src/platform/plugins/shared/data/common/search/tabify/get_columns.ts diff --git a/src/plugins/data/common/search/tabify/index.ts b/src/platform/plugins/shared/data/common/search/tabify/index.ts similarity index 100% rename from src/plugins/data/common/search/tabify/index.ts rename to src/platform/plugins/shared/data/common/search/tabify/index.ts diff --git a/src/plugins/data/common/search/tabify/response_writer.test.ts b/src/platform/plugins/shared/data/common/search/tabify/response_writer.test.ts similarity index 100% rename from src/plugins/data/common/search/tabify/response_writer.test.ts rename to src/platform/plugins/shared/data/common/search/tabify/response_writer.test.ts diff --git a/src/plugins/data/common/search/tabify/response_writer.ts b/src/platform/plugins/shared/data/common/search/tabify/response_writer.ts similarity index 100% rename from src/plugins/data/common/search/tabify/response_writer.ts rename to src/platform/plugins/shared/data/common/search/tabify/response_writer.ts diff --git a/src/plugins/data/common/search/tabify/tabify.test.ts b/src/platform/plugins/shared/data/common/search/tabify/tabify.test.ts similarity index 100% rename from src/plugins/data/common/search/tabify/tabify.test.ts rename to src/platform/plugins/shared/data/common/search/tabify/tabify.test.ts diff --git a/src/plugins/data/common/search/tabify/tabify.ts b/src/platform/plugins/shared/data/common/search/tabify/tabify.ts similarity index 100% rename from src/plugins/data/common/search/tabify/tabify.ts rename to src/platform/plugins/shared/data/common/search/tabify/tabify.ts diff --git a/src/plugins/data/common/search/tabify/types.ts b/src/platform/plugins/shared/data/common/search/tabify/types.ts similarity index 100% rename from src/plugins/data/common/search/tabify/types.ts rename to src/platform/plugins/shared/data/common/search/tabify/types.ts diff --git a/src/plugins/data/common/search/test_data/illegal_argument_exception.json b/src/platform/plugins/shared/data/common/search/test_data/illegal_argument_exception.json similarity index 100% rename from src/plugins/data/common/search/test_data/illegal_argument_exception.json rename to src/platform/plugins/shared/data/common/search/test_data/illegal_argument_exception.json diff --git a/src/plugins/data/common/search/test_data/index_not_found_exception.json b/src/platform/plugins/shared/data/common/search/test_data/index_not_found_exception.json similarity index 100% rename from src/plugins/data/common/search/test_data/index_not_found_exception.json rename to src/platform/plugins/shared/data/common/search/test_data/index_not_found_exception.json diff --git a/src/plugins/data/common/search/test_data/json_e_o_f_exception.json b/src/platform/plugins/shared/data/common/search/test_data/json_e_o_f_exception.json similarity index 100% rename from src/plugins/data/common/search/test_data/json_e_o_f_exception.json rename to src/platform/plugins/shared/data/common/search/test_data/json_e_o_f_exception.json diff --git a/src/plugins/data/common/search/test_data/parsing_exception.json b/src/platform/plugins/shared/data/common/search/test_data/parsing_exception.json similarity index 100% rename from src/plugins/data/common/search/test_data/parsing_exception.json rename to src/platform/plugins/shared/data/common/search/test_data/parsing_exception.json diff --git a/src/plugins/data/common/search/test_data/resource_not_found_exception.json b/src/platform/plugins/shared/data/common/search/test_data/resource_not_found_exception.json similarity index 100% rename from src/plugins/data/common/search/test_data/resource_not_found_exception.json rename to src/platform/plugins/shared/data/common/search/test_data/resource_not_found_exception.json diff --git a/src/plugins/data/common/search/test_data/search_phase_execution_exception.json b/src/platform/plugins/shared/data/common/search/test_data/search_phase_execution_exception.json similarity index 100% rename from src/plugins/data/common/search/test_data/search_phase_execution_exception.json rename to src/platform/plugins/shared/data/common/search/test_data/search_phase_execution_exception.json diff --git a/src/plugins/data/common/search/test_data/x_content_parse_exception.json b/src/platform/plugins/shared/data/common/search/test_data/x_content_parse_exception.json similarity index 100% rename from src/plugins/data/common/search/test_data/x_content_parse_exception.json rename to src/platform/plugins/shared/data/common/search/test_data/x_content_parse_exception.json diff --git a/src/plugins/data/common/search/utils.test.ts b/src/platform/plugins/shared/data/common/search/utils.test.ts similarity index 100% rename from src/plugins/data/common/search/utils.test.ts rename to src/platform/plugins/shared/data/common/search/utils.test.ts diff --git a/src/plugins/data/common/search/utils.ts b/src/platform/plugins/shared/data/common/search/utils.ts similarity index 100% rename from src/plugins/data/common/search/utils.ts rename to src/platform/plugins/shared/data/common/search/utils.ts diff --git a/src/plugins/data/common/stubs.ts b/src/platform/plugins/shared/data/common/stubs.ts similarity index 100% rename from src/plugins/data/common/stubs.ts rename to src/platform/plugins/shared/data/common/stubs.ts diff --git a/src/plugins/data/common/types.ts b/src/platform/plugins/shared/data/common/types.ts similarity index 100% rename from src/plugins/data/common/types.ts rename to src/platform/plugins/shared/data/common/types.ts diff --git a/src/plugins/data/config.mock.ts b/src/platform/plugins/shared/data/config.mock.ts similarity index 100% rename from src/plugins/data/config.mock.ts rename to src/platform/plugins/shared/data/config.mock.ts diff --git a/src/plugins/vis_types/timelion/jest.config.js b/src/platform/plugins/shared/data/jest.config.js similarity index 76% rename from src/plugins/vis_types/timelion/jest.config.js rename to src/platform/plugins/shared/data/jest.config.js index e2e41d47834c5..332abc7b38cd6 100644 --- a/src/plugins/vis_types/timelion/jest.config.js +++ b/src/platform/plugins/shared/data/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/vis_types/timelion'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_types/timelion', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/data'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/data', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/vis_types/timelion/{common,public,server}/**/*.{js,ts,tsx}', + '/src/platform/plugins/shared/data/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/data/kibana.jsonc b/src/platform/plugins/shared/data/kibana.jsonc similarity index 100% rename from src/plugins/data/kibana.jsonc rename to src/platform/plugins/shared/data/kibana.jsonc diff --git a/src/plugins/data/public/actions/filters/create_filters_from_multi_value_click.test.ts b/src/platform/plugins/shared/data/public/actions/filters/create_filters_from_multi_value_click.test.ts similarity index 100% rename from src/plugins/data/public/actions/filters/create_filters_from_multi_value_click.test.ts rename to src/platform/plugins/shared/data/public/actions/filters/create_filters_from_multi_value_click.test.ts diff --git a/src/plugins/data/public/actions/filters/create_filters_from_multi_value_click.ts b/src/platform/plugins/shared/data/public/actions/filters/create_filters_from_multi_value_click.ts similarity index 100% rename from src/plugins/data/public/actions/filters/create_filters_from_multi_value_click.ts rename to src/platform/plugins/shared/data/public/actions/filters/create_filters_from_multi_value_click.ts diff --git a/src/plugins/data/public/actions/filters/create_filters_from_range_select.test.ts b/src/platform/plugins/shared/data/public/actions/filters/create_filters_from_range_select.test.ts similarity index 100% rename from src/plugins/data/public/actions/filters/create_filters_from_range_select.test.ts rename to src/platform/plugins/shared/data/public/actions/filters/create_filters_from_range_select.test.ts diff --git a/src/plugins/data/public/actions/filters/create_filters_from_range_select.ts b/src/platform/plugins/shared/data/public/actions/filters/create_filters_from_range_select.ts similarity index 100% rename from src/plugins/data/public/actions/filters/create_filters_from_range_select.ts rename to src/platform/plugins/shared/data/public/actions/filters/create_filters_from_range_select.ts diff --git a/src/plugins/data/public/actions/filters/create_filters_from_value_click.test.ts b/src/platform/plugins/shared/data/public/actions/filters/create_filters_from_value_click.test.ts similarity index 100% rename from src/plugins/data/public/actions/filters/create_filters_from_value_click.test.ts rename to src/platform/plugins/shared/data/public/actions/filters/create_filters_from_value_click.test.ts diff --git a/src/plugins/data/public/actions/filters/create_filters_from_value_click.ts b/src/platform/plugins/shared/data/public/actions/filters/create_filters_from_value_click.ts similarity index 100% rename from src/plugins/data/public/actions/filters/create_filters_from_value_click.ts rename to src/platform/plugins/shared/data/public/actions/filters/create_filters_from_value_click.ts diff --git a/src/plugins/data/public/actions/index.ts b/src/platform/plugins/shared/data/public/actions/index.ts similarity index 100% rename from src/plugins/data/public/actions/index.ts rename to src/platform/plugins/shared/data/public/actions/index.ts diff --git a/src/plugins/data/public/actions/multi_value_click_action.ts b/src/platform/plugins/shared/data/public/actions/multi_value_click_action.ts similarity index 100% rename from src/plugins/data/public/actions/multi_value_click_action.ts rename to src/platform/plugins/shared/data/public/actions/multi_value_click_action.ts diff --git a/src/plugins/data/public/actions/select_range_action.ts b/src/platform/plugins/shared/data/public/actions/select_range_action.ts similarity index 100% rename from src/plugins/data/public/actions/select_range_action.ts rename to src/platform/plugins/shared/data/public/actions/select_range_action.ts diff --git a/src/plugins/data/public/actions/value_click_action.ts b/src/platform/plugins/shared/data/public/actions/value_click_action.ts similarity index 100% rename from src/plugins/data/public/actions/value_click_action.ts rename to src/platform/plugins/shared/data/public/actions/value_click_action.ts diff --git a/src/plugins/data/public/data_views/index.ts b/src/platform/plugins/shared/data/public/data_views/index.ts similarity index 100% rename from src/plugins/data/public/data_views/index.ts rename to src/platform/plugins/shared/data/public/data_views/index.ts diff --git a/src/plugins/data/public/data_views/mocks.ts b/src/platform/plugins/shared/data/public/data_views/mocks.ts similarity index 100% rename from src/plugins/data/public/data_views/mocks.ts rename to src/platform/plugins/shared/data/public/data_views/mocks.ts diff --git a/src/plugins/data/public/index.scss b/src/platform/plugins/shared/data/public/index.scss similarity index 100% rename from src/plugins/data/public/index.scss rename to src/platform/plugins/shared/data/public/index.scss diff --git a/src/plugins/data/public/index.ts b/src/platform/plugins/shared/data/public/index.ts similarity index 100% rename from src/plugins/data/public/index.ts rename to src/platform/plugins/shared/data/public/index.ts diff --git a/src/plugins/data/public/mocks.ts b/src/platform/plugins/shared/data/public/mocks.ts similarity index 100% rename from src/plugins/data/public/mocks.ts rename to src/platform/plugins/shared/data/public/mocks.ts diff --git a/src/plugins/data/public/now_provider/index.ts b/src/platform/plugins/shared/data/public/now_provider/index.ts similarity index 100% rename from src/plugins/data/public/now_provider/index.ts rename to src/platform/plugins/shared/data/public/now_provider/index.ts diff --git a/src/plugins/data/public/now_provider/lib/get_force_now_from_url.test.ts b/src/platform/plugins/shared/data/public/now_provider/lib/get_force_now_from_url.test.ts similarity index 100% rename from src/plugins/data/public/now_provider/lib/get_force_now_from_url.test.ts rename to src/platform/plugins/shared/data/public/now_provider/lib/get_force_now_from_url.test.ts diff --git a/src/plugins/data/public/now_provider/lib/get_force_now_from_url.ts b/src/platform/plugins/shared/data/public/now_provider/lib/get_force_now_from_url.ts similarity index 100% rename from src/plugins/data/public/now_provider/lib/get_force_now_from_url.ts rename to src/platform/plugins/shared/data/public/now_provider/lib/get_force_now_from_url.ts diff --git a/src/plugins/data/public/now_provider/lib/index.ts b/src/platform/plugins/shared/data/public/now_provider/lib/index.ts similarity index 100% rename from src/plugins/data/public/now_provider/lib/index.ts rename to src/platform/plugins/shared/data/public/now_provider/lib/index.ts diff --git a/src/plugins/data/public/now_provider/mocks.ts b/src/platform/plugins/shared/data/public/now_provider/mocks.ts similarity index 100% rename from src/plugins/data/public/now_provider/mocks.ts rename to src/platform/plugins/shared/data/public/now_provider/mocks.ts diff --git a/src/plugins/data/public/now_provider/now_provider.test.ts b/src/platform/plugins/shared/data/public/now_provider/now_provider.test.ts similarity index 100% rename from src/plugins/data/public/now_provider/now_provider.test.ts rename to src/platform/plugins/shared/data/public/now_provider/now_provider.test.ts diff --git a/src/plugins/data/public/now_provider/now_provider.ts b/src/platform/plugins/shared/data/public/now_provider/now_provider.ts similarity index 100% rename from src/plugins/data/public/now_provider/now_provider.ts rename to src/platform/plugins/shared/data/public/now_provider/now_provider.ts diff --git a/src/plugins/data/public/plugin.ts b/src/platform/plugins/shared/data/public/plugin.ts similarity index 100% rename from src/plugins/data/public/plugin.ts rename to src/platform/plugins/shared/data/public/plugin.ts diff --git a/src/plugins/data/public/query/filter_manager/filter_manager.mock.ts b/src/platform/plugins/shared/data/public/query/filter_manager/filter_manager.mock.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/filter_manager.mock.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/filter_manager.mock.ts diff --git a/src/plugins/data/public/query/filter_manager/filter_manager.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/filter_manager.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/filter_manager.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/filter_manager.test.ts diff --git a/src/plugins/data/public/query/filter_manager/filter_manager.ts b/src/platform/plugins/shared/data/public/query/filter_manager/filter_manager.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/filter_manager.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/filter_manager.ts diff --git a/src/plugins/data/public/query/filter_manager/index.ts b/src/platform/plugins/shared/data/public/query/filter_manager/index.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/index.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/index.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/generate_filter.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/generate_filter.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/generate_filter.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/generate_filter.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/generate_filters.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/generate_filters.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/generate_filters.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/generate_filters.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/generate_mapping_chain.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/generate_mapping_chain.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/generate_mapping_chain.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/generate_mapping_chain.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/generate_mapping_chain.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/generate_mapping_chain.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/generate_mapping_chain.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/generate_mapping_chain.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/get_display_value.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/get_display_value.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/get_display_value.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/get_display_value.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/get_display_value.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/get_display_value.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/get_display_value.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/get_display_value.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/get_index_pattern_from_filter.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/get_index_pattern_from_filter.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/get_index_pattern_from_filter.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/get_index_pattern_from_filter.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/get_index_pattern_from_filter.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/get_index_pattern_from_filter.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/get_index_pattern_from_filter.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/get_index_pattern_from_filter.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/map_and_flatten_filters.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/map_and_flatten_filters.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/map_and_flatten_filters.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/map_and_flatten_filters.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/map_and_flatten_filters.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/map_and_flatten_filters.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/map_and_flatten_filters.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/map_and_flatten_filters.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/map_filter.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/map_filter.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/map_filter.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/map_filter.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/map_filter.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/map_filter.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/map_filter.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/map_filter.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_combined.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_combined.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_combined.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_combined.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_combined.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_combined.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_combined.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_combined.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_default.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_default.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_default.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_default.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_default.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_default.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_default.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_default.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_exists.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_exists.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_exists.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_exists.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_exists.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_exists.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_exists.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_exists.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_match_all.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_match_all.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_match_all.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_match_all.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_match_all.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_match_all.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_match_all.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_match_all.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_phrase.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_phrase.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_phrase.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_phrase.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_phrase.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_phrase.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_phrase.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_phrase.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_phrases.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_phrases.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_phrases.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_phrases.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_phrases.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_phrases.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_phrases.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_phrases.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_query_string.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_query_string.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_query_string.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_query_string.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_query_string.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_query_string.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_query_string.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_query_string.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_range.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_range.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_range.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_range.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_range.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_range.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_range.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_range.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_spatial_filter.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_spatial_filter.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_spatial_filter.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_spatial_filter.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/mappers/map_spatial_filter.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_spatial_filter.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/mappers/map_spatial_filter.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/mappers/map_spatial_filter.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/sort_filters.test.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/sort_filters.test.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/sort_filters.test.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/sort_filters.test.ts diff --git a/src/plugins/data/public/query/filter_manager/lib/sort_filters.ts b/src/platform/plugins/shared/data/public/query/filter_manager/lib/sort_filters.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/lib/sort_filters.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/lib/sort_filters.ts diff --git a/src/plugins/data/public/query/filter_manager/test_helpers/get_filters_array.ts b/src/platform/plugins/shared/data/public/query/filter_manager/test_helpers/get_filters_array.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/test_helpers/get_filters_array.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/test_helpers/get_filters_array.ts diff --git a/src/plugins/data/public/query/filter_manager/test_helpers/get_stub_filter.ts b/src/platform/plugins/shared/data/public/query/filter_manager/test_helpers/get_stub_filter.ts similarity index 100% rename from src/plugins/data/public/query/filter_manager/test_helpers/get_stub_filter.ts rename to src/platform/plugins/shared/data/public/query/filter_manager/test_helpers/get_stub_filter.ts diff --git a/src/plugins/data/public/query/index.tsx b/src/platform/plugins/shared/data/public/query/index.tsx similarity index 100% rename from src/plugins/data/public/query/index.tsx rename to src/platform/plugins/shared/data/public/query/index.tsx diff --git a/src/plugins/data/public/query/lib/add_to_query_log.ts b/src/platform/plugins/shared/data/public/query/lib/add_to_query_log.ts similarity index 100% rename from src/plugins/data/public/query/lib/add_to_query_log.ts rename to src/platform/plugins/shared/data/public/query/lib/add_to_query_log.ts diff --git a/src/plugins/data/public/query/lib/get_default_query.ts b/src/platform/plugins/shared/data/public/query/lib/get_default_query.ts similarity index 100% rename from src/plugins/data/public/query/lib/get_default_query.ts rename to src/platform/plugins/shared/data/public/query/lib/get_default_query.ts diff --git a/src/plugins/data/public/query/lib/get_query_log.ts b/src/platform/plugins/shared/data/public/query/lib/get_query_log.ts similarity index 100% rename from src/plugins/data/public/query/lib/get_query_log.ts rename to src/platform/plugins/shared/data/public/query/lib/get_query_log.ts diff --git a/src/plugins/data/public/query/lib/index.ts b/src/platform/plugins/shared/data/public/query/lib/index.ts similarity index 100% rename from src/plugins/data/public/query/lib/index.ts rename to src/platform/plugins/shared/data/public/query/lib/index.ts diff --git a/src/plugins/data/public/query/mocks.ts b/src/platform/plugins/shared/data/public/query/mocks.ts similarity index 100% rename from src/plugins/data/public/query/mocks.ts rename to src/platform/plugins/shared/data/public/query/mocks.ts diff --git a/src/plugins/data/public/query/persisted_log/index.ts b/src/platform/plugins/shared/data/public/query/persisted_log/index.ts similarity index 100% rename from src/plugins/data/public/query/persisted_log/index.ts rename to src/platform/plugins/shared/data/public/query/persisted_log/index.ts diff --git a/src/plugins/data/public/query/persisted_log/persisted_log.test.ts b/src/platform/plugins/shared/data/public/query/persisted_log/persisted_log.test.ts similarity index 100% rename from src/plugins/data/public/query/persisted_log/persisted_log.test.ts rename to src/platform/plugins/shared/data/public/query/persisted_log/persisted_log.test.ts diff --git a/src/plugins/data/public/query/persisted_log/persisted_log.ts b/src/platform/plugins/shared/data/public/query/persisted_log/persisted_log.ts similarity index 100% rename from src/plugins/data/public/query/persisted_log/persisted_log.ts rename to src/platform/plugins/shared/data/public/query/persisted_log/persisted_log.ts diff --git a/src/plugins/data/public/query/query_service.test.ts b/src/platform/plugins/shared/data/public/query/query_service.test.ts similarity index 100% rename from src/plugins/data/public/query/query_service.test.ts rename to src/platform/plugins/shared/data/public/query/query_service.test.ts diff --git a/src/plugins/data/public/query/query_service.ts b/src/platform/plugins/shared/data/public/query/query_service.ts similarity index 100% rename from src/plugins/data/public/query/query_service.ts rename to src/platform/plugins/shared/data/public/query/query_service.ts diff --git a/src/plugins/data/public/query/query_state.ts b/src/platform/plugins/shared/data/public/query/query_state.ts similarity index 100% rename from src/plugins/data/public/query/query_state.ts rename to src/platform/plugins/shared/data/public/query/query_state.ts diff --git a/src/plugins/data/public/query/query_string/index.ts b/src/platform/plugins/shared/data/public/query/query_string/index.ts similarity index 100% rename from src/plugins/data/public/query/query_string/index.ts rename to src/platform/plugins/shared/data/public/query/query_string/index.ts diff --git a/src/plugins/data/public/query/query_string/query_string_manager.mock.ts b/src/platform/plugins/shared/data/public/query/query_string/query_string_manager.mock.ts similarity index 100% rename from src/plugins/data/public/query/query_string/query_string_manager.mock.ts rename to src/platform/plugins/shared/data/public/query/query_string/query_string_manager.mock.ts diff --git a/src/plugins/data/public/query/query_string/query_string_manager.test.ts b/src/platform/plugins/shared/data/public/query/query_string/query_string_manager.test.ts similarity index 100% rename from src/plugins/data/public/query/query_string/query_string_manager.test.ts rename to src/platform/plugins/shared/data/public/query/query_string/query_string_manager.test.ts diff --git a/src/plugins/data/public/query/query_string/query_string_manager.ts b/src/platform/plugins/shared/data/public/query/query_string/query_string_manager.ts similarity index 100% rename from src/plugins/data/public/query/query_string/query_string_manager.ts rename to src/platform/plugins/shared/data/public/query/query_string/query_string_manager.ts diff --git a/src/plugins/data/public/query/saved_query/index.ts b/src/platform/plugins/shared/data/public/query/saved_query/index.ts similarity index 100% rename from src/plugins/data/public/query/saved_query/index.ts rename to src/platform/plugins/shared/data/public/query/saved_query/index.ts diff --git a/src/plugins/data/public/query/saved_query/saved_query_service.test.ts b/src/platform/plugins/shared/data/public/query/saved_query/saved_query_service.test.ts similarity index 100% rename from src/plugins/data/public/query/saved_query/saved_query_service.test.ts rename to src/platform/plugins/shared/data/public/query/saved_query/saved_query_service.test.ts diff --git a/src/plugins/data/public/query/saved_query/saved_query_service.ts b/src/platform/plugins/shared/data/public/query/saved_query/saved_query_service.ts similarity index 100% rename from src/plugins/data/public/query/saved_query/saved_query_service.ts rename to src/platform/plugins/shared/data/public/query/saved_query/saved_query_service.ts diff --git a/src/plugins/data/public/query/saved_query/types.ts b/src/platform/plugins/shared/data/public/query/saved_query/types.ts similarity index 100% rename from src/plugins/data/public/query/saved_query/types.ts rename to src/platform/plugins/shared/data/public/query/saved_query/types.ts diff --git a/src/plugins/data/public/query/state_sync/README.md b/src/platform/plugins/shared/data/public/query/state_sync/README.md similarity index 100% rename from src/plugins/data/public/query/state_sync/README.md rename to src/platform/plugins/shared/data/public/query/state_sync/README.md diff --git a/src/plugins/data/public/query/state_sync/connect_to_query_state.test.ts b/src/platform/plugins/shared/data/public/query/state_sync/connect_to_query_state.test.ts similarity index 100% rename from src/plugins/data/public/query/state_sync/connect_to_query_state.test.ts rename to src/platform/plugins/shared/data/public/query/state_sync/connect_to_query_state.test.ts diff --git a/src/plugins/data/public/query/state_sync/connect_to_query_state.ts b/src/platform/plugins/shared/data/public/query/state_sync/connect_to_query_state.ts similarity index 100% rename from src/plugins/data/public/query/state_sync/connect_to_query_state.ts rename to src/platform/plugins/shared/data/public/query/state_sync/connect_to_query_state.ts diff --git a/src/plugins/data/public/query/state_sync/create_query_state_observable.ts b/src/platform/plugins/shared/data/public/query/state_sync/create_query_state_observable.ts similarity index 100% rename from src/plugins/data/public/query/state_sync/create_query_state_observable.ts rename to src/platform/plugins/shared/data/public/query/state_sync/create_query_state_observable.ts diff --git a/src/plugins/data/public/query/state_sync/index.ts b/src/platform/plugins/shared/data/public/query/state_sync/index.ts similarity index 100% rename from src/plugins/data/public/query/state_sync/index.ts rename to src/platform/plugins/shared/data/public/query/state_sync/index.ts diff --git a/src/plugins/data/public/query/state_sync/sync_state_with_url.test.ts b/src/platform/plugins/shared/data/public/query/state_sync/sync_state_with_url.test.ts similarity index 100% rename from src/plugins/data/public/query/state_sync/sync_state_with_url.test.ts rename to src/platform/plugins/shared/data/public/query/state_sync/sync_state_with_url.test.ts diff --git a/src/plugins/data/public/query/state_sync/sync_state_with_url.ts b/src/platform/plugins/shared/data/public/query/state_sync/sync_state_with_url.ts similarity index 100% rename from src/plugins/data/public/query/state_sync/sync_state_with_url.ts rename to src/platform/plugins/shared/data/public/query/state_sync/sync_state_with_url.ts diff --git a/src/plugins/data/public/query/state_sync/types.ts b/src/platform/plugins/shared/data/public/query/state_sync/types.ts similarity index 100% rename from src/plugins/data/public/query/state_sync/types.ts rename to src/platform/plugins/shared/data/public/query/state_sync/types.ts diff --git a/src/plugins/data/public/query/timefilter/index.ts b/src/platform/plugins/shared/data/public/query/timefilter/index.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/index.ts rename to src/platform/plugins/shared/data/public/query/timefilter/index.ts diff --git a/src/plugins/data/public/query/timefilter/lib/auto_refresh_loop.test.ts b/src/platform/plugins/shared/data/public/query/timefilter/lib/auto_refresh_loop.test.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/lib/auto_refresh_loop.test.ts rename to src/platform/plugins/shared/data/public/query/timefilter/lib/auto_refresh_loop.test.ts diff --git a/src/plugins/data/public/query/timefilter/lib/auto_refresh_loop.ts b/src/platform/plugins/shared/data/public/query/timefilter/lib/auto_refresh_loop.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/lib/auto_refresh_loop.ts rename to src/platform/plugins/shared/data/public/query/timefilter/lib/auto_refresh_loop.ts diff --git a/src/plugins/data/public/query/timefilter/lib/diff_time_picker_vals.test.ts b/src/platform/plugins/shared/data/public/query/timefilter/lib/diff_time_picker_vals.test.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/lib/diff_time_picker_vals.test.ts rename to src/platform/plugins/shared/data/public/query/timefilter/lib/diff_time_picker_vals.test.ts diff --git a/src/plugins/data/public/query/timefilter/lib/diff_time_picker_vals.ts b/src/platform/plugins/shared/data/public/query/timefilter/lib/diff_time_picker_vals.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/lib/diff_time_picker_vals.ts rename to src/platform/plugins/shared/data/public/query/timefilter/lib/diff_time_picker_vals.ts diff --git a/src/plugins/data/public/query/timefilter/lib/page_visibility.test.ts b/src/platform/plugins/shared/data/public/query/timefilter/lib/page_visibility.test.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/lib/page_visibility.test.ts rename to src/platform/plugins/shared/data/public/query/timefilter/lib/page_visibility.test.ts diff --git a/src/plugins/data/public/query/timefilter/lib/page_visibility.ts b/src/platform/plugins/shared/data/public/query/timefilter/lib/page_visibility.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/lib/page_visibility.ts rename to src/platform/plugins/shared/data/public/query/timefilter/lib/page_visibility.ts diff --git a/src/plugins/data/public/query/timefilter/lib/validate_timerange.test.ts b/src/platform/plugins/shared/data/public/query/timefilter/lib/validate_timerange.test.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/lib/validate_timerange.test.ts rename to src/platform/plugins/shared/data/public/query/timefilter/lib/validate_timerange.test.ts diff --git a/src/plugins/data/public/query/timefilter/lib/validate_timerange.ts b/src/platform/plugins/shared/data/public/query/timefilter/lib/validate_timerange.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/lib/validate_timerange.ts rename to src/platform/plugins/shared/data/public/query/timefilter/lib/validate_timerange.ts diff --git a/src/plugins/data/public/query/timefilter/time_history.ts b/src/platform/plugins/shared/data/public/query/timefilter/time_history.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/time_history.ts rename to src/platform/plugins/shared/data/public/query/timefilter/time_history.ts diff --git a/src/plugins/data/public/query/timefilter/timefilter.test.ts b/src/platform/plugins/shared/data/public/query/timefilter/timefilter.test.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/timefilter.test.ts rename to src/platform/plugins/shared/data/public/query/timefilter/timefilter.test.ts diff --git a/src/plugins/data/public/query/timefilter/timefilter.ts b/src/platform/plugins/shared/data/public/query/timefilter/timefilter.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/timefilter.ts rename to src/platform/plugins/shared/data/public/query/timefilter/timefilter.ts diff --git a/src/plugins/data/public/query/timefilter/timefilter_service.mock.ts b/src/platform/plugins/shared/data/public/query/timefilter/timefilter_service.mock.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/timefilter_service.mock.ts rename to src/platform/plugins/shared/data/public/query/timefilter/timefilter_service.mock.ts diff --git a/src/plugins/data/public/query/timefilter/timefilter_service.ts b/src/platform/plugins/shared/data/public/query/timefilter/timefilter_service.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/timefilter_service.ts rename to src/platform/plugins/shared/data/public/query/timefilter/timefilter_service.ts diff --git a/src/plugins/data/public/query/timefilter/types.ts b/src/platform/plugins/shared/data/public/query/timefilter/types.ts similarity index 100% rename from src/plugins/data/public/query/timefilter/types.ts rename to src/platform/plugins/shared/data/public/query/timefilter/types.ts diff --git a/src/plugins/data/public/search/aggs/aggs_service.test.ts b/src/platform/plugins/shared/data/public/search/aggs/aggs_service.test.ts similarity index 100% rename from src/plugins/data/public/search/aggs/aggs_service.test.ts rename to src/platform/plugins/shared/data/public/search/aggs/aggs_service.test.ts diff --git a/src/plugins/data/public/search/aggs/aggs_service.ts b/src/platform/plugins/shared/data/public/search/aggs/aggs_service.ts similarity index 100% rename from src/plugins/data/public/search/aggs/aggs_service.ts rename to src/platform/plugins/shared/data/public/search/aggs/aggs_service.ts diff --git a/src/plugins/data/public/search/aggs/index.ts b/src/platform/plugins/shared/data/public/search/aggs/index.ts similarity index 100% rename from src/plugins/data/public/search/aggs/index.ts rename to src/platform/plugins/shared/data/public/search/aggs/index.ts diff --git a/src/plugins/data/public/search/aggs/mocks.ts b/src/platform/plugins/shared/data/public/search/aggs/mocks.ts similarity index 100% rename from src/plugins/data/public/search/aggs/mocks.ts rename to src/platform/plugins/shared/data/public/search/aggs/mocks.ts diff --git a/src/plugins/data/public/search/aggs/types.ts b/src/platform/plugins/shared/data/public/search/aggs/types.ts similarity index 100% rename from src/plugins/data/public/search/aggs/types.ts rename to src/platform/plugins/shared/data/public/search/aggs/types.ts diff --git a/src/plugins/data/public/search/collectors/create_usage_collector.test.ts b/src/platform/plugins/shared/data/public/search/collectors/create_usage_collector.test.ts similarity index 100% rename from src/plugins/data/public/search/collectors/create_usage_collector.test.ts rename to src/platform/plugins/shared/data/public/search/collectors/create_usage_collector.test.ts diff --git a/src/plugins/data/public/search/collectors/create_usage_collector.ts b/src/platform/plugins/shared/data/public/search/collectors/create_usage_collector.ts similarity index 100% rename from src/plugins/data/public/search/collectors/create_usage_collector.ts rename to src/platform/plugins/shared/data/public/search/collectors/create_usage_collector.ts diff --git a/src/plugins/data/public/search/collectors/index.ts b/src/platform/plugins/shared/data/public/search/collectors/index.ts similarity index 100% rename from src/plugins/data/public/search/collectors/index.ts rename to src/platform/plugins/shared/data/public/search/collectors/index.ts diff --git a/src/plugins/data/public/search/collectors/mocks.ts b/src/platform/plugins/shared/data/public/search/collectors/mocks.ts similarity index 100% rename from src/plugins/data/public/search/collectors/mocks.ts rename to src/platform/plugins/shared/data/public/search/collectors/mocks.ts diff --git a/src/plugins/data/public/search/collectors/types.ts b/src/platform/plugins/shared/data/public/search/collectors/types.ts similarity index 100% rename from src/plugins/data/public/search/collectors/types.ts rename to src/platform/plugins/shared/data/public/search/collectors/types.ts diff --git a/src/plugins/data/public/search/expressions/__snapshots__/eql.test.ts.snap b/src/platform/plugins/shared/data/public/search/expressions/__snapshots__/eql.test.ts.snap similarity index 100% rename from src/plugins/data/public/search/expressions/__snapshots__/eql.test.ts.snap rename to src/platform/plugins/shared/data/public/search/expressions/__snapshots__/eql.test.ts.snap diff --git a/src/plugins/data/public/search/expressions/__snapshots__/esdsl.test.ts.snap b/src/platform/plugins/shared/data/public/search/expressions/__snapshots__/esdsl.test.ts.snap similarity index 100% rename from src/plugins/data/public/search/expressions/__snapshots__/esdsl.test.ts.snap rename to src/platform/plugins/shared/data/public/search/expressions/__snapshots__/esdsl.test.ts.snap diff --git a/src/plugins/data/public/search/expressions/eql.test.ts b/src/platform/plugins/shared/data/public/search/expressions/eql.test.ts similarity index 100% rename from src/plugins/data/public/search/expressions/eql.test.ts rename to src/platform/plugins/shared/data/public/search/expressions/eql.test.ts diff --git a/src/plugins/data/public/search/expressions/eql.ts b/src/platform/plugins/shared/data/public/search/expressions/eql.ts similarity index 100% rename from src/plugins/data/public/search/expressions/eql.ts rename to src/platform/plugins/shared/data/public/search/expressions/eql.ts diff --git a/src/plugins/data/public/search/expressions/esaggs.test.ts b/src/platform/plugins/shared/data/public/search/expressions/esaggs.test.ts similarity index 100% rename from src/plugins/data/public/search/expressions/esaggs.test.ts rename to src/platform/plugins/shared/data/public/search/expressions/esaggs.test.ts diff --git a/src/plugins/data/public/search/expressions/esaggs.ts b/src/platform/plugins/shared/data/public/search/expressions/esaggs.ts similarity index 100% rename from src/plugins/data/public/search/expressions/esaggs.ts rename to src/platform/plugins/shared/data/public/search/expressions/esaggs.ts diff --git a/src/plugins/data/public/search/expressions/esdsl.test.ts b/src/platform/plugins/shared/data/public/search/expressions/esdsl.test.ts similarity index 100% rename from src/plugins/data/public/search/expressions/esdsl.test.ts rename to src/platform/plugins/shared/data/public/search/expressions/esdsl.test.ts diff --git a/src/plugins/data/public/search/expressions/esdsl.ts b/src/platform/plugins/shared/data/public/search/expressions/esdsl.ts similarity index 100% rename from src/plugins/data/public/search/expressions/esdsl.ts rename to src/platform/plugins/shared/data/public/search/expressions/esdsl.ts diff --git a/src/plugins/data/public/search/expressions/esql.ts b/src/platform/plugins/shared/data/public/search/expressions/esql.ts similarity index 100% rename from src/plugins/data/public/search/expressions/esql.ts rename to src/platform/plugins/shared/data/public/search/expressions/esql.ts diff --git a/src/plugins/data/public/search/expressions/essql.ts b/src/platform/plugins/shared/data/public/search/expressions/essql.ts similarity index 100% rename from src/plugins/data/public/search/expressions/essql.ts rename to src/platform/plugins/shared/data/public/search/expressions/essql.ts diff --git a/src/plugins/data/public/search/expressions/index.ts b/src/platform/plugins/shared/data/public/search/expressions/index.ts similarity index 100% rename from src/plugins/data/public/search/expressions/index.ts rename to src/platform/plugins/shared/data/public/search/expressions/index.ts diff --git a/src/plugins/data/public/search/index.ts b/src/platform/plugins/shared/data/public/search/index.ts similarity index 100% rename from src/plugins/data/public/search/index.ts rename to src/platform/plugins/shared/data/public/search/index.ts diff --git a/src/plugins/data/public/search/mocks.ts b/src/platform/plugins/shared/data/public/search/mocks.ts similarity index 100% rename from src/plugins/data/public/search/mocks.ts rename to src/platform/plugins/shared/data/public/search/mocks.ts diff --git a/src/plugins/data/public/search/search_interceptor/create_request_hash.ts b/src/platform/plugins/shared/data/public/search/search_interceptor/create_request_hash.ts similarity index 100% rename from src/plugins/data/public/search/search_interceptor/create_request_hash.ts rename to src/platform/plugins/shared/data/public/search/search_interceptor/create_request_hash.ts diff --git a/src/plugins/data/public/search/search_interceptor/index.ts b/src/platform/plugins/shared/data/public/search/search_interceptor/index.ts similarity index 100% rename from src/plugins/data/public/search/search_interceptor/index.ts rename to src/platform/plugins/shared/data/public/search/search_interceptor/index.ts diff --git a/src/plugins/data/public/search/search_interceptor/search_abort_controller.test.ts b/src/platform/plugins/shared/data/public/search/search_interceptor/search_abort_controller.test.ts similarity index 100% rename from src/plugins/data/public/search/search_interceptor/search_abort_controller.test.ts rename to src/platform/plugins/shared/data/public/search/search_interceptor/search_abort_controller.test.ts diff --git a/src/plugins/data/public/search/search_interceptor/search_abort_controller.ts b/src/platform/plugins/shared/data/public/search/search_interceptor/search_abort_controller.ts similarity index 100% rename from src/plugins/data/public/search/search_interceptor/search_abort_controller.ts rename to src/platform/plugins/shared/data/public/search/search_interceptor/search_abort_controller.ts diff --git a/src/plugins/data/public/search/search_interceptor/search_interceptor.test.ts b/src/platform/plugins/shared/data/public/search/search_interceptor/search_interceptor.test.ts similarity index 100% rename from src/plugins/data/public/search/search_interceptor/search_interceptor.test.ts rename to src/platform/plugins/shared/data/public/search/search_interceptor/search_interceptor.test.ts diff --git a/src/plugins/data/public/search/search_interceptor/search_interceptor.ts b/src/platform/plugins/shared/data/public/search/search_interceptor/search_interceptor.ts similarity index 100% rename from src/plugins/data/public/search/search_interceptor/search_interceptor.ts rename to src/platform/plugins/shared/data/public/search/search_interceptor/search_interceptor.ts diff --git a/src/plugins/data/public/search/search_interceptor/search_response_cache.test.ts b/src/platform/plugins/shared/data/public/search/search_interceptor/search_response_cache.test.ts similarity index 100% rename from src/plugins/data/public/search/search_interceptor/search_response_cache.test.ts rename to src/platform/plugins/shared/data/public/search/search_interceptor/search_response_cache.test.ts diff --git a/src/plugins/data/public/search/search_interceptor/search_response_cache.ts b/src/platform/plugins/shared/data/public/search/search_interceptor/search_response_cache.ts similarity index 100% rename from src/plugins/data/public/search/search_interceptor/search_response_cache.ts rename to src/platform/plugins/shared/data/public/search/search_interceptor/search_response_cache.ts diff --git a/src/plugins/data/public/search/search_interceptor/search_session_incomplete_warning.tsx b/src/platform/plugins/shared/data/public/search/search_interceptor/search_session_incomplete_warning.tsx similarity index 100% rename from src/plugins/data/public/search/search_interceptor/search_session_incomplete_warning.tsx rename to src/platform/plugins/shared/data/public/search/search_interceptor/search_session_incomplete_warning.tsx diff --git a/src/plugins/data/public/search/search_interceptor/timeout_error.test.tsx b/src/platform/plugins/shared/data/public/search/search_interceptor/timeout_error.test.tsx similarity index 100% rename from src/plugins/data/public/search/search_interceptor/timeout_error.test.tsx rename to src/platform/plugins/shared/data/public/search/search_interceptor/timeout_error.test.tsx diff --git a/src/plugins/data/public/search/search_interceptor/timeout_error.tsx b/src/platform/plugins/shared/data/public/search/search_interceptor/timeout_error.tsx similarity index 100% rename from src/plugins/data/public/search/search_interceptor/timeout_error.tsx rename to src/platform/plugins/shared/data/public/search/search_interceptor/timeout_error.tsx diff --git a/src/plugins/data/public/search/search_interceptor/to_partial_response.test.ts b/src/platform/plugins/shared/data/public/search/search_interceptor/to_partial_response.test.ts similarity index 100% rename from src/plugins/data/public/search/search_interceptor/to_partial_response.test.ts rename to src/platform/plugins/shared/data/public/search/search_interceptor/to_partial_response.test.ts diff --git a/src/plugins/data/public/search/search_interceptor/to_partial_response.ts b/src/platform/plugins/shared/data/public/search/search_interceptor/to_partial_response.ts similarity index 100% rename from src/plugins/data/public/search/search_interceptor/to_partial_response.ts rename to src/platform/plugins/shared/data/public/search/search_interceptor/to_partial_response.ts diff --git a/src/plugins/data/public/search/search_service.test.ts b/src/platform/plugins/shared/data/public/search/search_service.test.ts similarity index 100% rename from src/plugins/data/public/search/search_service.test.ts rename to src/platform/plugins/shared/data/public/search/search_service.test.ts diff --git a/src/plugins/data/public/search/search_service.ts b/src/platform/plugins/shared/data/public/search/search_service.ts similarity index 100% rename from src/plugins/data/public/search/search_service.ts rename to src/platform/plugins/shared/data/public/search/search_service.ts diff --git a/src/plugins/data/public/search/search_source/mocks.ts b/src/platform/plugins/shared/data/public/search/search_source/mocks.ts similarity index 100% rename from src/plugins/data/public/search/search_source/mocks.ts rename to src/platform/plugins/shared/data/public/search/search_source/mocks.ts diff --git a/src/plugins/data/public/search/session/constants.ts b/src/platform/plugins/shared/data/public/search/session/constants.ts similarity index 100% rename from src/plugins/data/public/search/session/constants.ts rename to src/platform/plugins/shared/data/public/search/session/constants.ts diff --git a/src/plugins/data/public/search/session/i18n.ts b/src/platform/plugins/shared/data/public/search/session/i18n.ts similarity index 100% rename from src/plugins/data/public/search/session/i18n.ts rename to src/platform/plugins/shared/data/public/search/session/i18n.ts diff --git a/src/plugins/data/public/search/session/index.ts b/src/platform/plugins/shared/data/public/search/session/index.ts similarity index 100% rename from src/plugins/data/public/search/session/index.ts rename to src/platform/plugins/shared/data/public/search/session/index.ts diff --git a/src/plugins/data/public/search/session/lib/session_name_formatter.ts b/src/platform/plugins/shared/data/public/search/session/lib/session_name_formatter.ts similarity index 100% rename from src/plugins/data/public/search/session/lib/session_name_formatter.ts rename to src/platform/plugins/shared/data/public/search/session/lib/session_name_formatter.ts diff --git a/src/plugins/data/public/search/session/mocks.ts b/src/platform/plugins/shared/data/public/search/session/mocks.ts similarity index 100% rename from src/plugins/data/public/search/session/mocks.ts rename to src/platform/plugins/shared/data/public/search/session/mocks.ts diff --git a/src/plugins/data/public/search/session/search_session_state.test.ts b/src/platform/plugins/shared/data/public/search/session/search_session_state.test.ts similarity index 100% rename from src/plugins/data/public/search/session/search_session_state.test.ts rename to src/platform/plugins/shared/data/public/search/session/search_session_state.test.ts diff --git a/src/plugins/data/public/search/session/search_session_state.ts b/src/platform/plugins/shared/data/public/search/session/search_session_state.ts similarity index 100% rename from src/plugins/data/public/search/session/search_session_state.ts rename to src/platform/plugins/shared/data/public/search/session/search_session_state.ts diff --git a/src/plugins/data/public/search/session/search_sessions_deprecation_message.tsx b/src/platform/plugins/shared/data/public/search/session/search_sessions_deprecation_message.tsx similarity index 100% rename from src/plugins/data/public/search/session/search_sessions_deprecation_message.tsx rename to src/platform/plugins/shared/data/public/search/session/search_sessions_deprecation_message.tsx diff --git a/src/plugins/data/public/search/session/session_helpers.test.ts b/src/platform/plugins/shared/data/public/search/session/session_helpers.test.ts similarity index 100% rename from src/plugins/data/public/search/session/session_helpers.test.ts rename to src/platform/plugins/shared/data/public/search/session/session_helpers.test.ts diff --git a/src/plugins/data/public/search/session/session_helpers.ts b/src/platform/plugins/shared/data/public/search/session/session_helpers.ts similarity index 100% rename from src/plugins/data/public/search/session/session_helpers.ts rename to src/platform/plugins/shared/data/public/search/session/session_helpers.ts diff --git a/src/plugins/data/public/search/session/session_indicator/connected_search_session_indicator/connected_search_session_indicator.test.tsx b/src/platform/plugins/shared/data/public/search/session/session_indicator/connected_search_session_indicator/connected_search_session_indicator.test.tsx similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/connected_search_session_indicator/connected_search_session_indicator.test.tsx rename to src/platform/plugins/shared/data/public/search/session/session_indicator/connected_search_session_indicator/connected_search_session_indicator.test.tsx diff --git a/src/plugins/data/public/search/session/session_indicator/connected_search_session_indicator/connected_search_session_indicator.tsx b/src/platform/plugins/shared/data/public/search/session/session_indicator/connected_search_session_indicator/connected_search_session_indicator.tsx similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/connected_search_session_indicator/connected_search_session_indicator.tsx rename to src/platform/plugins/shared/data/public/search/session/session_indicator/connected_search_session_indicator/connected_search_session_indicator.tsx diff --git a/src/plugins/data/public/search/session/session_indicator/connected_search_session_indicator/index.ts b/src/platform/plugins/shared/data/public/search/session/session_indicator/connected_search_session_indicator/index.ts similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/connected_search_session_indicator/index.ts rename to src/platform/plugins/shared/data/public/search/session/session_indicator/connected_search_session_indicator/index.ts diff --git a/src/plugins/data/public/search/session/session_indicator/connected_search_session_indicator/search_session_tour.tsx b/src/platform/plugins/shared/data/public/search/session/session_indicator/connected_search_session_indicator/search_session_tour.tsx similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/connected_search_session_indicator/search_session_tour.tsx rename to src/platform/plugins/shared/data/public/search/session/session_indicator/connected_search_session_indicator/search_session_tour.tsx diff --git a/src/plugins/data/public/search/session/session_indicator/connected_search_session_indicator/search_session_view_state.ts b/src/platform/plugins/shared/data/public/search/session/session_indicator/connected_search_session_indicator/search_session_view_state.ts similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/connected_search_session_indicator/search_session_view_state.ts rename to src/platform/plugins/shared/data/public/search/session/session_indicator/connected_search_session_indicator/search_session_view_state.ts diff --git a/src/plugins/data/public/search/session/session_indicator/index.ts b/src/platform/plugins/shared/data/public/search/session/session_indicator/index.ts similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/index.ts rename to src/platform/plugins/shared/data/public/search/session/session_indicator/index.ts diff --git a/src/plugins/data/public/search/session/session_indicator/search_session_indicator/components/index.ts b/src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/components/index.ts similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/search_session_indicator/components/index.ts rename to src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/components/index.ts diff --git a/src/plugins/data/public/search/session/session_indicator/search_session_indicator/components/search_session_name/index.ts b/src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/components/search_session_name/index.ts similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/search_session_indicator/components/search_session_name/index.ts rename to src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/components/search_session_name/index.ts diff --git a/src/plugins/data/public/search/session/session_indicator/search_session_indicator/components/search_session_name/search_session_name.tsx b/src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/components/search_session_name/search_session_name.tsx similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/search_session_indicator/components/search_session_name/search_session_name.tsx rename to src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/components/search_session_name/search_session_name.tsx diff --git a/src/plugins/data/public/search/session/session_indicator/search_session_indicator/custom_icons.tsx b/src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/custom_icons.tsx similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/search_session_indicator/custom_icons.tsx rename to src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/custom_icons.tsx diff --git a/src/plugins/data/public/search/session/session_indicator/search_session_indicator/index.tsx b/src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/index.tsx similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/search_session_indicator/index.tsx rename to src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/index.tsx diff --git a/src/plugins/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.scss b/src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.scss similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.scss rename to src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.scss diff --git a/src/plugins/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.stories.tsx b/src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.stories.tsx similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.stories.tsx rename to src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.stories.tsx diff --git a/src/plugins/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.test.tsx b/src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.test.tsx similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.test.tsx rename to src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.test.tsx diff --git a/src/plugins/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.tsx b/src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.tsx similarity index 100% rename from src/plugins/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.tsx rename to src/platform/plugins/shared/data/public/search/session/session_indicator/search_session_indicator/search_session_indicator.tsx diff --git a/src/plugins/data/public/search/session/session_service.test.ts b/src/platform/plugins/shared/data/public/search/session/session_service.test.ts similarity index 100% rename from src/plugins/data/public/search/session/session_service.test.ts rename to src/platform/plugins/shared/data/public/search/session/session_service.test.ts diff --git a/src/plugins/data/public/search/session/session_service.ts b/src/platform/plugins/shared/data/public/search/session/session_service.ts similarity index 100% rename from src/plugins/data/public/search/session/session_service.ts rename to src/platform/plugins/shared/data/public/search/session/session_service.ts diff --git a/src/plugins/data/public/search/session/sessions_client.ts b/src/platform/plugins/shared/data/public/search/session/sessions_client.ts similarity index 100% rename from src/plugins/data/public/search/session/sessions_client.ts rename to src/platform/plugins/shared/data/public/search/session/sessions_client.ts diff --git a/src/plugins/data/public/search/session/sessions_mgmt/__mocks__/index.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/__mocks__/index.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/__mocks__/index.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/__mocks__/index.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/application/index.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/application/index.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/application/index.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/application/index.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/application/render.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/application/render.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/application/render.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/application/render.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/actions/delete_button.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/delete_button.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/actions/delete_button.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/delete_button.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/actions/extend_button.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/extend_button.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/actions/extend_button.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/extend_button.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/actions/get_action.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/get_action.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/actions/get_action.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/get_action.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/actions/index.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/index.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/actions/index.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/index.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/actions/inspect_button.scss b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/inspect_button.scss similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/actions/inspect_button.scss rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/inspect_button.scss diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/actions/inspect_button.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/inspect_button.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/actions/inspect_button.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/inspect_button.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/actions/popover_actions.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/popover_actions.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/actions/popover_actions.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/popover_actions.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/actions/rename_button.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/rename_button.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/actions/rename_button.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/rename_button.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/actions/types.ts b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/types.ts similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/actions/types.ts rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/actions/types.ts diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/index.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/index.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/index.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/index.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/main.test.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/main.test.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/main.test.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/main.test.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/main.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/main.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/main.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/main.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/status.test.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/status.test.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/status.test.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/status.test.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/status.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/status.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/status.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/status.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/table/app_filter.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/table/app_filter.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/table/app_filter.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/table/app_filter.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/table/index.ts b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/table/index.ts similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/table/index.ts rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/table/index.ts diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/table/status_filter.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/table/status_filter.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/table/status_filter.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/table/status_filter.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/table/table.test.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/table/table.test.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/table/table.test.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/table/table.test.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/components/table/table.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/table/table.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/components/table/table.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/table/table.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/icons/extend_session.svg b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/icons/extend_session.svg similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/icons/extend_session.svg rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/icons/extend_session.svg diff --git a/src/plugins/data/public/search/session/sessions_mgmt/index.ts b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/index.ts similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/index.ts rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/index.ts diff --git a/src/plugins/data/public/search/session/sessions_mgmt/lib/api.test.ts b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/api.test.ts similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/lib/api.test.ts rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/api.test.ts diff --git a/src/plugins/data/public/search/session/sessions_mgmt/lib/api.ts b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/api.ts similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/lib/api.ts rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/api.ts diff --git a/src/plugins/data/public/search/session/sessions_mgmt/lib/date_string.ts b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/date_string.ts similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/lib/date_string.ts rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/date_string.ts diff --git a/src/plugins/data/public/search/session/sessions_mgmt/lib/documentation.ts b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/documentation.ts similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/lib/documentation.ts rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/documentation.ts diff --git a/src/plugins/data/public/search/session/sessions_mgmt/lib/get_columns.test.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/get_columns.test.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/lib/get_columns.test.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/get_columns.test.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/lib/get_columns.tsx b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/get_columns.tsx similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/lib/get_columns.tsx rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/get_columns.tsx diff --git a/src/plugins/data/public/search/session/sessions_mgmt/lib/get_expiration_status.ts b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/get_expiration_status.ts similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/lib/get_expiration_status.ts rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/lib/get_expiration_status.ts diff --git a/src/plugins/data/public/search/session/sessions_mgmt/types.ts b/src/platform/plugins/shared/data/public/search/session/sessions_mgmt/types.ts similarity index 100% rename from src/plugins/data/public/search/session/sessions_mgmt/types.ts rename to src/platform/plugins/shared/data/public/search/session/sessions_mgmt/types.ts diff --git a/src/plugins/data/public/search/types.ts b/src/platform/plugins/shared/data/public/search/types.ts similarity index 100% rename from src/plugins/data/public/search/types.ts rename to src/platform/plugins/shared/data/public/search/types.ts diff --git a/src/plugins/data/public/services.ts b/src/platform/plugins/shared/data/public/services.ts similarity index 100% rename from src/plugins/data/public/services.ts rename to src/platform/plugins/shared/data/public/services.ts diff --git a/src/plugins/data/public/stubs.ts b/src/platform/plugins/shared/data/public/stubs.ts similarity index 100% rename from src/plugins/data/public/stubs.ts rename to src/platform/plugins/shared/data/public/stubs.ts diff --git a/src/plugins/data/public/test_utils.ts b/src/platform/plugins/shared/data/public/test_utils.ts similarity index 100% rename from src/plugins/data/public/test_utils.ts rename to src/platform/plugins/shared/data/public/test_utils.ts diff --git a/src/plugins/data/public/triggers/apply_filter_trigger.ts b/src/platform/plugins/shared/data/public/triggers/apply_filter_trigger.ts similarity index 100% rename from src/plugins/data/public/triggers/apply_filter_trigger.ts rename to src/platform/plugins/shared/data/public/triggers/apply_filter_trigger.ts diff --git a/src/plugins/data/public/triggers/index.ts b/src/platform/plugins/shared/data/public/triggers/index.ts similarity index 100% rename from src/plugins/data/public/triggers/index.ts rename to src/platform/plugins/shared/data/public/triggers/index.ts diff --git a/src/plugins/data/public/types.ts b/src/platform/plugins/shared/data/public/types.ts similarity index 100% rename from src/plugins/data/public/types.ts rename to src/platform/plugins/shared/data/public/types.ts diff --git a/src/plugins/data/public/utils/shallow_equal.ts b/src/platform/plugins/shared/data/public/utils/shallow_equal.ts similarity index 100% rename from src/plugins/data/public/utils/shallow_equal.ts rename to src/platform/plugins/shared/data/public/utils/shallow_equal.ts diff --git a/src/plugins/data/public/utils/table_inspector_view/_data_table.scss b/src/platform/plugins/shared/data/public/utils/table_inspector_view/_data_table.scss similarity index 100% rename from src/plugins/data/public/utils/table_inspector_view/_data_table.scss rename to src/platform/plugins/shared/data/public/utils/table_inspector_view/_data_table.scss diff --git a/src/plugins/data/public/utils/table_inspector_view/_index.scss b/src/platform/plugins/shared/data/public/utils/table_inspector_view/_index.scss similarity index 100% rename from src/plugins/data/public/utils/table_inspector_view/_index.scss rename to src/platform/plugins/shared/data/public/utils/table_inspector_view/_index.scss diff --git a/src/plugins/data/public/utils/table_inspector_view/components/__snapshots__/data_view.test.tsx.snap b/src/platform/plugins/shared/data/public/utils/table_inspector_view/components/__snapshots__/data_view.test.tsx.snap similarity index 100% rename from src/plugins/data/public/utils/table_inspector_view/components/__snapshots__/data_view.test.tsx.snap rename to src/platform/plugins/shared/data/public/utils/table_inspector_view/components/__snapshots__/data_view.test.tsx.snap diff --git a/src/plugins/data/public/utils/table_inspector_view/components/data_table.tsx b/src/platform/plugins/shared/data/public/utils/table_inspector_view/components/data_table.tsx similarity index 100% rename from src/plugins/data/public/utils/table_inspector_view/components/data_table.tsx rename to src/platform/plugins/shared/data/public/utils/table_inspector_view/components/data_table.tsx diff --git a/src/plugins/data/public/utils/table_inspector_view/components/data_table_selector.tsx b/src/platform/plugins/shared/data/public/utils/table_inspector_view/components/data_table_selector.tsx similarity index 100% rename from src/plugins/data/public/utils/table_inspector_view/components/data_table_selector.tsx rename to src/platform/plugins/shared/data/public/utils/table_inspector_view/components/data_table_selector.tsx diff --git a/src/plugins/data/public/utils/table_inspector_view/components/data_view.test.tsx b/src/platform/plugins/shared/data/public/utils/table_inspector_view/components/data_view.test.tsx similarity index 100% rename from src/plugins/data/public/utils/table_inspector_view/components/data_view.test.tsx rename to src/platform/plugins/shared/data/public/utils/table_inspector_view/components/data_view.test.tsx diff --git a/src/plugins/data/public/utils/table_inspector_view/components/data_view.tsx b/src/platform/plugins/shared/data/public/utils/table_inspector_view/components/data_view.tsx similarity index 100% rename from src/plugins/data/public/utils/table_inspector_view/components/data_view.tsx rename to src/platform/plugins/shared/data/public/utils/table_inspector_view/components/data_view.tsx diff --git a/src/plugins/data/public/utils/table_inspector_view/components/data_view_wrapper.tsx b/src/platform/plugins/shared/data/public/utils/table_inspector_view/components/data_view_wrapper.tsx similarity index 100% rename from src/plugins/data/public/utils/table_inspector_view/components/data_view_wrapper.tsx rename to src/platform/plugins/shared/data/public/utils/table_inspector_view/components/data_view_wrapper.tsx diff --git a/src/plugins/data/public/utils/table_inspector_view/components/download_options.tsx b/src/platform/plugins/shared/data/public/utils/table_inspector_view/components/download_options.tsx similarity index 100% rename from src/plugins/data/public/utils/table_inspector_view/components/download_options.tsx rename to src/platform/plugins/shared/data/public/utils/table_inspector_view/components/download_options.tsx diff --git a/src/plugins/data/public/utils/table_inspector_view/index.ts b/src/platform/plugins/shared/data/public/utils/table_inspector_view/index.ts similarity index 100% rename from src/plugins/data/public/utils/table_inspector_view/index.ts rename to src/platform/plugins/shared/data/public/utils/table_inspector_view/index.ts diff --git a/src/plugins/data/public/utils/table_inspector_view/types.ts b/src/platform/plugins/shared/data/public/utils/table_inspector_view/types.ts similarity index 100% rename from src/plugins/data/public/utils/table_inspector_view/types.ts rename to src/platform/plugins/shared/data/public/utils/table_inspector_view/types.ts diff --git a/src/plugins/data/server/config.ts b/src/platform/plugins/shared/data/server/config.ts similarity index 100% rename from src/plugins/data/server/config.ts rename to src/platform/plugins/shared/data/server/config.ts diff --git a/src/plugins/data/server/config_deprecations.test.ts b/src/platform/plugins/shared/data/server/config_deprecations.test.ts similarity index 100% rename from src/plugins/data/server/config_deprecations.test.ts rename to src/platform/plugins/shared/data/server/config_deprecations.test.ts diff --git a/src/plugins/data/server/config_deprecations.ts b/src/platform/plugins/shared/data/server/config_deprecations.ts similarity index 100% rename from src/plugins/data/server/config_deprecations.ts rename to src/platform/plugins/shared/data/server/config_deprecations.ts diff --git a/src/plugins/data/server/data_views/index.ts b/src/platform/plugins/shared/data/server/data_views/index.ts similarity index 100% rename from src/plugins/data/server/data_views/index.ts rename to src/platform/plugins/shared/data/server/data_views/index.ts diff --git a/src/plugins/data/server/data_views/mocks.ts b/src/platform/plugins/shared/data/server/data_views/mocks.ts similarity index 100% rename from src/plugins/data/server/data_views/mocks.ts rename to src/platform/plugins/shared/data/server/data_views/mocks.ts diff --git a/src/plugins/data/server/datatable_utilities/datatable_utilities_service.ts b/src/platform/plugins/shared/data/server/datatable_utilities/datatable_utilities_service.ts similarity index 100% rename from src/plugins/data/server/datatable_utilities/datatable_utilities_service.ts rename to src/platform/plugins/shared/data/server/datatable_utilities/datatable_utilities_service.ts diff --git a/src/plugins/data/server/datatable_utilities/index.ts b/src/platform/plugins/shared/data/server/datatable_utilities/index.ts similarity index 100% rename from src/plugins/data/server/datatable_utilities/index.ts rename to src/platform/plugins/shared/data/server/datatable_utilities/index.ts diff --git a/src/plugins/data/server/datatable_utilities/mock.ts b/src/platform/plugins/shared/data/server/datatable_utilities/mock.ts similarity index 100% rename from src/plugins/data/server/datatable_utilities/mock.ts rename to src/platform/plugins/shared/data/server/datatable_utilities/mock.ts diff --git a/src/plugins/data/server/index.ts b/src/platform/plugins/shared/data/server/index.ts similarity index 100% rename from src/plugins/data/server/index.ts rename to src/platform/plugins/shared/data/server/index.ts diff --git a/src/plugins/data/server/kql_telemetry/index.ts b/src/platform/plugins/shared/data/server/kql_telemetry/index.ts similarity index 100% rename from src/plugins/data/server/kql_telemetry/index.ts rename to src/platform/plugins/shared/data/server/kql_telemetry/index.ts diff --git a/src/plugins/data/server/kql_telemetry/kql_telemetry_service.ts b/src/platform/plugins/shared/data/server/kql_telemetry/kql_telemetry_service.ts similarity index 100% rename from src/plugins/data/server/kql_telemetry/kql_telemetry_service.ts rename to src/platform/plugins/shared/data/server/kql_telemetry/kql_telemetry_service.ts diff --git a/src/plugins/data/server/kql_telemetry/route.ts b/src/platform/plugins/shared/data/server/kql_telemetry/route.ts similarity index 100% rename from src/plugins/data/server/kql_telemetry/route.ts rename to src/platform/plugins/shared/data/server/kql_telemetry/route.ts diff --git a/src/plugins/data/server/kql_telemetry/usage_collector/fetch.test.ts b/src/platform/plugins/shared/data/server/kql_telemetry/usage_collector/fetch.test.ts similarity index 100% rename from src/plugins/data/server/kql_telemetry/usage_collector/fetch.test.ts rename to src/platform/plugins/shared/data/server/kql_telemetry/usage_collector/fetch.test.ts diff --git a/src/plugins/data/server/kql_telemetry/usage_collector/fetch.ts b/src/platform/plugins/shared/data/server/kql_telemetry/usage_collector/fetch.ts similarity index 100% rename from src/plugins/data/server/kql_telemetry/usage_collector/fetch.ts rename to src/platform/plugins/shared/data/server/kql_telemetry/usage_collector/fetch.ts diff --git a/src/plugins/data/server/kql_telemetry/usage_collector/index.ts b/src/platform/plugins/shared/data/server/kql_telemetry/usage_collector/index.ts similarity index 100% rename from src/plugins/data/server/kql_telemetry/usage_collector/index.ts rename to src/platform/plugins/shared/data/server/kql_telemetry/usage_collector/index.ts diff --git a/src/plugins/data/server/kql_telemetry/usage_collector/make_kql_usage_collector.test.ts b/src/platform/plugins/shared/data/server/kql_telemetry/usage_collector/make_kql_usage_collector.test.ts similarity index 100% rename from src/plugins/data/server/kql_telemetry/usage_collector/make_kql_usage_collector.test.ts rename to src/platform/plugins/shared/data/server/kql_telemetry/usage_collector/make_kql_usage_collector.test.ts diff --git a/src/plugins/data/server/kql_telemetry/usage_collector/make_kql_usage_collector.ts b/src/platform/plugins/shared/data/server/kql_telemetry/usage_collector/make_kql_usage_collector.ts similarity index 100% rename from src/plugins/data/server/kql_telemetry/usage_collector/make_kql_usage_collector.ts rename to src/platform/plugins/shared/data/server/kql_telemetry/usage_collector/make_kql_usage_collector.ts diff --git a/src/plugins/data/server/lib/get_request_aborted_signal.test.ts b/src/platform/plugins/shared/data/server/lib/get_request_aborted_signal.test.ts similarity index 100% rename from src/plugins/data/server/lib/get_request_aborted_signal.test.ts rename to src/platform/plugins/shared/data/server/lib/get_request_aborted_signal.test.ts diff --git a/src/plugins/data/server/lib/get_request_aborted_signal.ts b/src/platform/plugins/shared/data/server/lib/get_request_aborted_signal.ts similarity index 100% rename from src/plugins/data/server/lib/get_request_aborted_signal.ts rename to src/platform/plugins/shared/data/server/lib/get_request_aborted_signal.ts diff --git a/src/plugins/data/server/lib/index.ts b/src/platform/plugins/shared/data/server/lib/index.ts similarity index 100% rename from src/plugins/data/server/lib/index.ts rename to src/platform/plugins/shared/data/server/lib/index.ts diff --git a/src/plugins/data/server/mocks.ts b/src/platform/plugins/shared/data/server/mocks.ts similarity index 100% rename from src/plugins/data/server/mocks.ts rename to src/platform/plugins/shared/data/server/mocks.ts diff --git a/src/plugins/data/server/plugin.ts b/src/platform/plugins/shared/data/server/plugin.ts similarity index 100% rename from src/plugins/data/server/plugin.ts rename to src/platform/plugins/shared/data/server/plugin.ts diff --git a/src/plugins/data/server/query/index.ts b/src/platform/plugins/shared/data/server/query/index.ts similarity index 100% rename from src/plugins/data/server/query/index.ts rename to src/platform/plugins/shared/data/server/query/index.ts diff --git a/src/plugins/data/server/query/query_service.ts b/src/platform/plugins/shared/data/server/query/query_service.ts similarity index 100% rename from src/plugins/data/server/query/query_service.ts rename to src/platform/plugins/shared/data/server/query/query_service.ts diff --git a/src/plugins/data/server/query/route_handler_context.test.ts b/src/platform/plugins/shared/data/server/query/route_handler_context.test.ts similarity index 100% rename from src/plugins/data/server/query/route_handler_context.test.ts rename to src/platform/plugins/shared/data/server/query/route_handler_context.test.ts diff --git a/src/plugins/data/server/query/route_handler_context.ts b/src/platform/plugins/shared/data/server/query/route_handler_context.ts similarity index 100% rename from src/plugins/data/server/query/route_handler_context.ts rename to src/platform/plugins/shared/data/server/query/route_handler_context.ts diff --git a/src/plugins/data/server/query/route_types.ts b/src/platform/plugins/shared/data/server/query/route_types.ts similarity index 100% rename from src/plugins/data/server/query/route_types.ts rename to src/platform/plugins/shared/data/server/query/route_types.ts diff --git a/src/plugins/data/server/query/routes.ts b/src/platform/plugins/shared/data/server/query/routes.ts similarity index 100% rename from src/plugins/data/server/query/routes.ts rename to src/platform/plugins/shared/data/server/query/routes.ts diff --git a/src/plugins/data/server/saved_objects/index.ts b/src/platform/plugins/shared/data/server/saved_objects/index.ts similarity index 100% rename from src/plugins/data/server/saved_objects/index.ts rename to src/platform/plugins/shared/data/server/saved_objects/index.ts diff --git a/src/plugins/data/server/saved_objects/kql_telemetry.ts b/src/platform/plugins/shared/data/server/saved_objects/kql_telemetry.ts similarity index 100% rename from src/plugins/data/server/saved_objects/kql_telemetry.ts rename to src/platform/plugins/shared/data/server/saved_objects/kql_telemetry.ts diff --git a/src/plugins/data/server/saved_objects/migrations/query.ts b/src/platform/plugins/shared/data/server/saved_objects/migrations/query.ts similarity index 100% rename from src/plugins/data/server/saved_objects/migrations/query.ts rename to src/platform/plugins/shared/data/server/saved_objects/migrations/query.ts diff --git a/src/plugins/data/server/saved_objects/migrations/to_v7_12_0.ts b/src/platform/plugins/shared/data/server/saved_objects/migrations/to_v7_12_0.ts similarity index 100% rename from src/plugins/data/server/saved_objects/migrations/to_v7_12_0.ts rename to src/platform/plugins/shared/data/server/saved_objects/migrations/to_v7_12_0.ts diff --git a/src/plugins/data/server/saved_objects/query.test.ts b/src/platform/plugins/shared/data/server/saved_objects/query.test.ts similarity index 100% rename from src/plugins/data/server/saved_objects/query.test.ts rename to src/platform/plugins/shared/data/server/saved_objects/query.test.ts diff --git a/src/plugins/data/server/saved_objects/query.ts b/src/platform/plugins/shared/data/server/saved_objects/query.ts similarity index 100% rename from src/plugins/data/server/saved_objects/query.ts rename to src/platform/plugins/shared/data/server/saved_objects/query.ts diff --git a/src/plugins/data/server/saved_objects/schemas/kql_telemetry.ts b/src/platform/plugins/shared/data/server/saved_objects/schemas/kql_telemetry.ts similarity index 100% rename from src/plugins/data/server/saved_objects/schemas/kql_telemetry.ts rename to src/platform/plugins/shared/data/server/saved_objects/schemas/kql_telemetry.ts diff --git a/src/plugins/data/server/saved_objects/schemas/query.ts b/src/platform/plugins/shared/data/server/saved_objects/schemas/query.ts similarity index 100% rename from src/plugins/data/server/saved_objects/schemas/query.ts rename to src/platform/plugins/shared/data/server/saved_objects/schemas/query.ts diff --git a/src/plugins/data/server/saved_objects/schemas/search_telemetry.ts b/src/platform/plugins/shared/data/server/saved_objects/schemas/search_telemetry.ts similarity index 100% rename from src/plugins/data/server/saved_objects/schemas/search_telemetry.ts rename to src/platform/plugins/shared/data/server/saved_objects/schemas/search_telemetry.ts diff --git a/src/plugins/data/server/saved_objects/search_telemetry.ts b/src/platform/plugins/shared/data/server/saved_objects/search_telemetry.ts similarity index 100% rename from src/plugins/data/server/saved_objects/search_telemetry.ts rename to src/platform/plugins/shared/data/server/saved_objects/search_telemetry.ts diff --git a/src/plugins/data/server/scripts/index.ts b/src/platform/plugins/shared/data/server/scripts/index.ts similarity index 100% rename from src/plugins/data/server/scripts/index.ts rename to src/platform/plugins/shared/data/server/scripts/index.ts diff --git a/src/plugins/data/server/scripts/route.ts b/src/platform/plugins/shared/data/server/scripts/route.ts similarity index 100% rename from src/plugins/data/server/scripts/route.ts rename to src/platform/plugins/shared/data/server/scripts/route.ts diff --git a/src/plugins/data/server/scripts/scripts_service.ts b/src/platform/plugins/shared/data/server/scripts/scripts_service.ts similarity index 100% rename from src/plugins/data/server/scripts/scripts_service.ts rename to src/platform/plugins/shared/data/server/scripts/scripts_service.ts diff --git a/src/plugins/data/server/search/README.md b/src/platform/plugins/shared/data/server/search/README.md similarity index 100% rename from src/plugins/data/server/search/README.md rename to src/platform/plugins/shared/data/server/search/README.md diff --git a/src/plugins/data/server/search/aggs/aggs_service.test.ts b/src/platform/plugins/shared/data/server/search/aggs/aggs_service.test.ts similarity index 100% rename from src/plugins/data/server/search/aggs/aggs_service.test.ts rename to src/platform/plugins/shared/data/server/search/aggs/aggs_service.test.ts diff --git a/src/plugins/data/server/search/aggs/aggs_service.ts b/src/platform/plugins/shared/data/server/search/aggs/aggs_service.ts similarity index 100% rename from src/plugins/data/server/search/aggs/aggs_service.ts rename to src/platform/plugins/shared/data/server/search/aggs/aggs_service.ts diff --git a/src/plugins/data/server/search/aggs/index.ts b/src/platform/plugins/shared/data/server/search/aggs/index.ts similarity index 100% rename from src/plugins/data/server/search/aggs/index.ts rename to src/platform/plugins/shared/data/server/search/aggs/index.ts diff --git a/src/plugins/data/server/search/aggs/mocks.ts b/src/platform/plugins/shared/data/server/search/aggs/mocks.ts similarity index 100% rename from src/plugins/data/server/search/aggs/mocks.ts rename to src/platform/plugins/shared/data/server/search/aggs/mocks.ts diff --git a/src/plugins/data/server/search/aggs/types.ts b/src/platform/plugins/shared/data/server/search/aggs/types.ts similarity index 100% rename from src/plugins/data/server/search/aggs/types.ts rename to src/platform/plugins/shared/data/server/search/aggs/types.ts diff --git a/src/plugins/data/server/search/collectors/search/fetch.ts b/src/platform/plugins/shared/data/server/search/collectors/search/fetch.ts similarity index 100% rename from src/plugins/data/server/search/collectors/search/fetch.ts rename to src/platform/plugins/shared/data/server/search/collectors/search/fetch.ts diff --git a/src/plugins/data/server/search/collectors/search/index.ts b/src/platform/plugins/shared/data/server/search/collectors/search/index.ts similarity index 100% rename from src/plugins/data/server/search/collectors/search/index.ts rename to src/platform/plugins/shared/data/server/search/collectors/search/index.ts diff --git a/src/plugins/data/server/search/collectors/search/register.ts b/src/platform/plugins/shared/data/server/search/collectors/search/register.ts similarity index 100% rename from src/plugins/data/server/search/collectors/search/register.ts rename to src/platform/plugins/shared/data/server/search/collectors/search/register.ts diff --git a/src/plugins/data/server/search/collectors/search/usage.ts b/src/platform/plugins/shared/data/server/search/collectors/search/usage.ts similarity index 100% rename from src/plugins/data/server/search/collectors/search/usage.ts rename to src/platform/plugins/shared/data/server/search/collectors/search/usage.ts diff --git a/src/plugins/data/server/search/collectors/search_session/fetch.test.ts b/src/platform/plugins/shared/data/server/search/collectors/search_session/fetch.test.ts similarity index 100% rename from src/plugins/data/server/search/collectors/search_session/fetch.test.ts rename to src/platform/plugins/shared/data/server/search/collectors/search_session/fetch.test.ts diff --git a/src/plugins/data/server/search/collectors/search_session/fetch.ts b/src/platform/plugins/shared/data/server/search/collectors/search_session/fetch.ts similarity index 100% rename from src/plugins/data/server/search/collectors/search_session/fetch.ts rename to src/platform/plugins/shared/data/server/search/collectors/search_session/fetch.ts diff --git a/src/plugins/data/server/search/collectors/search_session/index.ts b/src/platform/plugins/shared/data/server/search/collectors/search_session/index.ts similarity index 100% rename from src/plugins/data/server/search/collectors/search_session/index.ts rename to src/platform/plugins/shared/data/server/search/collectors/search_session/index.ts diff --git a/src/plugins/data/server/search/collectors/search_session/register.ts b/src/platform/plugins/shared/data/server/search/collectors/search_session/register.ts similarity index 100% rename from src/plugins/data/server/search/collectors/search_session/register.ts rename to src/platform/plugins/shared/data/server/search/collectors/search_session/register.ts diff --git a/src/plugins/data/server/search/errors/no_search_id_in_session.ts b/src/platform/plugins/shared/data/server/search/errors/no_search_id_in_session.ts similarity index 100% rename from src/plugins/data/server/search/errors/no_search_id_in_session.ts rename to src/platform/plugins/shared/data/server/search/errors/no_search_id_in_session.ts diff --git a/src/plugins/data/server/search/expressions/eql.ts b/src/platform/plugins/shared/data/server/search/expressions/eql.ts similarity index 100% rename from src/plugins/data/server/search/expressions/eql.ts rename to src/platform/plugins/shared/data/server/search/expressions/eql.ts diff --git a/src/plugins/data/server/search/expressions/esaggs.test.ts b/src/platform/plugins/shared/data/server/search/expressions/esaggs.test.ts similarity index 100% rename from src/plugins/data/server/search/expressions/esaggs.test.ts rename to src/platform/plugins/shared/data/server/search/expressions/esaggs.test.ts diff --git a/src/plugins/data/server/search/expressions/esaggs.ts b/src/platform/plugins/shared/data/server/search/expressions/esaggs.ts similarity index 100% rename from src/plugins/data/server/search/expressions/esaggs.ts rename to src/platform/plugins/shared/data/server/search/expressions/esaggs.ts diff --git a/src/plugins/data/server/search/expressions/esdsl.ts b/src/platform/plugins/shared/data/server/search/expressions/esdsl.ts similarity index 100% rename from src/plugins/data/server/search/expressions/esdsl.ts rename to src/platform/plugins/shared/data/server/search/expressions/esdsl.ts diff --git a/src/plugins/data/server/search/expressions/esql.ts b/src/platform/plugins/shared/data/server/search/expressions/esql.ts similarity index 100% rename from src/plugins/data/server/search/expressions/esql.ts rename to src/platform/plugins/shared/data/server/search/expressions/esql.ts diff --git a/src/plugins/data/server/search/expressions/essql.ts b/src/platform/plugins/shared/data/server/search/expressions/essql.ts similarity index 100% rename from src/plugins/data/server/search/expressions/essql.ts rename to src/platform/plugins/shared/data/server/search/expressions/essql.ts diff --git a/src/plugins/data/server/search/expressions/index.ts b/src/platform/plugins/shared/data/server/search/expressions/index.ts similarity index 100% rename from src/plugins/data/server/search/expressions/index.ts rename to src/platform/plugins/shared/data/server/search/expressions/index.ts diff --git a/src/plugins/data/server/search/index.ts b/src/platform/plugins/shared/data/server/search/index.ts similarity index 100% rename from src/plugins/data/server/search/index.ts rename to src/platform/plugins/shared/data/server/search/index.ts diff --git a/src/plugins/data/server/search/mocks.ts b/src/platform/plugins/shared/data/server/search/mocks.ts similarity index 100% rename from src/plugins/data/server/search/mocks.ts rename to src/platform/plugins/shared/data/server/search/mocks.ts diff --git a/src/plugins/data/server/search/report_search_error.ts b/src/platform/plugins/shared/data/server/search/report_search_error.ts similarity index 100% rename from src/plugins/data/server/search/report_search_error.ts rename to src/platform/plugins/shared/data/server/search/report_search_error.ts diff --git a/src/plugins/data/server/search/routes/bsearch.ts b/src/platform/plugins/shared/data/server/search/routes/bsearch.ts similarity index 100% rename from src/plugins/data/server/search/routes/bsearch.ts rename to src/platform/plugins/shared/data/server/search/routes/bsearch.ts diff --git a/src/plugins/data/server/search/routes/index.ts b/src/platform/plugins/shared/data/server/search/routes/index.ts similarity index 100% rename from src/plugins/data/server/search/routes/index.ts rename to src/platform/plugins/shared/data/server/search/routes/index.ts diff --git a/src/plugins/data/server/search/routes/response_schema.ts b/src/platform/plugins/shared/data/server/search/routes/response_schema.ts similarity index 100% rename from src/plugins/data/server/search/routes/response_schema.ts rename to src/platform/plugins/shared/data/server/search/routes/response_schema.ts diff --git a/src/plugins/data/server/search/routes/response_types.ts b/src/platform/plugins/shared/data/server/search/routes/response_types.ts similarity index 100% rename from src/plugins/data/server/search/routes/response_types.ts rename to src/platform/plugins/shared/data/server/search/routes/response_types.ts diff --git a/src/plugins/data/server/search/routes/search.test.ts b/src/platform/plugins/shared/data/server/search/routes/search.test.ts similarity index 100% rename from src/plugins/data/server/search/routes/search.test.ts rename to src/platform/plugins/shared/data/server/search/routes/search.test.ts diff --git a/src/plugins/data/server/search/routes/search.ts b/src/platform/plugins/shared/data/server/search/routes/search.ts similarity index 100% rename from src/plugins/data/server/search/routes/search.ts rename to src/platform/plugins/shared/data/server/search/routes/search.ts diff --git a/src/plugins/data/server/search/routes/session.test.ts b/src/platform/plugins/shared/data/server/search/routes/session.test.ts similarity index 100% rename from src/plugins/data/server/search/routes/session.test.ts rename to src/platform/plugins/shared/data/server/search/routes/session.test.ts diff --git a/src/plugins/data/server/search/routes/session.ts b/src/platform/plugins/shared/data/server/search/routes/session.ts similarity index 100% rename from src/plugins/data/server/search/routes/session.ts rename to src/platform/plugins/shared/data/server/search/routes/session.ts diff --git a/src/plugins/data/server/search/sanitize_request_params.test.ts b/src/platform/plugins/shared/data/server/search/sanitize_request_params.test.ts similarity index 100% rename from src/plugins/data/server/search/sanitize_request_params.test.ts rename to src/platform/plugins/shared/data/server/search/sanitize_request_params.test.ts diff --git a/src/plugins/data/server/search/sanitize_request_params.ts b/src/platform/plugins/shared/data/server/search/sanitize_request_params.ts similarity index 100% rename from src/plugins/data/server/search/sanitize_request_params.ts rename to src/platform/plugins/shared/data/server/search/sanitize_request_params.ts diff --git a/src/plugins/data/server/search/saved_objects/index.ts b/src/platform/plugins/shared/data/server/search/saved_objects/index.ts similarity index 100% rename from src/plugins/data/server/search/saved_objects/index.ts rename to src/platform/plugins/shared/data/server/search/saved_objects/index.ts diff --git a/src/plugins/data/server/search/saved_objects/search_session.ts b/src/platform/plugins/shared/data/server/search/saved_objects/search_session.ts similarity index 100% rename from src/plugins/data/server/search/saved_objects/search_session.ts rename to src/platform/plugins/shared/data/server/search/saved_objects/search_session.ts diff --git a/src/plugins/data/server/search/saved_objects/search_session_migration.test.ts b/src/platform/plugins/shared/data/server/search/saved_objects/search_session_migration.test.ts similarity index 100% rename from src/plugins/data/server/search/saved_objects/search_session_migration.test.ts rename to src/platform/plugins/shared/data/server/search/saved_objects/search_session_migration.test.ts diff --git a/src/plugins/data/server/search/saved_objects/search_session_migration.ts b/src/platform/plugins/shared/data/server/search/saved_objects/search_session_migration.ts similarity index 100% rename from src/plugins/data/server/search/saved_objects/search_session_migration.ts rename to src/platform/plugins/shared/data/server/search/saved_objects/search_session_migration.ts diff --git a/src/plugins/data/server/search/search_service.test.ts b/src/platform/plugins/shared/data/server/search/search_service.test.ts similarity index 100% rename from src/plugins/data/server/search/search_service.test.ts rename to src/platform/plugins/shared/data/server/search/search_service.test.ts diff --git a/src/plugins/data/server/search/search_service.ts b/src/platform/plugins/shared/data/server/search/search_service.ts similarity index 100% rename from src/plugins/data/server/search/search_service.ts rename to src/platform/plugins/shared/data/server/search/search_service.ts diff --git a/src/plugins/data/server/search/search_source/mocks.ts b/src/platform/plugins/shared/data/server/search/search_source/mocks.ts similarity index 100% rename from src/plugins/data/server/search/search_source/mocks.ts rename to src/platform/plugins/shared/data/server/search/search_source/mocks.ts diff --git a/src/plugins/data/server/search/services/cached_ui_settings_client.test.ts b/src/platform/plugins/shared/data/server/search/services/cached_ui_settings_client.test.ts similarity index 100% rename from src/plugins/data/server/search/services/cached_ui_settings_client.test.ts rename to src/platform/plugins/shared/data/server/search/services/cached_ui_settings_client.test.ts diff --git a/src/plugins/data/server/search/services/cached_ui_settings_client.ts b/src/platform/plugins/shared/data/server/search/services/cached_ui_settings_client.ts similarity index 100% rename from src/plugins/data/server/search/services/cached_ui_settings_client.ts rename to src/platform/plugins/shared/data/server/search/services/cached_ui_settings_client.ts diff --git a/src/plugins/data/server/search/services/index.ts b/src/platform/plugins/shared/data/server/search/services/index.ts similarity index 100% rename from src/plugins/data/server/search/services/index.ts rename to src/platform/plugins/shared/data/server/search/services/index.ts diff --git a/src/plugins/data/server/search/session/get_search_status.test.ts b/src/platform/plugins/shared/data/server/search/session/get_search_status.test.ts similarity index 100% rename from src/plugins/data/server/search/session/get_search_status.test.ts rename to src/platform/plugins/shared/data/server/search/session/get_search_status.test.ts diff --git a/src/plugins/data/server/search/session/get_search_status.ts b/src/platform/plugins/shared/data/server/search/session/get_search_status.ts similarity index 100% rename from src/plugins/data/server/search/session/get_search_status.ts rename to src/platform/plugins/shared/data/server/search/session/get_search_status.ts diff --git a/src/plugins/data/server/search/session/get_session_status.test.ts b/src/platform/plugins/shared/data/server/search/session/get_session_status.test.ts similarity index 100% rename from src/plugins/data/server/search/session/get_session_status.test.ts rename to src/platform/plugins/shared/data/server/search/session/get_session_status.test.ts diff --git a/src/plugins/data/server/search/session/get_session_status.ts b/src/platform/plugins/shared/data/server/search/session/get_session_status.ts similarity index 100% rename from src/plugins/data/server/search/session/get_session_status.ts rename to src/platform/plugins/shared/data/server/search/session/get_session_status.ts diff --git a/src/plugins/data/server/search/session/index.ts b/src/platform/plugins/shared/data/server/search/session/index.ts similarity index 100% rename from src/plugins/data/server/search/session/index.ts rename to src/platform/plugins/shared/data/server/search/session/index.ts diff --git a/src/plugins/data/server/search/session/mocks.ts b/src/platform/plugins/shared/data/server/search/session/mocks.ts similarity index 100% rename from src/plugins/data/server/search/session/mocks.ts rename to src/platform/plugins/shared/data/server/search/session/mocks.ts diff --git a/src/plugins/data/server/search/session/session_service.test.ts b/src/platform/plugins/shared/data/server/search/session/session_service.test.ts similarity index 100% rename from src/plugins/data/server/search/session/session_service.test.ts rename to src/platform/plugins/shared/data/server/search/session/session_service.test.ts diff --git a/src/plugins/data/server/search/session/session_service.ts b/src/platform/plugins/shared/data/server/search/session/session_service.ts similarity index 100% rename from src/plugins/data/server/search/session/session_service.ts rename to src/platform/plugins/shared/data/server/search/session/session_service.ts diff --git a/src/plugins/data/server/search/session/types.ts b/src/platform/plugins/shared/data/server/search/session/types.ts similarity index 100% rename from src/plugins/data/server/search/session/types.ts rename to src/platform/plugins/shared/data/server/search/session/types.ts diff --git a/src/plugins/data/server/search/session/utils.test.ts b/src/platform/plugins/shared/data/server/search/session/utils.test.ts similarity index 100% rename from src/plugins/data/server/search/session/utils.test.ts rename to src/platform/plugins/shared/data/server/search/session/utils.test.ts diff --git a/src/plugins/data/server/search/session/utils.ts b/src/platform/plugins/shared/data/server/search/session/utils.ts similarity index 100% rename from src/plugins/data/server/search/session/utils.ts rename to src/platform/plugins/shared/data/server/search/session/utils.ts diff --git a/src/plugins/data/server/search/strategies/common/async_utils.test.ts b/src/platform/plugins/shared/data/server/search/strategies/common/async_utils.test.ts similarity index 100% rename from src/plugins/data/server/search/strategies/common/async_utils.test.ts rename to src/platform/plugins/shared/data/server/search/strategies/common/async_utils.test.ts diff --git a/src/plugins/data/server/search/strategies/common/async_utils.ts b/src/platform/plugins/shared/data/server/search/strategies/common/async_utils.ts similarity index 100% rename from src/plugins/data/server/search/strategies/common/async_utils.ts rename to src/platform/plugins/shared/data/server/search/strategies/common/async_utils.ts diff --git a/src/plugins/data/server/search/strategies/eql_search/eql_search_strategy.test.ts b/src/platform/plugins/shared/data/server/search/strategies/eql_search/eql_search_strategy.test.ts similarity index 100% rename from src/plugins/data/server/search/strategies/eql_search/eql_search_strategy.test.ts rename to src/platform/plugins/shared/data/server/search/strategies/eql_search/eql_search_strategy.test.ts diff --git a/src/plugins/data/server/search/strategies/eql_search/eql_search_strategy.ts b/src/platform/plugins/shared/data/server/search/strategies/eql_search/eql_search_strategy.ts similarity index 100% rename from src/plugins/data/server/search/strategies/eql_search/eql_search_strategy.ts rename to src/platform/plugins/shared/data/server/search/strategies/eql_search/eql_search_strategy.ts diff --git a/src/plugins/data/server/search/strategies/eql_search/index.ts b/src/platform/plugins/shared/data/server/search/strategies/eql_search/index.ts similarity index 100% rename from src/plugins/data/server/search/strategies/eql_search/index.ts rename to src/platform/plugins/shared/data/server/search/strategies/eql_search/index.ts diff --git a/src/plugins/data/server/search/strategies/eql_search/response_utils.ts b/src/platform/plugins/shared/data/server/search/strategies/eql_search/response_utils.ts similarity index 100% rename from src/plugins/data/server/search/strategies/eql_search/response_utils.ts rename to src/platform/plugins/shared/data/server/search/strategies/eql_search/response_utils.ts diff --git a/src/plugins/data/server/search/strategies/eql_search/types.ts b/src/platform/plugins/shared/data/server/search/strategies/eql_search/types.ts similarity index 100% rename from src/plugins/data/server/search/strategies/eql_search/types.ts rename to src/platform/plugins/shared/data/server/search/strategies/eql_search/types.ts diff --git a/src/plugins/data/server/search/strategies/es_search/elasticsearch.ts b/src/platform/plugins/shared/data/server/search/strategies/es_search/elasticsearch.ts similarity index 100% rename from src/plugins/data/server/search/strategies/es_search/elasticsearch.ts rename to src/platform/plugins/shared/data/server/search/strategies/es_search/elasticsearch.ts diff --git a/src/plugins/data/server/search/strategies/es_search/es_search_strategy.test.ts b/src/platform/plugins/shared/data/server/search/strategies/es_search/es_search_strategy.test.ts similarity index 100% rename from src/plugins/data/server/search/strategies/es_search/es_search_strategy.test.ts rename to src/platform/plugins/shared/data/server/search/strategies/es_search/es_search_strategy.test.ts diff --git a/src/plugins/data/server/search/strategies/es_search/es_search_strategy.ts b/src/platform/plugins/shared/data/server/search/strategies/es_search/es_search_strategy.ts similarity index 100% rename from src/plugins/data/server/search/strategies/es_search/es_search_strategy.ts rename to src/platform/plugins/shared/data/server/search/strategies/es_search/es_search_strategy.ts diff --git a/src/plugins/data/server/search/strategies/es_search/index.ts b/src/platform/plugins/shared/data/server/search/strategies/es_search/index.ts similarity index 100% rename from src/plugins/data/server/search/strategies/es_search/index.ts rename to src/platform/plugins/shared/data/server/search/strategies/es_search/index.ts diff --git a/src/plugins/data/server/search/strategies/es_search/request_utils.test.ts b/src/platform/plugins/shared/data/server/search/strategies/es_search/request_utils.test.ts similarity index 100% rename from src/plugins/data/server/search/strategies/es_search/request_utils.test.ts rename to src/platform/plugins/shared/data/server/search/strategies/es_search/request_utils.test.ts diff --git a/src/plugins/data/server/search/strategies/es_search/request_utils.ts b/src/platform/plugins/shared/data/server/search/strategies/es_search/request_utils.ts similarity index 100% rename from src/plugins/data/server/search/strategies/es_search/request_utils.ts rename to src/platform/plugins/shared/data/server/search/strategies/es_search/request_utils.ts diff --git a/src/plugins/data/server/search/strategies/ese_search/ese_search_strategy.test.ts b/src/platform/plugins/shared/data/server/search/strategies/ese_search/ese_search_strategy.test.ts similarity index 100% rename from src/plugins/data/server/search/strategies/ese_search/ese_search_strategy.test.ts rename to src/platform/plugins/shared/data/server/search/strategies/ese_search/ese_search_strategy.test.ts diff --git a/src/plugins/data/server/search/strategies/ese_search/ese_search_strategy.ts b/src/platform/plugins/shared/data/server/search/strategies/ese_search/ese_search_strategy.ts similarity index 100% rename from src/plugins/data/server/search/strategies/ese_search/ese_search_strategy.ts rename to src/platform/plugins/shared/data/server/search/strategies/ese_search/ese_search_strategy.ts diff --git a/src/plugins/data/server/search/strategies/ese_search/index.ts b/src/platform/plugins/shared/data/server/search/strategies/ese_search/index.ts similarity index 100% rename from src/plugins/data/server/search/strategies/ese_search/index.ts rename to src/platform/plugins/shared/data/server/search/strategies/ese_search/index.ts diff --git a/src/plugins/data/server/search/strategies/ese_search/request_utils.test.ts b/src/platform/plugins/shared/data/server/search/strategies/ese_search/request_utils.test.ts similarity index 100% rename from src/plugins/data/server/search/strategies/ese_search/request_utils.test.ts rename to src/platform/plugins/shared/data/server/search/strategies/ese_search/request_utils.test.ts diff --git a/src/plugins/data/server/search/strategies/ese_search/request_utils.ts b/src/platform/plugins/shared/data/server/search/strategies/ese_search/request_utils.ts similarity index 100% rename from src/plugins/data/server/search/strategies/ese_search/request_utils.ts rename to src/platform/plugins/shared/data/server/search/strategies/ese_search/request_utils.ts diff --git a/src/plugins/data/server/search/strategies/ese_search/response_utils.ts b/src/platform/plugins/shared/data/server/search/strategies/ese_search/response_utils.ts similarity index 100% rename from src/plugins/data/server/search/strategies/ese_search/response_utils.ts rename to src/platform/plugins/shared/data/server/search/strategies/ese_search/response_utils.ts diff --git a/src/plugins/data/server/search/strategies/ese_search/types.ts b/src/platform/plugins/shared/data/server/search/strategies/ese_search/types.ts similarity index 100% rename from src/plugins/data/server/search/strategies/ese_search/types.ts rename to src/platform/plugins/shared/data/server/search/strategies/ese_search/types.ts diff --git a/src/plugins/data/server/search/strategies/esql_async_search/esql_async_search_strategy.test.ts b/src/platform/plugins/shared/data/server/search/strategies/esql_async_search/esql_async_search_strategy.test.ts similarity index 100% rename from src/plugins/data/server/search/strategies/esql_async_search/esql_async_search_strategy.test.ts rename to src/platform/plugins/shared/data/server/search/strategies/esql_async_search/esql_async_search_strategy.test.ts diff --git a/src/plugins/data/server/search/strategies/esql_async_search/esql_async_search_strategy.ts b/src/platform/plugins/shared/data/server/search/strategies/esql_async_search/esql_async_search_strategy.ts similarity index 100% rename from src/plugins/data/server/search/strategies/esql_async_search/esql_async_search_strategy.ts rename to src/platform/plugins/shared/data/server/search/strategies/esql_async_search/esql_async_search_strategy.ts diff --git a/src/plugins/data/server/search/strategies/esql_async_search/index.ts b/src/platform/plugins/shared/data/server/search/strategies/esql_async_search/index.ts similarity index 100% rename from src/plugins/data/server/search/strategies/esql_async_search/index.ts rename to src/platform/plugins/shared/data/server/search/strategies/esql_async_search/index.ts diff --git a/src/plugins/data/server/search/strategies/esql_async_search/response_utils.ts b/src/platform/plugins/shared/data/server/search/strategies/esql_async_search/response_utils.ts similarity index 100% rename from src/plugins/data/server/search/strategies/esql_async_search/response_utils.ts rename to src/platform/plugins/shared/data/server/search/strategies/esql_async_search/response_utils.ts diff --git a/src/plugins/data/server/search/strategies/esql_search/esql_search_strategy.ts b/src/platform/plugins/shared/data/server/search/strategies/esql_search/esql_search_strategy.ts similarity index 100% rename from src/plugins/data/server/search/strategies/esql_search/esql_search_strategy.ts rename to src/platform/plugins/shared/data/server/search/strategies/esql_search/esql_search_strategy.ts diff --git a/src/plugins/data/server/search/strategies/esql_search/index.ts b/src/platform/plugins/shared/data/server/search/strategies/esql_search/index.ts similarity index 100% rename from src/plugins/data/server/search/strategies/esql_search/index.ts rename to src/platform/plugins/shared/data/server/search/strategies/esql_search/index.ts diff --git a/src/plugins/data/server/search/strategies/sql_search/index.ts b/src/platform/plugins/shared/data/server/search/strategies/sql_search/index.ts similarity index 100% rename from src/plugins/data/server/search/strategies/sql_search/index.ts rename to src/platform/plugins/shared/data/server/search/strategies/sql_search/index.ts diff --git a/src/plugins/data/server/search/strategies/sql_search/request_utils.test.ts b/src/platform/plugins/shared/data/server/search/strategies/sql_search/request_utils.test.ts similarity index 100% rename from src/plugins/data/server/search/strategies/sql_search/request_utils.test.ts rename to src/platform/plugins/shared/data/server/search/strategies/sql_search/request_utils.test.ts diff --git a/src/plugins/data/server/search/strategies/sql_search/request_utils.ts b/src/platform/plugins/shared/data/server/search/strategies/sql_search/request_utils.ts similarity index 100% rename from src/plugins/data/server/search/strategies/sql_search/request_utils.ts rename to src/platform/plugins/shared/data/server/search/strategies/sql_search/request_utils.ts diff --git a/src/plugins/data/server/search/strategies/sql_search/response_utils.ts b/src/platform/plugins/shared/data/server/search/strategies/sql_search/response_utils.ts similarity index 100% rename from src/plugins/data/server/search/strategies/sql_search/response_utils.ts rename to src/platform/plugins/shared/data/server/search/strategies/sql_search/response_utils.ts diff --git a/src/plugins/data/server/search/strategies/sql_search/sql_search_strategy.test.ts b/src/platform/plugins/shared/data/server/search/strategies/sql_search/sql_search_strategy.test.ts similarity index 100% rename from src/plugins/data/server/search/strategies/sql_search/sql_search_strategy.test.ts rename to src/platform/plugins/shared/data/server/search/strategies/sql_search/sql_search_strategy.test.ts diff --git a/src/plugins/data/server/search/strategies/sql_search/sql_search_strategy.ts b/src/platform/plugins/shared/data/server/search/strategies/sql_search/sql_search_strategy.ts similarity index 100% rename from src/plugins/data/server/search/strategies/sql_search/sql_search_strategy.ts rename to src/platform/plugins/shared/data/server/search/strategies/sql_search/sql_search_strategy.ts diff --git a/src/plugins/data/server/search/types.ts b/src/platform/plugins/shared/data/server/search/types.ts similarity index 100% rename from src/plugins/data/server/search/types.ts rename to src/platform/plugins/shared/data/server/search/types.ts diff --git a/src/plugins/data/server/ui_settings.ts b/src/platform/plugins/shared/data/server/ui_settings.ts similarity index 100% rename from src/plugins/data/server/ui_settings.ts rename to src/platform/plugins/shared/data/server/ui_settings.ts diff --git a/src/plugins/data/tsconfig.json b/src/platform/plugins/shared/data/tsconfig.json similarity index 94% rename from src/plugins/data/tsconfig.json rename to src/platform/plugins/shared/data/tsconfig.json index 6a7ffce45e96b..5446796a9a87c 100644 --- a/src/plugins/data/tsconfig.json +++ b/src/platform/plugins/shared/data/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -10,7 +10,7 @@ "config.mock.ts", "common/**/*.json", "public/**/*.json", - "../../../typings/index.d.ts" + "../../../../../typings/index.d.ts" ], "kbn_references": [ "@kbn/core", diff --git a/src/plugins/expressions/.eslintrc.json b/src/platform/plugins/shared/expressions/.eslintrc.json similarity index 100% rename from src/plugins/expressions/.eslintrc.json rename to src/platform/plugins/shared/expressions/.eslintrc.json diff --git a/src/plugins/expressions/README.asciidoc b/src/platform/plugins/shared/expressions/README.asciidoc similarity index 75% rename from src/plugins/expressions/README.asciidoc rename to src/platform/plugins/shared/expressions/README.asciidoc index 6ea4d7f49cbd8..71319a2cb45d6 100644 --- a/src/plugins/expressions/README.asciidoc +++ b/src/platform/plugins/shared/expressions/README.asciidoc @@ -49,12 +49,12 @@ image::https://user-images.githubusercontent.com/9773803/74162514-3250a880-4c21- === API documentation ==== Server API -https://github.com/elastic/kibana/blob/main/docs/development/plugins/expressions/server/kibana-plugin-plugins-expressions-server.expressionsserversetup.md[Server Setup contract] -https://github.com/elastic/kibana/blob/main/docs/development/plugins/expressions/server/kibana-plugin-plugins-expressions-server.expressionsserverstart.md[Server Start contract] +https://github.com/elastic/kibana/blob/main/docs/development/platform/plugins/shared/expressions/server/kibana-plugin-plugins-expressions-server.expressionsserversetup.md[Server Setup contract] +https://github.com/elastic/kibana/blob/main/docs/development/platform/plugins/shared/expressions/server/kibana-plugin-plugins-expressions-server.expressionsserverstart.md[Server Start contract] ==== Browser API -https://github.com/elastic/kibana/blob/main/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.expressionsservicesetup.md[Browser Setup contract] -https://github.com/elastic/kibana/blob/main/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.expressionsstart.md[Browser Start contract] +https://github.com/elastic/kibana/blob/main/docs/development/platform/plugins/shared/expressions/public/kibana-plugin-plugins-expressions-public.expressionsservicesetup.md[Browser Setup contract] +https://github.com/elastic/kibana/blob/main/docs/development/platform/plugins/shared/expressions/public/kibana-plugin-plugins-expressions-public.expressionsstart.md[Browser Start contract] ==== Other documentation diff --git a/src/plugins/expressions/common/ast/build_expression.test.ts b/src/platform/plugins/shared/expressions/common/ast/build_expression.test.ts similarity index 100% rename from src/plugins/expressions/common/ast/build_expression.test.ts rename to src/platform/plugins/shared/expressions/common/ast/build_expression.test.ts diff --git a/src/plugins/expressions/common/ast/build_expression.ts b/src/platform/plugins/shared/expressions/common/ast/build_expression.ts similarity index 100% rename from src/plugins/expressions/common/ast/build_expression.ts rename to src/platform/plugins/shared/expressions/common/ast/build_expression.ts diff --git a/src/plugins/expressions/common/ast/build_function.test.ts b/src/platform/plugins/shared/expressions/common/ast/build_function.test.ts similarity index 100% rename from src/plugins/expressions/common/ast/build_function.test.ts rename to src/platform/plugins/shared/expressions/common/ast/build_function.test.ts diff --git a/src/plugins/expressions/common/ast/build_function.ts b/src/platform/plugins/shared/expressions/common/ast/build_function.ts similarity index 100% rename from src/plugins/expressions/common/ast/build_function.ts rename to src/platform/plugins/shared/expressions/common/ast/build_function.ts diff --git a/src/plugins/expressions/common/ast/format.test.ts b/src/platform/plugins/shared/expressions/common/ast/format.test.ts similarity index 100% rename from src/plugins/expressions/common/ast/format.test.ts rename to src/platform/plugins/shared/expressions/common/ast/format.test.ts diff --git a/src/plugins/expressions/common/ast/format.ts b/src/platform/plugins/shared/expressions/common/ast/format.ts similarity index 100% rename from src/plugins/expressions/common/ast/format.ts rename to src/platform/plugins/shared/expressions/common/ast/format.ts diff --git a/src/plugins/expressions/common/ast/format_expression.test.ts b/src/platform/plugins/shared/expressions/common/ast/format_expression.test.ts similarity index 100% rename from src/plugins/expressions/common/ast/format_expression.test.ts rename to src/platform/plugins/shared/expressions/common/ast/format_expression.test.ts diff --git a/src/plugins/expressions/common/ast/format_expression.ts b/src/platform/plugins/shared/expressions/common/ast/format_expression.ts similarity index 100% rename from src/plugins/expressions/common/ast/format_expression.ts rename to src/platform/plugins/shared/expressions/common/ast/format_expression.ts diff --git a/src/plugins/expressions/common/ast/index.ts b/src/platform/plugins/shared/expressions/common/ast/index.ts similarity index 100% rename from src/plugins/expressions/common/ast/index.ts rename to src/platform/plugins/shared/expressions/common/ast/index.ts diff --git a/src/plugins/expressions/common/ast/parse.test.ts b/src/platform/plugins/shared/expressions/common/ast/parse.test.ts similarity index 100% rename from src/plugins/expressions/common/ast/parse.test.ts rename to src/platform/plugins/shared/expressions/common/ast/parse.test.ts diff --git a/src/plugins/expressions/common/ast/parse.ts b/src/platform/plugins/shared/expressions/common/ast/parse.ts similarity index 100% rename from src/plugins/expressions/common/ast/parse.ts rename to src/platform/plugins/shared/expressions/common/ast/parse.ts diff --git a/src/plugins/expressions/common/ast/parse_expression.test.ts b/src/platform/plugins/shared/expressions/common/ast/parse_expression.test.ts similarity index 100% rename from src/plugins/expressions/common/ast/parse_expression.test.ts rename to src/platform/plugins/shared/expressions/common/ast/parse_expression.test.ts diff --git a/src/plugins/expressions/common/ast/parse_expression.ts b/src/platform/plugins/shared/expressions/common/ast/parse_expression.ts similarity index 100% rename from src/plugins/expressions/common/ast/parse_expression.ts rename to src/platform/plugins/shared/expressions/common/ast/parse_expression.ts diff --git a/src/plugins/expressions/common/ast/types.ts b/src/platform/plugins/shared/expressions/common/ast/types.ts similarity index 100% rename from src/plugins/expressions/common/ast/types.ts rename to src/platform/plugins/shared/expressions/common/ast/types.ts diff --git a/src/plugins/expressions/common/execution/container.ts b/src/platform/plugins/shared/expressions/common/execution/container.ts similarity index 100% rename from src/plugins/expressions/common/execution/container.ts rename to src/platform/plugins/shared/expressions/common/execution/container.ts diff --git a/src/plugins/expressions/common/execution/execution.abortion.test.ts b/src/platform/plugins/shared/expressions/common/execution/execution.abortion.test.ts similarity index 100% rename from src/plugins/expressions/common/execution/execution.abortion.test.ts rename to src/platform/plugins/shared/expressions/common/execution/execution.abortion.test.ts diff --git a/src/plugins/expressions/common/execution/execution.test.ts b/src/platform/plugins/shared/expressions/common/execution/execution.test.ts similarity index 100% rename from src/plugins/expressions/common/execution/execution.test.ts rename to src/platform/plugins/shared/expressions/common/execution/execution.test.ts diff --git a/src/plugins/expressions/common/execution/execution.ts b/src/platform/plugins/shared/expressions/common/execution/execution.ts similarity index 100% rename from src/plugins/expressions/common/execution/execution.ts rename to src/platform/plugins/shared/expressions/common/execution/execution.ts diff --git a/src/plugins/expressions/common/execution/execution_contract.test.ts b/src/platform/plugins/shared/expressions/common/execution/execution_contract.test.ts similarity index 100% rename from src/plugins/expressions/common/execution/execution_contract.test.ts rename to src/platform/plugins/shared/expressions/common/execution/execution_contract.test.ts diff --git a/src/plugins/expressions/common/execution/execution_contract.ts b/src/platform/plugins/shared/expressions/common/execution/execution_contract.ts similarity index 100% rename from src/plugins/expressions/common/execution/execution_contract.ts rename to src/platform/plugins/shared/expressions/common/execution/execution_contract.ts diff --git a/src/plugins/expressions/common/execution/index.ts b/src/platform/plugins/shared/expressions/common/execution/index.ts similarity index 100% rename from src/plugins/expressions/common/execution/index.ts rename to src/platform/plugins/shared/expressions/common/execution/index.ts diff --git a/src/plugins/expressions/common/execution/types.ts b/src/platform/plugins/shared/expressions/common/execution/types.ts similarity index 100% rename from src/plugins/expressions/common/execution/types.ts rename to src/platform/plugins/shared/expressions/common/execution/types.ts diff --git a/src/plugins/expressions/common/executor/__snapshots__/executor.test.ts.snap b/src/platform/plugins/shared/expressions/common/executor/__snapshots__/executor.test.ts.snap similarity index 100% rename from src/plugins/expressions/common/executor/__snapshots__/executor.test.ts.snap rename to src/platform/plugins/shared/expressions/common/executor/__snapshots__/executor.test.ts.snap diff --git a/src/plugins/expressions/common/executor/container.ts b/src/platform/plugins/shared/expressions/common/executor/container.ts similarity index 100% rename from src/plugins/expressions/common/executor/container.ts rename to src/platform/plugins/shared/expressions/common/executor/container.ts diff --git a/src/plugins/expressions/common/executor/executor.execution.test.ts b/src/platform/plugins/shared/expressions/common/executor/executor.execution.test.ts similarity index 100% rename from src/plugins/expressions/common/executor/executor.execution.test.ts rename to src/platform/plugins/shared/expressions/common/executor/executor.execution.test.ts diff --git a/src/plugins/expressions/common/executor/executor.test.ts b/src/platform/plugins/shared/expressions/common/executor/executor.test.ts similarity index 100% rename from src/plugins/expressions/common/executor/executor.test.ts rename to src/platform/plugins/shared/expressions/common/executor/executor.test.ts diff --git a/src/plugins/expressions/common/executor/executor.ts b/src/platform/plugins/shared/expressions/common/executor/executor.ts similarity index 100% rename from src/plugins/expressions/common/executor/executor.ts rename to src/platform/plugins/shared/expressions/common/executor/executor.ts diff --git a/src/plugins/expressions/common/executor/index.ts b/src/platform/plugins/shared/expressions/common/executor/index.ts similarity index 100% rename from src/plugins/expressions/common/executor/index.ts rename to src/platform/plugins/shared/expressions/common/executor/index.ts diff --git a/src/plugins/expressions/common/expression_functions/arguments.ts b/src/platform/plugins/shared/expressions/common/expression_functions/arguments.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/arguments.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/arguments.ts diff --git a/src/plugins/expressions/common/expression_functions/expression_function.ts b/src/platform/plugins/shared/expressions/common/expression_functions/expression_function.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/expression_function.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/expression_function.ts diff --git a/src/plugins/expressions/common/expression_functions/expression_function_parameter.ts b/src/platform/plugins/shared/expressions/common/expression_functions/expression_function_parameter.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/expression_function_parameter.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/expression_function_parameter.ts diff --git a/src/plugins/expressions/common/expression_functions/expression_function_parameters.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/expression_function_parameters.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/expression_function_parameters.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/expression_function_parameters.test.ts diff --git a/src/plugins/expressions/common/expression_functions/index.ts b/src/platform/plugins/shared/expressions/common/expression_functions/index.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/index.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/index.ts diff --git a/src/plugins/expressions/common/expression_functions/series_calculation_helpers.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/series_calculation_helpers.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/series_calculation_helpers.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/series_calculation_helpers.test.ts diff --git a/src/plugins/expressions/common/expression_functions/series_calculation_helpers.ts b/src/platform/plugins/shared/expressions/common/expression_functions/series_calculation_helpers.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/series_calculation_helpers.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/series_calculation_helpers.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/clog.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/clog.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/clog.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/clog.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/create_table.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/create_table.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/create_table.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/create_table.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/cumulative_sum.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/cumulative_sum.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/cumulative_sum.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/cumulative_sum.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/cumulative_sum_fn.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/cumulative_sum_fn.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/cumulative_sum_fn.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/cumulative_sum_fn.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/derivative.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/derivative.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/derivative.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/derivative.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/derivative_fn.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/derivative_fn.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/derivative_fn.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/derivative_fn.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/font.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/font.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/font.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/font.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/index.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/index.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/index.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/index.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/map_column.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/map_column.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/map_column.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/map_column.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/math.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/math.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/math.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/math.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/math_column.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/math_column.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/math_column.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/math_column.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/math_fn.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/math_fn.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/math_fn.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/math_fn.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/moving_average.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/moving_average.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/moving_average.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/moving_average.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/moving_average_fn.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/moving_average_fn.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/moving_average_fn.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/moving_average_fn.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/overall_metric.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/overall_metric.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/overall_metric.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/overall_metric.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/overall_metric_fn.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/overall_metric_fn.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/overall_metric_fn.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/overall_metric_fn.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/create_table.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/create_table.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/create_table.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/create_table.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/cumulative_sum.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/cumulative_sum.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/cumulative_sum.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/cumulative_sum.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/derivative.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/derivative.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/derivative.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/derivative.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/font.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/font.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/font.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/font.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/map_column.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/map_column.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/map_column.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/map_column.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/math.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/math.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/math.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/math.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/math_column.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/math_column.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/math_column.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/math_column.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/moving_average.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/moving_average.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/moving_average.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/moving_average.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/overall_metric.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/overall_metric.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/overall_metric.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/overall_metric.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/theme.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/theme.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/theme.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/theme.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/ui_setting.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/ui_setting.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/ui_setting.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/ui_setting.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/utils.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/utils.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/utils.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/utils.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/var.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/var.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/var.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/var.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/tests/var_set.test.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/var_set.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/tests/var_set.test.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/tests/var_set.test.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/theme.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/theme.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/theme.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/theme.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/ui_setting.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/ui_setting.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/ui_setting.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/ui_setting.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/var.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/var.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/var.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/var.ts diff --git a/src/plugins/expressions/common/expression_functions/specs/var_set.ts b/src/platform/plugins/shared/expressions/common/expression_functions/specs/var_set.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/specs/var_set.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/specs/var_set.ts diff --git a/src/plugins/expressions/common/expression_functions/types.ts b/src/platform/plugins/shared/expressions/common/expression_functions/types.ts similarity index 100% rename from src/plugins/expressions/common/expression_functions/types.ts rename to src/platform/plugins/shared/expressions/common/expression_functions/types.ts diff --git a/src/plugins/expressions/common/expression_renderers/expression_renderer.ts b/src/platform/plugins/shared/expressions/common/expression_renderers/expression_renderer.ts similarity index 100% rename from src/plugins/expressions/common/expression_renderers/expression_renderer.ts rename to src/platform/plugins/shared/expressions/common/expression_renderers/expression_renderer.ts diff --git a/src/plugins/expressions/common/expression_renderers/expression_renderer_registry.ts b/src/platform/plugins/shared/expressions/common/expression_renderers/expression_renderer_registry.ts similarity index 100% rename from src/plugins/expressions/common/expression_renderers/expression_renderer_registry.ts rename to src/platform/plugins/shared/expressions/common/expression_renderers/expression_renderer_registry.ts diff --git a/src/plugins/expressions/common/expression_renderers/index.ts b/src/platform/plugins/shared/expressions/common/expression_renderers/index.ts similarity index 100% rename from src/plugins/expressions/common/expression_renderers/index.ts rename to src/platform/plugins/shared/expressions/common/expression_renderers/index.ts diff --git a/src/plugins/expressions/common/expression_renderers/types.ts b/src/platform/plugins/shared/expressions/common/expression_renderers/types.ts similarity index 100% rename from src/plugins/expressions/common/expression_renderers/types.ts rename to src/platform/plugins/shared/expressions/common/expression_renderers/types.ts diff --git a/src/plugins/expressions/common/expression_types/expression_type.test.ts b/src/platform/plugins/shared/expressions/common/expression_types/expression_type.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/expression_type.test.ts rename to src/platform/plugins/shared/expressions/common/expression_types/expression_type.test.ts diff --git a/src/plugins/expressions/common/expression_types/expression_type.ts b/src/platform/plugins/shared/expressions/common/expression_types/expression_type.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/expression_type.ts rename to src/platform/plugins/shared/expressions/common/expression_types/expression_type.ts diff --git a/src/plugins/expressions/common/expression_types/get_type.test.ts b/src/platform/plugins/shared/expressions/common/expression_types/get_type.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/get_type.test.ts rename to src/platform/plugins/shared/expressions/common/expression_types/get_type.test.ts diff --git a/src/plugins/expressions/common/expression_types/get_type.ts b/src/platform/plugins/shared/expressions/common/expression_types/get_type.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/get_type.ts rename to src/platform/plugins/shared/expressions/common/expression_types/get_type.ts diff --git a/src/plugins/expressions/common/expression_types/index.ts b/src/platform/plugins/shared/expressions/common/expression_types/index.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/index.ts rename to src/platform/plugins/shared/expressions/common/expression_types/index.ts diff --git a/src/plugins/expressions/common/expression_types/serialize_provider.ts b/src/platform/plugins/shared/expressions/common/expression_types/serialize_provider.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/serialize_provider.ts rename to src/platform/plugins/shared/expressions/common/expression_types/serialize_provider.ts diff --git a/src/plugins/expressions/common/expression_types/specs/boolean.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/boolean.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/boolean.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/boolean.ts diff --git a/src/plugins/expressions/common/expression_types/specs/datatable.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/datatable.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/datatable.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/datatable.ts diff --git a/src/plugins/expressions/common/expression_types/specs/error.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/error.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/error.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/error.ts diff --git a/src/plugins/expressions/common/expression_types/specs/filter.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/filter.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/filter.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/filter.ts diff --git a/src/plugins/expressions/common/expression_types/specs/image.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/image.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/image.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/image.ts diff --git a/src/plugins/expressions/common/expression_types/specs/index.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/index.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/index.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/index.ts diff --git a/src/plugins/expressions/common/expression_types/specs/null.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/null.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/null.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/null.ts diff --git a/src/plugins/expressions/common/expression_types/specs/num.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/num.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/num.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/num.ts diff --git a/src/plugins/expressions/common/expression_types/specs/number.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/number.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/number.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/number.ts diff --git a/src/plugins/expressions/common/expression_types/specs/pointseries.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/pointseries.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/pointseries.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/pointseries.ts diff --git a/src/plugins/expressions/common/expression_types/specs/range.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/range.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/range.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/range.ts diff --git a/src/plugins/expressions/common/expression_types/specs/render.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/render.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/render.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/render.ts diff --git a/src/plugins/expressions/common/expression_types/specs/shape.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/shape.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/shape.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/shape.ts diff --git a/src/plugins/expressions/common/expression_types/specs/string.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/string.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/string.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/string.ts diff --git a/src/plugins/expressions/common/expression_types/specs/style.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/style.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/style.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/style.ts diff --git a/src/plugins/expressions/common/expression_types/specs/tests/number.test.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/tests/number.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/tests/number.test.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/tests/number.test.ts diff --git a/src/plugins/expressions/common/expression_types/specs/tests/ui_setting.test.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/tests/ui_setting.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/tests/ui_setting.test.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/tests/ui_setting.test.ts diff --git a/src/plugins/expressions/common/expression_types/specs/ui_setting.ts b/src/platform/plugins/shared/expressions/common/expression_types/specs/ui_setting.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/specs/ui_setting.ts rename to src/platform/plugins/shared/expressions/common/expression_types/specs/ui_setting.ts diff --git a/src/plugins/expressions/common/expression_types/types.ts b/src/platform/plugins/shared/expressions/common/expression_types/types.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/types.ts rename to src/platform/plugins/shared/expressions/common/expression_types/types.ts diff --git a/src/plugins/expressions/common/expression_types/unbox_expression_value.test.ts b/src/platform/plugins/shared/expressions/common/expression_types/unbox_expression_value.test.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/unbox_expression_value.test.ts rename to src/platform/plugins/shared/expressions/common/expression_types/unbox_expression_value.test.ts diff --git a/src/plugins/expressions/common/expression_types/unbox_expression_value.ts b/src/platform/plugins/shared/expressions/common/expression_types/unbox_expression_value.ts similarity index 100% rename from src/plugins/expressions/common/expression_types/unbox_expression_value.ts rename to src/platform/plugins/shared/expressions/common/expression_types/unbox_expression_value.ts diff --git a/src/plugins/expressions/common/fonts.ts b/src/platform/plugins/shared/expressions/common/fonts.ts similarity index 100% rename from src/plugins/expressions/common/fonts.ts rename to src/platform/plugins/shared/expressions/common/fonts.ts diff --git a/src/plugins/expressions/common/index.ts b/src/platform/plugins/shared/expressions/common/index.ts similarity index 100% rename from src/plugins/expressions/common/index.ts rename to src/platform/plugins/shared/expressions/common/index.ts diff --git a/src/plugins/expressions/common/mocks.ts b/src/platform/plugins/shared/expressions/common/mocks.ts similarity index 100% rename from src/plugins/expressions/common/mocks.ts rename to src/platform/plugins/shared/expressions/common/mocks.ts diff --git a/src/plugins/expressions/common/service/expressions_fork.ts b/src/platform/plugins/shared/expressions/common/service/expressions_fork.ts similarity index 100% rename from src/plugins/expressions/common/service/expressions_fork.ts rename to src/platform/plugins/shared/expressions/common/service/expressions_fork.ts diff --git a/src/plugins/expressions/common/service/expressions_services.test.ts b/src/platform/plugins/shared/expressions/common/service/expressions_services.test.ts similarity index 100% rename from src/plugins/expressions/common/service/expressions_services.test.ts rename to src/platform/plugins/shared/expressions/common/service/expressions_services.test.ts diff --git a/src/plugins/expressions/common/service/expressions_services.ts b/src/platform/plugins/shared/expressions/common/service/expressions_services.ts similarity index 100% rename from src/plugins/expressions/common/service/expressions_services.ts rename to src/platform/plugins/shared/expressions/common/service/expressions_services.ts diff --git a/src/plugins/expressions/common/service/index.ts b/src/platform/plugins/shared/expressions/common/service/index.ts similarity index 100% rename from src/plugins/expressions/common/service/index.ts rename to src/platform/plugins/shared/expressions/common/service/index.ts diff --git a/src/plugins/expressions/common/test_helpers/create_unit_test_executor.ts b/src/platform/plugins/shared/expressions/common/test_helpers/create_unit_test_executor.ts similarity index 100% rename from src/plugins/expressions/common/test_helpers/create_unit_test_executor.ts rename to src/platform/plugins/shared/expressions/common/test_helpers/create_unit_test_executor.ts diff --git a/src/plugins/expressions/common/test_helpers/expression_functions/access.ts b/src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/access.ts similarity index 100% rename from src/plugins/expressions/common/test_helpers/expression_functions/access.ts rename to src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/access.ts diff --git a/src/plugins/expressions/common/test_helpers/expression_functions/add.ts b/src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/add.ts similarity index 100% rename from src/plugins/expressions/common/test_helpers/expression_functions/add.ts rename to src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/add.ts diff --git a/src/plugins/expressions/common/test_helpers/expression_functions/error.ts b/src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/error.ts similarity index 100% rename from src/plugins/expressions/common/test_helpers/expression_functions/error.ts rename to src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/error.ts diff --git a/src/plugins/expressions/common/test_helpers/expression_functions/index.ts b/src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/index.ts similarity index 100% rename from src/plugins/expressions/common/test_helpers/expression_functions/index.ts rename to src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/index.ts diff --git a/src/plugins/expressions/common/test_helpers/expression_functions/introspect_context.ts b/src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/introspect_context.ts similarity index 100% rename from src/plugins/expressions/common/test_helpers/expression_functions/introspect_context.ts rename to src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/introspect_context.ts diff --git a/src/plugins/expressions/common/test_helpers/expression_functions/mult.ts b/src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/mult.ts similarity index 100% rename from src/plugins/expressions/common/test_helpers/expression_functions/mult.ts rename to src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/mult.ts diff --git a/src/plugins/expressions/common/test_helpers/expression_functions/sleep.ts b/src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/sleep.ts similarity index 100% rename from src/plugins/expressions/common/test_helpers/expression_functions/sleep.ts rename to src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/sleep.ts diff --git a/src/plugins/expressions/common/test_helpers/expression_functions/sum.ts b/src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/sum.ts similarity index 100% rename from src/plugins/expressions/common/test_helpers/expression_functions/sum.ts rename to src/platform/plugins/shared/expressions/common/test_helpers/expression_functions/sum.ts diff --git a/src/plugins/expressions/common/test_helpers/index.ts b/src/platform/plugins/shared/expressions/common/test_helpers/index.ts similarity index 100% rename from src/plugins/expressions/common/test_helpers/index.ts rename to src/platform/plugins/shared/expressions/common/test_helpers/index.ts diff --git a/src/plugins/expressions/common/types/common.ts b/src/platform/plugins/shared/expressions/common/types/common.ts similarity index 100% rename from src/plugins/expressions/common/types/common.ts rename to src/platform/plugins/shared/expressions/common/types/common.ts diff --git a/src/plugins/expressions/common/types/index.ts b/src/platform/plugins/shared/expressions/common/types/index.ts similarity index 100% rename from src/plugins/expressions/common/types/index.ts rename to src/platform/plugins/shared/expressions/common/types/index.ts diff --git a/src/plugins/expressions/common/types/registry.ts b/src/platform/plugins/shared/expressions/common/types/registry.ts similarity index 100% rename from src/plugins/expressions/common/types/registry.ts rename to src/platform/plugins/shared/expressions/common/types/registry.ts diff --git a/src/plugins/expressions/common/types/style.ts b/src/platform/plugins/shared/expressions/common/types/style.ts similarity index 100% rename from src/plugins/expressions/common/types/style.ts rename to src/platform/plugins/shared/expressions/common/types/style.ts diff --git a/src/plugins/expressions/common/util/create_default_inspector_adapters.ts b/src/platform/plugins/shared/expressions/common/util/create_default_inspector_adapters.ts similarity index 100% rename from src/plugins/expressions/common/util/create_default_inspector_adapters.ts rename to src/platform/plugins/shared/expressions/common/util/create_default_inspector_adapters.ts diff --git a/src/plugins/expressions/common/util/create_error.ts b/src/platform/plugins/shared/expressions/common/util/create_error.ts similarity index 100% rename from src/plugins/expressions/common/util/create_error.ts rename to src/platform/plugins/shared/expressions/common/util/create_error.ts diff --git a/src/plugins/expressions/common/util/expressions_inspector_adapter.ts b/src/platform/plugins/shared/expressions/common/util/expressions_inspector_adapter.ts similarity index 100% rename from src/plugins/expressions/common/util/expressions_inspector_adapter.ts rename to src/platform/plugins/shared/expressions/common/util/expressions_inspector_adapter.ts diff --git a/src/plugins/expressions/common/util/get_by_alias.ts b/src/platform/plugins/shared/expressions/common/util/get_by_alias.ts similarity index 100% rename from src/plugins/expressions/common/util/get_by_alias.ts rename to src/platform/plugins/shared/expressions/common/util/get_by_alias.ts diff --git a/src/plugins/expressions/common/util/index.ts b/src/platform/plugins/shared/expressions/common/util/index.ts similarity index 100% rename from src/plugins/expressions/common/util/index.ts rename to src/platform/plugins/shared/expressions/common/util/index.ts diff --git a/src/plugins/expressions/common/util/tables_adapter.ts b/src/platform/plugins/shared/expressions/common/util/tables_adapter.ts similarity index 100% rename from src/plugins/expressions/common/util/tables_adapter.ts rename to src/platform/plugins/shared/expressions/common/util/tables_adapter.ts diff --git a/src/plugins/expressions/common/util/test_utils.ts b/src/platform/plugins/shared/expressions/common/util/test_utils.ts similarity index 100% rename from src/plugins/expressions/common/util/test_utils.ts rename to src/platform/plugins/shared/expressions/common/util/test_utils.ts diff --git a/src/platform/plugins/shared/expressions/jest.config.js b/src/platform/plugins/shared/expressions/jest.config.js new file mode 100644 index 0000000000000..c371bb45eb2f7 --- /dev/null +++ b/src/platform/plugins/shared/expressions/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/expressions'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/expressions', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/expressions/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/expressions/kibana.jsonc b/src/platform/plugins/shared/expressions/kibana.jsonc similarity index 100% rename from src/plugins/expressions/kibana.jsonc rename to src/platform/plugins/shared/expressions/kibana.jsonc diff --git a/src/plugins/expressions/public/_expression_renderer.scss b/src/platform/plugins/shared/expressions/public/_expression_renderer.scss similarity index 100% rename from src/plugins/expressions/public/_expression_renderer.scss rename to src/platform/plugins/shared/expressions/public/_expression_renderer.scss diff --git a/src/plugins/expressions/public/expression_functions/index.ts b/src/platform/plugins/shared/expressions/public/expression_functions/index.ts similarity index 100% rename from src/plugins/expressions/public/expression_functions/index.ts rename to src/platform/plugins/shared/expressions/public/expression_functions/index.ts diff --git a/src/plugins/expressions/public/expression_functions/ui_setting.ts b/src/platform/plugins/shared/expressions/public/expression_functions/ui_setting.ts similarity index 100% rename from src/plugins/expressions/public/expression_functions/ui_setting.ts rename to src/platform/plugins/shared/expressions/public/expression_functions/ui_setting.ts diff --git a/src/plugins/expressions/public/index.scss b/src/platform/plugins/shared/expressions/public/index.scss similarity index 100% rename from src/plugins/expressions/public/index.scss rename to src/platform/plugins/shared/expressions/public/index.scss diff --git a/src/plugins/expressions/public/index.ts b/src/platform/plugins/shared/expressions/public/index.ts similarity index 100% rename from src/plugins/expressions/public/index.ts rename to src/platform/plugins/shared/expressions/public/index.ts diff --git a/src/plugins/expressions/public/loader.test.ts b/src/platform/plugins/shared/expressions/public/loader.test.ts similarity index 98% rename from src/plugins/expressions/public/loader.test.ts rename to src/platform/plugins/shared/expressions/public/loader.test.ts index e31ce3e98149c..b3098bfd8dd0a 100644 --- a/src/plugins/expressions/public/loader.test.ts +++ b/src/platform/plugins/shared/expressions/public/loader.test.ts @@ -21,7 +21,7 @@ import { ExecutionContract, } from '../common'; -// eslint-disable-next-line @typescript-eslint/no-var-requires,import/no-commonjs +// eslint-disable-next-line @typescript-eslint/no-var-requires const { __getLastExecution, __getLastRenderMode } = require('./services'); const element = null as unknown as HTMLElement; diff --git a/src/plugins/expressions/public/loader.ts b/src/platform/plugins/shared/expressions/public/loader.ts similarity index 100% rename from src/plugins/expressions/public/loader.ts rename to src/platform/plugins/shared/expressions/public/loader.ts diff --git a/src/plugins/expressions/public/mocks.tsx b/src/platform/plugins/shared/expressions/public/mocks.tsx similarity index 100% rename from src/plugins/expressions/public/mocks.tsx rename to src/platform/plugins/shared/expressions/public/mocks.tsx diff --git a/src/plugins/expressions/public/plugin.test.ts b/src/platform/plugins/shared/expressions/public/plugin.test.ts similarity index 100% rename from src/plugins/expressions/public/plugin.test.ts rename to src/platform/plugins/shared/expressions/public/plugin.test.ts diff --git a/src/plugins/expressions/public/plugin.ts b/src/platform/plugins/shared/expressions/public/plugin.ts similarity index 100% rename from src/plugins/expressions/public/plugin.ts rename to src/platform/plugins/shared/expressions/public/plugin.ts diff --git a/src/plugins/expressions/public/react_expression_renderer/index.ts b/src/platform/plugins/shared/expressions/public/react_expression_renderer/index.ts similarity index 100% rename from src/plugins/expressions/public/react_expression_renderer/index.ts rename to src/platform/plugins/shared/expressions/public/react_expression_renderer/index.ts diff --git a/src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.test.tsx b/src/platform/plugins/shared/expressions/public/react_expression_renderer/react_expression_renderer.test.tsx similarity index 100% rename from src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.test.tsx rename to src/platform/plugins/shared/expressions/public/react_expression_renderer/react_expression_renderer.test.tsx diff --git a/src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.tsx b/src/platform/plugins/shared/expressions/public/react_expression_renderer/react_expression_renderer.tsx similarity index 100% rename from src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.tsx rename to src/platform/plugins/shared/expressions/public/react_expression_renderer/react_expression_renderer.tsx diff --git a/src/plugins/expressions/public/react_expression_renderer/shallow_equal.d.ts b/src/platform/plugins/shared/expressions/public/react_expression_renderer/shallow_equal.d.ts similarity index 100% rename from src/plugins/expressions/public/react_expression_renderer/shallow_equal.d.ts rename to src/platform/plugins/shared/expressions/public/react_expression_renderer/shallow_equal.d.ts diff --git a/src/plugins/expressions/public/react_expression_renderer/use_debounced_value.test.ts b/src/platform/plugins/shared/expressions/public/react_expression_renderer/use_debounced_value.test.ts similarity index 100% rename from src/plugins/expressions/public/react_expression_renderer/use_debounced_value.test.ts rename to src/platform/plugins/shared/expressions/public/react_expression_renderer/use_debounced_value.test.ts diff --git a/src/plugins/expressions/public/react_expression_renderer/use_debounced_value.ts b/src/platform/plugins/shared/expressions/public/react_expression_renderer/use_debounced_value.ts similarity index 100% rename from src/plugins/expressions/public/react_expression_renderer/use_debounced_value.ts rename to src/platform/plugins/shared/expressions/public/react_expression_renderer/use_debounced_value.ts diff --git a/src/plugins/expressions/public/react_expression_renderer/use_expression_renderer.test.ts b/src/platform/plugins/shared/expressions/public/react_expression_renderer/use_expression_renderer.test.ts similarity index 100% rename from src/plugins/expressions/public/react_expression_renderer/use_expression_renderer.test.ts rename to src/platform/plugins/shared/expressions/public/react_expression_renderer/use_expression_renderer.test.ts diff --git a/src/plugins/expressions/public/react_expression_renderer/use_expression_renderer.ts b/src/platform/plugins/shared/expressions/public/react_expression_renderer/use_expression_renderer.ts similarity index 100% rename from src/plugins/expressions/public/react_expression_renderer/use_expression_renderer.ts rename to src/platform/plugins/shared/expressions/public/react_expression_renderer/use_expression_renderer.ts diff --git a/src/plugins/expressions/public/react_expression_renderer/use_shallow_memo.test.ts b/src/platform/plugins/shared/expressions/public/react_expression_renderer/use_shallow_memo.test.ts similarity index 100% rename from src/plugins/expressions/public/react_expression_renderer/use_shallow_memo.test.ts rename to src/platform/plugins/shared/expressions/public/react_expression_renderer/use_shallow_memo.test.ts diff --git a/src/plugins/expressions/public/react_expression_renderer/use_shallow_memo.ts b/src/platform/plugins/shared/expressions/public/react_expression_renderer/use_shallow_memo.ts similarity index 100% rename from src/plugins/expressions/public/react_expression_renderer/use_shallow_memo.ts rename to src/platform/plugins/shared/expressions/public/react_expression_renderer/use_shallow_memo.ts diff --git a/src/plugins/expressions/public/react_expression_renderer_wrapper.tsx b/src/platform/plugins/shared/expressions/public/react_expression_renderer_wrapper.tsx similarity index 100% rename from src/plugins/expressions/public/react_expression_renderer_wrapper.tsx rename to src/platform/plugins/shared/expressions/public/react_expression_renderer_wrapper.tsx diff --git a/src/plugins/expressions/public/render.test.ts b/src/platform/plugins/shared/expressions/public/render.test.ts similarity index 100% rename from src/plugins/expressions/public/render.test.ts rename to src/platform/plugins/shared/expressions/public/render.test.ts diff --git a/src/plugins/expressions/public/render.ts b/src/platform/plugins/shared/expressions/public/render.ts similarity index 100% rename from src/plugins/expressions/public/render.ts rename to src/platform/plugins/shared/expressions/public/render.ts diff --git a/src/plugins/expressions/public/render_error_handler.ts b/src/platform/plugins/shared/expressions/public/render_error_handler.ts similarity index 100% rename from src/plugins/expressions/public/render_error_handler.ts rename to src/platform/plugins/shared/expressions/public/render_error_handler.ts diff --git a/src/plugins/expressions/public/services/expressions_services.ts b/src/platform/plugins/shared/expressions/public/services/expressions_services.ts similarity index 100% rename from src/plugins/expressions/public/services/expressions_services.ts rename to src/platform/plugins/shared/expressions/public/services/expressions_services.ts diff --git a/src/plugins/expressions/public/services/index.ts b/src/platform/plugins/shared/expressions/public/services/index.ts similarity index 100% rename from src/plugins/expressions/public/services/index.ts rename to src/platform/plugins/shared/expressions/public/services/index.ts diff --git a/src/plugins/expressions/public/types/index.ts b/src/platform/plugins/shared/expressions/public/types/index.ts similarity index 100% rename from src/plugins/expressions/public/types/index.ts rename to src/platform/plugins/shared/expressions/public/types/index.ts diff --git a/src/plugins/expressions/server/expression_functions/index.ts b/src/platform/plugins/shared/expressions/server/expression_functions/index.ts similarity index 100% rename from src/plugins/expressions/server/expression_functions/index.ts rename to src/platform/plugins/shared/expressions/server/expression_functions/index.ts diff --git a/src/plugins/expressions/server/expression_functions/ui_setting.ts b/src/platform/plugins/shared/expressions/server/expression_functions/ui_setting.ts similarity index 100% rename from src/plugins/expressions/server/expression_functions/ui_setting.ts rename to src/platform/plugins/shared/expressions/server/expression_functions/ui_setting.ts diff --git a/src/plugins/expressions/server/index.ts b/src/platform/plugins/shared/expressions/server/index.ts similarity index 100% rename from src/plugins/expressions/server/index.ts rename to src/platform/plugins/shared/expressions/server/index.ts diff --git a/src/plugins/expressions/server/mocks.ts b/src/platform/plugins/shared/expressions/server/mocks.ts similarity index 100% rename from src/plugins/expressions/server/mocks.ts rename to src/platform/plugins/shared/expressions/server/mocks.ts diff --git a/src/plugins/expressions/server/plugin.test.ts b/src/platform/plugins/shared/expressions/server/plugin.test.ts similarity index 100% rename from src/plugins/expressions/server/plugin.test.ts rename to src/platform/plugins/shared/expressions/server/plugin.test.ts diff --git a/src/plugins/expressions/server/plugin.ts b/src/platform/plugins/shared/expressions/server/plugin.ts similarity index 100% rename from src/plugins/expressions/server/plugin.ts rename to src/platform/plugins/shared/expressions/server/plugin.ts diff --git a/src/plugins/expressions/server/services/expressions_services.ts b/src/platform/plugins/shared/expressions/server/services/expressions_services.ts similarity index 100% rename from src/plugins/expressions/server/services/expressions_services.ts rename to src/platform/plugins/shared/expressions/server/services/expressions_services.ts diff --git a/src/plugins/expressions/server/services/index.ts b/src/platform/plugins/shared/expressions/server/services/index.ts similarity index 100% rename from src/plugins/expressions/server/services/index.ts rename to src/platform/plugins/shared/expressions/server/services/index.ts diff --git a/src/plugins/expressions/tsconfig.json b/src/platform/plugins/shared/expressions/tsconfig.json similarity index 91% rename from src/plugins/expressions/tsconfig.json rename to src/platform/plugins/shared/expressions/tsconfig.json index 5854100d9fa09..fcb24733314f3 100644 --- a/src/plugins/expressions/tsconfig.json +++ b/src/platform/plugins/shared/expressions/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/platform/plugins/shared/telemetry/schema/oss_platform.json b/src/platform/plugins/shared/telemetry/schema/oss_platform.json index a8b27af377f66..5710e174eb081 100644 --- a/src/platform/plugins/shared/telemetry/schema/oss_platform.json +++ b/src/platform/plugins/shared/telemetry/schema/oss_platform.json @@ -10302,6 +10302,19 @@ } } }, + "kql": { + "properties": { + "optInCount": { + "type": "long" + }, + "optOutCount": { + "type": "long" + }, + "defaultQueryLanguage": { + "type": "keyword" + } + } + }, "localization": { "properties": { "locale": { @@ -10400,6 +10413,32 @@ } } }, + "search": { + "properties": { + "successCount": { + "type": "long" + }, + "errorCount": { + "type": "long" + }, + "averageDuration": { + "type": "float" + } + } + }, + "search-session": { + "properties": { + "transientCount": { + "type": "long" + }, + "persistedCount": { + "type": "long" + }, + "totalCount": { + "type": "long" + } + } + }, "stack_management": { "properties": { "securitySolution:defaultIndex": { diff --git a/src/platform/plugins/shared/telemetry/schema/oss_plugins.json b/src/platform/plugins/shared/telemetry/schema/oss_plugins.json index d25e9a0b9302c..d5b0514b64918 100644 --- a/src/platform/plugins/shared/telemetry/schema/oss_plugins.json +++ b/src/platform/plugins/shared/telemetry/schema/oss_plugins.json @@ -1,43 +1,3 @@ { - "properties": { - "kql": { - "properties": { - "optInCount": { - "type": "long" - }, - "optOutCount": { - "type": "long" - }, - "defaultQueryLanguage": { - "type": "keyword" - } - } - }, - "search": { - "properties": { - "successCount": { - "type": "long" - }, - "errorCount": { - "type": "long" - }, - "averageDuration": { - "type": "float" - } - } - }, - "search-session": { - "properties": { - "transientCount": { - "type": "long" - }, - "persistedCount": { - "type": "long" - }, - "totalCount": { - "type": "long" - } - } - } - } + "properties": {} } diff --git a/src/plugins/unified_search/.storybook/main.js b/src/platform/plugins/shared/unified_search/.storybook/main.js similarity index 100% rename from src/plugins/unified_search/.storybook/main.js rename to src/platform/plugins/shared/unified_search/.storybook/main.js diff --git a/src/plugins/unified_search/README.md b/src/platform/plugins/shared/unified_search/README.md similarity index 100% rename from src/plugins/unified_search/README.md rename to src/platform/plugins/shared/unified_search/README.md diff --git a/src/plugins/event_annotation/jest.config.js b/src/platform/plugins/shared/unified_search/jest.config.js similarity index 68% rename from src/plugins/event_annotation/jest.config.js rename to src/platform/plugins/shared/unified_search/jest.config.js index cebdf7be20e62..5e3e6964bc3f2 100644 --- a/src/plugins/event_annotation/jest.config.js +++ b/src/platform/plugins/shared/unified_search/jest.config.js @@ -9,12 +9,13 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/event_annotation'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/event_annotation', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/unified_search'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/unified_search', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/event_annotation/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/unified_search/public/**/*.{ts,tsx}', ], setupFiles: ['jest-canvas-mock'], }; diff --git a/src/plugins/unified_search/kibana.jsonc b/src/platform/plugins/shared/unified_search/kibana.jsonc similarity index 100% rename from src/plugins/unified_search/kibana.jsonc rename to src/platform/plugins/shared/unified_search/kibana.jsonc diff --git a/src/plugins/unified_search/public/__stories__/search_bar.stories.tsx b/src/platform/plugins/shared/unified_search/public/__stories__/search_bar.stories.tsx similarity index 100% rename from src/plugins/unified_search/public/__stories__/search_bar.stories.tsx rename to src/platform/plugins/shared/unified_search/public/__stories__/search_bar.stories.tsx diff --git a/src/plugins/unified_search/public/actions/apply_filter_action.ts b/src/platform/plugins/shared/unified_search/public/actions/apply_filter_action.ts similarity index 100% rename from src/plugins/unified_search/public/actions/apply_filter_action.ts rename to src/platform/plugins/shared/unified_search/public/actions/apply_filter_action.ts diff --git a/src/plugins/unified_search/public/actions/index.ts b/src/platform/plugins/shared/unified_search/public/actions/index.ts similarity index 100% rename from src/plugins/unified_search/public/actions/index.ts rename to src/platform/plugins/shared/unified_search/public/actions/index.ts diff --git a/src/plugins/unified_search/public/actions/update_filter_references_action.test.ts b/src/platform/plugins/shared/unified_search/public/actions/update_filter_references_action.test.ts similarity index 100% rename from src/plugins/unified_search/public/actions/update_filter_references_action.test.ts rename to src/platform/plugins/shared/unified_search/public/actions/update_filter_references_action.test.ts diff --git a/src/plugins/unified_search/public/actions/update_filter_references_action.ts b/src/platform/plugins/shared/unified_search/public/actions/update_filter_references_action.ts similarity index 100% rename from src/plugins/unified_search/public/actions/update_filter_references_action.ts rename to src/platform/plugins/shared/unified_search/public/actions/update_filter_references_action.ts diff --git a/src/plugins/unified_search/public/apply_filters/apply_filter_popover_content.tsx b/src/platform/plugins/shared/unified_search/public/apply_filters/apply_filter_popover_content.tsx similarity index 100% rename from src/plugins/unified_search/public/apply_filters/apply_filter_popover_content.tsx rename to src/platform/plugins/shared/unified_search/public/apply_filters/apply_filter_popover_content.tsx diff --git a/src/plugins/unified_search/public/apply_filters/apply_filters_popover.tsx b/src/platform/plugins/shared/unified_search/public/apply_filters/apply_filters_popover.tsx similarity index 100% rename from src/plugins/unified_search/public/apply_filters/apply_filters_popover.tsx rename to src/platform/plugins/shared/unified_search/public/apply_filters/apply_filters_popover.tsx diff --git a/src/plugins/unified_search/public/apply_filters/index.ts b/src/platform/plugins/shared/unified_search/public/apply_filters/index.ts similarity index 100% rename from src/plugins/unified_search/public/apply_filters/index.ts rename to src/platform/plugins/shared/unified_search/public/apply_filters/index.ts diff --git a/src/plugins/unified_search/public/autocomplete/autocomplete_service.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/autocomplete_service.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/autocomplete_service.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/autocomplete_service.ts diff --git a/src/plugins/unified_search/public/autocomplete/collectors/create_usage_collector.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/collectors/create_usage_collector.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/collectors/create_usage_collector.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/collectors/create_usage_collector.ts diff --git a/src/plugins/unified_search/public/autocomplete/collectors/index.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/collectors/index.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/collectors/index.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/collectors/index.ts diff --git a/src/plugins/unified_search/public/autocomplete/collectors/types.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/collectors/types.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/collectors/types.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/collectors/types.ts diff --git a/src/plugins/unified_search/public/autocomplete/index.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/index.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/index.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/index.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/README.md b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/README.md similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/README.md rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/README.md diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/__fixtures__/index_pattern_response.json b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/__fixtures__/index_pattern_response.json similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/__fixtures__/index_pattern_response.json rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/__fixtures__/index_pattern_response.json diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/async_loads.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/async_loads.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/async_loads.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/async_loads.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/conjunction.test.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/conjunction.test.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/conjunction.test.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/conjunction.test.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/conjunction.tsx b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/conjunction.tsx similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/conjunction.tsx rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/conjunction.tsx diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/field.test.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/field.test.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/field.test.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/field.test.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/field.tsx b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/field.tsx similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/field.tsx rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/field.tsx diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/index.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/index.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/index.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/index.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/operator.test.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/operator.test.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/operator.test.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/operator.test.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/operator.tsx b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/operator.tsx similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/operator.tsx rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/operator.tsx diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/sort_prefix_first.test.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/sort_prefix_first.test.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/sort_prefix_first.test.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/sort_prefix_first.test.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/sort_prefix_first.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/sort_prefix_first.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/sort_prefix_first.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/sort_prefix_first.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/types.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/types.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/types.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/types.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/value.test.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/value.test.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/value.test.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/value.test.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/value.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/value.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/kql_query_suggestion/value.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/kql_query_suggestion/value.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/query_suggestion_provider.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/query_suggestion_provider.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/query_suggestion_provider.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/query_suggestion_provider.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/value_suggestion_provider.test.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/value_suggestion_provider.test.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/value_suggestion_provider.test.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/value_suggestion_provider.test.ts diff --git a/src/plugins/unified_search/public/autocomplete/providers/value_suggestion_provider.ts b/src/platform/plugins/shared/unified_search/public/autocomplete/providers/value_suggestion_provider.ts similarity index 100% rename from src/plugins/unified_search/public/autocomplete/providers/value_suggestion_provider.ts rename to src/platform/plugins/shared/unified_search/public/autocomplete/providers/value_suggestion_provider.ts diff --git a/src/plugins/unified_search/public/dataview_picker/assets/adhoc.svg b/src/platform/plugins/shared/unified_search/public/dataview_picker/assets/adhoc.svg similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/assets/adhoc.svg rename to src/platform/plugins/shared/unified_search/public/dataview_picker/assets/adhoc.svg diff --git a/src/plugins/unified_search/public/dataview_picker/change_dataview.styles.ts b/src/platform/plugins/shared/unified_search/public/dataview_picker/change_dataview.styles.ts similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/change_dataview.styles.ts rename to src/platform/plugins/shared/unified_search/public/dataview_picker/change_dataview.styles.ts diff --git a/src/plugins/unified_search/public/dataview_picker/change_dataview.test.tsx b/src/platform/plugins/shared/unified_search/public/dataview_picker/change_dataview.test.tsx similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/change_dataview.test.tsx rename to src/platform/plugins/shared/unified_search/public/dataview_picker/change_dataview.test.tsx diff --git a/src/plugins/unified_search/public/dataview_picker/change_dataview.tsx b/src/platform/plugins/shared/unified_search/public/dataview_picker/change_dataview.tsx similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/change_dataview.tsx rename to src/platform/plugins/shared/unified_search/public/dataview_picker/change_dataview.tsx diff --git a/src/plugins/unified_search/public/dataview_picker/data_view_picker.tsx b/src/platform/plugins/shared/unified_search/public/dataview_picker/data_view_picker.tsx similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/data_view_picker.tsx rename to src/platform/plugins/shared/unified_search/public/dataview_picker/data_view_picker.tsx diff --git a/src/plugins/unified_search/public/dataview_picker/data_view_selector.tsx b/src/platform/plugins/shared/unified_search/public/dataview_picker/data_view_selector.tsx similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/data_view_selector.tsx rename to src/platform/plugins/shared/unified_search/public/dataview_picker/data_view_selector.tsx diff --git a/src/plugins/unified_search/public/dataview_picker/dataview_list.test.tsx b/src/platform/plugins/shared/unified_search/public/dataview_picker/dataview_list.test.tsx similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/dataview_list.test.tsx rename to src/platform/plugins/shared/unified_search/public/dataview_picker/dataview_list.test.tsx diff --git a/src/plugins/unified_search/public/dataview_picker/dataview_list.tsx b/src/platform/plugins/shared/unified_search/public/dataview_picker/dataview_list.tsx similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/dataview_list.tsx rename to src/platform/plugins/shared/unified_search/public/dataview_picker/dataview_list.tsx diff --git a/src/plugins/unified_search/public/dataview_picker/explore_matching_button.tsx b/src/platform/plugins/shared/unified_search/public/dataview_picker/explore_matching_button.tsx similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/explore_matching_button.tsx rename to src/platform/plugins/shared/unified_search/public/dataview_picker/explore_matching_button.tsx diff --git a/src/plugins/unified_search/public/dataview_picker/index.tsx b/src/platform/plugins/shared/unified_search/public/dataview_picker/index.tsx similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/index.tsx rename to src/platform/plugins/shared/unified_search/public/dataview_picker/index.tsx diff --git a/src/plugins/unified_search/public/dataview_picker/mocks/dataview.ts b/src/platform/plugins/shared/unified_search/public/dataview_picker/mocks/dataview.ts similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/mocks/dataview.ts rename to src/platform/plugins/shared/unified_search/public/dataview_picker/mocks/dataview.ts diff --git a/src/plugins/unified_search/public/dataview_picker/sorting_service.test.ts b/src/platform/plugins/shared/unified_search/public/dataview_picker/sorting_service.test.ts similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/sorting_service.test.ts rename to src/platform/plugins/shared/unified_search/public/dataview_picker/sorting_service.test.ts diff --git a/src/plugins/unified_search/public/dataview_picker/sorting_service.ts b/src/platform/plugins/shared/unified_search/public/dataview_picker/sorting_service.ts similarity index 100% rename from src/plugins/unified_search/public/dataview_picker/sorting_service.ts rename to src/platform/plugins/shared/unified_search/public/dataview_picker/sorting_service.ts diff --git a/src/plugins/unified_search/public/filter_badge/filter_badge.styles.ts b/src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge.styles.ts similarity index 100% rename from src/plugins/unified_search/public/filter_badge/filter_badge.styles.ts rename to src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge.styles.ts diff --git a/src/plugins/unified_search/public/filter_badge/filter_badge.tsx b/src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_badge/filter_badge.tsx rename to src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge.tsx diff --git a/src/plugins/unified_search/public/filter_badge/filter_badge_error_boundary.tsx b/src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge_error_boundary.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_badge/filter_badge_error_boundary.tsx rename to src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge_error_boundary.tsx diff --git a/src/plugins/unified_search/public/filter_badge/filter_badge_expression.tsx b/src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge_expression.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_badge/filter_badge_expression.tsx rename to src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge_expression.tsx diff --git a/src/plugins/unified_search/public/filter_badge/filter_badge_group.tsx b/src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge_group.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_badge/filter_badge_group.tsx rename to src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge_group.tsx diff --git a/src/plugins/unified_search/public/filter_badge/filter_badge_invalid.tsx b/src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge_invalid.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_badge/filter_badge_invalid.tsx rename to src/platform/plugins/shared/unified_search/public/filter_badge/filter_badge_invalid.tsx diff --git a/src/plugins/unified_search/public/filter_badge/filter_content/__snapshots__/filter_content.test.tsx.snap b/src/platform/plugins/shared/unified_search/public/filter_badge/filter_content/__snapshots__/filter_content.test.tsx.snap similarity index 100% rename from src/plugins/unified_search/public/filter_badge/filter_content/__snapshots__/filter_content.test.tsx.snap rename to src/platform/plugins/shared/unified_search/public/filter_badge/filter_content/__snapshots__/filter_content.test.tsx.snap diff --git a/src/plugins/unified_search/public/filter_badge/filter_content/filter_content.test.tsx b/src/platform/plugins/shared/unified_search/public/filter_badge/filter_content/filter_content.test.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_badge/filter_content/filter_content.test.tsx rename to src/platform/plugins/shared/unified_search/public/filter_badge/filter_content/filter_content.test.tsx diff --git a/src/plugins/unified_search/public/filter_badge/filter_content/filter_content.tsx b/src/platform/plugins/shared/unified_search/public/filter_badge/filter_content/filter_content.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_badge/filter_content/filter_content.tsx rename to src/platform/plugins/shared/unified_search/public/filter_badge/filter_content/filter_content.tsx diff --git a/src/plugins/unified_search/public/filter_badge/filter_content/index.ts b/src/platform/plugins/shared/unified_search/public/filter_badge/filter_content/index.ts similarity index 100% rename from src/plugins/unified_search/public/filter_badge/filter_content/index.ts rename to src/platform/plugins/shared/unified_search/public/filter_badge/filter_content/index.ts diff --git a/src/plugins/unified_search/public/filter_badge/i18n.ts b/src/platform/plugins/shared/unified_search/public/filter_badge/i18n.ts similarity index 100% rename from src/plugins/unified_search/public/filter_badge/i18n.ts rename to src/platform/plugins/shared/unified_search/public/filter_badge/i18n.ts diff --git a/src/plugins/unified_search/public/filter_badge/index.ts b/src/platform/plugins/shared/unified_search/public/filter_badge/index.ts similarity index 100% rename from src/plugins/unified_search/public/filter_badge/index.ts rename to src/platform/plugins/shared/unified_search/public/filter_badge/index.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_bar.styles.ts b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_bar.styles.ts similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_bar.styles.ts rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_bar.styles.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_bar.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_bar.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_bar.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_bar.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_button_group/filter_button_group.scss b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_button_group/filter_button_group.scss similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_button_group/filter_button_group.scss rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_button_group/filter_button_group.scss diff --git a/src/plugins/unified_search/public/filter_bar/filter_button_group/filter_button_group.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_button_group/filter_button_group.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_button_group/filter_button_group.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_button_group/filter_button_group.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/close_confirm_modal.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/close_confirm_modal.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/close_confirm_modal.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/close_confirm_modal.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/filter_editor.styles.ts b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/filter_editor.styles.ts similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/filter_editor.styles.ts rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/filter_editor.styles.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/filter_editor.test.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/filter_editor.test.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/filter_editor.test.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/filter_editor.test.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/filter_editor.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/filter_editor.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/filter_editor.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/filter_editor.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/filter_editor_builder.test.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/filter_editor_builder.test.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/filter_editor_builder.test.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/filter_editor_builder.test.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/generic_combo_box.styles.ts b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/generic_combo_box.styles.ts similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/generic_combo_box.styles.ts rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/generic_combo_box.styles.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/generic_combo_box.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/generic_combo_box.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/generic_combo_box.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/generic_combo_box.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/index.ts b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/index.ts similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/index.ts rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/index.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/lib/filter_editor_utils.test.ts b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/filter_editor_utils.test.ts similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/lib/filter_editor_utils.test.ts rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/filter_editor_utils.test.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/lib/filter_editor_utils.ts b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/filter_editor_utils.ts similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/lib/filter_editor_utils.ts rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/filter_editor_utils.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/lib/filter_operators.ts b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/filter_operators.ts similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/lib/filter_operators.ts rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/filter_operators.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/lib/helpers.test.ts b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/helpers.test.ts similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/lib/helpers.test.ts rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/helpers.test.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/lib/helpers.ts b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/helpers.ts similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/lib/helpers.ts rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/helpers.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/lib/index.ts b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/index.ts similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/lib/index.ts rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/lib/index.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/phrase_suggestor.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/phrase_suggestor.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/phrase_suggestor.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/phrase_suggestor.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/phrase_value_input.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/phrase_value_input.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/phrase_value_input.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/phrase_value_input.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/phrases_values_input.styles.ts b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/phrases_values_input.styles.ts similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/phrases_values_input.styles.ts rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/phrases_values_input.styles.ts diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/phrases_values_input.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/phrases_values_input.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/phrases_values_input.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/phrases_values_input.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/range_value_input.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/range_value_input.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/range_value_input.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/range_value_input.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/value_input_type.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/value_input_type.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/value_input_type.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/value_input_type.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/with_close_confirm_modal.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/with_close_confirm_modal.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_editor/with_close_confirm_modal.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_editor/with_close_confirm_modal.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_item/_variables.scss b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_item/_variables.scss similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_item/_variables.scss rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_item/_variables.scss diff --git a/src/plugins/unified_search/public/filter_bar/filter_item/filter_item.scss b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_item/filter_item.scss similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_item/filter_item.scss rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_item/filter_item.scss diff --git a/src/plugins/unified_search/public/filter_bar/filter_item/filter_item.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_item/filter_item.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_item/filter_item.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_item/filter_item.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_item/filter_items.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_item/filter_items.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_item/filter_items.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_item/filter_items.tsx diff --git a/src/plugins/unified_search/public/filter_bar/filter_view/index.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/filter_view/index.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/filter_view/index.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/filter_view/index.tsx diff --git a/src/plugins/unified_search/public/filter_bar/index.tsx b/src/platform/plugins/shared/unified_search/public/filter_bar/index.tsx similarity index 100% rename from src/plugins/unified_search/public/filter_bar/index.tsx rename to src/platform/plugins/shared/unified_search/public/filter_bar/index.tsx diff --git a/src/plugins/unified_search/public/filters_builder/__mock__/filters.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/__mock__/filters.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/__mock__/filters.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/__mock__/filters.ts diff --git a/src/plugins/unified_search/public/filters_builder/__stories__/filter_builder.stories.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/__stories__/filter_builder.stories.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/__stories__/filter_builder.stories.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/__stories__/filter_builder.stories.tsx diff --git a/src/plugins/unified_search/public/filters_builder/assets/add.svg b/src/platform/plugins/shared/unified_search/public/filters_builder/assets/add.svg similarity index 100% rename from src/plugins/unified_search/public/filters_builder/assets/add.svg rename to src/platform/plugins/shared/unified_search/public/filters_builder/assets/add.svg diff --git a/src/plugins/unified_search/public/filters_builder/assets/or.svg b/src/platform/plugins/shared/unified_search/public/filters_builder/assets/or.svg similarity index 100% rename from src/plugins/unified_search/public/filters_builder/assets/or.svg rename to src/platform/plugins/shared/unified_search/public/filters_builder/assets/or.svg diff --git a/src/plugins/unified_search/public/filters_builder/context.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/context.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/context.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/context.ts diff --git a/src/plugins/unified_search/public/filters_builder/filter_group.styles.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_group.styles.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_group.styles.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_group.styles.ts diff --git a/src/plugins/unified_search/public/filters_builder/filter_group.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_group.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_group.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_group.tsx diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/actions/action_strings.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/actions/action_strings.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/actions/action_strings.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/actions/action_strings.ts diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/actions/actions.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/actions/actions.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/actions/actions.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/actions/actions.tsx diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/actions/index.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/actions/index.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/actions/index.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/actions/index.tsx diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/actions/minimised_actions.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/actions/minimised_actions.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/actions/minimised_actions.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/actions/minimised_actions.tsx diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/actions/types.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/actions/types.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/actions/types.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/actions/types.ts diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/field_input.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/field_input.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/field_input.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/field_input.tsx diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/filter_item.styles.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/filter_item.styles.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/filter_item.styles.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/filter_item.styles.ts diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/filter_item.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/filter_item.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/filter_item.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/filter_item.tsx diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/index.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/index.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/index.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/index.ts diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/operator_input.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/operator_input.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/operator_input.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/operator_input.tsx diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/params_editor.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/params_editor.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/params_editor.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/params_editor.tsx diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/params_editor_input.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/params_editor_input.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/params_editor_input.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/params_editor_input.tsx diff --git a/src/plugins/unified_search/public/filters_builder/filter_item/tooltip.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/tooltip.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filter_item/tooltip.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/filter_item/tooltip.tsx diff --git a/src/plugins/unified_search/public/filters_builder/filters_builder.styles.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/filters_builder.styles.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filters_builder.styles.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/filters_builder.styles.ts diff --git a/src/plugins/unified_search/public/filters_builder/filters_builder.tsx b/src/platform/plugins/shared/unified_search/public/filters_builder/filters_builder.tsx similarity index 100% rename from src/plugins/unified_search/public/filters_builder/filters_builder.tsx rename to src/platform/plugins/shared/unified_search/public/filters_builder/filters_builder.tsx diff --git a/src/plugins/unified_search/public/filters_builder/index.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/index.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/index.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/index.ts diff --git a/src/plugins/unified_search/public/filters_builder/reducer.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/reducer.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/reducer.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/reducer.ts diff --git a/src/plugins/unified_search/public/filters_builder/types.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/types.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/types.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/types.ts diff --git a/src/plugins/unified_search/public/filters_builder/utils/filters_builder.test.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/utils/filters_builder.test.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/utils/filters_builder.test.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/utils/filters_builder.test.ts diff --git a/src/plugins/unified_search/public/filters_builder/utils/filters_builder.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/utils/filters_builder.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/utils/filters_builder.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/utils/filters_builder.ts diff --git a/src/plugins/unified_search/public/filters_builder/utils/index.ts b/src/platform/plugins/shared/unified_search/public/filters_builder/utils/index.ts similarity index 100% rename from src/plugins/unified_search/public/filters_builder/utils/index.ts rename to src/platform/plugins/shared/unified_search/public/filters_builder/utils/index.ts diff --git a/src/plugins/unified_search/public/index.scss b/src/platform/plugins/shared/unified_search/public/index.scss similarity index 100% rename from src/plugins/unified_search/public/index.scss rename to src/platform/plugins/shared/unified_search/public/index.scss diff --git a/src/plugins/unified_search/public/index.ts b/src/platform/plugins/shared/unified_search/public/index.ts similarity index 100% rename from src/plugins/unified_search/public/index.ts rename to src/platform/plugins/shared/unified_search/public/index.ts diff --git a/src/plugins/unified_search/public/index_pattern_select/create_index_pattern_select.tsx b/src/platform/plugins/shared/unified_search/public/index_pattern_select/create_index_pattern_select.tsx similarity index 100% rename from src/plugins/unified_search/public/index_pattern_select/create_index_pattern_select.tsx rename to src/platform/plugins/shared/unified_search/public/index_pattern_select/create_index_pattern_select.tsx diff --git a/src/plugins/unified_search/public/index_pattern_select/index.tsx b/src/platform/plugins/shared/unified_search/public/index_pattern_select/index.tsx similarity index 100% rename from src/plugins/unified_search/public/index_pattern_select/index.tsx rename to src/platform/plugins/shared/unified_search/public/index_pattern_select/index.tsx diff --git a/src/plugins/unified_search/public/index_pattern_select/index_pattern_select.tsx b/src/platform/plugins/shared/unified_search/public/index_pattern_select/index_pattern_select.tsx similarity index 100% rename from src/plugins/unified_search/public/index_pattern_select/index_pattern_select.tsx rename to src/platform/plugins/shared/unified_search/public/index_pattern_select/index_pattern_select.tsx diff --git a/src/plugins/unified_search/public/mocks/esql_editor.tsx b/src/platform/plugins/shared/unified_search/public/mocks/esql_editor.tsx similarity index 100% rename from src/plugins/unified_search/public/mocks/esql_editor.tsx rename to src/platform/plugins/shared/unified_search/public/mocks/esql_editor.tsx diff --git a/src/plugins/unified_search/public/mocks/get_stub_filter.ts b/src/platform/plugins/shared/unified_search/public/mocks/get_stub_filter.ts similarity index 100% rename from src/plugins/unified_search/public/mocks/get_stub_filter.ts rename to src/platform/plugins/shared/unified_search/public/mocks/get_stub_filter.ts diff --git a/src/plugins/unified_search/public/mocks/index.ts b/src/platform/plugins/shared/unified_search/public/mocks/index.ts similarity index 100% rename from src/plugins/unified_search/public/mocks/index.ts rename to src/platform/plugins/shared/unified_search/public/mocks/index.ts diff --git a/src/plugins/unified_search/public/mocks/mocks.ts b/src/platform/plugins/shared/unified_search/public/mocks/mocks.ts similarity index 100% rename from src/plugins/unified_search/public/mocks/mocks.ts rename to src/platform/plugins/shared/unified_search/public/mocks/mocks.ts diff --git a/src/plugins/unified_search/public/plugin.ts b/src/platform/plugins/shared/unified_search/public/plugin.ts similarity index 100% rename from src/plugins/unified_search/public/plugin.ts rename to src/platform/plugins/shared/unified_search/public/plugin.ts diff --git a/src/plugins/unified_search/public/query_string_input/add_filter_popover.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/add_filter_popover.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/add_filter_popover.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/add_filter_popover.tsx diff --git a/src/plugins/unified_search/public/query_string_input/esql_menu_popover.test.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/esql_menu_popover.test.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/esql_menu_popover.test.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/esql_menu_popover.test.tsx diff --git a/src/plugins/unified_search/public/query_string_input/esql_menu_popover.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/esql_menu_popover.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/esql_menu_popover.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/esql_menu_popover.tsx diff --git a/src/plugins/unified_search/public/query_string_input/fetch_index_patterns.ts b/src/platform/plugins/shared/unified_search/public/query_string_input/fetch_index_patterns.ts similarity index 100% rename from src/plugins/unified_search/public/query_string_input/fetch_index_patterns.ts rename to src/platform/plugins/shared/unified_search/public/query_string_input/fetch_index_patterns.ts diff --git a/src/plugins/unified_search/public/query_string_input/filter_editor_wrapper.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/filter_editor_wrapper.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/filter_editor_wrapper.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/filter_editor_wrapper.tsx diff --git a/src/plugins/unified_search/public/query_string_input/from_user.test.ts b/src/platform/plugins/shared/unified_search/public/query_string_input/from_user.test.ts similarity index 100% rename from src/plugins/unified_search/public/query_string_input/from_user.test.ts rename to src/platform/plugins/shared/unified_search/public/query_string_input/from_user.test.ts diff --git a/src/plugins/unified_search/public/query_string_input/from_user.ts b/src/platform/plugins/shared/unified_search/public/query_string_input/from_user.ts similarity index 100% rename from src/plugins/unified_search/public/query_string_input/from_user.ts rename to src/platform/plugins/shared/unified_search/public/query_string_input/from_user.ts diff --git a/src/plugins/unified_search/public/query_string_input/get_query_string_input.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/get_query_string_input.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/get_query_string_input.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/get_query_string_input.tsx diff --git a/src/plugins/unified_search/public/query_string_input/index.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/index.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/index.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/index.tsx diff --git a/src/plugins/unified_search/public/query_string_input/language_switcher.test.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/language_switcher.test.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/language_switcher.test.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/language_switcher.test.tsx diff --git a/src/plugins/unified_search/public/query_string_input/language_switcher.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/language_switcher.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/language_switcher.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/language_switcher.tsx diff --git a/src/plugins/unified_search/public/query_string_input/match_pairs.ts b/src/platform/plugins/shared/unified_search/public/query_string_input/match_pairs.ts similarity index 100% rename from src/plugins/unified_search/public/query_string_input/match_pairs.ts rename to src/platform/plugins/shared/unified_search/public/query_string_input/match_pairs.ts diff --git a/src/plugins/unified_search/public/query_string_input/no_data_popover.test.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/no_data_popover.test.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/no_data_popover.test.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/no_data_popover.test.tsx diff --git a/src/plugins/unified_search/public/query_string_input/no_data_popover.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/no_data_popover.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/no_data_popover.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/no_data_popover.tsx diff --git a/src/plugins/unified_search/public/query_string_input/panel_title.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/panel_title.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/panel_title.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/panel_title.tsx diff --git a/src/plugins/unified_search/public/query_string_input/query_bar.scss b/src/platform/plugins/shared/unified_search/public/query_string_input/query_bar.scss similarity index 100% rename from src/plugins/unified_search/public/query_string_input/query_bar.scss rename to src/platform/plugins/shared/unified_search/public/query_string_input/query_bar.scss diff --git a/src/plugins/unified_search/public/query_string_input/query_bar_menu.test.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/query_bar_menu.test.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/query_bar_menu.test.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/query_bar_menu.test.tsx diff --git a/src/plugins/unified_search/public/query_string_input/query_bar_menu.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/query_bar_menu.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/query_bar_menu.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/query_bar_menu.tsx diff --git a/src/plugins/unified_search/public/query_string_input/query_bar_menu_panels.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/query_bar_menu_panels.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/query_bar_menu_panels.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/query_bar_menu_panels.tsx diff --git a/src/plugins/unified_search/public/query_string_input/query_bar_top_row.test.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/query_bar_top_row.test.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/query_bar_top_row.test.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/query_bar_top_row.test.tsx diff --git a/src/plugins/unified_search/public/query_string_input/query_bar_top_row.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/query_bar_top_row.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/query_bar_top_row.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/query_bar_top_row.tsx diff --git a/src/plugins/unified_search/public/query_string_input/query_string_input.scss b/src/platform/plugins/shared/unified_search/public/query_string_input/query_string_input.scss similarity index 100% rename from src/plugins/unified_search/public/query_string_input/query_string_input.scss rename to src/platform/plugins/shared/unified_search/public/query_string_input/query_string_input.scss diff --git a/src/plugins/unified_search/public/query_string_input/query_string_input.test.mocks.ts b/src/platform/plugins/shared/unified_search/public/query_string_input/query_string_input.test.mocks.ts similarity index 100% rename from src/plugins/unified_search/public/query_string_input/query_string_input.test.mocks.ts rename to src/platform/plugins/shared/unified_search/public/query_string_input/query_string_input.test.mocks.ts diff --git a/src/plugins/unified_search/public/query_string_input/query_string_input.test.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/query_string_input.test.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/query_string_input.test.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/query_string_input.test.tsx diff --git a/src/plugins/unified_search/public/query_string_input/query_string_input.tsx b/src/platform/plugins/shared/unified_search/public/query_string_input/query_string_input.tsx similarity index 100% rename from src/plugins/unified_search/public/query_string_input/query_string_input.tsx rename to src/platform/plugins/shared/unified_search/public/query_string_input/query_string_input.tsx diff --git a/src/plugins/unified_search/public/query_string_input/to_user.test.ts b/src/platform/plugins/shared/unified_search/public/query_string_input/to_user.test.ts similarity index 100% rename from src/plugins/unified_search/public/query_string_input/to_user.test.ts rename to src/platform/plugins/shared/unified_search/public/query_string_input/to_user.test.ts diff --git a/src/plugins/unified_search/public/query_string_input/to_user.ts b/src/platform/plugins/shared/unified_search/public/query_string_input/to_user.ts similarity index 100% rename from src/plugins/unified_search/public/query_string_input/to_user.ts rename to src/platform/plugins/shared/unified_search/public/query_string_input/to_user.ts diff --git a/src/plugins/unified_search/public/saved_query_form/index.ts b/src/platform/plugins/shared/unified_search/public/saved_query_form/index.ts similarity index 100% rename from src/plugins/unified_search/public/saved_query_form/index.ts rename to src/platform/plugins/shared/unified_search/public/saved_query_form/index.ts diff --git a/src/plugins/unified_search/public/saved_query_form/save_query_form.tsx b/src/platform/plugins/shared/unified_search/public/saved_query_form/save_query_form.tsx similarity index 100% rename from src/plugins/unified_search/public/saved_query_form/save_query_form.tsx rename to src/platform/plugins/shared/unified_search/public/saved_query_form/save_query_form.tsx diff --git a/src/plugins/unified_search/public/saved_query_management/index.ts b/src/platform/plugins/shared/unified_search/public/saved_query_management/index.ts similarity index 100% rename from src/plugins/unified_search/public/saved_query_management/index.ts rename to src/platform/plugins/shared/unified_search/public/saved_query_management/index.ts diff --git a/src/plugins/unified_search/public/saved_query_management/saved_query_management_list.scss b/src/platform/plugins/shared/unified_search/public/saved_query_management/saved_query_management_list.scss similarity index 100% rename from src/plugins/unified_search/public/saved_query_management/saved_query_management_list.scss rename to src/platform/plugins/shared/unified_search/public/saved_query_management/saved_query_management_list.scss diff --git a/src/plugins/unified_search/public/saved_query_management/saved_query_management_list.test.tsx b/src/platform/plugins/shared/unified_search/public/saved_query_management/saved_query_management_list.test.tsx similarity index 100% rename from src/plugins/unified_search/public/saved_query_management/saved_query_management_list.test.tsx rename to src/platform/plugins/shared/unified_search/public/saved_query_management/saved_query_management_list.test.tsx diff --git a/src/plugins/unified_search/public/saved_query_management/saved_query_management_list.tsx b/src/platform/plugins/shared/unified_search/public/saved_query_management/saved_query_management_list.tsx similarity index 100% rename from src/plugins/unified_search/public/saved_query_management/saved_query_management_list.tsx rename to src/platform/plugins/shared/unified_search/public/saved_query_management/saved_query_management_list.tsx diff --git a/src/plugins/unified_search/public/search_bar/create_search_bar.tsx b/src/platform/plugins/shared/unified_search/public/search_bar/create_search_bar.tsx similarity index 100% rename from src/plugins/unified_search/public/search_bar/create_search_bar.tsx rename to src/platform/plugins/shared/unified_search/public/search_bar/create_search_bar.tsx diff --git a/src/plugins/unified_search/public/search_bar/index.tsx b/src/platform/plugins/shared/unified_search/public/search_bar/index.tsx similarity index 100% rename from src/plugins/unified_search/public/search_bar/index.tsx rename to src/platform/plugins/shared/unified_search/public/search_bar/index.tsx diff --git a/src/plugins/unified_search/public/search_bar/lib/can_show_saved_query.test.ts b/src/platform/plugins/shared/unified_search/public/search_bar/lib/can_show_saved_query.test.ts similarity index 100% rename from src/plugins/unified_search/public/search_bar/lib/can_show_saved_query.test.ts rename to src/platform/plugins/shared/unified_search/public/search_bar/lib/can_show_saved_query.test.ts diff --git a/src/plugins/unified_search/public/search_bar/lib/can_show_saved_query.ts b/src/platform/plugins/shared/unified_search/public/search_bar/lib/can_show_saved_query.ts similarity index 100% rename from src/plugins/unified_search/public/search_bar/lib/can_show_saved_query.ts rename to src/platform/plugins/shared/unified_search/public/search_bar/lib/can_show_saved_query.ts diff --git a/src/plugins/unified_search/public/search_bar/lib/clear_saved_query.test.ts b/src/platform/plugins/shared/unified_search/public/search_bar/lib/clear_saved_query.test.ts similarity index 100% rename from src/plugins/unified_search/public/search_bar/lib/clear_saved_query.test.ts rename to src/platform/plugins/shared/unified_search/public/search_bar/lib/clear_saved_query.test.ts diff --git a/src/plugins/unified_search/public/search_bar/lib/clear_saved_query.ts b/src/platform/plugins/shared/unified_search/public/search_bar/lib/clear_saved_query.ts similarity index 100% rename from src/plugins/unified_search/public/search_bar/lib/clear_saved_query.ts rename to src/platform/plugins/shared/unified_search/public/search_bar/lib/clear_saved_query.ts diff --git a/src/plugins/unified_search/public/search_bar/lib/populate_state_from_saved_query.test.ts b/src/platform/plugins/shared/unified_search/public/search_bar/lib/populate_state_from_saved_query.test.ts similarity index 100% rename from src/plugins/unified_search/public/search_bar/lib/populate_state_from_saved_query.test.ts rename to src/platform/plugins/shared/unified_search/public/search_bar/lib/populate_state_from_saved_query.test.ts diff --git a/src/plugins/unified_search/public/search_bar/lib/populate_state_from_saved_query.ts b/src/platform/plugins/shared/unified_search/public/search_bar/lib/populate_state_from_saved_query.ts similarity index 100% rename from src/plugins/unified_search/public/search_bar/lib/populate_state_from_saved_query.ts rename to src/platform/plugins/shared/unified_search/public/search_bar/lib/populate_state_from_saved_query.ts diff --git a/src/plugins/unified_search/public/search_bar/lib/use_filter_manager.ts b/src/platform/plugins/shared/unified_search/public/search_bar/lib/use_filter_manager.ts similarity index 100% rename from src/plugins/unified_search/public/search_bar/lib/use_filter_manager.ts rename to src/platform/plugins/shared/unified_search/public/search_bar/lib/use_filter_manager.ts diff --git a/src/plugins/unified_search/public/search_bar/lib/use_query_string_manager.ts b/src/platform/plugins/shared/unified_search/public/search_bar/lib/use_query_string_manager.ts similarity index 100% rename from src/plugins/unified_search/public/search_bar/lib/use_query_string_manager.ts rename to src/platform/plugins/shared/unified_search/public/search_bar/lib/use_query_string_manager.ts diff --git a/src/plugins/unified_search/public/search_bar/lib/use_saved_query.ts b/src/platform/plugins/shared/unified_search/public/search_bar/lib/use_saved_query.ts similarity index 100% rename from src/plugins/unified_search/public/search_bar/lib/use_saved_query.ts rename to src/platform/plugins/shared/unified_search/public/search_bar/lib/use_saved_query.ts diff --git a/src/plugins/unified_search/public/search_bar/lib/use_timefilter.ts b/src/platform/plugins/shared/unified_search/public/search_bar/lib/use_timefilter.ts similarity index 100% rename from src/plugins/unified_search/public/search_bar/lib/use_timefilter.ts rename to src/platform/plugins/shared/unified_search/public/search_bar/lib/use_timefilter.ts diff --git a/src/plugins/unified_search/public/search_bar/search_bar.styles.ts b/src/platform/plugins/shared/unified_search/public/search_bar/search_bar.styles.ts similarity index 100% rename from src/plugins/unified_search/public/search_bar/search_bar.styles.ts rename to src/platform/plugins/shared/unified_search/public/search_bar/search_bar.styles.ts diff --git a/src/plugins/unified_search/public/search_bar/search_bar.test.tsx b/src/platform/plugins/shared/unified_search/public/search_bar/search_bar.test.tsx similarity index 100% rename from src/plugins/unified_search/public/search_bar/search_bar.test.tsx rename to src/platform/plugins/shared/unified_search/public/search_bar/search_bar.test.tsx diff --git a/src/plugins/unified_search/public/search_bar/search_bar.tsx b/src/platform/plugins/shared/unified_search/public/search_bar/search_bar.tsx similarity index 100% rename from src/plugins/unified_search/public/search_bar/search_bar.tsx rename to src/platform/plugins/shared/unified_search/public/search_bar/search_bar.tsx diff --git a/src/plugins/unified_search/public/services.ts b/src/platform/plugins/shared/unified_search/public/services.ts similarity index 100% rename from src/plugins/unified_search/public/services.ts rename to src/platform/plugins/shared/unified_search/public/services.ts diff --git a/src/plugins/unified_search/public/triggers/index.ts b/src/platform/plugins/shared/unified_search/public/triggers/index.ts similarity index 100% rename from src/plugins/unified_search/public/triggers/index.ts rename to src/platform/plugins/shared/unified_search/public/triggers/index.ts diff --git a/src/plugins/unified_search/public/triggers/update_filter_references_trigger.ts b/src/platform/plugins/shared/unified_search/public/triggers/update_filter_references_trigger.ts similarity index 100% rename from src/plugins/unified_search/public/triggers/update_filter_references_trigger.ts rename to src/platform/plugins/shared/unified_search/public/triggers/update_filter_references_trigger.ts diff --git a/src/plugins/unified_search/public/typeahead/__snapshots__/suggestion_component.test.tsx.snap b/src/platform/plugins/shared/unified_search/public/typeahead/__snapshots__/suggestion_component.test.tsx.snap similarity index 100% rename from src/plugins/unified_search/public/typeahead/__snapshots__/suggestion_component.test.tsx.snap rename to src/platform/plugins/shared/unified_search/public/typeahead/__snapshots__/suggestion_component.test.tsx.snap diff --git a/src/plugins/unified_search/public/typeahead/_suggestion.scss b/src/platform/plugins/shared/unified_search/public/typeahead/_suggestion.scss similarity index 100% rename from src/plugins/unified_search/public/typeahead/_suggestion.scss rename to src/platform/plugins/shared/unified_search/public/typeahead/_suggestion.scss diff --git a/src/plugins/unified_search/public/typeahead/constants.ts b/src/platform/plugins/shared/unified_search/public/typeahead/constants.ts similarity index 100% rename from src/plugins/unified_search/public/typeahead/constants.ts rename to src/platform/plugins/shared/unified_search/public/typeahead/constants.ts diff --git a/src/plugins/unified_search/public/typeahead/index.tsx b/src/platform/plugins/shared/unified_search/public/typeahead/index.tsx similarity index 100% rename from src/plugins/unified_search/public/typeahead/index.tsx rename to src/platform/plugins/shared/unified_search/public/typeahead/index.tsx diff --git a/src/plugins/unified_search/public/typeahead/suggestion_component.test.tsx b/src/platform/plugins/shared/unified_search/public/typeahead/suggestion_component.test.tsx similarity index 100% rename from src/plugins/unified_search/public/typeahead/suggestion_component.test.tsx rename to src/platform/plugins/shared/unified_search/public/typeahead/suggestion_component.test.tsx diff --git a/src/plugins/unified_search/public/typeahead/suggestion_component.tsx b/src/platform/plugins/shared/unified_search/public/typeahead/suggestion_component.tsx similarity index 100% rename from src/plugins/unified_search/public/typeahead/suggestion_component.tsx rename to src/platform/plugins/shared/unified_search/public/typeahead/suggestion_component.tsx diff --git a/src/plugins/unified_search/public/typeahead/suggestions_component.test.tsx b/src/platform/plugins/shared/unified_search/public/typeahead/suggestions_component.test.tsx similarity index 100% rename from src/plugins/unified_search/public/typeahead/suggestions_component.test.tsx rename to src/platform/plugins/shared/unified_search/public/typeahead/suggestions_component.test.tsx diff --git a/src/plugins/unified_search/public/typeahead/suggestions_component.tsx b/src/platform/plugins/shared/unified_search/public/typeahead/suggestions_component.tsx similarity index 100% rename from src/plugins/unified_search/public/typeahead/suggestions_component.tsx rename to src/platform/plugins/shared/unified_search/public/typeahead/suggestions_component.tsx diff --git a/src/plugins/unified_search/public/typeahead/types.ts b/src/platform/plugins/shared/unified_search/public/typeahead/types.ts similarity index 100% rename from src/plugins/unified_search/public/typeahead/types.ts rename to src/platform/plugins/shared/unified_search/public/typeahead/types.ts diff --git a/src/plugins/unified_search/public/types.ts b/src/platform/plugins/shared/unified_search/public/types.ts similarity index 100% rename from src/plugins/unified_search/public/types.ts rename to src/platform/plugins/shared/unified_search/public/types.ts diff --git a/src/plugins/unified_search/public/utils/combined_filter.ts b/src/platform/plugins/shared/unified_search/public/utils/combined_filter.ts similarity index 100% rename from src/plugins/unified_search/public/utils/combined_filter.ts rename to src/platform/plugins/shared/unified_search/public/utils/combined_filter.ts diff --git a/src/plugins/unified_search/public/utils/index.ts b/src/platform/plugins/shared/unified_search/public/utils/index.ts similarity index 100% rename from src/plugins/unified_search/public/utils/index.ts rename to src/platform/plugins/shared/unified_search/public/utils/index.ts diff --git a/src/plugins/unified_search/public/utils/on_raf.ts b/src/platform/plugins/shared/unified_search/public/utils/on_raf.ts similarity index 100% rename from src/plugins/unified_search/public/utils/on_raf.ts rename to src/platform/plugins/shared/unified_search/public/utils/on_raf.ts diff --git a/src/plugins/unified_search/public/utils/shallow_equal.ts b/src/platform/plugins/shared/unified_search/public/utils/shallow_equal.ts similarity index 100% rename from src/plugins/unified_search/public/utils/shallow_equal.ts rename to src/platform/plugins/shared/unified_search/public/utils/shallow_equal.ts diff --git a/src/plugins/unified_search/server/autocomplete/autocomplete_service.ts b/src/platform/plugins/shared/unified_search/server/autocomplete/autocomplete_service.ts similarity index 100% rename from src/plugins/unified_search/server/autocomplete/autocomplete_service.ts rename to src/platform/plugins/shared/unified_search/server/autocomplete/autocomplete_service.ts diff --git a/src/plugins/unified_search/server/autocomplete/index.ts b/src/platform/plugins/shared/unified_search/server/autocomplete/index.ts similarity index 100% rename from src/plugins/unified_search/server/autocomplete/index.ts rename to src/platform/plugins/shared/unified_search/server/autocomplete/index.ts diff --git a/src/plugins/unified_search/server/autocomplete/routes.ts b/src/platform/plugins/shared/unified_search/server/autocomplete/routes.ts similarity index 100% rename from src/plugins/unified_search/server/autocomplete/routes.ts rename to src/platform/plugins/shared/unified_search/server/autocomplete/routes.ts diff --git a/src/plugins/unified_search/server/autocomplete/terms_agg.test.ts b/src/platform/plugins/shared/unified_search/server/autocomplete/terms_agg.test.ts similarity index 100% rename from src/plugins/unified_search/server/autocomplete/terms_agg.test.ts rename to src/platform/plugins/shared/unified_search/server/autocomplete/terms_agg.test.ts diff --git a/src/plugins/unified_search/server/autocomplete/terms_agg.ts b/src/platform/plugins/shared/unified_search/server/autocomplete/terms_agg.ts similarity index 100% rename from src/plugins/unified_search/server/autocomplete/terms_agg.ts rename to src/platform/plugins/shared/unified_search/server/autocomplete/terms_agg.ts diff --git a/src/plugins/unified_search/server/autocomplete/terms_enum.test.ts b/src/platform/plugins/shared/unified_search/server/autocomplete/terms_enum.test.ts similarity index 100% rename from src/plugins/unified_search/server/autocomplete/terms_enum.test.ts rename to src/platform/plugins/shared/unified_search/server/autocomplete/terms_enum.test.ts diff --git a/src/plugins/unified_search/server/autocomplete/terms_enum.ts b/src/platform/plugins/shared/unified_search/server/autocomplete/terms_enum.ts similarity index 100% rename from src/plugins/unified_search/server/autocomplete/terms_enum.ts rename to src/platform/plugins/shared/unified_search/server/autocomplete/terms_enum.ts diff --git a/src/plugins/unified_search/server/autocomplete/value_suggestions_route.ts b/src/platform/plugins/shared/unified_search/server/autocomplete/value_suggestions_route.ts similarity index 100% rename from src/plugins/unified_search/server/autocomplete/value_suggestions_route.ts rename to src/platform/plugins/shared/unified_search/server/autocomplete/value_suggestions_route.ts diff --git a/src/plugins/unified_search/server/config.ts b/src/platform/plugins/shared/unified_search/server/config.ts similarity index 100% rename from src/plugins/unified_search/server/config.ts rename to src/platform/plugins/shared/unified_search/server/config.ts diff --git a/src/plugins/unified_search/server/config_deprecations.test.ts b/src/platform/plugins/shared/unified_search/server/config_deprecations.test.ts similarity index 100% rename from src/plugins/unified_search/server/config_deprecations.test.ts rename to src/platform/plugins/shared/unified_search/server/config_deprecations.test.ts diff --git a/src/plugins/unified_search/server/config_deprecations.ts b/src/platform/plugins/shared/unified_search/server/config_deprecations.ts similarity index 100% rename from src/plugins/unified_search/server/config_deprecations.ts rename to src/platform/plugins/shared/unified_search/server/config_deprecations.ts diff --git a/src/plugins/unified_search/server/data_views/index.ts b/src/platform/plugins/shared/unified_search/server/data_views/index.ts similarity index 100% rename from src/plugins/unified_search/server/data_views/index.ts rename to src/platform/plugins/shared/unified_search/server/data_views/index.ts diff --git a/src/plugins/unified_search/server/index.ts b/src/platform/plugins/shared/unified_search/server/index.ts similarity index 100% rename from src/plugins/unified_search/server/index.ts rename to src/platform/plugins/shared/unified_search/server/index.ts diff --git a/src/plugins/unified_search/server/mocks.ts b/src/platform/plugins/shared/unified_search/server/mocks.ts similarity index 100% rename from src/plugins/unified_search/server/mocks.ts rename to src/platform/plugins/shared/unified_search/server/mocks.ts diff --git a/src/plugins/unified_search/server/plugin.ts b/src/platform/plugins/shared/unified_search/server/plugin.ts similarity index 100% rename from src/plugins/unified_search/server/plugin.ts rename to src/platform/plugins/shared/unified_search/server/plugin.ts diff --git a/src/plugins/unified_search/tsconfig.json b/src/platform/plugins/shared/unified_search/tsconfig.json similarity index 96% rename from src/plugins/unified_search/tsconfig.json rename to src/platform/plugins/shared/unified_search/tsconfig.json index f5d2e6ff53c7a..31284a5910538 100644 --- a/src/plugins/unified_search/tsconfig.json +++ b/src/platform/plugins/shared/unified_search/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/vis_types/timeseries/common/__mocks__/index_patterns_utils.ts b/src/platform/plugins/shared/vis_types/timeseries/common/__mocks__/index_patterns_utils.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/__mocks__/index_patterns_utils.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/__mocks__/index_patterns_utils.ts diff --git a/src/plugins/vis_types/timeseries/common/agg_utils.test.ts b/src/platform/plugins/shared/vis_types/timeseries/common/agg_utils.test.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/agg_utils.test.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/agg_utils.test.ts diff --git a/src/plugins/vis_types/timeseries/common/agg_utils.ts b/src/platform/plugins/shared/vis_types/timeseries/common/agg_utils.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/agg_utils.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/agg_utils.ts diff --git a/src/plugins/vis_types/timeseries/common/basic_aggs.ts b/src/platform/plugins/shared/vis_types/timeseries/common/basic_aggs.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/basic_aggs.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/basic_aggs.ts diff --git a/src/plugins/vis_types/timeseries/common/calculate_label.test.ts b/src/platform/plugins/shared/vis_types/timeseries/common/calculate_label.test.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/calculate_label.test.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/calculate_label.test.ts diff --git a/src/plugins/vis_types/timeseries/common/calculate_label.ts b/src/platform/plugins/shared/vis_types/timeseries/common/calculate_label.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/calculate_label.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/calculate_label.ts diff --git a/src/plugins/vis_types/timeseries/common/check_ui_restrictions.ts b/src/platform/plugins/shared/vis_types/timeseries/common/check_ui_restrictions.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/check_ui_restrictions.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/check_ui_restrictions.ts diff --git a/src/plugins/vis_types/timeseries/common/constants.ts b/src/platform/plugins/shared/vis_types/timeseries/common/constants.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/constants.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/constants.ts diff --git a/src/plugins/vis_types/timeseries/common/empty_label.test.ts b/src/platform/plugins/shared/vis_types/timeseries/common/empty_label.test.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/empty_label.test.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/empty_label.test.ts diff --git a/src/plugins/vis_types/timeseries/common/empty_label.ts b/src/platform/plugins/shared/vis_types/timeseries/common/empty_label.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/empty_label.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/empty_label.ts diff --git a/src/plugins/vis_types/timeseries/common/enums/index.ts b/src/platform/plugins/shared/vis_types/timeseries/common/enums/index.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/enums/index.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/enums/index.ts diff --git a/src/plugins/vis_types/timeseries/common/enums/metric_types.ts b/src/platform/plugins/shared/vis_types/timeseries/common/enums/metric_types.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/enums/metric_types.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/enums/metric_types.ts diff --git a/src/plugins/vis_types/timeseries/common/enums/model_types.ts b/src/platform/plugins/shared/vis_types/timeseries/common/enums/model_types.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/enums/model_types.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/enums/model_types.ts diff --git a/src/plugins/vis_types/timeseries/common/enums/panel_types.ts b/src/platform/plugins/shared/vis_types/timeseries/common/enums/panel_types.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/enums/panel_types.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/enums/panel_types.ts diff --git a/src/plugins/vis_types/timeseries/common/enums/timerange_data_modes.ts b/src/platform/plugins/shared/vis_types/timeseries/common/enums/timerange_data_modes.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/enums/timerange_data_modes.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/enums/timerange_data_modes.ts diff --git a/src/plugins/vis_types/timeseries/common/errors.ts b/src/platform/plugins/shared/vis_types/timeseries/common/errors.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/errors.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/errors.ts diff --git a/src/plugins/vis_types/timeseries/common/fields_utils.test.ts b/src/platform/plugins/shared/vis_types/timeseries/common/fields_utils.test.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/fields_utils.test.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/fields_utils.test.ts diff --git a/src/plugins/vis_types/timeseries/common/fields_utils.ts b/src/platform/plugins/shared/vis_types/timeseries/common/fields_utils.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/fields_utils.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/fields_utils.ts diff --git a/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts b/src/platform/plugins/shared/vis_types/timeseries/common/index_patterns_utils.test.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/index_patterns_utils.test.ts diff --git a/src/plugins/vis_types/timeseries/common/index_patterns_utils.ts b/src/platform/plugins/shared/vis_types/timeseries/common/index_patterns_utils.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/index_patterns_utils.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/index_patterns_utils.ts diff --git a/src/plugins/vis_types/timeseries/common/interval_regexp.test.ts b/src/platform/plugins/shared/vis_types/timeseries/common/interval_regexp.test.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/interval_regexp.test.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/interval_regexp.test.ts diff --git a/src/plugins/vis_types/timeseries/common/interval_regexp.ts b/src/platform/plugins/shared/vis_types/timeseries/common/interval_regexp.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/interval_regexp.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/interval_regexp.ts diff --git a/src/plugins/vis_types/timeseries/common/last_value_utils.test.ts b/src/platform/plugins/shared/vis_types/timeseries/common/last_value_utils.test.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/last_value_utils.test.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/last_value_utils.test.ts diff --git a/src/plugins/vis_types/timeseries/common/last_value_utils.ts b/src/platform/plugins/shared/vis_types/timeseries/common/last_value_utils.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/last_value_utils.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/last_value_utils.ts diff --git a/src/plugins/vis_types/timeseries/common/operators_utils.test.ts b/src/platform/plugins/shared/vis_types/timeseries/common/operators_utils.test.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/operators_utils.test.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/operators_utils.test.ts diff --git a/src/plugins/vis_types/timeseries/common/operators_utils.ts b/src/platform/plugins/shared/vis_types/timeseries/common/operators_utils.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/operators_utils.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/operators_utils.ts diff --git a/src/plugins/vis_types/timeseries/common/to_percentile_number.ts b/src/platform/plugins/shared/vis_types/timeseries/common/to_percentile_number.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/to_percentile_number.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/to_percentile_number.ts diff --git a/src/plugins/vis_types/timeseries/common/types/color_rules.ts b/src/platform/plugins/shared/vis_types/timeseries/common/types/color_rules.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/types/color_rules.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/types/color_rules.ts diff --git a/src/plugins/vis_types/timeseries/common/types/index.ts b/src/platform/plugins/shared/vis_types/timeseries/common/types/index.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/types/index.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/types/index.ts diff --git a/src/plugins/vis_types/timeseries/common/types/panel_model.ts b/src/platform/plugins/shared/vis_types/timeseries/common/types/panel_model.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/types/panel_model.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/types/panel_model.ts diff --git a/src/plugins/vis_types/timeseries/common/types/vis_data.ts b/src/platform/plugins/shared/vis_types/timeseries/common/types/vis_data.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/types/vis_data.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/types/vis_data.ts diff --git a/src/plugins/vis_types/timeseries/common/ui_restrictions.ts b/src/platform/plugins/shared/vis_types/timeseries/common/ui_restrictions.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/ui_restrictions.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/ui_restrictions.ts diff --git a/src/plugins/vis_types/timeseries/common/validate_interval.ts b/src/platform/plugins/shared/vis_types/timeseries/common/validate_interval.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/validate_interval.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/validate_interval.ts diff --git a/src/plugins/vis_types/timeseries/common/vis_data_utils.ts b/src/platform/plugins/shared/vis_types/timeseries/common/vis_data_utils.ts similarity index 100% rename from src/plugins/vis_types/timeseries/common/vis_data_utils.ts rename to src/platform/plugins/shared/vis_types/timeseries/common/vis_data_utils.ts diff --git a/src/platform/plugins/shared/vis_types/timeseries/jest.config.js b/src/platform/plugins/shared/vis_types/timeseries/jest.config.js new file mode 100644 index 0000000000000..887cc1c8d2619 --- /dev/null +++ b/src/platform/plugins/shared/vis_types/timeseries/jest.config.js @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/shared/vis_types/timeseries'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/vis_types/timeseries', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/vis_types/timeseries/{common,public,server}/**/*.{js,ts,tsx}', + ], +}; diff --git a/src/plugins/vis_types/timeseries/kibana.jsonc b/src/platform/plugins/shared/vis_types/timeseries/kibana.jsonc similarity index 100% rename from src/plugins/vis_types/timeseries/kibana.jsonc rename to src/platform/plugins/shared/vis_types/timeseries/kibana.jsonc diff --git a/src/plugins/vis_types/timeseries/public/application/components/_annotations_editor.scss b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/_annotations_editor.scss similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/_annotations_editor.scss rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/_annotations_editor.scss diff --git a/src/plugins/vis_types/timeseries/public/application/components/_error.scss b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/_error.scss similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/_error.scss rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/_error.scss diff --git a/src/plugins/vis_types/timeseries/public/application/components/_markdown_editor.scss b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/_markdown_editor.scss similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/_markdown_editor.scss rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/_markdown_editor.scss diff --git a/src/plugins/vis_types/timeseries/public/application/components/_series_editor.scss b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/_series_editor.scss similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/_series_editor.scss rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/_series_editor.scss diff --git a/src/plugins/vis_types/timeseries/public/application/components/_vis_editor_visualization.scss b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/_vis_editor_visualization.scss similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/_vis_editor_visualization.scss rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/_vis_editor_visualization.scss diff --git a/src/plugins/vis_types/timeseries/public/application/components/_vis_with_splits.scss b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/_vis_with_splits.scss similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/_vis_with_splits.scss rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/_vis_with_splits.scss diff --git a/src/plugins/vis_types/timeseries/public/application/components/add_delete_buttons.test.tsx b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/add_delete_buttons.test.tsx similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/add_delete_buttons.test.tsx rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/add_delete_buttons.test.tsx diff --git a/src/plugins/vis_types/timeseries/public/application/components/add_delete_buttons.tsx b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/add_delete_buttons.tsx similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/add_delete_buttons.tsx rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/add_delete_buttons.tsx diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/agg.tsx b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/agg.tsx similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/agg.tsx rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/agg.tsx diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/agg_row.tsx b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/agg_row.tsx similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/agg_row.tsx rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/agg_row.tsx diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/agg_select.test.tsx b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/agg_select.test.tsx similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/agg_select.test.tsx rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/agg_select.test.tsx diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/agg_select.tsx b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/agg_select.tsx similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/agg_select.tsx rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/agg_select.tsx diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/aggs.tsx b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/aggs.tsx similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/aggs.tsx rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/aggs.tsx diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/calculation.js b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/calculation.js similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/calculation.js rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/calculation.js diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/cumulative_sum.js b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/cumulative_sum.js similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/cumulative_sum.js rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/cumulative_sum.js diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/derivative.js b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/derivative.js similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/derivative.js rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/derivative.js diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/field_select/field_select.tsx b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/field_select/field_select.tsx similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/field_select/field_select.tsx rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/field_select/field_select.tsx diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/field_select/field_select_item.tsx b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/field_select/field_select_item.tsx similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/field_select/field_select_item.tsx rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/field_select/field_select_item.tsx diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/field_select/field_select_utils.ts b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/field_select/field_select_utils.ts similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/field_select/field_select_utils.ts rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/field_select/field_select_utils.ts diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/field_select/index.ts b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/field_select/index.ts similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/field_select/index.ts rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/field_select/index.ts diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/field_select/multi_field_select.tsx b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/field_select/multi_field_select.tsx similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/field_select/multi_field_select.tsx rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/field_select/multi_field_select.tsx diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/filter_ratio.js b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/filter_ratio.js similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/filter_ratio.js rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/filter_ratio.js diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/filter_ratio.test.js b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/filter_ratio.test.js similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/filter_ratio.test.js rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/filter_ratio.test.js diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/histogram_support.test.js b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/histogram_support.test.js similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/histogram_support.test.js rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/histogram_support.test.js diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/invalid_agg.tsx b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/invalid_agg.tsx similarity index 100% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/invalid_agg.tsx rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/invalid_agg.tsx diff --git a/src/plugins/vis_types/timeseries/public/application/components/aggs/math.js b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/math.js similarity index 98% rename from src/plugins/vis_types/timeseries/public/application/components/aggs/math.js rename to src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/math.js index be08de8783596..40c277516818a 100644 --- a/src/plugins/vis_types/timeseries/public/application/components/aggs/math.js +++ b/src/platform/plugins/shared/vis_types/timeseries/public/application/components/aggs/math.js @@ -116,7 +116,7 @@ export function MathAgg(props) { values={{ link: ( /src/platform/plugins/shared/visualizations'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/visualizations', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/visualizations/{common,public,server}/**/*.{js,ts,tsx}', + ], +}; diff --git a/src/plugins/visualizations/kibana.jsonc b/src/platform/plugins/shared/visualizations/kibana.jsonc similarity index 100% rename from src/plugins/visualizations/kibana.jsonc rename to src/platform/plugins/shared/visualizations/kibana.jsonc diff --git a/src/plugins/visualizations/public/actions/add_agg_vis_action.test.ts b/src/platform/plugins/shared/visualizations/public/actions/add_agg_vis_action.test.ts similarity index 100% rename from src/plugins/visualizations/public/actions/add_agg_vis_action.test.ts rename to src/platform/plugins/shared/visualizations/public/actions/add_agg_vis_action.test.ts diff --git a/src/plugins/visualizations/public/actions/add_agg_vis_action.ts b/src/platform/plugins/shared/visualizations/public/actions/add_agg_vis_action.ts similarity index 100% rename from src/plugins/visualizations/public/actions/add_agg_vis_action.ts rename to src/platform/plugins/shared/visualizations/public/actions/add_agg_vis_action.ts diff --git a/src/plugins/visualizations/public/actions/edit_in_lens_action.tsx b/src/platform/plugins/shared/visualizations/public/actions/edit_in_lens_action.tsx similarity index 100% rename from src/plugins/visualizations/public/actions/edit_in_lens_action.tsx rename to src/platform/plugins/shared/visualizations/public/actions/edit_in_lens_action.tsx diff --git a/src/plugins/visualizations/public/components/__snapshots__/visualization_noresults.test.js.snap b/src/platform/plugins/shared/visualizations/public/components/__snapshots__/visualization_noresults.test.js.snap similarity index 100% rename from src/plugins/visualizations/public/components/__snapshots__/visualization_noresults.test.js.snap rename to src/platform/plugins/shared/visualizations/public/components/__snapshots__/visualization_noresults.test.js.snap diff --git a/src/plugins/visualizations/public/components/index.ts b/src/platform/plugins/shared/visualizations/public/components/index.ts similarity index 100% rename from src/plugins/visualizations/public/components/index.ts rename to src/platform/plugins/shared/visualizations/public/components/index.ts diff --git a/src/plugins/visualizations/public/components/visualization_container.tsx b/src/platform/plugins/shared/visualizations/public/components/visualization_container.tsx similarity index 100% rename from src/plugins/visualizations/public/components/visualization_container.tsx rename to src/platform/plugins/shared/visualizations/public/components/visualization_container.tsx diff --git a/src/plugins/visualizations/public/components/visualization_error.tsx b/src/platform/plugins/shared/visualizations/public/components/visualization_error.tsx similarity index 100% rename from src/plugins/visualizations/public/components/visualization_error.tsx rename to src/platform/plugins/shared/visualizations/public/components/visualization_error.tsx diff --git a/src/plugins/visualizations/public/components/visualization_missed_saved_object_error.tsx b/src/platform/plugins/shared/visualizations/public/components/visualization_missed_saved_object_error.tsx similarity index 100% rename from src/plugins/visualizations/public/components/visualization_missed_saved_object_error.tsx rename to src/platform/plugins/shared/visualizations/public/components/visualization_missed_saved_object_error.tsx diff --git a/src/plugins/visualizations/public/components/visualization_noresults.test.js b/src/platform/plugins/shared/visualizations/public/components/visualization_noresults.test.js similarity index 100% rename from src/plugins/visualizations/public/components/visualization_noresults.test.js rename to src/platform/plugins/shared/visualizations/public/components/visualization_noresults.test.js diff --git a/src/plugins/visualizations/public/components/visualization_noresults.tsx b/src/platform/plugins/shared/visualizations/public/components/visualization_noresults.tsx similarity index 100% rename from src/plugins/visualizations/public/components/visualization_noresults.tsx rename to src/platform/plugins/shared/visualizations/public/components/visualization_noresults.tsx diff --git a/src/plugins/visualizations/public/content_management/index.ts b/src/platform/plugins/shared/visualizations/public/content_management/index.ts similarity index 100% rename from src/plugins/visualizations/public/content_management/index.ts rename to src/platform/plugins/shared/visualizations/public/content_management/index.ts diff --git a/src/plugins/visualizations/public/content_management/visualization_client.ts b/src/platform/plugins/shared/visualizations/public/content_management/visualization_client.ts similarity index 100% rename from src/plugins/visualizations/public/content_management/visualization_client.ts rename to src/platform/plugins/shared/visualizations/public/content_management/visualization_client.ts diff --git a/src/plugins/visualizations/public/convert_to_lens/datasource.ts b/src/platform/plugins/shared/visualizations/public/convert_to_lens/datasource.ts similarity index 100% rename from src/plugins/visualizations/public/convert_to_lens/datasource.ts rename to src/platform/plugins/shared/visualizations/public/convert_to_lens/datasource.ts diff --git a/src/plugins/visualizations/public/convert_to_lens/index.ts b/src/platform/plugins/shared/visualizations/public/convert_to_lens/index.ts similarity index 100% rename from src/plugins/visualizations/public/convert_to_lens/index.ts rename to src/platform/plugins/shared/visualizations/public/convert_to_lens/index.ts diff --git a/src/plugins/visualizations/public/convert_to_lens/schemas.test.ts b/src/platform/plugins/shared/visualizations/public/convert_to_lens/schemas.test.ts similarity index 100% rename from src/plugins/visualizations/public/convert_to_lens/schemas.test.ts rename to src/platform/plugins/shared/visualizations/public/convert_to_lens/schemas.test.ts diff --git a/src/plugins/visualizations/public/convert_to_lens/schemas.ts b/src/platform/plugins/shared/visualizations/public/convert_to_lens/schemas.ts similarity index 100% rename from src/plugins/visualizations/public/convert_to_lens/schemas.ts rename to src/platform/plugins/shared/visualizations/public/convert_to_lens/schemas.ts diff --git a/src/plugins/visualizations/public/convert_to_lens/utils.test.ts b/src/platform/plugins/shared/visualizations/public/convert_to_lens/utils.test.ts similarity index 100% rename from src/plugins/visualizations/public/convert_to_lens/utils.test.ts rename to src/platform/plugins/shared/visualizations/public/convert_to_lens/utils.test.ts diff --git a/src/plugins/visualizations/public/convert_to_lens/utils.ts b/src/platform/plugins/shared/visualizations/public/convert_to_lens/utils.ts similarity index 100% rename from src/plugins/visualizations/public/convert_to_lens/utils.ts rename to src/platform/plugins/shared/visualizations/public/convert_to_lens/utils.ts diff --git a/src/plugins/visualizations/public/embeddable/create_vis_instance.ts b/src/platform/plugins/shared/visualizations/public/embeddable/create_vis_instance.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/create_vis_instance.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/create_vis_instance.ts diff --git a/src/plugins/visualizations/public/embeddable/events.ts b/src/platform/plugins/shared/visualizations/public/embeddable/events.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/events.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/events.ts diff --git a/src/plugins/visualizations/public/embeddable/get_expression_renderer_props.ts b/src/platform/plugins/shared/visualizations/public/embeddable/get_expression_renderer_props.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/get_expression_renderer_props.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/get_expression_renderer_props.ts diff --git a/src/plugins/visualizations/public/embeddable/get_visualize_embeddable_factory_lazy.ts b/src/platform/plugins/shared/visualizations/public/embeddable/get_visualize_embeddable_factory_lazy.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/get_visualize_embeddable_factory_lazy.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/get_visualize_embeddable_factory_lazy.ts diff --git a/src/plugins/visualizations/public/embeddable/index.ts b/src/platform/plugins/shared/visualizations/public/embeddable/index.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/index.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/index.ts diff --git a/src/plugins/visualizations/public/embeddable/initialize_edit_api.ts b/src/platform/plugins/shared/visualizations/public/embeddable/initialize_edit_api.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/initialize_edit_api.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/initialize_edit_api.ts diff --git a/src/plugins/visualizations/public/embeddable/interfaces/has_expression_variables.ts b/src/platform/plugins/shared/visualizations/public/embeddable/interfaces/has_expression_variables.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/interfaces/has_expression_variables.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/interfaces/has_expression_variables.ts diff --git a/src/plugins/visualizations/public/embeddable/interfaces/has_visualize_config.ts b/src/platform/plugins/shared/visualizations/public/embeddable/interfaces/has_visualize_config.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/interfaces/has_visualize_config.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/interfaces/has_visualize_config.ts diff --git a/src/plugins/visualizations/public/embeddable/save_to_library.ts b/src/platform/plugins/shared/visualizations/public/embeddable/save_to_library.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/save_to_library.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/save_to_library.ts diff --git a/src/plugins/visualizations/public/embeddable/state.test.ts b/src/platform/plugins/shared/visualizations/public/embeddable/state.test.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/state.test.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/state.test.ts diff --git a/src/plugins/visualizations/public/embeddable/state.ts b/src/platform/plugins/shared/visualizations/public/embeddable/state.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/state.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/state.ts diff --git a/src/plugins/visualizations/public/embeddable/to_ast.ts b/src/platform/plugins/shared/visualizations/public/embeddable/to_ast.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/to_ast.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/to_ast.ts diff --git a/src/plugins/visualizations/public/embeddable/types.ts b/src/platform/plugins/shared/visualizations/public/embeddable/types.ts similarity index 100% rename from src/plugins/visualizations/public/embeddable/types.ts rename to src/platform/plugins/shared/visualizations/public/embeddable/types.ts diff --git a/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx b/src/platform/plugins/shared/visualizations/public/embeddable/visualize_embeddable.tsx similarity index 100% rename from src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx rename to src/platform/plugins/shared/visualizations/public/embeddable/visualize_embeddable.tsx diff --git a/src/plugins/visualizations/public/index.ts b/src/platform/plugins/shared/visualizations/public/index.ts similarity index 100% rename from src/plugins/visualizations/public/index.ts rename to src/platform/plugins/shared/visualizations/public/index.ts diff --git a/src/plugins/visualizations/public/legacy/embeddable/attribute_service.tsx b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/attribute_service.tsx similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/attribute_service.tsx rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/attribute_service.tsx diff --git a/src/plugins/visualizations/public/legacy/embeddable/constants.ts b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/constants.ts similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/constants.ts rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/constants.ts diff --git a/src/plugins/visualizations/public/legacy/embeddable/create_vis_embeddable_from_object.ts b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/create_vis_embeddable_from_object.ts similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/create_vis_embeddable_from_object.ts rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/create_vis_embeddable_from_object.ts diff --git a/src/plugins/visualizations/public/legacy/embeddable/diff_embeddable_input.test.ts b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/diff_embeddable_input.test.ts similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/diff_embeddable_input.test.ts rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/diff_embeddable_input.test.ts diff --git a/src/plugins/visualizations/public/legacy/embeddable/diff_embeddable_input.ts b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/diff_embeddable_input.ts similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/diff_embeddable_input.ts rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/diff_embeddable_input.ts diff --git a/src/plugins/visualizations/public/legacy/embeddable/embeddable.tsx b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/embeddable.tsx similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/embeddable.tsx rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/embeddable.tsx diff --git a/src/plugins/visualizations/public/legacy/embeddable/embeddables.scss b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/embeddables.scss similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/embeddables.scss rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/embeddables.scss diff --git a/src/plugins/visualizations/public/legacy/embeddable/error_embeddable.scss b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/error_embeddable.scss similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/error_embeddable.scss rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/error_embeddable.scss diff --git a/src/plugins/visualizations/public/legacy/embeddable/error_embeddable.tsx b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/error_embeddable.tsx similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/error_embeddable.tsx rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/error_embeddable.tsx diff --git a/src/plugins/visualizations/public/legacy/embeddable/i_embeddable.ts b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/i_embeddable.ts similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/i_embeddable.ts rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/i_embeddable.ts diff --git a/src/plugins/visualizations/public/legacy/embeddable/index.ts b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/index.ts similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/index.ts rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/index.ts diff --git a/src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/visualize_embeddable.tsx similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/visualize_embeddable.tsx diff --git a/src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable_async.ts b/src/platform/plugins/shared/visualizations/public/legacy/embeddable/visualize_embeddable_async.ts similarity index 100% rename from src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable_async.ts rename to src/platform/plugins/shared/visualizations/public/legacy/embeddable/visualize_embeddable_async.ts diff --git a/src/plugins/visualizations/public/legacy/memoize.test.ts b/src/platform/plugins/shared/visualizations/public/legacy/memoize.test.ts similarity index 100% rename from src/plugins/visualizations/public/legacy/memoize.test.ts rename to src/platform/plugins/shared/visualizations/public/legacy/memoize.test.ts diff --git a/src/plugins/visualizations/public/legacy/memoize.ts b/src/platform/plugins/shared/visualizations/public/legacy/memoize.ts similarity index 100% rename from src/plugins/visualizations/public/legacy/memoize.ts rename to src/platform/plugins/shared/visualizations/public/legacy/memoize.ts diff --git a/src/plugins/visualizations/public/legacy/vis_update_state.d.ts b/src/platform/plugins/shared/visualizations/public/legacy/vis_update_state.d.ts similarity index 100% rename from src/plugins/visualizations/public/legacy/vis_update_state.d.ts rename to src/platform/plugins/shared/visualizations/public/legacy/vis_update_state.d.ts diff --git a/src/plugins/visualizations/public/legacy/vis_update_state.js b/src/platform/plugins/shared/visualizations/public/legacy/vis_update_state.js similarity index 100% rename from src/plugins/visualizations/public/legacy/vis_update_state.js rename to src/platform/plugins/shared/visualizations/public/legacy/vis_update_state.js diff --git a/src/plugins/visualizations/public/legacy/vis_update_state.stub.js b/src/platform/plugins/shared/visualizations/public/legacy/vis_update_state.stub.js similarity index 100% rename from src/plugins/visualizations/public/legacy/vis_update_state.stub.js rename to src/platform/plugins/shared/visualizations/public/legacy/vis_update_state.stub.js diff --git a/src/plugins/visualizations/public/legacy/vis_update_state.test.js b/src/platform/plugins/shared/visualizations/public/legacy/vis_update_state.test.js similarity index 100% rename from src/plugins/visualizations/public/legacy/vis_update_state.test.js rename to src/platform/plugins/shared/visualizations/public/legacy/vis_update_state.test.js diff --git a/src/plugins/visualizations/public/mocks.ts b/src/platform/plugins/shared/visualizations/public/mocks.ts similarity index 100% rename from src/plugins/visualizations/public/mocks.ts rename to src/platform/plugins/shared/visualizations/public/mocks.ts diff --git a/src/plugins/visualizations/public/persisted_state/index.ts b/src/platform/plugins/shared/visualizations/public/persisted_state/index.ts similarity index 100% rename from src/plugins/visualizations/public/persisted_state/index.ts rename to src/platform/plugins/shared/visualizations/public/persisted_state/index.ts diff --git a/src/plugins/visualizations/public/persisted_state/persisted_state.ts b/src/platform/plugins/shared/visualizations/public/persisted_state/persisted_state.ts similarity index 100% rename from src/plugins/visualizations/public/persisted_state/persisted_state.ts rename to src/platform/plugins/shared/visualizations/public/persisted_state/persisted_state.ts diff --git a/src/plugins/visualizations/public/persisted_state/persisted_state_provider.test.ts b/src/platform/plugins/shared/visualizations/public/persisted_state/persisted_state_provider.test.ts similarity index 100% rename from src/plugins/visualizations/public/persisted_state/persisted_state_provider.test.ts rename to src/platform/plugins/shared/visualizations/public/persisted_state/persisted_state_provider.test.ts diff --git a/src/plugins/visualizations/public/plugin.ts b/src/platform/plugins/shared/visualizations/public/plugin.ts similarity index 100% rename from src/plugins/visualizations/public/plugin.ts rename to src/platform/plugins/shared/visualizations/public/plugin.ts diff --git a/src/plugins/visualizations/public/services.ts b/src/platform/plugins/shared/visualizations/public/services.ts similarity index 100% rename from src/plugins/visualizations/public/services.ts rename to src/platform/plugins/shared/visualizations/public/services.ts diff --git a/src/plugins/visualizations/public/triggers/index.ts b/src/platform/plugins/shared/visualizations/public/triggers/index.ts similarity index 100% rename from src/plugins/visualizations/public/triggers/index.ts rename to src/platform/plugins/shared/visualizations/public/triggers/index.ts diff --git a/src/plugins/visualizations/public/types.ts b/src/platform/plugins/shared/visualizations/public/types.ts similarity index 100% rename from src/plugins/visualizations/public/types.ts rename to src/platform/plugins/shared/visualizations/public/types.ts diff --git a/src/plugins/visualizations/public/utils/saved_objects_utils/check_for_duplicate_title.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/check_for_duplicate_title.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_objects_utils/check_for_duplicate_title.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/check_for_duplicate_title.ts diff --git a/src/plugins/visualizations/public/utils/saved_objects_utils/confirm_modal_promise.tsx b/src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/confirm_modal_promise.tsx similarity index 100% rename from src/plugins/visualizations/public/utils/saved_objects_utils/confirm_modal_promise.tsx rename to src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/confirm_modal_promise.tsx diff --git a/src/plugins/visualizations/public/utils/saved_objects_utils/constants.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/constants.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_objects_utils/constants.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/constants.ts diff --git a/src/plugins/visualizations/public/utils/saved_objects_utils/display_duplicate_title_confirm_modal.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/display_duplicate_title_confirm_modal.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_objects_utils/display_duplicate_title_confirm_modal.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/display_duplicate_title_confirm_modal.ts diff --git a/src/plugins/visualizations/public/utils/saved_objects_utils/find_object_by_title.test.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/find_object_by_title.test.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_objects_utils/find_object_by_title.test.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/find_object_by_title.test.ts diff --git a/src/plugins/visualizations/public/utils/saved_objects_utils/find_object_by_title.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/find_object_by_title.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_objects_utils/find_object_by_title.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/find_object_by_title.ts diff --git a/src/plugins/visualizations/public/utils/saved_objects_utils/index.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/index.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_objects_utils/index.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/index.ts diff --git a/src/plugins/visualizations/public/utils/saved_objects_utils/save_with_confirmation.test.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/save_with_confirmation.test.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_objects_utils/save_with_confirmation.test.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/save_with_confirmation.test.ts diff --git a/src/plugins/visualizations/public/utils/saved_objects_utils/save_with_confirmation.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/save_with_confirmation.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_objects_utils/save_with_confirmation.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/save_with_confirmation.ts diff --git a/src/plugins/visualizations/public/utils/saved_objects_utils/update_basic_attributes.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/update_basic_attributes.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_objects_utils/update_basic_attributes.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_objects_utils/update_basic_attributes.ts diff --git a/src/plugins/visualizations/public/utils/saved_visualization_references/controls_references.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_visualization_references/controls_references.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_visualization_references/controls_references.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_visualization_references/controls_references.ts diff --git a/src/plugins/visualizations/public/utils/saved_visualization_references/index.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_visualization_references/index.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_visualization_references/index.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_visualization_references/index.ts diff --git a/src/plugins/visualizations/public/utils/saved_visualization_references/saved_visualization_references.test.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_visualization_references/saved_visualization_references.test.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_visualization_references/saved_visualization_references.test.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_visualization_references/saved_visualization_references.test.ts diff --git a/src/plugins/visualizations/public/utils/saved_visualization_references/saved_visualization_references.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_visualization_references/saved_visualization_references.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_visualization_references/saved_visualization_references.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_visualization_references/saved_visualization_references.ts diff --git a/src/plugins/visualizations/public/utils/saved_visualization_references/timeseries_references.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_visualization_references/timeseries_references.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_visualization_references/timeseries_references.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_visualization_references/timeseries_references.ts diff --git a/src/plugins/visualizations/public/utils/saved_visualize_utils.test.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_visualize_utils.test.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_visualize_utils.test.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_visualize_utils.test.ts diff --git a/src/plugins/visualizations/public/utils/saved_visualize_utils.ts b/src/platform/plugins/shared/visualizations/public/utils/saved_visualize_utils.ts similarity index 100% rename from src/plugins/visualizations/public/utils/saved_visualize_utils.ts rename to src/platform/plugins/shared/visualizations/public/utils/saved_visualize_utils.ts diff --git a/src/plugins/visualizations/public/vis.scss b/src/platform/plugins/shared/visualizations/public/vis.scss similarity index 100% rename from src/plugins/visualizations/public/vis.scss rename to src/platform/plugins/shared/visualizations/public/vis.scss diff --git a/src/plugins/visualizations/public/vis.test.ts b/src/platform/plugins/shared/visualizations/public/vis.test.ts similarity index 100% rename from src/plugins/visualizations/public/vis.test.ts rename to src/platform/plugins/shared/visualizations/public/vis.test.ts diff --git a/src/plugins/visualizations/public/vis.ts b/src/platform/plugins/shared/visualizations/public/vis.ts similarity index 100% rename from src/plugins/visualizations/public/vis.ts rename to src/platform/plugins/shared/visualizations/public/vis.ts diff --git a/src/plugins/visualizations/public/vis_async.ts b/src/platform/plugins/shared/visualizations/public/vis_async.ts similarity index 100% rename from src/plugins/visualizations/public/vis_async.ts rename to src/platform/plugins/shared/visualizations/public/vis_async.ts diff --git a/src/plugins/visualizations/public/vis_editors_registry.ts b/src/platform/plugins/shared/visualizations/public/vis_editors_registry.ts similarity index 100% rename from src/plugins/visualizations/public/vis_editors_registry.ts rename to src/platform/plugins/shared/visualizations/public/vis_editors_registry.ts diff --git a/src/plugins/visualizations/public/vis_schemas.ts b/src/platform/plugins/shared/visualizations/public/vis_schemas.ts similarity index 100% rename from src/plugins/visualizations/public/vis_schemas.ts rename to src/platform/plugins/shared/visualizations/public/vis_schemas.ts diff --git a/src/plugins/visualizations/public/vis_types/base_vis_type.test.ts b/src/platform/plugins/shared/visualizations/public/vis_types/base_vis_type.test.ts similarity index 100% rename from src/plugins/visualizations/public/vis_types/base_vis_type.test.ts rename to src/platform/plugins/shared/visualizations/public/vis_types/base_vis_type.test.ts diff --git a/src/plugins/visualizations/public/vis_types/base_vis_type.ts b/src/platform/plugins/shared/visualizations/public/vis_types/base_vis_type.ts similarity index 100% rename from src/plugins/visualizations/public/vis_types/base_vis_type.ts rename to src/platform/plugins/shared/visualizations/public/vis_types/base_vis_type.ts diff --git a/src/plugins/visualizations/public/vis_types/index.ts b/src/platform/plugins/shared/visualizations/public/vis_types/index.ts similarity index 100% rename from src/plugins/visualizations/public/vis_types/index.ts rename to src/platform/plugins/shared/visualizations/public/vis_types/index.ts diff --git a/src/plugins/visualizations/public/vis_types/schemas.ts b/src/platform/plugins/shared/visualizations/public/vis_types/schemas.ts similarity index 100% rename from src/plugins/visualizations/public/vis_types/schemas.ts rename to src/platform/plugins/shared/visualizations/public/vis_types/schemas.ts diff --git a/src/plugins/visualizations/public/vis_types/types.ts b/src/platform/plugins/shared/visualizations/public/vis_types/types.ts similarity index 100% rename from src/plugins/visualizations/public/vis_types/types.ts rename to src/platform/plugins/shared/visualizations/public/vis_types/types.ts diff --git a/src/plugins/visualizations/public/vis_types/types_service.ts b/src/platform/plugins/shared/visualizations/public/vis_types/types_service.ts similarity index 100% rename from src/plugins/visualizations/public/vis_types/types_service.ts rename to src/platform/plugins/shared/visualizations/public/vis_types/types_service.ts diff --git a/src/plugins/visualizations/public/vis_types/vis_groups_enum.ts b/src/platform/plugins/shared/visualizations/public/vis_types/vis_groups_enum.ts similarity index 100% rename from src/plugins/visualizations/public/vis_types/vis_groups_enum.ts rename to src/platform/plugins/shared/visualizations/public/vis_types/vis_groups_enum.ts diff --git a/src/plugins/visualizations/public/vis_types/vis_type_alias_registry.ts b/src/platform/plugins/shared/visualizations/public/vis_types/vis_type_alias_registry.ts similarity index 100% rename from src/plugins/visualizations/public/vis_types/vis_type_alias_registry.ts rename to src/platform/plugins/shared/visualizations/public/vis_types/vis_type_alias_registry.ts diff --git a/src/plugins/visualizations/public/visualize_app/app.scss b/src/platform/plugins/shared/visualizations/public/visualize_app/app.scss similarity index 100% rename from src/plugins/visualizations/public/visualize_app/app.scss rename to src/platform/plugins/shared/visualizations/public/visualize_app/app.scss diff --git a/src/plugins/visualizations/public/visualize_app/app.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/app.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/app.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/app.tsx diff --git a/src/plugins/visualizations/public/visualize_app/components/experimental_vis_info.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/components/experimental_vis_info.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/experimental_vis_info.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/experimental_vis_info.tsx diff --git a/src/plugins/visualizations/public/visualize_app/components/index.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/components/index.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/index.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/index.ts diff --git a/src/plugins/visualizations/public/visualize_app/components/visualize_byvalue_editor.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_byvalue_editor.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/visualize_byvalue_editor.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_byvalue_editor.tsx diff --git a/src/plugins/visualizations/public/visualize_app/components/visualize_editor.scss b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_editor.scss similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/visualize_editor.scss rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_editor.scss diff --git a/src/plugins/visualizations/public/visualize_app/components/visualize_editor.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_editor.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/visualize_editor.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_editor.tsx diff --git a/src/plugins/visualizations/public/visualize_app/components/visualize_editor_common.test.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_editor_common.test.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/visualize_editor_common.test.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_editor_common.test.tsx diff --git a/src/plugins/visualizations/public/visualize_app/components/visualize_editor_common.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_editor_common.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/visualize_editor_common.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_editor_common.tsx diff --git a/src/plugins/visualizations/public/visualize_app/components/visualize_listing.scss b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_listing.scss similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/visualize_listing.scss rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_listing.scss diff --git a/src/plugins/visualizations/public/visualize_app/components/visualize_listing.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_listing.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/visualize_listing.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_listing.tsx diff --git a/src/plugins/visualizations/public/visualize_app/components/visualize_no_match.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_no_match.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/visualize_no_match.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_no_match.tsx diff --git a/src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_top_nav.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/visualize_top_nav.tsx diff --git a/src/plugins/visualizations/public/visualize_app/components/viz_chart_warning.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/components/viz_chart_warning.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/components/viz_chart_warning.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/components/viz_chart_warning.tsx diff --git a/src/plugins/visualizations/public/visualize_app/constants.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/constants.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/constants.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/constants.ts diff --git a/src/plugins/visualizations/public/visualize_app/index.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/index.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/index.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/index.tsx diff --git a/src/plugins/visualizations/public/visualize_app/types.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/types.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/types.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/types.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/breadcrumbs.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/breadcrumbs.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/breadcrumbs.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/breadcrumbs.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/create_visualize_app_state.test.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/create_visualize_app_state.test.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/create_visualize_app_state.test.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/create_visualize_app_state.test.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/create_visualize_app_state.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/create_visualize_app_state.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/create_visualize_app_state.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/create_visualize_app_state.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/get_table_columns.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_table_columns.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/get_table_columns.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_table_columns.tsx diff --git a/src/plugins/visualizations/public/visualize_app/utils/get_top_nav_config.test.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_top_nav_config.test.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/get_top_nav_config.test.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_top_nav_config.test.tsx diff --git a/src/plugins/visualizations/public/visualize_app/utils/get_top_nav_config.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_top_nav_config.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/get_top_nav_config.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_top_nav_config.tsx diff --git a/src/plugins/visualizations/public/visualize_app/utils/get_visualization_instance.test.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_visualization_instance.test.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/get_visualization_instance.test.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_visualization_instance.test.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/get_visualization_instance.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_visualization_instance.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/get_visualization_instance.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_visualization_instance.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/get_visualize_list_item_link.test.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_visualize_list_item_link.test.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/get_visualize_list_item_link.test.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_visualize_list_item_link.test.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/get_visualize_list_item_link.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_visualize_list_item_link.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/get_visualize_list_item_link.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_visualize_list_item_link.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/index.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/index.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/index.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/index.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/migrate_app_state.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/migrate_app_state.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/migrate_app_state.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/migrate_app_state.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/migrate_legacy_query.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/migrate_legacy_query.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/migrate_legacy_query.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/migrate_legacy_query.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/mocks.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/mocks.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/mocks.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/mocks.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/split_chart_warning_helpers.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/split_chart_warning_helpers.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/split_chart_warning_helpers.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/split_chart_warning_helpers.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/stubs.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/stubs.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/stubs.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/stubs.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/index.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/index.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/index.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/index.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_chrome_visibility.test.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_chrome_visibility.test.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_chrome_visibility.test.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_chrome_visibility.test.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_chrome_visibility.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_chrome_visibility.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_chrome_visibility.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_chrome_visibility.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_data_view_updates.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_data_view_updates.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_data_view_updates.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_data_view_updates.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_editor_updates.test.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_editor_updates.test.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_editor_updates.test.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_editor_updates.test.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_editor_updates.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_editor_updates.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_editor_updates.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_editor_updates.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_linked_search_updates.test.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_linked_search_updates.test.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_linked_search_updates.test.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_linked_search_updates.test.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_linked_search_updates.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_linked_search_updates.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_linked_search_updates.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_linked_search_updates.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_saved_vis_instance.test.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_saved_vis_instance.test.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_saved_vis_instance.test.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_saved_vis_instance.test.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_saved_vis_instance.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_saved_vis_instance.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_saved_vis_instance.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_saved_vis_instance.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_vis_byvalue.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_vis_byvalue.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_vis_byvalue.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_vis_byvalue.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_visualize_app_state.test.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_visualize_app_state.test.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_visualize_app_state.test.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_visualize_app_state.test.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_visualize_app_state.tsx b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_visualize_app_state.tsx similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/use/use_visualize_app_state.tsx rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/use/use_visualize_app_state.tsx diff --git a/src/plugins/visualizations/public/visualize_app/utils/utils.ts b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/utils.ts similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/utils.ts rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/utils.ts diff --git a/src/plugins/visualizations/public/visualize_app/utils/visualize_navigation.scss b/src/platform/plugins/shared/visualizations/public/visualize_app/utils/visualize_navigation.scss similarity index 100% rename from src/plugins/visualizations/public/visualize_app/utils/visualize_navigation.scss rename to src/platform/plugins/shared/visualizations/public/visualize_app/utils/visualize_navigation.scss diff --git a/src/plugins/visualizations/public/visualize_screenshot_mode.scss b/src/platform/plugins/shared/visualizations/public/visualize_screenshot_mode.scss similarity index 100% rename from src/plugins/visualizations/public/visualize_screenshot_mode.scss rename to src/platform/plugins/shared/visualizations/public/visualize_screenshot_mode.scss diff --git a/src/plugins/visualizations/public/wizard/agg_based_selection/agg_based_selection.test.tsx b/src/platform/plugins/shared/visualizations/public/wizard/agg_based_selection/agg_based_selection.test.tsx similarity index 100% rename from src/plugins/visualizations/public/wizard/agg_based_selection/agg_based_selection.test.tsx rename to src/platform/plugins/shared/visualizations/public/wizard/agg_based_selection/agg_based_selection.test.tsx diff --git a/src/plugins/visualizations/public/wizard/agg_based_selection/agg_based_selection.tsx b/src/platform/plugins/shared/visualizations/public/wizard/agg_based_selection/agg_based_selection.tsx similarity index 100% rename from src/plugins/visualizations/public/wizard/agg_based_selection/agg_based_selection.tsx rename to src/platform/plugins/shared/visualizations/public/wizard/agg_based_selection/agg_based_selection.tsx diff --git a/src/plugins/visualizations/public/wizard/agg_based_selection/index.ts b/src/platform/plugins/shared/visualizations/public/wizard/agg_based_selection/index.ts similarity index 100% rename from src/plugins/visualizations/public/wizard/agg_based_selection/index.ts rename to src/platform/plugins/shared/visualizations/public/wizard/agg_based_selection/index.ts diff --git a/src/plugins/visualizations/public/wizard/dialog.scss b/src/platform/plugins/shared/visualizations/public/wizard/dialog.scss similarity index 100% rename from src/plugins/visualizations/public/wizard/dialog.scss rename to src/platform/plugins/shared/visualizations/public/wizard/dialog.scss diff --git a/src/plugins/visualizations/public/wizard/dialog_navigation.tsx b/src/platform/plugins/shared/visualizations/public/wizard/dialog_navigation.tsx similarity index 100% rename from src/plugins/visualizations/public/wizard/dialog_navigation.tsx rename to src/platform/plugins/shared/visualizations/public/wizard/dialog_navigation.tsx diff --git a/src/plugins/visualizations/public/wizard/group_selection/group_selection.scss b/src/platform/plugins/shared/visualizations/public/wizard/group_selection/group_selection.scss similarity index 100% rename from src/plugins/visualizations/public/wizard/group_selection/group_selection.scss rename to src/platform/plugins/shared/visualizations/public/wizard/group_selection/group_selection.scss diff --git a/src/plugins/visualizations/public/wizard/group_selection/group_selection.test.tsx b/src/platform/plugins/shared/visualizations/public/wizard/group_selection/group_selection.test.tsx similarity index 100% rename from src/plugins/visualizations/public/wizard/group_selection/group_selection.test.tsx rename to src/platform/plugins/shared/visualizations/public/wizard/group_selection/group_selection.test.tsx diff --git a/src/plugins/visualizations/public/wizard/group_selection/group_selection.tsx b/src/platform/plugins/shared/visualizations/public/wizard/group_selection/group_selection.tsx similarity index 100% rename from src/plugins/visualizations/public/wizard/group_selection/group_selection.tsx rename to src/platform/plugins/shared/visualizations/public/wizard/group_selection/group_selection.tsx diff --git a/src/plugins/visualizations/public/wizard/group_selection/index.ts b/src/platform/plugins/shared/visualizations/public/wizard/group_selection/index.ts similarity index 100% rename from src/plugins/visualizations/public/wizard/group_selection/index.ts rename to src/platform/plugins/shared/visualizations/public/wizard/group_selection/index.ts diff --git a/src/plugins/visualizations/public/wizard/index.ts b/src/platform/plugins/shared/visualizations/public/wizard/index.ts similarity index 100% rename from src/plugins/visualizations/public/wizard/index.ts rename to src/platform/plugins/shared/visualizations/public/wizard/index.ts diff --git a/src/plugins/visualizations/public/wizard/new_vis_modal.test.tsx b/src/platform/plugins/shared/visualizations/public/wizard/new_vis_modal.test.tsx similarity index 100% rename from src/plugins/visualizations/public/wizard/new_vis_modal.test.tsx rename to src/platform/plugins/shared/visualizations/public/wizard/new_vis_modal.test.tsx diff --git a/src/plugins/visualizations/public/wizard/new_vis_modal.tsx b/src/platform/plugins/shared/visualizations/public/wizard/new_vis_modal.tsx similarity index 100% rename from src/plugins/visualizations/public/wizard/new_vis_modal.tsx rename to src/platform/plugins/shared/visualizations/public/wizard/new_vis_modal.tsx diff --git a/src/plugins/visualizations/public/wizard/search_selection/index.ts b/src/platform/plugins/shared/visualizations/public/wizard/search_selection/index.ts similarity index 100% rename from src/plugins/visualizations/public/wizard/search_selection/index.ts rename to src/platform/plugins/shared/visualizations/public/wizard/search_selection/index.ts diff --git a/src/plugins/visualizations/public/wizard/search_selection/search_selection.tsx b/src/platform/plugins/shared/visualizations/public/wizard/search_selection/search_selection.tsx similarity index 100% rename from src/plugins/visualizations/public/wizard/search_selection/search_selection.tsx rename to src/platform/plugins/shared/visualizations/public/wizard/search_selection/search_selection.tsx diff --git a/src/plugins/visualizations/public/wizard/search_selection/show_saved_object.test.ts b/src/platform/plugins/shared/visualizations/public/wizard/search_selection/show_saved_object.test.ts similarity index 100% rename from src/plugins/visualizations/public/wizard/search_selection/show_saved_object.test.ts rename to src/platform/plugins/shared/visualizations/public/wizard/search_selection/show_saved_object.test.ts diff --git a/src/plugins/visualizations/public/wizard/search_selection/show_saved_object.ts b/src/platform/plugins/shared/visualizations/public/wizard/search_selection/show_saved_object.ts similarity index 100% rename from src/plugins/visualizations/public/wizard/search_selection/show_saved_object.ts rename to src/platform/plugins/shared/visualizations/public/wizard/search_selection/show_saved_object.ts diff --git a/src/plugins/visualizations/public/wizard/show_new_vis.tsx b/src/platform/plugins/shared/visualizations/public/wizard/show_new_vis.tsx similarity index 100% rename from src/plugins/visualizations/public/wizard/show_new_vis.tsx rename to src/platform/plugins/shared/visualizations/public/wizard/show_new_vis.tsx diff --git a/src/plugins/visualizations/server/capabilities_provider.ts b/src/platform/plugins/shared/visualizations/server/capabilities_provider.ts similarity index 100% rename from src/plugins/visualizations/server/capabilities_provider.ts rename to src/platform/plugins/shared/visualizations/server/capabilities_provider.ts diff --git a/src/plugins/visualizations/server/content_management/cm_services.ts b/src/platform/plugins/shared/visualizations/server/content_management/cm_services.ts similarity index 100% rename from src/plugins/visualizations/server/content_management/cm_services.ts rename to src/platform/plugins/shared/visualizations/server/content_management/cm_services.ts diff --git a/src/plugins/visualizations/server/content_management/index.ts b/src/platform/plugins/shared/visualizations/server/content_management/index.ts similarity index 100% rename from src/plugins/visualizations/server/content_management/index.ts rename to src/platform/plugins/shared/visualizations/server/content_management/index.ts diff --git a/src/plugins/visualizations/server/content_management/v1/cm_services.ts b/src/platform/plugins/shared/visualizations/server/content_management/v1/cm_services.ts similarity index 100% rename from src/plugins/visualizations/server/content_management/v1/cm_services.ts rename to src/platform/plugins/shared/visualizations/server/content_management/v1/cm_services.ts diff --git a/src/plugins/visualizations/server/content_management/visualization_storage.ts b/src/platform/plugins/shared/visualizations/server/content_management/visualization_storage.ts similarity index 100% rename from src/plugins/visualizations/server/content_management/visualization_storage.ts rename to src/platform/plugins/shared/visualizations/server/content_management/visualization_storage.ts diff --git a/src/plugins/visualizations/server/embeddable/make_visualize_embeddable_factory.test.ts b/src/platform/plugins/shared/visualizations/server/embeddable/make_visualize_embeddable_factory.test.ts similarity index 100% rename from src/plugins/visualizations/server/embeddable/make_visualize_embeddable_factory.test.ts rename to src/platform/plugins/shared/visualizations/server/embeddable/make_visualize_embeddable_factory.test.ts diff --git a/src/plugins/visualizations/server/embeddable/make_visualize_embeddable_factory.ts b/src/platform/plugins/shared/visualizations/server/embeddable/make_visualize_embeddable_factory.ts similarity index 100% rename from src/plugins/visualizations/server/embeddable/make_visualize_embeddable_factory.ts rename to src/platform/plugins/shared/visualizations/server/embeddable/make_visualize_embeddable_factory.ts diff --git a/src/plugins/visualizations/server/index.ts b/src/platform/plugins/shared/visualizations/server/index.ts similarity index 100% rename from src/plugins/visualizations/server/index.ts rename to src/platform/plugins/shared/visualizations/server/index.ts diff --git a/src/plugins/visualizations/server/migrations/visualization_common_migrations.ts b/src/platform/plugins/shared/visualizations/server/migrations/visualization_common_migrations.ts similarity index 100% rename from src/plugins/visualizations/server/migrations/visualization_common_migrations.ts rename to src/platform/plugins/shared/visualizations/server/migrations/visualization_common_migrations.ts diff --git a/src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.test.ts b/src/platform/plugins/shared/visualizations/server/migrations/visualization_saved_object_migrations.test.ts similarity index 100% rename from src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.test.ts rename to src/platform/plugins/shared/visualizations/server/migrations/visualization_saved_object_migrations.test.ts diff --git a/src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts b/src/platform/plugins/shared/visualizations/server/migrations/visualization_saved_object_migrations.ts similarity index 100% rename from src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts rename to src/platform/plugins/shared/visualizations/server/migrations/visualization_saved_object_migrations.ts diff --git a/src/plugins/visualizations/server/plugin.ts b/src/platform/plugins/shared/visualizations/server/plugin.ts similarity index 100% rename from src/plugins/visualizations/server/plugin.ts rename to src/platform/plugins/shared/visualizations/server/plugin.ts diff --git a/src/plugins/visualizations/server/saved_objects/get_in_app_url.test.ts b/src/platform/plugins/shared/visualizations/server/saved_objects/get_in_app_url.test.ts similarity index 100% rename from src/plugins/visualizations/server/saved_objects/get_in_app_url.test.ts rename to src/platform/plugins/shared/visualizations/server/saved_objects/get_in_app_url.test.ts diff --git a/src/plugins/visualizations/server/saved_objects/get_in_app_url.ts b/src/platform/plugins/shared/visualizations/server/saved_objects/get_in_app_url.ts similarity index 100% rename from src/plugins/visualizations/server/saved_objects/get_in_app_url.ts rename to src/platform/plugins/shared/visualizations/server/saved_objects/get_in_app_url.ts diff --git a/src/plugins/visualizations/server/saved_objects/index.ts b/src/platform/plugins/shared/visualizations/server/saved_objects/index.ts similarity index 100% rename from src/plugins/visualizations/server/saved_objects/index.ts rename to src/platform/plugins/shared/visualizations/server/saved_objects/index.ts diff --git a/src/plugins/visualizations/server/saved_objects/read_only_vis_type_registry.ts b/src/platform/plugins/shared/visualizations/server/saved_objects/read_only_vis_type_registry.ts similarity index 100% rename from src/plugins/visualizations/server/saved_objects/read_only_vis_type_registry.ts rename to src/platform/plugins/shared/visualizations/server/saved_objects/read_only_vis_type_registry.ts diff --git a/src/plugins/visualizations/server/saved_objects/visualization.ts b/src/platform/plugins/shared/visualizations/server/saved_objects/visualization.ts similarity index 100% rename from src/plugins/visualizations/server/saved_objects/visualization.ts rename to src/platform/plugins/shared/visualizations/server/saved_objects/visualization.ts diff --git a/src/plugins/visualizations/server/types.ts b/src/platform/plugins/shared/visualizations/server/types.ts similarity index 100% rename from src/plugins/visualizations/server/types.ts rename to src/platform/plugins/shared/visualizations/server/types.ts diff --git a/src/plugins/visualizations/tsconfig.json b/src/platform/plugins/shared/visualizations/tsconfig.json similarity index 97% rename from src/plugins/visualizations/tsconfig.json rename to src/platform/plugins/shared/visualizations/tsconfig.json index 32811524e65f7..a41e6467bb6a3 100644 --- a/src/plugins/visualizations/tsconfig.json +++ b/src/platform/plugins/shared/visualizations/tsconfig.json @@ -1,9 +1,9 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, - "include": ["common/**/*", "public/**/*", "server/**/*", "../../../typings/**/*"], + "include": ["common/**/*", "public/**/*", "server/**/*", "../../../../../typings/**/*"], "kbn_references": [ "@kbn/core", "@kbn/charts-plugin", diff --git a/src/plugins/chart_expressions/common/jest.config.js b/src/plugins/chart_expressions/common/jest.config.js deleted file mode 100644 index fe155939f7529..0000000000000 --- a/src/plugins/chart_expressions/common/jest.config.js +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/src/plugins/chart_expressions/common'], -}; diff --git a/src/plugins/chart_expressions/expression_partition_vis/jest.config.js b/src/plugins/chart_expressions/expression_partition_vis/jest.config.js deleted file mode 100644 index 65b582b40ac3f..0000000000000 --- a/src/plugins/chart_expressions/expression_partition_vis/jest.config.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../../', - roots: ['/src/plugins/chart_expressions/expression_partition_vis'], - coverageDirectory: - '/target/kibana-coverage/jest/src/plugins/chart_expressions/expression_partition_vis', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/src/plugins/chart_expressions/expression_partition_vis/{common,public,server}/**/*.{ts,tsx}', - ], -}; diff --git a/src/plugins/charts/jest.config.js b/src/plugins/charts/jest.config.js deleted file mode 100644 index ff90f968b3139..0000000000000 --- a/src/plugins/charts/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/charts'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/charts', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/charts/{common,public,server}/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/data/jest.config.js b/src/plugins/data/jest.config.js deleted file mode 100644 index 02b995bf5f490..0000000000000 --- a/src/plugins/data/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/data'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/data', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/data/{common,public,server}/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/expressions/jest.config.js b/src/plugins/expressions/jest.config.js deleted file mode 100644 index 5395dc015f6d1..0000000000000 --- a/src/plugins/expressions/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/expressions'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/expressions', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/expressions/{common,public,server}/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/unified_search/jest.config.js b/src/plugins/unified_search/jest.config.js deleted file mode 100644 index b3358989c81ff..0000000000000 --- a/src/plugins/unified_search/jest.config.js +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/unified_search'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/unified_search', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/unified_search/public/**/*.{ts,tsx}'], - setupFiles: ['jest-canvas-mock'], -}; diff --git a/src/plugins/url_forwarding/jest.config.js b/src/plugins/url_forwarding/jest.config.js deleted file mode 100644 index 0c12404153541..0000000000000 --- a/src/plugins/url_forwarding/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/url_forwarding'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/url_forwarding', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/url_forwarding/public/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/vis_default_editor/jest.config.js b/src/plugins/vis_default_editor/jest.config.js deleted file mode 100644 index ae2f2d8bf60eb..0000000000000 --- a/src/plugins/vis_default_editor/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/vis_default_editor'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_default_editor', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/vis_default_editor/public/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/vis_types/heatmap/jest.config.js b/src/plugins/vis_types/heatmap/jest.config.js deleted file mode 100644 index 33c1f4e6b6d51..0000000000000 --- a/src/plugins/vis_types/heatmap/jest.config.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/vis_types/heatmap'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_types/heatmap', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/src/plugins/vis_types/heatmap/{common,public,server}/**/*.{ts,tsx}', - ], -}; diff --git a/src/plugins/vis_types/metric/jest.config.js b/src/plugins/vis_types/metric/jest.config.js deleted file mode 100644 index 3ac45f884e04a..0000000000000 --- a/src/plugins/vis_types/metric/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/vis_types/metric'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_types/metric', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/vis_types/metric/{public,server}/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/vis_types/pie/jest.config.js b/src/plugins/vis_types/pie/jest.config.js deleted file mode 100644 index 091d9582658eb..0000000000000 --- a/src/plugins/vis_types/pie/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/vis_types/pie'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_types/pie', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/vis_types/pie/{common,public,server}/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/vis_types/table/jest.config.js b/src/plugins/vis_types/table/jest.config.js deleted file mode 100644 index 041dbe1266dfa..0000000000000 --- a/src/plugins/vis_types/table/jest.config.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/vis_types/table'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_types/table', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/src/plugins/vis_types/table/{common,public,server}/**/*.{js,ts,tsx}', - ], -}; diff --git a/src/plugins/vis_types/tagcloud/jest.config.js b/src/plugins/vis_types/tagcloud/jest.config.js deleted file mode 100644 index 68fb1678efec1..0000000000000 --- a/src/plugins/vis_types/tagcloud/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/vis_types/tagcloud'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_types/tagcloud', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/vis_types/tagcloud/{public,server}/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/vis_types/timeseries/jest.config.js b/src/plugins/vis_types/timeseries/jest.config.js deleted file mode 100644 index a84334eaef869..0000000000000 --- a/src/plugins/vis_types/timeseries/jest.config.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/vis_types/timeseries'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_types/timeseries', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/src/plugins/vis_types/timeseries/{common,public,server}/**/*.{js,ts,tsx}', - ], -}; diff --git a/src/plugins/vis_types/vega/jest.config.js b/src/plugins/vis_types/vega/jest.config.js deleted file mode 100644 index 6e4a84bfc8961..0000000000000 --- a/src/plugins/vis_types/vega/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/vis_types/vega'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_types/vega', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/vis_types/vega/{public,server}/**/*.{js,ts,tsx}'], -}; diff --git a/src/plugins/vis_types/vislib/jest.config.js b/src/plugins/vis_types/vislib/jest.config.js deleted file mode 100644 index 89226e3a70735..0000000000000 --- a/src/plugins/vis_types/vislib/jest.config.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/vis_types/vislib'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_types/vislib', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/src/plugins/vis_types/vislib/{common,public,server}/**/*.{js,ts,tsx}', - ], -}; diff --git a/src/plugins/vis_types/xy/jest.config.js b/src/plugins/vis_types/xy/jest.config.js deleted file mode 100644 index 6f0148d8050df..0000000000000 --- a/src/plugins/vis_types/xy/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/vis_types/xy'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_types/xy', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/vis_types/xy/{common,public,server}/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/visualizations/jest.config.js b/src/plugins/visualizations/jest.config.js deleted file mode 100644 index 50f7976d262ee..0000000000000 --- a/src/plugins/visualizations/jest.config.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the "Elastic License - * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/visualizations'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/visualizations', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/src/plugins/visualizations/{common,public,server}/**/*.{js,ts,tsx}', - ], -}; diff --git a/tsconfig.base.json b/tsconfig.base.json index 64b9712c0fef1..1b443633ccc7d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -122,8 +122,8 @@ "@kbn/bfetch-plugin/*": ["src/plugins/bfetch/*"], "@kbn/calculate-auto": ["packages/kbn-calculate-auto"], "@kbn/calculate-auto/*": ["packages/kbn-calculate-auto/*"], - "@kbn/calculate-width-from-char-count": ["packages/kbn-calculate-width-from-char-count"], - "@kbn/calculate-width-from-char-count/*": ["packages/kbn-calculate-width-from-char-count/*"], + "@kbn/calculate-width-from-char-count": ["src/platform/packages/shared/kbn-calculate-width-from-char-count"], + "@kbn/calculate-width-from-char-count/*": ["src/platform/packages/shared/kbn-calculate-width-from-char-count/*"], "@kbn/canvas-plugin": ["x-pack/platform/plugins/private/canvas"], "@kbn/canvas-plugin/*": ["x-pack/platform/plugins/private/canvas/*"], "@kbn/capture-oas-snapshot-cli": ["packages/kbn-capture-oas-snapshot-cli"], @@ -138,12 +138,12 @@ "@kbn/cbor/*": ["src/platform/packages/shared/kbn-cbor/*"], "@kbn/cell-actions": ["src/platform/packages/shared/kbn-cell-actions"], "@kbn/cell-actions/*": ["src/platform/packages/shared/kbn-cell-actions/*"], - "@kbn/chart-expressions-common": ["src/plugins/chart_expressions/common"], - "@kbn/chart-expressions-common/*": ["src/plugins/chart_expressions/common/*"], - "@kbn/chart-icons": ["packages/kbn-chart-icons"], - "@kbn/chart-icons/*": ["packages/kbn-chart-icons/*"], - "@kbn/charts-plugin": ["src/plugins/charts"], - "@kbn/charts-plugin/*": ["src/plugins/charts/*"], + "@kbn/chart-expressions-common": ["src/platform/packages/shared/chart-expressions-common"], + "@kbn/chart-expressions-common/*": ["src/platform/packages/shared/chart-expressions-common/*"], + "@kbn/chart-icons": ["src/platform/packages/shared/kbn-chart-icons"], + "@kbn/chart-icons/*": ["src/platform/packages/shared/kbn-chart-icons/*"], + "@kbn/charts-plugin": ["src/platform/plugins/shared/charts"], + "@kbn/charts-plugin/*": ["src/platform/plugins/shared/charts/*"], "@kbn/check-mappings-update-cli": ["packages/kbn-check-mappings-update-cli"], "@kbn/check-mappings-update-cli/*": ["packages/kbn-check-mappings-update-cli/*"], "@kbn/check-prod-native-modules-cli": ["packages/kbn-check-prod-native-modules-cli"], @@ -190,8 +190,8 @@ "@kbn/code-editor-mock/*": ["packages/shared-ux/code_editor/mocks/*"], "@kbn/code-owners": ["packages/kbn-code-owners"], "@kbn/code-owners/*": ["packages/kbn-code-owners/*"], - "@kbn/coloring": ["packages/kbn-coloring"], - "@kbn/coloring/*": ["packages/kbn-coloring/*"], + "@kbn/coloring": ["src/platform/packages/shared/kbn-coloring"], + "@kbn/coloring/*": ["src/platform/packages/shared/kbn-coloring/*"], "@kbn/config": ["src/platform/packages/shared/kbn-config"], "@kbn/config/*": ["src/platform/packages/shared/kbn-config/*"], "@kbn/config-mocks": ["src/platform/packages/private/kbn-config-mocks"], @@ -702,14 +702,14 @@ "@kbn/dashboard-plugin/*": ["src/platform/plugins/shared/dashboard/*"], "@kbn/data-forge": ["x-pack/platform/packages/shared/kbn-data-forge"], "@kbn/data-forge/*": ["x-pack/platform/packages/shared/kbn-data-forge/*"], - "@kbn/data-plugin": ["src/plugins/data"], - "@kbn/data-plugin/*": ["src/plugins/data/*"], + "@kbn/data-plugin": ["src/platform/plugins/shared/data"], + "@kbn/data-plugin/*": ["src/platform/plugins/shared/data/*"], "@kbn/data-quality-plugin": ["x-pack/platform/plugins/shared/data_quality"], "@kbn/data-quality-plugin/*": ["x-pack/platform/plugins/shared/data_quality/*"], "@kbn/data-search-plugin": ["test/plugin_functional/plugins/data_search"], "@kbn/data-search-plugin/*": ["test/plugin_functional/plugins/data_search/*"], - "@kbn/data-service": ["packages/kbn-data-service"], - "@kbn/data-service/*": ["packages/kbn-data-service/*"], + "@kbn/data-service": ["src/platform/packages/shared/kbn-data-service"], + "@kbn/data-service/*": ["src/platform/packages/shared/kbn-data-service/*"], "@kbn/data-stream-adapter": ["x-pack/solutions/security/packages/data-stream-adapter"], "@kbn/data-stream-adapter/*": ["x-pack/solutions/security/packages/data-stream-adapter/*"], "@kbn/data-usage-plugin": ["x-pack/platform/plugins/private/data_usage"], @@ -788,8 +788,8 @@ "@kbn/doc-links/*": ["src/platform/packages/shared/kbn-doc-links/*"], "@kbn/docs-utils": ["packages/kbn-docs-utils"], "@kbn/docs-utils/*": ["packages/kbn-docs-utils/*"], - "@kbn/dom-drag-drop": ["packages/kbn-dom-drag-drop"], - "@kbn/dom-drag-drop/*": ["packages/kbn-dom-drag-drop/*"], + "@kbn/dom-drag-drop": ["src/platform/packages/shared/kbn-dom-drag-drop"], + "@kbn/dom-drag-drop/*": ["src/platform/packages/shared/kbn-dom-drag-drop/*"], "@kbn/ebt-tools": ["src/platform/packages/shared/kbn-ebt-tools"], "@kbn/ebt-tools/*": ["src/platform/packages/shared/kbn-ebt-tools/*"], "@kbn/ecs-data-quality-dashboard": ["x-pack/solutions/security/packages/ecs_data_quality_dashboard"], @@ -880,14 +880,14 @@ "@kbn/esql-validation-example-plugin/*": ["examples/esql_validation_example/*"], "@kbn/eui-provider-dev-warning": ["test/plugin_functional/plugins/eui_provider_dev_warning"], "@kbn/eui-provider-dev-warning/*": ["test/plugin_functional/plugins/eui_provider_dev_warning/*"], - "@kbn/event-annotation-common": ["packages/kbn-event-annotation-common"], - "@kbn/event-annotation-common/*": ["packages/kbn-event-annotation-common/*"], - "@kbn/event-annotation-components": ["packages/kbn-event-annotation-components"], - "@kbn/event-annotation-components/*": ["packages/kbn-event-annotation-components/*"], - "@kbn/event-annotation-listing-plugin": ["src/plugins/event_annotation_listing"], - "@kbn/event-annotation-listing-plugin/*": ["src/plugins/event_annotation_listing/*"], - "@kbn/event-annotation-plugin": ["src/plugins/event_annotation"], - "@kbn/event-annotation-plugin/*": ["src/plugins/event_annotation/*"], + "@kbn/event-annotation-common": ["src/platform/packages/shared/kbn-event-annotation-common"], + "@kbn/event-annotation-common/*": ["src/platform/packages/shared/kbn-event-annotation-common/*"], + "@kbn/event-annotation-components": ["src/platform/packages/shared/kbn-event-annotation-components"], + "@kbn/event-annotation-components/*": ["src/platform/packages/shared/kbn-event-annotation-components/*"], + "@kbn/event-annotation-listing-plugin": ["src/platform/plugins/private/event_annotation_listing"], + "@kbn/event-annotation-listing-plugin/*": ["src/platform/plugins/private/event_annotation_listing/*"], + "@kbn/event-annotation-plugin": ["src/platform/plugins/private/event_annotation"], + "@kbn/event-annotation-plugin/*": ["src/platform/plugins/private/event_annotation/*"], "@kbn/event-log-fixture-plugin": ["x-pack/test/plugin_api_integration/plugins/event_log"], "@kbn/event-log-fixture-plugin/*": ["x-pack/test/plugin_api_integration/plugins/event_log/*"], "@kbn/event-log-plugin": ["x-pack/platform/plugins/shared/event_log"], @@ -902,34 +902,34 @@ "@kbn/exploratory-view-plugin/*": ["x-pack/solutions/observability/plugins/exploratory_view/*"], "@kbn/expression-error-plugin": ["src/platform/plugins/shared/expression_error"], "@kbn/expression-error-plugin/*": ["src/platform/plugins/shared/expression_error/*"], - "@kbn/expression-gauge-plugin": ["src/plugins/chart_expressions/expression_gauge"], - "@kbn/expression-gauge-plugin/*": ["src/plugins/chart_expressions/expression_gauge/*"], - "@kbn/expression-heatmap-plugin": ["src/plugins/chart_expressions/expression_heatmap"], - "@kbn/expression-heatmap-plugin/*": ["src/plugins/chart_expressions/expression_heatmap/*"], + "@kbn/expression-gauge-plugin": ["src/platform/plugins/shared/chart_expressions/expression_gauge"], + "@kbn/expression-gauge-plugin/*": ["src/platform/plugins/shared/chart_expressions/expression_gauge/*"], + "@kbn/expression-heatmap-plugin": ["src/platform/plugins/shared/chart_expressions/expression_heatmap"], + "@kbn/expression-heatmap-plugin/*": ["src/platform/plugins/shared/chart_expressions/expression_heatmap/*"], "@kbn/expression-image-plugin": ["src/platform/plugins/shared/expression_image"], "@kbn/expression-image-plugin/*": ["src/platform/plugins/shared/expression_image/*"], - "@kbn/expression-legacy-metric-vis-plugin": ["src/plugins/chart_expressions/expression_legacy_metric"], - "@kbn/expression-legacy-metric-vis-plugin/*": ["src/plugins/chart_expressions/expression_legacy_metric/*"], + "@kbn/expression-legacy-metric-vis-plugin": ["src/platform/plugins/shared/chart_expressions/expression_legacy_metric"], + "@kbn/expression-legacy-metric-vis-plugin/*": ["src/platform/plugins/shared/chart_expressions/expression_legacy_metric/*"], "@kbn/expression-metric-plugin": ["src/platform/plugins/shared/expression_metric"], "@kbn/expression-metric-plugin/*": ["src/platform/plugins/shared/expression_metric/*"], - "@kbn/expression-metric-vis-plugin": ["src/plugins/chart_expressions/expression_metric"], - "@kbn/expression-metric-vis-plugin/*": ["src/plugins/chart_expressions/expression_metric/*"], - "@kbn/expression-partition-vis-plugin": ["src/plugins/chart_expressions/expression_partition_vis"], - "@kbn/expression-partition-vis-plugin/*": ["src/plugins/chart_expressions/expression_partition_vis/*"], + "@kbn/expression-metric-vis-plugin": ["src/platform/plugins/shared/chart_expressions/expression_metric"], + "@kbn/expression-metric-vis-plugin/*": ["src/platform/plugins/shared/chart_expressions/expression_metric/*"], + "@kbn/expression-partition-vis-plugin": ["src/platform/plugins/shared/chart_expressions/expression_partition_vis"], + "@kbn/expression-partition-vis-plugin/*": ["src/platform/plugins/shared/chart_expressions/expression_partition_vis/*"], "@kbn/expression-repeat-image-plugin": ["src/platform/plugins/shared/expression_repeat_image"], "@kbn/expression-repeat-image-plugin/*": ["src/platform/plugins/shared/expression_repeat_image/*"], "@kbn/expression-reveal-image-plugin": ["src/platform/plugins/shared/expression_reveal_image"], "@kbn/expression-reveal-image-plugin/*": ["src/platform/plugins/shared/expression_reveal_image/*"], "@kbn/expression-shape-plugin": ["src/platform/plugins/shared/expression_shape"], "@kbn/expression-shape-plugin/*": ["src/platform/plugins/shared/expression_shape/*"], - "@kbn/expression-tagcloud-plugin": ["src/plugins/chart_expressions/expression_tagcloud"], - "@kbn/expression-tagcloud-plugin/*": ["src/plugins/chart_expressions/expression_tagcloud/*"], - "@kbn/expression-xy-plugin": ["src/plugins/chart_expressions/expression_xy"], - "@kbn/expression-xy-plugin/*": ["src/plugins/chart_expressions/expression_xy/*"], + "@kbn/expression-tagcloud-plugin": ["src/platform/plugins/shared/chart_expressions/expression_tagcloud"], + "@kbn/expression-tagcloud-plugin/*": ["src/platform/plugins/shared/chart_expressions/expression_tagcloud/*"], + "@kbn/expression-xy-plugin": ["src/platform/plugins/shared/chart_expressions/expression_xy"], + "@kbn/expression-xy-plugin/*": ["src/platform/plugins/shared/chart_expressions/expression_xy/*"], "@kbn/expressions-explorer-plugin": ["examples/expressions_explorer"], "@kbn/expressions-explorer-plugin/*": ["examples/expressions_explorer/*"], - "@kbn/expressions-plugin": ["src/plugins/expressions"], - "@kbn/expressions-plugin/*": ["src/plugins/expressions/*"], + "@kbn/expressions-plugin": ["src/platform/plugins/shared/expressions"], + "@kbn/expressions-plugin/*": ["src/platform/plugins/shared/expressions/*"], "@kbn/failed-test-reporter-cli": ["packages/kbn-failed-test-reporter-cli"], "@kbn/failed-test-reporter-cli/*": ["packages/kbn-failed-test-reporter-cli/*"], "@kbn/feature-controls-examples-plugin": ["examples/feature_control_examples"], @@ -1002,8 +1002,8 @@ "@kbn/global-search-providers-plugin/*": ["x-pack/platform/plugins/private/global_search_providers/*"], "@kbn/global-search-test-plugin": ["x-pack/test/plugin_functional/plugins/global_search_test"], "@kbn/global-search-test-plugin/*": ["x-pack/test/plugin_functional/plugins/global_search_test/*"], - "@kbn/graph-plugin": ["x-pack/plugins/graph"], - "@kbn/graph-plugin/*": ["x-pack/plugins/graph/*"], + "@kbn/graph-plugin": ["x-pack/platform/plugins/private/graph"], + "@kbn/graph-plugin/*": ["x-pack/platform/plugins/private/graph/*"], "@kbn/grid-example-plugin": ["examples/grid_example"], "@kbn/grid-example-plugin/*": ["examples/grid_example/*"], "@kbn/grid-layout": ["packages/kbn-grid-layout"], @@ -1084,8 +1084,8 @@ "@kbn/interactive-setup-plugin/*": ["src/platform/plugins/private/interactive_setup/*"], "@kbn/interactive-setup-test-endpoints-plugin": ["test/interactive_setup_api_integration/plugins/test_endpoints"], "@kbn/interactive-setup-test-endpoints-plugin/*": ["test/interactive_setup_api_integration/plugins/test_endpoints/*"], - "@kbn/interpreter": ["packages/kbn-interpreter"], - "@kbn/interpreter/*": ["packages/kbn-interpreter/*"], + "@kbn/interpreter": ["src/platform/packages/shared/kbn-interpreter"], + "@kbn/interpreter/*": ["src/platform/packages/shared/kbn-interpreter/*"], "@kbn/inventory-e2e": ["x-pack/solutions/observability/plugins/inventory/e2e"], "@kbn/inventory-e2e/*": ["x-pack/solutions/observability/plugins/inventory/e2e/*"], "@kbn/inventory-plugin": ["x-pack/solutions/observability/plugins/inventory"], @@ -1140,12 +1140,12 @@ "@kbn/lens-config-builder-example-plugin/*": ["x-pack/examples/lens_config_builder_example/*"], "@kbn/lens-embeddable-utils": ["src/platform/packages/shared/kbn-lens-embeddable-utils"], "@kbn/lens-embeddable-utils/*": ["src/platform/packages/shared/kbn-lens-embeddable-utils/*"], - "@kbn/lens-formula-docs": ["packages/kbn-lens-formula-docs"], - "@kbn/lens-formula-docs/*": ["packages/kbn-lens-formula-docs/*"], + "@kbn/lens-formula-docs": ["src/platform/packages/private/kbn-lens-formula-docs"], + "@kbn/lens-formula-docs/*": ["src/platform/packages/private/kbn-lens-formula-docs/*"], "@kbn/lens-inline-editing-example-plugin": ["x-pack/examples/lens_embeddable_inline_editing_example"], "@kbn/lens-inline-editing-example-plugin/*": ["x-pack/examples/lens_embeddable_inline_editing_example/*"], - "@kbn/lens-plugin": ["x-pack/plugins/lens"], - "@kbn/lens-plugin/*": ["x-pack/plugins/lens/*"], + "@kbn/lens-plugin": ["x-pack/platform/plugins/shared/lens"], + "@kbn/lens-plugin/*": ["x-pack/platform/plugins/shared/lens/*"], "@kbn/license-api-guard-plugin": ["x-pack/platform/plugins/private/license_api_guard"], "@kbn/license-api-guard-plugin/*": ["x-pack/platform/plugins/private/license_api_guard/*"], "@kbn/license-management-plugin": ["x-pack/platform/plugins/shared/license_management"], @@ -1178,8 +1178,8 @@ "@kbn/logs-shared-plugin/*": ["x-pack/platform/plugins/shared/observability_solution/logs_shared/*"], "@kbn/logstash-plugin": ["x-pack/platform/plugins/private/logstash"], "@kbn/logstash-plugin/*": ["x-pack/platform/plugins/private/logstash/*"], - "@kbn/managed-content-badge": ["packages/kbn-managed-content-badge"], - "@kbn/managed-content-badge/*": ["packages/kbn-managed-content-badge/*"], + "@kbn/managed-content-badge": ["src/platform/packages/private/kbn-managed-content-badge"], + "@kbn/managed-content-badge/*": ["src/platform/packages/private/kbn-managed-content-badge/*"], "@kbn/managed-vscode-config": ["packages/kbn-managed-vscode-config"], "@kbn/managed-vscode-config/*": ["packages/kbn-managed-vscode-config/*"], "@kbn/managed-vscode-config-cli": ["packages/kbn-managed-vscode-config-cli"], @@ -1418,8 +1418,8 @@ "@kbn/profiling-plugin/*": ["x-pack/solutions/observability/plugins/profiling/*"], "@kbn/profiling-utils": ["src/platform/packages/shared/kbn-profiling-utils"], "@kbn/profiling-utils/*": ["src/platform/packages/shared/kbn-profiling-utils/*"], - "@kbn/random-sampling": ["x-pack/packages/kbn-random-sampling"], - "@kbn/random-sampling/*": ["x-pack/packages/kbn-random-sampling/*"], + "@kbn/random-sampling": ["x-pack/platform/packages/private/kbn-random-sampling"], + "@kbn/random-sampling/*": ["x-pack/platform/packages/private/kbn-random-sampling/*"], "@kbn/react-field": ["src/platform/packages/shared/kbn-react-field"], "@kbn/react-field/*": ["src/platform/packages/shared/kbn-react-field/*"], "@kbn/react-hooks": ["src/platform/packages/shared/kbn-react-hooks"], @@ -1844,8 +1844,8 @@ "@kbn/some-dev-log/*": ["packages/kbn-some-dev-log/*"], "@kbn/sort-package-json": ["packages/kbn-sort-package-json"], "@kbn/sort-package-json/*": ["packages/kbn-sort-package-json/*"], - "@kbn/sort-predicates": ["packages/kbn-sort-predicates"], - "@kbn/sort-predicates/*": ["packages/kbn-sort-predicates/*"], + "@kbn/sort-predicates": ["src/platform/packages/shared/kbn-sort-predicates"], + "@kbn/sort-predicates/*": ["src/platform/packages/shared/kbn-sort-predicates/*"], "@kbn/spaces-plugin": ["x-pack/platform/plugins/shared/spaces"], "@kbn/spaces-plugin/*": ["x-pack/platform/plugins/shared/spaces/*"], "@kbn/spaces-test-plugin": ["x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin"], @@ -1934,20 +1934,20 @@ "@kbn/threat-intelligence-plugin/*": ["x-pack/solutions/security/plugins/threat_intelligence/*"], "@kbn/timelines-plugin": ["x-pack/solutions/security/plugins/timelines"], "@kbn/timelines-plugin/*": ["x-pack/solutions/security/plugins/timelines/*"], - "@kbn/timelion-grammar": ["packages/kbn-timelion-grammar"], - "@kbn/timelion-grammar/*": ["packages/kbn-timelion-grammar/*"], + "@kbn/timelion-grammar": ["src/platform/packages/private/kbn-timelion-grammar"], + "@kbn/timelion-grammar/*": ["src/platform/packages/private/kbn-timelion-grammar/*"], "@kbn/timerange": ["src/platform/packages/shared/kbn-timerange"], "@kbn/timerange/*": ["src/platform/packages/shared/kbn-timerange/*"], - "@kbn/tinymath": ["packages/kbn-tinymath"], - "@kbn/tinymath/*": ["packages/kbn-tinymath/*"], + "@kbn/tinymath": ["src/platform/packages/private/kbn-tinymath"], + "@kbn/tinymath/*": ["src/platform/packages/private/kbn-tinymath/*"], "@kbn/tooling-log": ["packages/kbn-tooling-log"], "@kbn/tooling-log/*": ["packages/kbn-tooling-log/*"], "@kbn/transform-plugin": ["x-pack/platform/plugins/private/transform"], "@kbn/transform-plugin/*": ["x-pack/platform/plugins/private/transform/*"], "@kbn/translations-plugin": ["x-pack/platform/plugins/private/translations"], "@kbn/translations-plugin/*": ["x-pack/platform/plugins/private/translations/*"], - "@kbn/transpose-utils": ["packages/kbn-transpose-utils"], - "@kbn/transpose-utils/*": ["packages/kbn-transpose-utils/*"], + "@kbn/transpose-utils": ["src/platform/packages/private/kbn-transpose-utils"], + "@kbn/transpose-utils/*": ["src/platform/packages/private/kbn-transpose-utils/*"], "@kbn/triggers-actions-ui-example-plugin": ["x-pack/examples/triggers_actions_ui_example"], "@kbn/triggers-actions-ui-example-plugin/*": ["x-pack/examples/triggers_actions_ui_example/*"], "@kbn/triggers-actions-ui-plugin": ["x-pack/platform/plugins/shared/triggers_actions_ui"], @@ -1996,8 +1996,8 @@ "@kbn/unified-field-list-examples-plugin/*": ["examples/unified_field_list_examples/*"], "@kbn/unified-histogram-plugin": ["src/platform/plugins/shared/unified_histogram"], "@kbn/unified-histogram-plugin/*": ["src/platform/plugins/shared/unified_histogram/*"], - "@kbn/unified-search-plugin": ["src/plugins/unified_search"], - "@kbn/unified-search-plugin/*": ["src/plugins/unified_search/*"], + "@kbn/unified-search-plugin": ["src/platform/plugins/shared/unified_search"], + "@kbn/unified-search-plugin/*": ["src/platform/plugins/shared/unified_search/*"], "@kbn/unsaved-changes-badge": ["src/platform/packages/private/kbn-unsaved-changes-badge"], "@kbn/unsaved-changes-badge/*": ["src/platform/packages/private/kbn-unsaved-changes-badge/*"], "@kbn/unsaved-changes-prompt": ["src/platform/packages/shared/kbn-unsaved-changes-prompt"], @@ -2008,8 +2008,8 @@ "@kbn/uptime-plugin/*": ["x-pack/solutions/observability/plugins/uptime/*"], "@kbn/url-drilldown-plugin": ["x-pack/plugins/drilldowns/url_drilldown"], "@kbn/url-drilldown-plugin/*": ["x-pack/plugins/drilldowns/url_drilldown/*"], - "@kbn/url-forwarding-plugin": ["src/plugins/url_forwarding"], - "@kbn/url-forwarding-plugin/*": ["src/plugins/url_forwarding/*"], + "@kbn/url-forwarding-plugin": ["src/platform/plugins/private/url_forwarding"], + "@kbn/url-forwarding-plugin/*": ["src/platform/plugins/private/url_forwarding/*"], "@kbn/usage-collection-plugin": ["src/platform/plugins/shared/usage_collection"], "@kbn/usage-collection-plugin/*": ["src/platform/plugins/shared/usage_collection/*"], "@kbn/usage-collection-test-plugin": ["test/plugin_functional/plugins/usage_collection"], @@ -2034,38 +2034,38 @@ "@kbn/v8-profiler-examples-plugin/*": ["examples/v8_profiler_examples/*"], "@kbn/validate-next-docs-cli": ["packages/kbn-validate-next-docs-cli"], "@kbn/validate-next-docs-cli/*": ["packages/kbn-validate-next-docs-cli/*"], - "@kbn/vis-default-editor-plugin": ["src/plugins/vis_default_editor"], - "@kbn/vis-default-editor-plugin/*": ["src/plugins/vis_default_editor/*"], - "@kbn/vis-type-gauge-plugin": ["src/plugins/vis_types/gauge"], - "@kbn/vis-type-gauge-plugin/*": ["src/plugins/vis_types/gauge/*"], - "@kbn/vis-type-heatmap-plugin": ["src/plugins/vis_types/heatmap"], - "@kbn/vis-type-heatmap-plugin/*": ["src/plugins/vis_types/heatmap/*"], + "@kbn/vis-default-editor-plugin": ["src/platform/plugins/private/vis_default_editor"], + "@kbn/vis-default-editor-plugin/*": ["src/platform/plugins/private/vis_default_editor/*"], + "@kbn/vis-type-gauge-plugin": ["src/platform/plugins/private/vis_types/gauge"], + "@kbn/vis-type-gauge-plugin/*": ["src/platform/plugins/private/vis_types/gauge/*"], + "@kbn/vis-type-heatmap-plugin": ["src/platform/plugins/private/vis_types/heatmap"], + "@kbn/vis-type-heatmap-plugin/*": ["src/platform/plugins/private/vis_types/heatmap/*"], "@kbn/vis-type-markdown-plugin": ["src/platform/plugins/private/vis_type_markdown"], "@kbn/vis-type-markdown-plugin/*": ["src/platform/plugins/private/vis_type_markdown/*"], - "@kbn/vis-type-metric-plugin": ["src/plugins/vis_types/metric"], - "@kbn/vis-type-metric-plugin/*": ["src/plugins/vis_types/metric/*"], - "@kbn/vis-type-pie-plugin": ["src/plugins/vis_types/pie"], - "@kbn/vis-type-pie-plugin/*": ["src/plugins/vis_types/pie/*"], - "@kbn/vis-type-table-plugin": ["src/plugins/vis_types/table"], - "@kbn/vis-type-table-plugin/*": ["src/plugins/vis_types/table/*"], - "@kbn/vis-type-tagcloud-plugin": ["src/plugins/vis_types/tagcloud"], - "@kbn/vis-type-tagcloud-plugin/*": ["src/plugins/vis_types/tagcloud/*"], - "@kbn/vis-type-timelion-plugin": ["src/plugins/vis_types/timelion"], - "@kbn/vis-type-timelion-plugin/*": ["src/plugins/vis_types/timelion/*"], - "@kbn/vis-type-timeseries-plugin": ["src/plugins/vis_types/timeseries"], - "@kbn/vis-type-timeseries-plugin/*": ["src/plugins/vis_types/timeseries/*"], - "@kbn/vis-type-vega-plugin": ["src/plugins/vis_types/vega"], - "@kbn/vis-type-vega-plugin/*": ["src/plugins/vis_types/vega/*"], - "@kbn/vis-type-vislib-plugin": ["src/plugins/vis_types/vislib"], - "@kbn/vis-type-vislib-plugin/*": ["src/plugins/vis_types/vislib/*"], - "@kbn/vis-type-xy-plugin": ["src/plugins/vis_types/xy"], - "@kbn/vis-type-xy-plugin/*": ["src/plugins/vis_types/xy/*"], - "@kbn/visualization-ui-components": ["packages/kbn-visualization-ui-components"], - "@kbn/visualization-ui-components/*": ["packages/kbn-visualization-ui-components/*"], - "@kbn/visualization-utils": ["packages/kbn-visualization-utils"], - "@kbn/visualization-utils/*": ["packages/kbn-visualization-utils/*"], - "@kbn/visualizations-plugin": ["src/plugins/visualizations"], - "@kbn/visualizations-plugin/*": ["src/plugins/visualizations/*"], + "@kbn/vis-type-metric-plugin": ["src/platform/plugins/private/vis_types/metric"], + "@kbn/vis-type-metric-plugin/*": ["src/platform/plugins/private/vis_types/metric/*"], + "@kbn/vis-type-pie-plugin": ["src/platform/plugins/private/vis_types/pie"], + "@kbn/vis-type-pie-plugin/*": ["src/platform/plugins/private/vis_types/pie/*"], + "@kbn/vis-type-table-plugin": ["src/platform/plugins/private/vis_types/table"], + "@kbn/vis-type-table-plugin/*": ["src/platform/plugins/private/vis_types/table/*"], + "@kbn/vis-type-tagcloud-plugin": ["src/platform/plugins/private/vis_types/tagcloud"], + "@kbn/vis-type-tagcloud-plugin/*": ["src/platform/plugins/private/vis_types/tagcloud/*"], + "@kbn/vis-type-timelion-plugin": ["src/platform/plugins/private/vis_types/timelion"], + "@kbn/vis-type-timelion-plugin/*": ["src/platform/plugins/private/vis_types/timelion/*"], + "@kbn/vis-type-timeseries-plugin": ["src/platform/plugins/shared/vis_types/timeseries"], + "@kbn/vis-type-timeseries-plugin/*": ["src/platform/plugins/shared/vis_types/timeseries/*"], + "@kbn/vis-type-vega-plugin": ["src/platform/plugins/private/vis_types/vega"], + "@kbn/vis-type-vega-plugin/*": ["src/platform/plugins/private/vis_types/vega/*"], + "@kbn/vis-type-vislib-plugin": ["src/platform/plugins/private/vis_types/vislib"], + "@kbn/vis-type-vislib-plugin/*": ["src/platform/plugins/private/vis_types/vislib/*"], + "@kbn/vis-type-xy-plugin": ["src/platform/plugins/private/vis_types/xy"], + "@kbn/vis-type-xy-plugin/*": ["src/platform/plugins/private/vis_types/xy/*"], + "@kbn/visualization-ui-components": ["src/platform/packages/shared/kbn-visualization-ui-components"], + "@kbn/visualization-ui-components/*": ["src/platform/packages/shared/kbn-visualization-ui-components/*"], + "@kbn/visualization-utils": ["src/platform/packages/shared/kbn-visualization-utils"], + "@kbn/visualization-utils/*": ["src/platform/packages/shared/kbn-visualization-utils/*"], + "@kbn/visualizations-plugin": ["src/platform/plugins/shared/visualizations"], + "@kbn/visualizations-plugin/*": ["src/platform/plugins/shared/visualizations/*"], "@kbn/watcher-plugin": ["x-pack/platform/plugins/private/watcher"], "@kbn/watcher-plugin/*": ["x-pack/platform/plugins/private/watcher/*"], "@kbn/web-worker-stub": ["packages/kbn-web-worker-stub"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index b9151ad2cee8c..ceb589c8c3243 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -53,7 +53,7 @@ "platform/plugins/private/global_search_bar" ], "xpack.graph": [ - "plugins/graph" + "platform/plugins/private/graph" ], "xpack.grokDebugger": "platform/plugins/private/grokdebugger", "xpack.idxMgmt": "platform/plugins/shared/index_management", @@ -72,7 +72,7 @@ "xpack.investigate": "solutions/observability/plugins/investigate", "xpack.investigateApp": "solutions/observability/plugins/investigate_app", "xpack.kubernetesSecurity": "solutions/security/plugins/kubernetes_security", - "xpack.lens": "plugins/lens", + "xpack.lens": "platform/plugins/shared/lens", "xpack.licenseApiGuard": "platform/plugins/private/license_api_guard", "xpack.licenseMgmt": "platform/plugins/shared/license_management", "xpack.licensing": "platform/plugins/shared/licensing", diff --git a/x-pack/packages/kbn-random-sampling/jest.config.js b/x-pack/packages/kbn-random-sampling/jest.config.js deleted file mode 100644 index ea198cd7ad3bd..0000000000000 --- a/x-pack/packages/kbn-random-sampling/jest.config.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/packages/kbn-random-sampling'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/packages/kbn-random-sampling', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/packages/kbn-random-sampling/public/**/*.{ts,tsx}'], -}; diff --git a/x-pack/packages/kbn-random-sampling/.storybook/main.js b/x-pack/platform/packages/private/kbn-random-sampling/.storybook/main.js similarity index 100% rename from x-pack/packages/kbn-random-sampling/.storybook/main.js rename to x-pack/platform/packages/private/kbn-random-sampling/.storybook/main.js diff --git a/x-pack/packages/kbn-random-sampling/.storybook/preview.js b/x-pack/platform/packages/private/kbn-random-sampling/.storybook/preview.js similarity index 100% rename from x-pack/packages/kbn-random-sampling/.storybook/preview.js rename to x-pack/platform/packages/private/kbn-random-sampling/.storybook/preview.js diff --git a/x-pack/packages/kbn-random-sampling/README.md b/x-pack/platform/packages/private/kbn-random-sampling/README.md similarity index 100% rename from x-pack/packages/kbn-random-sampling/README.md rename to x-pack/platform/packages/private/kbn-random-sampling/README.md diff --git a/x-pack/packages/kbn-random-sampling/index.ts b/x-pack/platform/packages/private/kbn-random-sampling/index.ts similarity index 100% rename from x-pack/packages/kbn-random-sampling/index.ts rename to x-pack/platform/packages/private/kbn-random-sampling/index.ts diff --git a/x-pack/platform/packages/private/kbn-random-sampling/jest.config.js b/x-pack/platform/packages/private/kbn-random-sampling/jest.config.js new file mode 100644 index 0000000000000..270828d337062 --- /dev/null +++ b/x-pack/platform/packages/private/kbn-random-sampling/jest.config.js @@ -0,0 +1,18 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/x-pack/platform/packages/private/kbn-random-sampling'], + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/packages/private/kbn-random-sampling', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/x-pack/platform/packages/private/kbn-random-sampling/public/**/*.{ts,tsx}', + ], +}; diff --git a/x-pack/packages/kbn-random-sampling/kibana.jsonc b/x-pack/platform/packages/private/kbn-random-sampling/kibana.jsonc similarity index 100% rename from x-pack/packages/kbn-random-sampling/kibana.jsonc rename to x-pack/platform/packages/private/kbn-random-sampling/kibana.jsonc diff --git a/x-pack/packages/kbn-random-sampling/package.json b/x-pack/platform/packages/private/kbn-random-sampling/package.json similarity index 100% rename from x-pack/packages/kbn-random-sampling/package.json rename to x-pack/platform/packages/private/kbn-random-sampling/package.json diff --git a/x-pack/packages/kbn-random-sampling/src/__stories__/control_slider.stories.mdx b/x-pack/platform/packages/private/kbn-random-sampling/src/__stories__/control_slider.stories.mdx similarity index 100% rename from x-pack/packages/kbn-random-sampling/src/__stories__/control_slider.stories.mdx rename to x-pack/platform/packages/private/kbn-random-sampling/src/__stories__/control_slider.stories.mdx diff --git a/x-pack/packages/kbn-random-sampling/src/__stories__/sampling_icon.stories.mdx b/x-pack/platform/packages/private/kbn-random-sampling/src/__stories__/sampling_icon.stories.mdx similarity index 100% rename from x-pack/packages/kbn-random-sampling/src/__stories__/sampling_icon.stories.mdx rename to x-pack/platform/packages/private/kbn-random-sampling/src/__stories__/sampling_icon.stories.mdx diff --git a/x-pack/packages/kbn-random-sampling/src/index.ts b/x-pack/platform/packages/private/kbn-random-sampling/src/index.ts similarity index 100% rename from x-pack/packages/kbn-random-sampling/src/index.ts rename to x-pack/platform/packages/private/kbn-random-sampling/src/index.ts diff --git a/x-pack/packages/kbn-random-sampling/src/ui/icon/sampling_icon.tsx b/x-pack/platform/packages/private/kbn-random-sampling/src/ui/icon/sampling_icon.tsx similarity index 100% rename from x-pack/packages/kbn-random-sampling/src/ui/icon/sampling_icon.tsx rename to x-pack/platform/packages/private/kbn-random-sampling/src/ui/icon/sampling_icon.tsx diff --git a/x-pack/packages/kbn-random-sampling/src/ui/slider_control/index.test.tsx b/x-pack/platform/packages/private/kbn-random-sampling/src/ui/slider_control/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-random-sampling/src/ui/slider_control/index.test.tsx rename to x-pack/platform/packages/private/kbn-random-sampling/src/ui/slider_control/index.test.tsx diff --git a/x-pack/packages/kbn-random-sampling/src/ui/slider_control/index.tsx b/x-pack/platform/packages/private/kbn-random-sampling/src/ui/slider_control/index.tsx similarity index 100% rename from x-pack/packages/kbn-random-sampling/src/ui/slider_control/index.tsx rename to x-pack/platform/packages/private/kbn-random-sampling/src/ui/slider_control/index.tsx diff --git a/x-pack/packages/kbn-random-sampling/tsconfig.json b/x-pack/platform/packages/private/kbn-random-sampling/tsconfig.json similarity index 84% rename from x-pack/packages/kbn-random-sampling/tsconfig.json rename to x-pack/platform/packages/private/kbn-random-sampling/tsconfig.json index b4b34fcb94036..6db70ecebe120 100644 --- a/x-pack/packages/kbn-random-sampling/tsconfig.json +++ b/x-pack/platform/packages/private/kbn-random-sampling/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/platform/packages/private/ml/date_utils/src/date_utils.ts b/x-pack/platform/packages/private/ml/date_utils/src/date_utils.ts index ababc3718ca31..1e48c3a598811 100644 --- a/x-pack/platform/packages/private/ml/date_utils/src/date_utils.ts +++ b/x-pack/platform/packages/private/ml/date_utils/src/date_utils.ts @@ -44,7 +44,7 @@ export function formatHumanReadableDateTimeSeconds(ts: number): string { /** * Validate a time range of two string based dates. - * Copy of `src/plugins/data/public/query/timefilter/lib/validate_timerange.ts` + * Copy of `src/platform/plugins/shared/data/public/query/timefilter/lib/validate_timerange.ts` * for the time being so it can be used in packages. * * @param {?TimeRange} [time] - The time range to be validated. diff --git a/x-pack/plugins/graph/README.md b/x-pack/platform/plugins/private/graph/README.md similarity index 94% rename from x-pack/plugins/graph/README.md rename to x-pack/platform/plugins/private/graph/README.md index b17f114a8f01f..207d10a6be56e 100644 --- a/x-pack/plugins/graph/README.md +++ b/x-pack/platform/plugins/private/graph/README.md @@ -6,9 +6,9 @@ Graph shows only up in the side bar if your server is running on a platinum or t ## Common commands -* Run tests `yarn test:jest x-pack/plugins/graph --watch` +* Run tests `yarn test:jest x-pack/platform/plugins/private/graph --watch` * Run type check `node scripts/type_check.js --project=x-pack/tsconfig.json` -* Run linter `node scripts/eslint.js x-pack/plugins/graph` +* Run linter `node scripts/eslint.js x-pack/platform/plugins/private/graph` * Run functional tests (make sure to stop dev server) * Server `node ./scripts/functional_tests_server.js --config x-pack/test/functional/apps/graph/config.ts` * Tests `node scripts/functional_test_runner.js --config x-pack/test/functional/apps/graph/config.ts` diff --git a/x-pack/plugins/graph/common/check_license.ts b/x-pack/platform/plugins/private/graph/common/check_license.ts similarity index 100% rename from x-pack/plugins/graph/common/check_license.ts rename to x-pack/platform/plugins/private/graph/common/check_license.ts diff --git a/x-pack/plugins/graph/common/constants.ts b/x-pack/platform/plugins/private/graph/common/constants.ts similarity index 100% rename from x-pack/plugins/graph/common/constants.ts rename to x-pack/platform/plugins/private/graph/common/constants.ts diff --git a/x-pack/plugins/graph/common/content_management/constants.ts b/x-pack/platform/plugins/private/graph/common/content_management/constants.ts similarity index 100% rename from x-pack/plugins/graph/common/content_management/constants.ts rename to x-pack/platform/plugins/private/graph/common/content_management/constants.ts diff --git a/x-pack/plugins/graph/common/content_management/index.ts b/x-pack/platform/plugins/private/graph/common/content_management/index.ts similarity index 100% rename from x-pack/plugins/graph/common/content_management/index.ts rename to x-pack/platform/plugins/private/graph/common/content_management/index.ts diff --git a/x-pack/plugins/graph/common/content_management/latest.ts b/x-pack/platform/plugins/private/graph/common/content_management/latest.ts similarity index 100% rename from x-pack/plugins/graph/common/content_management/latest.ts rename to x-pack/platform/plugins/private/graph/common/content_management/latest.ts diff --git a/x-pack/plugins/graph/common/content_management/types.ts b/x-pack/platform/plugins/private/graph/common/content_management/types.ts similarity index 100% rename from x-pack/plugins/graph/common/content_management/types.ts rename to x-pack/platform/plugins/private/graph/common/content_management/types.ts diff --git a/x-pack/plugins/graph/common/content_management/v1/index.ts b/x-pack/platform/plugins/private/graph/common/content_management/v1/index.ts similarity index 100% rename from x-pack/plugins/graph/common/content_management/v1/index.ts rename to x-pack/platform/plugins/private/graph/common/content_management/v1/index.ts diff --git a/x-pack/plugins/graph/common/content_management/v1/types.ts b/x-pack/platform/plugins/private/graph/common/content_management/v1/types.ts similarity index 100% rename from x-pack/plugins/graph/common/content_management/v1/types.ts rename to x-pack/platform/plugins/private/graph/common/content_management/v1/types.ts diff --git a/x-pack/plugins/graph/jest.config.js b/x-pack/platform/plugins/private/graph/jest.config.js similarity index 61% rename from x-pack/plugins/graph/jest.config.js rename to x-pack/platform/plugins/private/graph/jest.config.js index bd9c9d0938686..6748b50f3eed0 100644 --- a/x-pack/plugins/graph/jest.config.js +++ b/x-pack/platform/plugins/private/graph/jest.config.js @@ -7,9 +7,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/graph'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/graph', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/private/graph'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/graph', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/graph/{common,public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/private/graph/{common,public,server}/**/*.{js,ts,tsx}', + ], }; diff --git a/x-pack/plugins/graph/kibana.jsonc b/x-pack/platform/plugins/private/graph/kibana.jsonc similarity index 100% rename from x-pack/plugins/graph/kibana.jsonc rename to x-pack/platform/plugins/private/graph/kibana.jsonc diff --git a/x-pack/plugins/graph/public/_main.scss b/x-pack/platform/plugins/private/graph/public/_main.scss similarity index 100% rename from x-pack/plugins/graph/public/_main.scss rename to x-pack/platform/plugins/private/graph/public/_main.scss diff --git a/x-pack/plugins/graph/public/_mixins.scss b/x-pack/platform/plugins/private/graph/public/_mixins.scss similarity index 100% rename from x-pack/plugins/graph/public/_mixins.scss rename to x-pack/platform/plugins/private/graph/public/_mixins.scss diff --git a/x-pack/plugins/graph/public/application.tsx b/x-pack/platform/plugins/private/graph/public/application.tsx similarity index 100% rename from x-pack/plugins/graph/public/application.tsx rename to x-pack/platform/plugins/private/graph/public/application.tsx diff --git a/x-pack/plugins/graph/public/apps/listing_route.tsx b/x-pack/platform/plugins/private/graph/public/apps/listing_route.tsx similarity index 100% rename from x-pack/plugins/graph/public/apps/listing_route.tsx rename to x-pack/platform/plugins/private/graph/public/apps/listing_route.tsx diff --git a/x-pack/plugins/graph/public/apps/workspace_route.tsx b/x-pack/platform/plugins/private/graph/public/apps/workspace_route.tsx similarity index 100% rename from x-pack/plugins/graph/public/apps/workspace_route.tsx rename to x-pack/platform/plugins/private/graph/public/apps/workspace_route.tsx diff --git a/x-pack/plugins/graph/public/components/_app.scss b/x-pack/platform/plugins/private/graph/public/components/_app.scss similarity index 100% rename from x-pack/plugins/graph/public/components/_app.scss rename to x-pack/platform/plugins/private/graph/public/components/_app.scss diff --git a/x-pack/plugins/graph/public/components/_graph.scss b/x-pack/platform/plugins/private/graph/public/components/_graph.scss similarity index 100% rename from x-pack/plugins/graph/public/components/_graph.scss rename to x-pack/platform/plugins/private/graph/public/components/_graph.scss diff --git a/x-pack/plugins/graph/public/components/_index.scss b/x-pack/platform/plugins/private/graph/public/components/_index.scss similarity index 100% rename from x-pack/plugins/graph/public/components/_index.scss rename to x-pack/platform/plugins/private/graph/public/components/_index.scss diff --git a/x-pack/plugins/graph/public/components/_inspect.scss b/x-pack/platform/plugins/private/graph/public/components/_inspect.scss similarity index 100% rename from x-pack/plugins/graph/public/components/_inspect.scss rename to x-pack/platform/plugins/private/graph/public/components/_inspect.scss diff --git a/x-pack/plugins/graph/public/components/_search_bar.scss b/x-pack/platform/plugins/private/graph/public/components/_search_bar.scss similarity index 100% rename from x-pack/plugins/graph/public/components/_search_bar.scss rename to x-pack/platform/plugins/private/graph/public/components/_search_bar.scss diff --git a/x-pack/plugins/graph/public/components/_sidebar.scss b/x-pack/platform/plugins/private/graph/public/components/_sidebar.scss similarity index 100% rename from x-pack/plugins/graph/public/components/_sidebar.scss rename to x-pack/platform/plugins/private/graph/public/components/_sidebar.scss diff --git a/x-pack/plugins/graph/public/components/_source_modal.scss b/x-pack/platform/plugins/private/graph/public/components/_source_modal.scss similarity index 100% rename from x-pack/plugins/graph/public/components/_source_modal.scss rename to x-pack/platform/plugins/private/graph/public/components/_source_modal.scss diff --git a/x-pack/plugins/graph/public/components/control_panel/control_panel.tsx b/x-pack/platform/plugins/private/graph/public/components/control_panel/control_panel.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/control_panel/control_panel.tsx rename to x-pack/platform/plugins/private/graph/public/components/control_panel/control_panel.tsx diff --git a/x-pack/plugins/graph/public/components/control_panel/control_panel_tool_bar.tsx b/x-pack/platform/plugins/private/graph/public/components/control_panel/control_panel_tool_bar.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/control_panel/control_panel_tool_bar.tsx rename to x-pack/platform/plugins/private/graph/public/components/control_panel/control_panel_tool_bar.tsx diff --git a/x-pack/plugins/graph/public/components/control_panel/drill_down_icon_links.tsx b/x-pack/platform/plugins/private/graph/public/components/control_panel/drill_down_icon_links.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/control_panel/drill_down_icon_links.tsx rename to x-pack/platform/plugins/private/graph/public/components/control_panel/drill_down_icon_links.tsx diff --git a/x-pack/plugins/graph/public/components/control_panel/drill_downs.tsx b/x-pack/platform/plugins/private/graph/public/components/control_panel/drill_downs.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/control_panel/drill_downs.tsx rename to x-pack/platform/plugins/private/graph/public/components/control_panel/drill_downs.tsx diff --git a/x-pack/plugins/graph/public/components/control_panel/index.ts b/x-pack/platform/plugins/private/graph/public/components/control_panel/index.ts similarity index 100% rename from x-pack/plugins/graph/public/components/control_panel/index.ts rename to x-pack/platform/plugins/private/graph/public/components/control_panel/index.ts diff --git a/x-pack/plugins/graph/public/components/control_panel/merge_candidates.tsx b/x-pack/platform/plugins/private/graph/public/components/control_panel/merge_candidates.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/control_panel/merge_candidates.tsx rename to x-pack/platform/plugins/private/graph/public/components/control_panel/merge_candidates.tsx diff --git a/x-pack/plugins/graph/public/components/control_panel/select_style.tsx b/x-pack/platform/plugins/private/graph/public/components/control_panel/select_style.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/control_panel/select_style.tsx rename to x-pack/platform/plugins/private/graph/public/components/control_panel/select_style.tsx diff --git a/x-pack/plugins/graph/public/components/control_panel/selected_node_editor.tsx b/x-pack/platform/plugins/private/graph/public/components/control_panel/selected_node_editor.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/control_panel/selected_node_editor.tsx rename to x-pack/platform/plugins/private/graph/public/components/control_panel/selected_node_editor.tsx diff --git a/x-pack/plugins/graph/public/components/control_panel/selected_node_item.tsx b/x-pack/platform/plugins/private/graph/public/components/control_panel/selected_node_item.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/control_panel/selected_node_item.tsx rename to x-pack/platform/plugins/private/graph/public/components/control_panel/selected_node_item.tsx diff --git a/x-pack/plugins/graph/public/components/control_panel/selection_tool_bar.tsx b/x-pack/platform/plugins/private/graph/public/components/control_panel/selection_tool_bar.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/control_panel/selection_tool_bar.tsx rename to x-pack/platform/plugins/private/graph/public/components/control_panel/selection_tool_bar.tsx diff --git a/x-pack/plugins/graph/public/components/field_manager/_field_editor.scss b/x-pack/platform/plugins/private/graph/public/components/field_manager/_field_editor.scss similarity index 100% rename from x-pack/plugins/graph/public/components/field_manager/_field_editor.scss rename to x-pack/platform/plugins/private/graph/public/components/field_manager/_field_editor.scss diff --git a/x-pack/plugins/graph/public/components/field_manager/_field_picker.scss b/x-pack/platform/plugins/private/graph/public/components/field_manager/_field_picker.scss similarity index 100% rename from x-pack/plugins/graph/public/components/field_manager/_field_picker.scss rename to x-pack/platform/plugins/private/graph/public/components/field_manager/_field_picker.scss diff --git a/x-pack/plugins/graph/public/components/field_manager/_index.scss b/x-pack/platform/plugins/private/graph/public/components/field_manager/_index.scss similarity index 100% rename from x-pack/plugins/graph/public/components/field_manager/_index.scss rename to x-pack/platform/plugins/private/graph/public/components/field_manager/_index.scss diff --git a/x-pack/plugins/graph/public/components/field_manager/field_editor.tsx b/x-pack/platform/plugins/private/graph/public/components/field_manager/field_editor.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/field_manager/field_editor.tsx rename to x-pack/platform/plugins/private/graph/public/components/field_manager/field_editor.tsx diff --git a/x-pack/plugins/graph/public/components/field_manager/field_manager.test.tsx b/x-pack/platform/plugins/private/graph/public/components/field_manager/field_manager.test.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/field_manager/field_manager.test.tsx rename to x-pack/platform/plugins/private/graph/public/components/field_manager/field_manager.test.tsx diff --git a/x-pack/plugins/graph/public/components/field_manager/field_manager.tsx b/x-pack/platform/plugins/private/graph/public/components/field_manager/field_manager.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/field_manager/field_manager.tsx rename to x-pack/platform/plugins/private/graph/public/components/field_manager/field_manager.tsx diff --git a/x-pack/plugins/graph/public/components/field_manager/field_picker.tsx b/x-pack/platform/plugins/private/graph/public/components/field_manager/field_picker.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/field_manager/field_picker.tsx rename to x-pack/platform/plugins/private/graph/public/components/field_manager/field_picker.tsx diff --git a/x-pack/plugins/graph/public/components/field_manager/index.ts b/x-pack/platform/plugins/private/graph/public/components/field_manager/index.ts similarity index 100% rename from x-pack/plugins/graph/public/components/field_manager/index.ts rename to x-pack/platform/plugins/private/graph/public/components/field_manager/index.ts diff --git a/x-pack/plugins/graph/public/components/graph_title.tsx b/x-pack/platform/plugins/private/graph/public/components/graph_title.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/graph_title.tsx rename to x-pack/platform/plugins/private/graph/public/components/graph_title.tsx diff --git a/x-pack/plugins/graph/public/components/graph_visualization/__snapshots__/graph_visualization.test.tsx.snap b/x-pack/platform/plugins/private/graph/public/components/graph_visualization/__snapshots__/graph_visualization.test.tsx.snap similarity index 100% rename from x-pack/plugins/graph/public/components/graph_visualization/__snapshots__/graph_visualization.test.tsx.snap rename to x-pack/platform/plugins/private/graph/public/components/graph_visualization/__snapshots__/graph_visualization.test.tsx.snap diff --git a/x-pack/plugins/graph/public/components/graph_visualization/_graph_visualization.scss b/x-pack/platform/plugins/private/graph/public/components/graph_visualization/_graph_visualization.scss similarity index 100% rename from x-pack/plugins/graph/public/components/graph_visualization/_graph_visualization.scss rename to x-pack/platform/plugins/private/graph/public/components/graph_visualization/_graph_visualization.scss diff --git a/x-pack/plugins/graph/public/components/graph_visualization/_index.scss b/x-pack/platform/plugins/private/graph/public/components/graph_visualization/_index.scss similarity index 100% rename from x-pack/plugins/graph/public/components/graph_visualization/_index.scss rename to x-pack/platform/plugins/private/graph/public/components/graph_visualization/_index.scss diff --git a/x-pack/plugins/graph/public/components/graph_visualization/graph_visualization.test.tsx b/x-pack/platform/plugins/private/graph/public/components/graph_visualization/graph_visualization.test.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/graph_visualization/graph_visualization.test.tsx rename to x-pack/platform/plugins/private/graph/public/components/graph_visualization/graph_visualization.test.tsx diff --git a/x-pack/plugins/graph/public/components/graph_visualization/graph_visualization.tsx b/x-pack/platform/plugins/private/graph/public/components/graph_visualization/graph_visualization.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/graph_visualization/graph_visualization.tsx rename to x-pack/platform/plugins/private/graph/public/components/graph_visualization/graph_visualization.tsx diff --git a/x-pack/plugins/graph/public/components/graph_visualization/index.ts b/x-pack/platform/plugins/private/graph/public/components/graph_visualization/index.ts similarity index 100% rename from x-pack/plugins/graph/public/components/graph_visualization/index.ts rename to x-pack/platform/plugins/private/graph/public/components/graph_visualization/index.ts diff --git a/x-pack/plugins/graph/public/components/guidance_panel/_guidance_panel.scss b/x-pack/platform/plugins/private/graph/public/components/guidance_panel/_guidance_panel.scss similarity index 100% rename from x-pack/plugins/graph/public/components/guidance_panel/_guidance_panel.scss rename to x-pack/platform/plugins/private/graph/public/components/guidance_panel/_guidance_panel.scss diff --git a/x-pack/plugins/graph/public/components/guidance_panel/_index.scss b/x-pack/platform/plugins/private/graph/public/components/guidance_panel/_index.scss similarity index 100% rename from x-pack/plugins/graph/public/components/guidance_panel/_index.scss rename to x-pack/platform/plugins/private/graph/public/components/guidance_panel/_index.scss diff --git a/x-pack/plugins/graph/public/components/guidance_panel/guidance_panel.tsx b/x-pack/platform/plugins/private/graph/public/components/guidance_panel/guidance_panel.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/guidance_panel/guidance_panel.tsx rename to x-pack/platform/plugins/private/graph/public/components/guidance_panel/guidance_panel.tsx diff --git a/x-pack/plugins/graph/public/components/guidance_panel/index.ts b/x-pack/platform/plugins/private/graph/public/components/guidance_panel/index.ts similarity index 100% rename from x-pack/plugins/graph/public/components/guidance_panel/index.ts rename to x-pack/platform/plugins/private/graph/public/components/guidance_panel/index.ts diff --git a/x-pack/plugins/graph/public/components/helpers.ts b/x-pack/platform/plugins/private/graph/public/components/helpers.ts similarity index 100% rename from x-pack/plugins/graph/public/components/helpers.ts rename to x-pack/platform/plugins/private/graph/public/components/helpers.ts diff --git a/x-pack/plugins/graph/public/components/icon_renderer.tsx b/x-pack/platform/plugins/private/graph/public/components/icon_renderer.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/icon_renderer.tsx rename to x-pack/platform/plugins/private/graph/public/components/icon_renderer.tsx diff --git a/x-pack/plugins/graph/public/components/maki_icons/assets.tsx b/x-pack/platform/plugins/private/graph/public/components/maki_icons/assets.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/maki_icons/assets.tsx rename to x-pack/platform/plugins/private/graph/public/components/maki_icons/assets.tsx diff --git a/x-pack/plugins/graph/public/components/save_modal.tsx b/x-pack/platform/plugins/private/graph/public/components/save_modal.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/save_modal.tsx rename to x-pack/platform/plugins/private/graph/public/components/save_modal.tsx diff --git a/x-pack/plugins/graph/public/components/search_bar.test.tsx b/x-pack/platform/plugins/private/graph/public/components/search_bar.test.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/search_bar.test.tsx rename to x-pack/platform/plugins/private/graph/public/components/search_bar.test.tsx diff --git a/x-pack/plugins/graph/public/components/search_bar.tsx b/x-pack/platform/plugins/private/graph/public/components/search_bar.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/search_bar.tsx rename to x-pack/platform/plugins/private/graph/public/components/search_bar.tsx diff --git a/x-pack/plugins/graph/public/components/settings/_index.scss b/x-pack/platform/plugins/private/graph/public/components/settings/_index.scss similarity index 100% rename from x-pack/plugins/graph/public/components/settings/_index.scss rename to x-pack/platform/plugins/private/graph/public/components/settings/_index.scss diff --git a/x-pack/plugins/graph/public/components/settings/_legacy_icon.scss b/x-pack/platform/plugins/private/graph/public/components/settings/_legacy_icon.scss similarity index 100% rename from x-pack/plugins/graph/public/components/settings/_legacy_icon.scss rename to x-pack/platform/plugins/private/graph/public/components/settings/_legacy_icon.scss diff --git a/x-pack/plugins/graph/public/components/settings/_url_template_list.scss b/x-pack/platform/plugins/private/graph/public/components/settings/_url_template_list.scss similarity index 100% rename from x-pack/plugins/graph/public/components/settings/_url_template_list.scss rename to x-pack/platform/plugins/private/graph/public/components/settings/_url_template_list.scss diff --git a/x-pack/plugins/graph/public/components/settings/advanced_settings_form.tsx b/x-pack/platform/plugins/private/graph/public/components/settings/advanced_settings_form.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/settings/advanced_settings_form.tsx rename to x-pack/platform/plugins/private/graph/public/components/settings/advanced_settings_form.tsx diff --git a/x-pack/plugins/graph/public/components/settings/blocklist_form.tsx b/x-pack/platform/plugins/private/graph/public/components/settings/blocklist_form.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/settings/blocklist_form.tsx rename to x-pack/platform/plugins/private/graph/public/components/settings/blocklist_form.tsx diff --git a/x-pack/plugins/graph/public/components/settings/index.ts b/x-pack/platform/plugins/private/graph/public/components/settings/index.ts similarity index 100% rename from x-pack/plugins/graph/public/components/settings/index.ts rename to x-pack/platform/plugins/private/graph/public/components/settings/index.ts diff --git a/x-pack/plugins/graph/public/components/settings/settings.test.tsx b/x-pack/platform/plugins/private/graph/public/components/settings/settings.test.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/settings/settings.test.tsx rename to x-pack/platform/plugins/private/graph/public/components/settings/settings.test.tsx diff --git a/x-pack/plugins/graph/public/components/settings/settings.tsx b/x-pack/platform/plugins/private/graph/public/components/settings/settings.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/settings/settings.tsx rename to x-pack/platform/plugins/private/graph/public/components/settings/settings.tsx diff --git a/x-pack/plugins/graph/public/components/settings/url_template_form.tsx b/x-pack/platform/plugins/private/graph/public/components/settings/url_template_form.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/settings/url_template_form.tsx rename to x-pack/platform/plugins/private/graph/public/components/settings/url_template_form.tsx diff --git a/x-pack/plugins/graph/public/components/settings/url_template_list.tsx b/x-pack/platform/plugins/private/graph/public/components/settings/url_template_list.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/settings/url_template_list.tsx rename to x-pack/platform/plugins/private/graph/public/components/settings/url_template_list.tsx diff --git a/x-pack/plugins/graph/public/components/settings/use_list_keys.test.tsx b/x-pack/platform/plugins/private/graph/public/components/settings/use_list_keys.test.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/settings/use_list_keys.test.tsx rename to x-pack/platform/plugins/private/graph/public/components/settings/use_list_keys.test.tsx diff --git a/x-pack/plugins/graph/public/components/settings/use_list_keys.ts b/x-pack/platform/plugins/private/graph/public/components/settings/use_list_keys.ts similarity index 100% rename from x-pack/plugins/graph/public/components/settings/use_list_keys.ts rename to x-pack/platform/plugins/private/graph/public/components/settings/use_list_keys.ts diff --git a/x-pack/plugins/graph/public/components/source_modal.tsx b/x-pack/platform/plugins/private/graph/public/components/source_modal.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/source_modal.tsx rename to x-pack/platform/plugins/private/graph/public/components/source_modal.tsx diff --git a/x-pack/plugins/graph/public/components/source_picker.tsx b/x-pack/platform/plugins/private/graph/public/components/source_picker.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/source_picker.tsx rename to x-pack/platform/plugins/private/graph/public/components/source_picker.tsx diff --git a/x-pack/plugins/graph/public/components/venn_diagram/_index.scss b/x-pack/platform/plugins/private/graph/public/components/venn_diagram/_index.scss similarity index 100% rename from x-pack/plugins/graph/public/components/venn_diagram/_index.scss rename to x-pack/platform/plugins/private/graph/public/components/venn_diagram/_index.scss diff --git a/x-pack/plugins/graph/public/components/venn_diagram/_venn_diagram.scss b/x-pack/platform/plugins/private/graph/public/components/venn_diagram/_venn_diagram.scss similarity index 100% rename from x-pack/plugins/graph/public/components/venn_diagram/_venn_diagram.scss rename to x-pack/platform/plugins/private/graph/public/components/venn_diagram/_venn_diagram.scss diff --git a/x-pack/plugins/graph/public/components/venn_diagram/index.ts b/x-pack/platform/plugins/private/graph/public/components/venn_diagram/index.ts similarity index 100% rename from x-pack/plugins/graph/public/components/venn_diagram/index.ts rename to x-pack/platform/plugins/private/graph/public/components/venn_diagram/index.ts diff --git a/x-pack/plugins/graph/public/components/venn_diagram/venn_diagram.test.tsx b/x-pack/platform/plugins/private/graph/public/components/venn_diagram/venn_diagram.test.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/venn_diagram/venn_diagram.test.tsx rename to x-pack/platform/plugins/private/graph/public/components/venn_diagram/venn_diagram.test.tsx diff --git a/x-pack/plugins/graph/public/components/venn_diagram/venn_diagram.tsx b/x-pack/platform/plugins/private/graph/public/components/venn_diagram/venn_diagram.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/venn_diagram/venn_diagram.tsx rename to x-pack/platform/plugins/private/graph/public/components/venn_diagram/venn_diagram.tsx diff --git a/x-pack/plugins/graph/public/components/venn_diagram/vennjs/LICENSE b/x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/LICENSE similarity index 100% rename from x-pack/plugins/graph/public/components/venn_diagram/vennjs/LICENSE rename to x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/LICENSE diff --git a/x-pack/plugins/graph/public/components/venn_diagram/vennjs/index.ts b/x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/index.ts similarity index 95% rename from x-pack/plugins/graph/public/components/venn_diagram/vennjs/index.ts rename to x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/index.ts index 8701571bffaf0..5972a77c4835d 100644 --- a/x-pack/plugins/graph/public/components/venn_diagram/vennjs/index.ts +++ b/x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/index.ts @@ -2,7 +2,7 @@ * This file is forked from the venn.js project (https://github.com/benfred/venn.js/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `x-pack/plugins/graph/public/components/venn_diagram/vennjs/LICENSE` for more information. + * See `x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/LICENSE` for more information. */ const SMALL$1 = 1e-10; diff --git a/x-pack/plugins/graph/public/components/workspace_layout/index.ts b/x-pack/platform/plugins/private/graph/public/components/workspace_layout/index.ts similarity index 100% rename from x-pack/plugins/graph/public/components/workspace_layout/index.ts rename to x-pack/platform/plugins/private/graph/public/components/workspace_layout/index.ts diff --git a/x-pack/plugins/graph/public/components/workspace_layout/workspace_layout.test.tsx b/x-pack/platform/plugins/private/graph/public/components/workspace_layout/workspace_layout.test.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/workspace_layout/workspace_layout.test.tsx rename to x-pack/platform/plugins/private/graph/public/components/workspace_layout/workspace_layout.test.tsx diff --git a/x-pack/plugins/graph/public/components/workspace_layout/workspace_layout.tsx b/x-pack/platform/plugins/private/graph/public/components/workspace_layout/workspace_layout.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/workspace_layout/workspace_layout.tsx rename to x-pack/platform/plugins/private/graph/public/components/workspace_layout/workspace_layout.tsx diff --git a/x-pack/plugins/graph/public/components/workspace_layout/workspace_top_nav_menu.tsx b/x-pack/platform/plugins/private/graph/public/components/workspace_layout/workspace_top_nav_menu.tsx similarity index 100% rename from x-pack/plugins/graph/public/components/workspace_layout/workspace_top_nav_menu.tsx rename to x-pack/platform/plugins/private/graph/public/components/workspace_layout/workspace_top_nav_menu.tsx diff --git a/x-pack/plugins/graph/public/helpers/as_observable.ts b/x-pack/platform/plugins/private/graph/public/helpers/as_observable.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/as_observable.ts rename to x-pack/platform/plugins/private/graph/public/helpers/as_observable.ts diff --git a/x-pack/plugins/graph/public/helpers/format_http_error.ts b/x-pack/platform/plugins/private/graph/public/helpers/format_http_error.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/format_http_error.ts rename to x-pack/platform/plugins/private/graph/public/helpers/format_http_error.ts diff --git a/x-pack/plugins/graph/public/helpers/kql_encoder.test.ts b/x-pack/platform/plugins/private/graph/public/helpers/kql_encoder.test.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/kql_encoder.test.ts rename to x-pack/platform/plugins/private/graph/public/helpers/kql_encoder.test.ts diff --git a/x-pack/plugins/graph/public/helpers/kql_encoder.ts b/x-pack/platform/plugins/private/graph/public/helpers/kql_encoder.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/kql_encoder.ts rename to x-pack/platform/plugins/private/graph/public/helpers/kql_encoder.ts diff --git a/x-pack/plugins/graph/public/helpers/outlink_encoders.ts b/x-pack/platform/plugins/private/graph/public/helpers/outlink_encoders.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/outlink_encoders.ts rename to x-pack/platform/plugins/private/graph/public/helpers/outlink_encoders.ts diff --git a/x-pack/plugins/graph/public/helpers/saved_objects_utils/check_for_duplicate_title.ts b/x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/check_for_duplicate_title.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/saved_objects_utils/check_for_duplicate_title.ts rename to x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/check_for_duplicate_title.ts diff --git a/x-pack/plugins/graph/public/helpers/saved_objects_utils/confirm_modal_promise.tsx b/x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/confirm_modal_promise.tsx similarity index 100% rename from x-pack/plugins/graph/public/helpers/saved_objects_utils/confirm_modal_promise.tsx rename to x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/confirm_modal_promise.tsx diff --git a/x-pack/plugins/graph/public/helpers/saved_objects_utils/constants.ts b/x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/constants.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/saved_objects_utils/constants.ts rename to x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/constants.ts diff --git a/x-pack/plugins/graph/public/helpers/saved_objects_utils/display_duplicate_title_confirm_modal.ts b/x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/display_duplicate_title_confirm_modal.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/saved_objects_utils/display_duplicate_title_confirm_modal.ts rename to x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/display_duplicate_title_confirm_modal.ts diff --git a/x-pack/plugins/graph/public/helpers/saved_objects_utils/find_object_by_title.test.ts b/x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/find_object_by_title.test.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/saved_objects_utils/find_object_by_title.test.ts rename to x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/find_object_by_title.test.ts diff --git a/x-pack/plugins/graph/public/helpers/saved_objects_utils/find_object_by_title.ts b/x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/find_object_by_title.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/saved_objects_utils/find_object_by_title.ts rename to x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/find_object_by_title.ts diff --git a/x-pack/plugins/graph/public/helpers/saved_objects_utils/index.ts b/x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/index.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/saved_objects_utils/index.ts rename to x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/index.ts diff --git a/x-pack/plugins/graph/public/helpers/saved_objects_utils/save_with_confirmation.ts b/x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/save_with_confirmation.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/saved_objects_utils/save_with_confirmation.ts rename to x-pack/platform/plugins/private/graph/public/helpers/saved_objects_utils/save_with_confirmation.ts diff --git a/x-pack/plugins/graph/public/helpers/saved_workspace_utils.test.ts b/x-pack/platform/plugins/private/graph/public/helpers/saved_workspace_utils.test.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/saved_workspace_utils.test.ts rename to x-pack/platform/plugins/private/graph/public/helpers/saved_workspace_utils.test.ts diff --git a/x-pack/plugins/graph/public/helpers/saved_workspace_utils.ts b/x-pack/platform/plugins/private/graph/public/helpers/saved_workspace_utils.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/saved_workspace_utils.ts rename to x-pack/platform/plugins/private/graph/public/helpers/saved_workspace_utils.ts diff --git a/x-pack/plugins/graph/public/helpers/style_choices.ts b/x-pack/platform/plugins/private/graph/public/helpers/style_choices.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/style_choices.ts rename to x-pack/platform/plugins/private/graph/public/helpers/style_choices.ts diff --git a/x-pack/plugins/graph/public/helpers/url_template.ts b/x-pack/platform/plugins/private/graph/public/helpers/url_template.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/url_template.ts rename to x-pack/platform/plugins/private/graph/public/helpers/url_template.ts diff --git a/x-pack/plugins/graph/public/helpers/use_graph_loader.ts b/x-pack/platform/plugins/private/graph/public/helpers/use_graph_loader.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/use_graph_loader.ts rename to x-pack/platform/plugins/private/graph/public/helpers/use_graph_loader.ts diff --git a/x-pack/plugins/graph/public/helpers/use_inspector.ts b/x-pack/platform/plugins/private/graph/public/helpers/use_inspector.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/use_inspector.ts rename to x-pack/platform/plugins/private/graph/public/helpers/use_inspector.ts diff --git a/x-pack/plugins/graph/public/helpers/use_workspace_loader.test.tsx b/x-pack/platform/plugins/private/graph/public/helpers/use_workspace_loader.test.tsx similarity index 100% rename from x-pack/plugins/graph/public/helpers/use_workspace_loader.test.tsx rename to x-pack/platform/plugins/private/graph/public/helpers/use_workspace_loader.test.tsx diff --git a/x-pack/plugins/graph/public/helpers/use_workspace_loader.ts b/x-pack/platform/plugins/private/graph/public/helpers/use_workspace_loader.ts similarity index 100% rename from x-pack/plugins/graph/public/helpers/use_workspace_loader.ts rename to x-pack/platform/plugins/private/graph/public/helpers/use_workspace_loader.ts diff --git a/x-pack/plugins/graph/public/index.scss b/x-pack/platform/plugins/private/graph/public/index.scss similarity index 100% rename from x-pack/plugins/graph/public/index.scss rename to x-pack/platform/plugins/private/graph/public/index.scss diff --git a/x-pack/plugins/graph/public/index.ts b/x-pack/platform/plugins/private/graph/public/index.ts similarity index 100% rename from x-pack/plugins/graph/public/index.ts rename to x-pack/platform/plugins/private/graph/public/index.ts diff --git a/x-pack/plugins/graph/public/plugin.ts b/x-pack/platform/plugins/private/graph/public/plugin.ts similarity index 100% rename from x-pack/plugins/graph/public/plugin.ts rename to x-pack/platform/plugins/private/graph/public/plugin.ts diff --git a/x-pack/plugins/graph/public/router.tsx b/x-pack/platform/plugins/private/graph/public/router.tsx similarity index 100% rename from x-pack/plugins/graph/public/router.tsx rename to x-pack/platform/plugins/private/graph/public/router.tsx diff --git a/x-pack/plugins/graph/public/services/fetch_top_nodes.test.ts b/x-pack/platform/plugins/private/graph/public/services/fetch_top_nodes.test.ts similarity index 100% rename from x-pack/plugins/graph/public/services/fetch_top_nodes.test.ts rename to x-pack/platform/plugins/private/graph/public/services/fetch_top_nodes.test.ts diff --git a/x-pack/plugins/graph/public/services/fetch_top_nodes.ts b/x-pack/platform/plugins/private/graph/public/services/fetch_top_nodes.ts similarity index 100% rename from x-pack/plugins/graph/public/services/fetch_top_nodes.ts rename to x-pack/platform/plugins/private/graph/public/services/fetch_top_nodes.ts diff --git a/x-pack/plugins/graph/public/services/index_pattern_cache.ts b/x-pack/platform/plugins/private/graph/public/services/index_pattern_cache.ts similarity index 100% rename from x-pack/plugins/graph/public/services/index_pattern_cache.ts rename to x-pack/platform/plugins/private/graph/public/services/index_pattern_cache.ts diff --git a/x-pack/plugins/graph/public/services/persistence/deserialize.test.ts b/x-pack/platform/plugins/private/graph/public/services/persistence/deserialize.test.ts similarity index 100% rename from x-pack/plugins/graph/public/services/persistence/deserialize.test.ts rename to x-pack/platform/plugins/private/graph/public/services/persistence/deserialize.test.ts diff --git a/x-pack/plugins/graph/public/services/persistence/deserialize.ts b/x-pack/platform/plugins/private/graph/public/services/persistence/deserialize.ts similarity index 100% rename from x-pack/plugins/graph/public/services/persistence/deserialize.ts rename to x-pack/platform/plugins/private/graph/public/services/persistence/deserialize.ts diff --git a/x-pack/plugins/graph/public/services/persistence/index.ts b/x-pack/platform/plugins/private/graph/public/services/persistence/index.ts similarity index 100% rename from x-pack/plugins/graph/public/services/persistence/index.ts rename to x-pack/platform/plugins/private/graph/public/services/persistence/index.ts diff --git a/x-pack/plugins/graph/public/services/persistence/saved_workspace_references.test.ts b/x-pack/platform/plugins/private/graph/public/services/persistence/saved_workspace_references.test.ts similarity index 100% rename from x-pack/plugins/graph/public/services/persistence/saved_workspace_references.test.ts rename to x-pack/platform/plugins/private/graph/public/services/persistence/saved_workspace_references.test.ts diff --git a/x-pack/plugins/graph/public/services/persistence/saved_workspace_references.ts b/x-pack/platform/plugins/private/graph/public/services/persistence/saved_workspace_references.ts similarity index 100% rename from x-pack/plugins/graph/public/services/persistence/saved_workspace_references.ts rename to x-pack/platform/plugins/private/graph/public/services/persistence/saved_workspace_references.ts diff --git a/x-pack/plugins/graph/public/services/persistence/serialize.test.ts b/x-pack/platform/plugins/private/graph/public/services/persistence/serialize.test.ts similarity index 100% rename from x-pack/plugins/graph/public/services/persistence/serialize.test.ts rename to x-pack/platform/plugins/private/graph/public/services/persistence/serialize.test.ts diff --git a/x-pack/plugins/graph/public/services/persistence/serialize.ts b/x-pack/platform/plugins/private/graph/public/services/persistence/serialize.ts similarity index 100% rename from x-pack/plugins/graph/public/services/persistence/serialize.ts rename to x-pack/platform/plugins/private/graph/public/services/persistence/serialize.ts diff --git a/x-pack/plugins/graph/public/services/save_modal.tsx b/x-pack/platform/plugins/private/graph/public/services/save_modal.tsx similarity index 100% rename from x-pack/plugins/graph/public/services/save_modal.tsx rename to x-pack/platform/plugins/private/graph/public/services/save_modal.tsx diff --git a/x-pack/plugins/graph/public/services/source_modal.tsx b/x-pack/platform/plugins/private/graph/public/services/source_modal.tsx similarity index 100% rename from x-pack/plugins/graph/public/services/source_modal.tsx rename to x-pack/platform/plugins/private/graph/public/services/source_modal.tsx diff --git a/x-pack/plugins/graph/public/services/url.ts b/x-pack/platform/plugins/private/graph/public/services/url.ts similarity index 100% rename from x-pack/plugins/graph/public/services/url.ts rename to x-pack/platform/plugins/private/graph/public/services/url.ts diff --git a/x-pack/plugins/graph/public/services/workspace/graph_client_workspace.d.ts b/x-pack/platform/plugins/private/graph/public/services/workspace/graph_client_workspace.d.ts similarity index 100% rename from x-pack/plugins/graph/public/services/workspace/graph_client_workspace.d.ts rename to x-pack/platform/plugins/private/graph/public/services/workspace/graph_client_workspace.d.ts diff --git a/x-pack/plugins/graph/public/services/workspace/graph_client_workspace.js b/x-pack/platform/plugins/private/graph/public/services/workspace/graph_client_workspace.js similarity index 100% rename from x-pack/plugins/graph/public/services/workspace/graph_client_workspace.js rename to x-pack/platform/plugins/private/graph/public/services/workspace/graph_client_workspace.js diff --git a/x-pack/plugins/graph/public/services/workspace/graph_client_workspace.test.js b/x-pack/platform/plugins/private/graph/public/services/workspace/graph_client_workspace.test.js similarity index 100% rename from x-pack/plugins/graph/public/services/workspace/graph_client_workspace.test.js rename to x-pack/platform/plugins/private/graph/public/services/workspace/graph_client_workspace.test.js diff --git a/x-pack/plugins/graph/public/state_management/advanced_settings.ts b/x-pack/platform/plugins/private/graph/public/state_management/advanced_settings.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/advanced_settings.ts rename to x-pack/platform/plugins/private/graph/public/state_management/advanced_settings.ts diff --git a/x-pack/plugins/graph/public/state_management/datasource.sagas.ts b/x-pack/platform/plugins/private/graph/public/state_management/datasource.sagas.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/datasource.sagas.ts rename to x-pack/platform/plugins/private/graph/public/state_management/datasource.sagas.ts diff --git a/x-pack/plugins/graph/public/state_management/datasource.test.ts b/x-pack/platform/plugins/private/graph/public/state_management/datasource.test.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/datasource.test.ts rename to x-pack/platform/plugins/private/graph/public/state_management/datasource.test.ts diff --git a/x-pack/plugins/graph/public/state_management/datasource.ts b/x-pack/platform/plugins/private/graph/public/state_management/datasource.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/datasource.ts rename to x-pack/platform/plugins/private/graph/public/state_management/datasource.ts diff --git a/x-pack/plugins/graph/public/state_management/fields.ts b/x-pack/platform/plugins/private/graph/public/state_management/fields.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/fields.ts rename to x-pack/platform/plugins/private/graph/public/state_management/fields.ts diff --git a/x-pack/plugins/graph/public/state_management/global.ts b/x-pack/platform/plugins/private/graph/public/state_management/global.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/global.ts rename to x-pack/platform/plugins/private/graph/public/state_management/global.ts diff --git a/x-pack/plugins/graph/public/state_management/helpers.ts b/x-pack/platform/plugins/private/graph/public/state_management/helpers.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/helpers.ts rename to x-pack/platform/plugins/private/graph/public/state_management/helpers.ts diff --git a/x-pack/plugins/graph/public/state_management/index.ts b/x-pack/platform/plugins/private/graph/public/state_management/index.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/index.ts rename to x-pack/platform/plugins/private/graph/public/state_management/index.ts diff --git a/x-pack/plugins/graph/public/state_management/legacy.test.ts b/x-pack/platform/plugins/private/graph/public/state_management/legacy.test.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/legacy.test.ts rename to x-pack/platform/plugins/private/graph/public/state_management/legacy.test.ts diff --git a/x-pack/plugins/graph/public/state_management/meta_data.test.ts b/x-pack/platform/plugins/private/graph/public/state_management/meta_data.test.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/meta_data.test.ts rename to x-pack/platform/plugins/private/graph/public/state_management/meta_data.test.ts diff --git a/x-pack/plugins/graph/public/state_management/meta_data.ts b/x-pack/platform/plugins/private/graph/public/state_management/meta_data.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/meta_data.ts rename to x-pack/platform/plugins/private/graph/public/state_management/meta_data.ts diff --git a/x-pack/plugins/graph/public/state_management/mocks.ts b/x-pack/platform/plugins/private/graph/public/state_management/mocks.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/mocks.ts rename to x-pack/platform/plugins/private/graph/public/state_management/mocks.ts diff --git a/x-pack/plugins/graph/public/state_management/persistence.test.ts b/x-pack/platform/plugins/private/graph/public/state_management/persistence.test.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/persistence.test.ts rename to x-pack/platform/plugins/private/graph/public/state_management/persistence.test.ts diff --git a/x-pack/plugins/graph/public/state_management/persistence.ts b/x-pack/platform/plugins/private/graph/public/state_management/persistence.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/persistence.ts rename to x-pack/platform/plugins/private/graph/public/state_management/persistence.ts diff --git a/x-pack/plugins/graph/public/state_management/store.ts b/x-pack/platform/plugins/private/graph/public/state_management/store.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/store.ts rename to x-pack/platform/plugins/private/graph/public/state_management/store.ts diff --git a/x-pack/plugins/graph/public/state_management/url_templates.test.ts b/x-pack/platform/plugins/private/graph/public/state_management/url_templates.test.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/url_templates.test.ts rename to x-pack/platform/plugins/private/graph/public/state_management/url_templates.test.ts diff --git a/x-pack/plugins/graph/public/state_management/url_templates.ts b/x-pack/platform/plugins/private/graph/public/state_management/url_templates.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/url_templates.ts rename to x-pack/platform/plugins/private/graph/public/state_management/url_templates.ts diff --git a/x-pack/plugins/graph/public/state_management/workspace.ts b/x-pack/platform/plugins/private/graph/public/state_management/workspace.ts similarity index 100% rename from x-pack/plugins/graph/public/state_management/workspace.ts rename to x-pack/platform/plugins/private/graph/public/state_management/workspace.ts diff --git a/x-pack/plugins/graph/public/types/app_state.ts b/x-pack/platform/plugins/private/graph/public/types/app_state.ts similarity index 100% rename from x-pack/plugins/graph/public/types/app_state.ts rename to x-pack/platform/plugins/private/graph/public/types/app_state.ts diff --git a/x-pack/plugins/graph/public/types/config.ts b/x-pack/platform/plugins/private/graph/public/types/config.ts similarity index 100% rename from x-pack/plugins/graph/public/types/config.ts rename to x-pack/platform/plugins/private/graph/public/types/config.ts diff --git a/x-pack/plugins/graph/public/types/index.ts b/x-pack/platform/plugins/private/graph/public/types/index.ts similarity index 100% rename from x-pack/plugins/graph/public/types/index.ts rename to x-pack/platform/plugins/private/graph/public/types/index.ts diff --git a/x-pack/plugins/graph/public/types/persistence.ts b/x-pack/platform/plugins/private/graph/public/types/persistence.ts similarity index 100% rename from x-pack/plugins/graph/public/types/persistence.ts rename to x-pack/platform/plugins/private/graph/public/types/persistence.ts diff --git a/x-pack/plugins/graph/public/types/workspace_state.ts b/x-pack/platform/plugins/private/graph/public/types/workspace_state.ts similarity index 100% rename from x-pack/plugins/graph/public/types/workspace_state.ts rename to x-pack/platform/plugins/private/graph/public/types/workspace_state.ts diff --git a/x-pack/plugins/graph/server/config.ts b/x-pack/platform/plugins/private/graph/server/config.ts similarity index 100% rename from x-pack/plugins/graph/server/config.ts rename to x-pack/platform/plugins/private/graph/server/config.ts diff --git a/x-pack/plugins/graph/server/content_management/cm_services.ts b/x-pack/platform/plugins/private/graph/server/content_management/cm_services.ts similarity index 100% rename from x-pack/plugins/graph/server/content_management/cm_services.ts rename to x-pack/platform/plugins/private/graph/server/content_management/cm_services.ts diff --git a/x-pack/plugins/graph/server/content_management/graph_storage.ts b/x-pack/platform/plugins/private/graph/server/content_management/graph_storage.ts similarity index 100% rename from x-pack/plugins/graph/server/content_management/graph_storage.ts rename to x-pack/platform/plugins/private/graph/server/content_management/graph_storage.ts diff --git a/x-pack/plugins/graph/server/content_management/index.ts b/x-pack/platform/plugins/private/graph/server/content_management/index.ts similarity index 100% rename from x-pack/plugins/graph/server/content_management/index.ts rename to x-pack/platform/plugins/private/graph/server/content_management/index.ts diff --git a/x-pack/plugins/graph/server/content_management/v1/cm_services.ts b/x-pack/platform/plugins/private/graph/server/content_management/v1/cm_services.ts similarity index 100% rename from x-pack/plugins/graph/server/content_management/v1/cm_services.ts rename to x-pack/platform/plugins/private/graph/server/content_management/v1/cm_services.ts diff --git a/x-pack/plugins/graph/server/index.ts b/x-pack/platform/plugins/private/graph/server/index.ts similarity index 100% rename from x-pack/plugins/graph/server/index.ts rename to x-pack/platform/plugins/private/graph/server/index.ts diff --git a/x-pack/plugins/graph/server/lib/license_state.ts b/x-pack/platform/plugins/private/graph/server/lib/license_state.ts similarity index 100% rename from x-pack/plugins/graph/server/lib/license_state.ts rename to x-pack/platform/plugins/private/graph/server/lib/license_state.ts diff --git a/x-pack/plugins/graph/server/plugin.ts b/x-pack/platform/plugins/private/graph/server/plugin.ts similarity index 100% rename from x-pack/plugins/graph/server/plugin.ts rename to x-pack/platform/plugins/private/graph/server/plugin.ts diff --git a/x-pack/plugins/graph/server/routes/explore.ts b/x-pack/platform/plugins/private/graph/server/routes/explore.ts similarity index 100% rename from x-pack/plugins/graph/server/routes/explore.ts rename to x-pack/platform/plugins/private/graph/server/routes/explore.ts diff --git a/x-pack/plugins/graph/server/routes/search.ts b/x-pack/platform/plugins/private/graph/server/routes/search.ts similarity index 100% rename from x-pack/plugins/graph/server/routes/search.ts rename to x-pack/platform/plugins/private/graph/server/routes/search.ts diff --git a/x-pack/plugins/graph/server/sample_data/ecommerce.ts b/x-pack/platform/plugins/private/graph/server/sample_data/ecommerce.ts similarity index 100% rename from x-pack/plugins/graph/server/sample_data/ecommerce.ts rename to x-pack/platform/plugins/private/graph/server/sample_data/ecommerce.ts diff --git a/x-pack/plugins/graph/server/sample_data/flights.ts b/x-pack/platform/plugins/private/graph/server/sample_data/flights.ts similarity index 100% rename from x-pack/plugins/graph/server/sample_data/flights.ts rename to x-pack/platform/plugins/private/graph/server/sample_data/flights.ts diff --git a/x-pack/plugins/graph/server/sample_data/index.ts b/x-pack/platform/plugins/private/graph/server/sample_data/index.ts similarity index 100% rename from x-pack/plugins/graph/server/sample_data/index.ts rename to x-pack/platform/plugins/private/graph/server/sample_data/index.ts diff --git a/x-pack/plugins/graph/server/sample_data/logs.ts b/x-pack/platform/plugins/private/graph/server/sample_data/logs.ts similarity index 100% rename from x-pack/plugins/graph/server/sample_data/logs.ts rename to x-pack/platform/plugins/private/graph/server/sample_data/logs.ts diff --git a/x-pack/plugins/graph/server/sample_data/register_sample_data.ts b/x-pack/platform/plugins/private/graph/server/sample_data/register_sample_data.ts similarity index 100% rename from x-pack/plugins/graph/server/sample_data/register_sample_data.ts rename to x-pack/platform/plugins/private/graph/server/sample_data/register_sample_data.ts diff --git a/x-pack/plugins/graph/server/saved_objects/graph_workspace.ts b/x-pack/platform/plugins/private/graph/server/saved_objects/graph_workspace.ts similarity index 100% rename from x-pack/plugins/graph/server/saved_objects/graph_workspace.ts rename to x-pack/platform/plugins/private/graph/server/saved_objects/graph_workspace.ts diff --git a/x-pack/plugins/graph/server/saved_objects/index.ts b/x-pack/platform/plugins/private/graph/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/graph/server/saved_objects/index.ts rename to x-pack/platform/plugins/private/graph/server/saved_objects/index.ts diff --git a/x-pack/plugins/graph/server/saved_objects/migrations.test.ts b/x-pack/platform/plugins/private/graph/server/saved_objects/migrations.test.ts similarity index 100% rename from x-pack/plugins/graph/server/saved_objects/migrations.test.ts rename to x-pack/platform/plugins/private/graph/server/saved_objects/migrations.test.ts diff --git a/x-pack/plugins/graph/server/saved_objects/migrations.ts b/x-pack/platform/plugins/private/graph/server/saved_objects/migrations.ts similarity index 100% rename from x-pack/plugins/graph/server/saved_objects/migrations.ts rename to x-pack/platform/plugins/private/graph/server/saved_objects/migrations.ts diff --git a/x-pack/plugins/graph/tsconfig.json b/x-pack/platform/plugins/private/graph/tsconfig.json similarity index 94% rename from x-pack/plugins/graph/tsconfig.json rename to x-pack/platform/plugins/private/graph/tsconfig.json index 99868f7e8037c..165a2a10aad52 100644 --- a/x-pack/plugins/graph/tsconfig.json +++ b/x-pack/platform/plugins/private/graph/tsconfig.json @@ -1,6 +1,6 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "allowJs": true @@ -10,7 +10,7 @@ "common/**/*", "public/**/*", "server/**/*", - "../../../typings/**/*", + "../../../../../typings/**/*", ], "kbn_references": [ "@kbn/core", diff --git a/x-pack/platform/plugins/private/watcher/public/legacy/time_buckets.js b/x-pack/platform/plugins/private/watcher/public/legacy/time_buckets.js index 469927269af57..b83bf77ee3a64 100644 --- a/x-pack/platform/plugins/private/watcher/public/legacy/time_buckets.js +++ b/x-pack/platform/plugins/private/watcher/public/legacy/time_buckets.js @@ -131,7 +131,7 @@ TimeBuckets.prototype.getDuration = function () { * generated. * * Input can be one of the following: - * - Any object from src/plugins/data/public/search/aggs/buckets/_interval_options.ts + * - Any object from src/platform/plugins/shared/data/public/search/aggs/buckets/_interval_options.ts * - "auto" * - Pass a valid moment unit * - a moment.duration object. diff --git a/x-pack/plugins/lens/common/constants.test.ts b/x-pack/platform/plugins/shared/lens/common/constants.test.ts similarity index 100% rename from x-pack/plugins/lens/common/constants.test.ts rename to x-pack/platform/plugins/shared/lens/common/constants.test.ts diff --git a/x-pack/plugins/lens/common/constants.ts b/x-pack/platform/plugins/shared/lens/common/constants.ts similarity index 100% rename from x-pack/plugins/lens/common/constants.ts rename to x-pack/platform/plugins/shared/lens/common/constants.ts diff --git a/x-pack/plugins/lens/common/content_management/constants.ts b/x-pack/platform/plugins/shared/lens/common/content_management/constants.ts similarity index 100% rename from x-pack/plugins/lens/common/content_management/constants.ts rename to x-pack/platform/plugins/shared/lens/common/content_management/constants.ts diff --git a/x-pack/plugins/lens/common/content_management/index.ts b/x-pack/platform/plugins/shared/lens/common/content_management/index.ts similarity index 100% rename from x-pack/plugins/lens/common/content_management/index.ts rename to x-pack/platform/plugins/shared/lens/common/content_management/index.ts diff --git a/x-pack/plugins/lens/common/content_management/latest.ts b/x-pack/platform/plugins/shared/lens/common/content_management/latest.ts similarity index 100% rename from x-pack/plugins/lens/common/content_management/latest.ts rename to x-pack/platform/plugins/shared/lens/common/content_management/latest.ts diff --git a/x-pack/plugins/lens/common/content_management/types.ts b/x-pack/platform/plugins/shared/lens/common/content_management/types.ts similarity index 100% rename from x-pack/plugins/lens/common/content_management/types.ts rename to x-pack/platform/plugins/shared/lens/common/content_management/types.ts diff --git a/x-pack/plugins/lens/common/content_management/v1/index.ts b/x-pack/platform/plugins/shared/lens/common/content_management/v1/index.ts similarity index 100% rename from x-pack/plugins/lens/common/content_management/v1/index.ts rename to x-pack/platform/plugins/shared/lens/common/content_management/v1/index.ts diff --git a/x-pack/plugins/lens/common/content_management/v1/types.ts b/x-pack/platform/plugins/shared/lens/common/content_management/v1/types.ts similarity index 100% rename from x-pack/plugins/lens/common/content_management/v1/types.ts rename to x-pack/platform/plugins/shared/lens/common/content_management/v1/types.ts diff --git a/x-pack/plugins/lens/common/embeddable_factory/index.ts b/x-pack/platform/plugins/shared/lens/common/embeddable_factory/index.ts similarity index 100% rename from x-pack/plugins/lens/common/embeddable_factory/index.ts rename to x-pack/platform/plugins/shared/lens/common/embeddable_factory/index.ts diff --git a/x-pack/plugins/lens/common/expressions/collapse/collapse_fn.test.ts b/x-pack/platform/plugins/shared/lens/common/expressions/collapse/collapse_fn.test.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/collapse/collapse_fn.test.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/collapse/collapse_fn.test.ts diff --git a/x-pack/plugins/lens/common/expressions/collapse/collapse_fn.ts b/x-pack/platform/plugins/shared/lens/common/expressions/collapse/collapse_fn.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/collapse/collapse_fn.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/collapse/collapse_fn.ts diff --git a/x-pack/plugins/lens/common/expressions/collapse/index.ts b/x-pack/platform/plugins/shared/lens/common/expressions/collapse/index.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/collapse/index.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/collapse/index.ts diff --git a/x-pack/plugins/lens/common/expressions/collapse/types.ts b/x-pack/platform/plugins/shared/lens/common/expressions/collapse/types.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/collapse/types.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/collapse/types.ts diff --git a/x-pack/plugins/lens/common/expressions/counter_rate/counter_rate.test.ts b/x-pack/platform/plugins/shared/lens/common/expressions/counter_rate/counter_rate.test.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/counter_rate/counter_rate.test.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/counter_rate/counter_rate.test.ts diff --git a/x-pack/plugins/lens/common/expressions/counter_rate/counter_rate_fn.ts b/x-pack/platform/plugins/shared/lens/common/expressions/counter_rate/counter_rate_fn.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/counter_rate/counter_rate_fn.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/counter_rate/counter_rate_fn.ts diff --git a/x-pack/plugins/lens/common/expressions/counter_rate/index.ts b/x-pack/platform/plugins/shared/lens/common/expressions/counter_rate/index.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/counter_rate/index.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/counter_rate/index.ts diff --git a/x-pack/plugins/lens/common/expressions/counter_rate/types.ts b/x-pack/platform/plugins/shared/lens/common/expressions/counter_rate/types.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/counter_rate/types.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/counter_rate/types.ts diff --git a/x-pack/plugins/lens/common/expressions/datatable/datatable.ts b/x-pack/platform/plugins/shared/lens/common/expressions/datatable/datatable.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/datatable/datatable.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/datatable/datatable.ts diff --git a/x-pack/plugins/lens/common/expressions/datatable/datatable_column.ts b/x-pack/platform/plugins/shared/lens/common/expressions/datatable/datatable_column.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/datatable/datatable_column.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/datatable/datatable_column.ts diff --git a/x-pack/plugins/lens/common/expressions/datatable/datatable_fn.ts b/x-pack/platform/plugins/shared/lens/common/expressions/datatable/datatable_fn.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/datatable/datatable_fn.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/datatable/datatable_fn.ts diff --git a/x-pack/plugins/lens/common/expressions/datatable/index.ts b/x-pack/platform/plugins/shared/lens/common/expressions/datatable/index.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/datatable/index.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/datatable/index.ts diff --git a/x-pack/plugins/lens/common/expressions/datatable/summary.test.ts b/x-pack/platform/plugins/shared/lens/common/expressions/datatable/summary.test.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/datatable/summary.test.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/datatable/summary.test.ts diff --git a/x-pack/plugins/lens/common/expressions/datatable/summary.ts b/x-pack/platform/plugins/shared/lens/common/expressions/datatable/summary.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/datatable/summary.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/datatable/summary.ts diff --git a/x-pack/plugins/lens/common/expressions/datatable/transpose_helpers.test.ts b/x-pack/platform/plugins/shared/lens/common/expressions/datatable/transpose_helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/datatable/transpose_helpers.test.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/datatable/transpose_helpers.test.ts diff --git a/x-pack/plugins/lens/common/expressions/datatable/transpose_helpers.ts b/x-pack/platform/plugins/shared/lens/common/expressions/datatable/transpose_helpers.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/datatable/transpose_helpers.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/datatable/transpose_helpers.ts diff --git a/x-pack/plugins/lens/common/expressions/datatable/types.ts b/x-pack/platform/plugins/shared/lens/common/expressions/datatable/types.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/datatable/types.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/datatable/types.ts diff --git a/x-pack/plugins/lens/common/expressions/datatable/utils.ts b/x-pack/platform/plugins/shared/lens/common/expressions/datatable/utils.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/datatable/utils.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/datatable/utils.ts diff --git a/x-pack/plugins/lens/common/expressions/format_column/format_column.test.ts b/x-pack/platform/plugins/shared/lens/common/expressions/format_column/format_column.test.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/format_column/format_column.test.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/format_column/format_column.test.ts diff --git a/x-pack/plugins/lens/common/expressions/format_column/format_column_fn.ts b/x-pack/platform/plugins/shared/lens/common/expressions/format_column/format_column_fn.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/format_column/format_column_fn.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/format_column/format_column_fn.ts diff --git a/x-pack/plugins/lens/common/expressions/format_column/index.ts b/x-pack/platform/plugins/shared/lens/common/expressions/format_column/index.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/format_column/index.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/format_column/index.ts diff --git a/x-pack/plugins/lens/common/expressions/format_column/supported_formats.ts b/x-pack/platform/plugins/shared/lens/common/expressions/format_column/supported_formats.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/format_column/supported_formats.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/format_column/supported_formats.ts diff --git a/x-pack/plugins/lens/common/expressions/format_column/types.ts b/x-pack/platform/plugins/shared/lens/common/expressions/format_column/types.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/format_column/types.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/format_column/types.ts diff --git a/x-pack/plugins/lens/common/expressions/formula_context/context_fns.test.ts b/x-pack/platform/plugins/shared/lens/common/expressions/formula_context/context_fns.test.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/formula_context/context_fns.test.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/formula_context/context_fns.test.ts diff --git a/x-pack/plugins/lens/common/expressions/formula_context/context_fns.ts b/x-pack/platform/plugins/shared/lens/common/expressions/formula_context/context_fns.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/formula_context/context_fns.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/formula_context/context_fns.ts diff --git a/x-pack/plugins/lens/common/expressions/formula_context/index.ts b/x-pack/platform/plugins/shared/lens/common/expressions/formula_context/index.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/formula_context/index.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/formula_context/index.ts diff --git a/x-pack/plugins/lens/common/expressions/index.ts b/x-pack/platform/plugins/shared/lens/common/expressions/index.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/index.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/index.ts diff --git a/x-pack/plugins/lens/common/expressions/map_to_columns/index.ts b/x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/index.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/map_to_columns/index.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/index.ts diff --git a/x-pack/plugins/lens/common/expressions/map_to_columns/map_to_columns.test.ts b/x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/map_to_columns.test.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/map_to_columns/map_to_columns.test.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/map_to_columns.test.ts diff --git a/x-pack/plugins/lens/common/expressions/map_to_columns/map_to_columns.ts b/x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/map_to_columns.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/map_to_columns/map_to_columns.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/map_to_columns.ts diff --git a/x-pack/plugins/lens/common/expressions/map_to_columns/map_to_columns_fn.ts b/x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/map_to_columns_fn.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/map_to_columns/map_to_columns_fn.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/map_to_columns_fn.ts diff --git a/x-pack/plugins/lens/common/expressions/map_to_columns/map_to_columns_fn_textbased.ts b/x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/map_to_columns_fn_textbased.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/map_to_columns/map_to_columns_fn_textbased.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/map_to_columns_fn_textbased.ts diff --git a/x-pack/plugins/lens/common/expressions/map_to_columns/types.ts b/x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/types.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/map_to_columns/types.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/map_to_columns/types.ts diff --git a/x-pack/plugins/lens/common/expressions/time_scale/index.ts b/x-pack/platform/plugins/shared/lens/common/expressions/time_scale/index.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/time_scale/index.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/time_scale/index.ts diff --git a/x-pack/plugins/lens/common/expressions/time_scale/time_scale.test.ts b/x-pack/platform/plugins/shared/lens/common/expressions/time_scale/time_scale.test.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/time_scale/time_scale.test.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/time_scale/time_scale.test.ts diff --git a/x-pack/plugins/lens/common/expressions/time_scale/time_scale.ts b/x-pack/platform/plugins/shared/lens/common/expressions/time_scale/time_scale.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/time_scale/time_scale.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/time_scale/time_scale.ts diff --git a/x-pack/plugins/lens/common/expressions/time_scale/time_scale_fn.ts b/x-pack/platform/plugins/shared/lens/common/expressions/time_scale/time_scale_fn.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/time_scale/time_scale_fn.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/time_scale/time_scale_fn.ts diff --git a/x-pack/plugins/lens/common/expressions/time_scale/types.ts b/x-pack/platform/plugins/shared/lens/common/expressions/time_scale/types.ts similarity index 100% rename from x-pack/plugins/lens/common/expressions/time_scale/types.ts rename to x-pack/platform/plugins/shared/lens/common/expressions/time_scale/types.ts diff --git a/x-pack/plugins/lens/common/index.ts b/x-pack/platform/plugins/shared/lens/common/index.ts similarity index 100% rename from x-pack/plugins/lens/common/index.ts rename to x-pack/platform/plugins/shared/lens/common/index.ts diff --git a/x-pack/plugins/lens/common/layer_types.ts b/x-pack/platform/plugins/shared/lens/common/layer_types.ts similarity index 100% rename from x-pack/plugins/lens/common/layer_types.ts rename to x-pack/platform/plugins/shared/lens/common/layer_types.ts diff --git a/x-pack/plugins/lens/common/locator/locator.test.ts b/x-pack/platform/plugins/shared/lens/common/locator/locator.test.ts similarity index 100% rename from x-pack/plugins/lens/common/locator/locator.test.ts rename to x-pack/platform/plugins/shared/lens/common/locator/locator.test.ts diff --git a/x-pack/plugins/lens/common/locator/locator.ts b/x-pack/platform/plugins/shared/lens/common/locator/locator.ts similarity index 100% rename from x-pack/plugins/lens/common/locator/locator.ts rename to x-pack/platform/plugins/shared/lens/common/locator/locator.ts diff --git a/x-pack/plugins/lens/common/suffix_formatter/index.ts b/x-pack/platform/plugins/shared/lens/common/suffix_formatter/index.ts similarity index 100% rename from x-pack/plugins/lens/common/suffix_formatter/index.ts rename to x-pack/platform/plugins/shared/lens/common/suffix_formatter/index.ts diff --git a/x-pack/plugins/lens/common/suffix_formatter/suffix_formatter.test.ts b/x-pack/platform/plugins/shared/lens/common/suffix_formatter/suffix_formatter.test.ts similarity index 100% rename from x-pack/plugins/lens/common/suffix_formatter/suffix_formatter.test.ts rename to x-pack/platform/plugins/shared/lens/common/suffix_formatter/suffix_formatter.test.ts diff --git a/x-pack/plugins/lens/common/types.ts b/x-pack/platform/plugins/shared/lens/common/types.ts similarity index 100% rename from x-pack/plugins/lens/common/types.ts rename to x-pack/platform/plugins/shared/lens/common/types.ts diff --git a/x-pack/plugins/lens/common/visualizations/index.ts b/x-pack/platform/plugins/shared/lens/common/visualizations/index.ts similarity index 100% rename from x-pack/plugins/lens/common/visualizations/index.ts rename to x-pack/platform/plugins/shared/lens/common/visualizations/index.ts diff --git a/x-pack/plugins/lens/common/visualizations/partition/utils.ts b/x-pack/platform/plugins/shared/lens/common/visualizations/partition/utils.ts similarity index 100% rename from x-pack/plugins/lens/common/visualizations/partition/utils.ts rename to x-pack/platform/plugins/shared/lens/common/visualizations/partition/utils.ts diff --git a/x-pack/plugins/lens/jest.config.js b/x-pack/platform/plugins/shared/lens/jest.config.js similarity index 64% rename from x-pack/plugins/lens/jest.config.js rename to x-pack/platform/plugins/shared/lens/jest.config.js index ae4a39557bec8..58bcb55d693c0 100644 --- a/x-pack/plugins/lens/jest.config.js +++ b/x-pack/platform/plugins/shared/lens/jest.config.js @@ -7,10 +7,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/lens'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/lens', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/lens'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/lens', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/lens/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/lens/{common,public,server}/**/*.{ts,tsx}', + ], setupFiles: ['jest-canvas-mock'], }; diff --git a/x-pack/plugins/lens/kibana.jsonc b/x-pack/platform/plugins/shared/lens/kibana.jsonc similarity index 100% rename from x-pack/plugins/lens/kibana.jsonc rename to x-pack/platform/plugins/shared/lens/kibana.jsonc diff --git a/x-pack/plugins/lens/layout.png b/x-pack/platform/plugins/shared/lens/layout.png similarity index 100% rename from x-pack/plugins/lens/layout.png rename to x-pack/platform/plugins/shared/lens/layout.png diff --git a/x-pack/plugins/lens/public/_mixins.scss b/x-pack/platform/plugins/shared/lens/public/_mixins.scss similarity index 100% rename from x-pack/plugins/lens/public/_mixins.scss rename to x-pack/platform/plugins/shared/lens/public/_mixins.scss diff --git a/x-pack/plugins/lens/public/_variables.scss b/x-pack/platform/plugins/shared/lens/public/_variables.scss similarity index 100% rename from x-pack/plugins/lens/public/_variables.scss rename to x-pack/platform/plugins/shared/lens/public/_variables.scss diff --git a/x-pack/plugins/lens/public/app_plugin/app.scss b/x-pack/platform/plugins/shared/lens/public/app_plugin/app.scss similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/app.scss rename to x-pack/platform/plugins/shared/lens/public/app_plugin/app.scss diff --git a/x-pack/plugins/lens/public/app_plugin/app.test.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/app.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/app.test.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/app.test.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/app.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/app.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/app.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/app.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/app_helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/app_helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/app_helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/app_helpers.test.ts diff --git a/x-pack/plugins/lens/public/app_plugin/app_helpers.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/app_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/app_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/app_helpers.ts diff --git a/x-pack/plugins/lens/public/app_plugin/csv_download_provider/csv_download_provider.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/csv_download_provider/csv_download_provider.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/csv_download_provider/csv_download_provider.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/csv_download_provider/csv_download_provider.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/get_application_user_messages.test.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/get_application_user_messages.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/get_application_user_messages.test.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/get_application_user_messages.test.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/get_application_user_messages.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/get_application_user_messages.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/get_application_user_messages.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/get_application_user_messages.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/index.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/index.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/index.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/index.ts diff --git a/x-pack/plugins/lens/public/app_plugin/lens_document_equality.test.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/lens_document_equality.test.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/lens_document_equality.test.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/lens_document_equality.test.ts diff --git a/x-pack/plugins/lens/public/app_plugin/lens_document_equality.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/lens_document_equality.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/lens_document_equality.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/lens_document_equality.ts diff --git a/x-pack/plugins/lens/public/app_plugin/lens_top_nav.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/lens_top_nav.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/lens_top_nav.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/lens_top_nav.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/mounter.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/mounter.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/mounter.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/mounter.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/save_modal.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/save_modal.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/save_modal.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/save_modal.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/save_modal_container.test.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/save_modal_container.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/save_modal_container.test.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/save_modal_container.test.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/save_modal_container.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/save_modal_container.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/save_modal_container.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/save_modal_container.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/save_modal_container_helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/save_modal_container_helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/save_modal_container_helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/save_modal_container_helpers.test.ts diff --git a/x-pack/plugins/lens/public/app_plugin/save_modal_container_helpers.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/save_modal_container_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/save_modal_container_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/save_modal_container_helpers.ts diff --git a/x-pack/plugins/lens/public/app_plugin/settings_menu.test.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/settings_menu.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/settings_menu.test.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/settings_menu.test.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/settings_menu.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/settings_menu.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/settings_menu.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/settings_menu.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/share_action.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/share_action.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/share_action.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/share_action.ts diff --git a/x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/esql_data_grid_accordion.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/esql_data_grid_accordion.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/esql_data_grid_accordion.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/esql_data_grid_accordion.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/flyout_wrapper.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/flyout_wrapper.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/flyout_wrapper.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/flyout_wrapper.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/get_edit_lens_configuration.test.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/get_edit_lens_configuration.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/get_edit_lens_configuration.test.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/get_edit_lens_configuration.test.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/get_edit_lens_configuration.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/get_edit_lens_configuration.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/get_edit_lens_configuration.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/get_edit_lens_configuration.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/helpers.test.ts diff --git a/x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/helpers.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/helpers.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/helpers.ts diff --git a/x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/layer_configuration_section.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/layer_configuration_section.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/layer_configuration_section.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/layer_configuration_section.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/lens_configuration_flyout.test.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/lens_configuration_flyout.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/lens_configuration_flyout.test.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/lens_configuration_flyout.test.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/lens_configuration_flyout.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/lens_configuration_flyout.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/lens_configuration_flyout.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/lens_configuration_flyout.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/types.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/types.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/shared/edit_on_the_fly/types.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/types.ts diff --git a/x-pack/plugins/lens/public/app_plugin/shared/saved_modal_lazy.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/shared/saved_modal_lazy.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/shared/saved_modal_lazy.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/shared/saved_modal_lazy.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/show_underlying_data.test.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/show_underlying_data.test.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/show_underlying_data.test.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/show_underlying_data.test.ts diff --git a/x-pack/plugins/lens/public/app_plugin/show_underlying_data.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/show_underlying_data.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/show_underlying_data.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/show_underlying_data.ts diff --git a/x-pack/plugins/lens/public/app_plugin/tags_saved_object_save_modal_dashboard_wrapper.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/tags_saved_object_save_modal_dashboard_wrapper.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/tags_saved_object_save_modal_dashboard_wrapper.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/tags_saved_object_save_modal_dashboard_wrapper.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/tags_saved_object_save_modal_origin_wrapper.tsx b/x-pack/platform/plugins/shared/lens/public/app_plugin/tags_saved_object_save_modal_origin_wrapper.tsx similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/tags_saved_object_save_modal_origin_wrapper.tsx rename to x-pack/platform/plugins/shared/lens/public/app_plugin/tags_saved_object_save_modal_origin_wrapper.tsx diff --git a/x-pack/plugins/lens/public/app_plugin/types.ts b/x-pack/platform/plugins/shared/lens/public/app_plugin/types.ts similarity index 100% rename from x-pack/plugins/lens/public/app_plugin/types.ts rename to x-pack/platform/plugins/shared/lens/public/app_plugin/types.ts diff --git a/x-pack/plugins/lens/public/assets/error.svg b/x-pack/platform/plugins/shared/lens/public/assets/error.svg similarity index 100% rename from x-pack/plugins/lens/public/assets/error.svg rename to x-pack/platform/plugins/shared/lens/public/assets/error.svg diff --git a/x-pack/plugins/lens/public/assets/render_dark@2x.png b/x-pack/platform/plugins/shared/lens/public/assets/render_dark@2x.png similarity index 100% rename from x-pack/plugins/lens/public/assets/render_dark@2x.png rename to x-pack/platform/plugins/shared/lens/public/assets/render_dark@2x.png diff --git a/x-pack/plugins/lens/public/assets/render_light@2x.png b/x-pack/platform/plugins/shared/lens/public/assets/render_light@2x.png similarity index 100% rename from x-pack/plugins/lens/public/assets/render_light@2x.png rename to x-pack/platform/plugins/shared/lens/public/assets/render_light@2x.png diff --git a/x-pack/plugins/lens/public/assets/warning.svg b/x-pack/platform/plugins/shared/lens/public/assets/warning.svg similarity index 100% rename from x-pack/plugins/lens/public/assets/warning.svg rename to x-pack/platform/plugins/shared/lens/public/assets/warning.svg diff --git a/x-pack/plugins/lens/public/async_services.ts b/x-pack/platform/plugins/shared/lens/public/async_services.ts similarity index 100% rename from x-pack/plugins/lens/public/async_services.ts rename to x-pack/platform/plugins/shared/lens/public/async_services.ts diff --git a/x-pack/plugins/lens/public/chart_info_api.test.ts b/x-pack/platform/plugins/shared/lens/public/chart_info_api.test.ts similarity index 100% rename from x-pack/plugins/lens/public/chart_info_api.test.ts rename to x-pack/platform/plugins/shared/lens/public/chart_info_api.test.ts diff --git a/x-pack/plugins/lens/public/chart_info_api.ts b/x-pack/platform/plugins/shared/lens/public/chart_info_api.ts similarity index 100% rename from x-pack/plugins/lens/public/chart_info_api.ts rename to x-pack/platform/plugins/shared/lens/public/chart_info_api.ts diff --git a/x-pack/plugins/lens/public/data_views_service/loader.test.ts b/x-pack/platform/plugins/shared/lens/public/data_views_service/loader.test.ts similarity index 100% rename from x-pack/plugins/lens/public/data_views_service/loader.test.ts rename to x-pack/platform/plugins/shared/lens/public/data_views_service/loader.test.ts diff --git a/x-pack/plugins/lens/public/data_views_service/loader.ts b/x-pack/platform/plugins/shared/lens/public/data_views_service/loader.ts similarity index 100% rename from x-pack/plugins/lens/public/data_views_service/loader.ts rename to x-pack/platform/plugins/shared/lens/public/data_views_service/loader.ts diff --git a/x-pack/plugins/lens/public/data_views_service/mocks.ts b/x-pack/platform/plugins/shared/lens/public/data_views_service/mocks.ts similarity index 100% rename from x-pack/plugins/lens/public/data_views_service/mocks.ts rename to x-pack/platform/plugins/shared/lens/public/data_views_service/mocks.ts diff --git a/x-pack/plugins/lens/public/data_views_service/service.ts b/x-pack/platform/plugins/shared/lens/public/data_views_service/service.ts similarity index 100% rename from x-pack/plugins/lens/public/data_views_service/service.ts rename to x-pack/platform/plugins/shared/lens/public/data_views_service/service.ts diff --git a/x-pack/plugins/lens/public/datasources/common/field_item.scss b/x-pack/platform/plugins/shared/lens/public/datasources/common/field_item.scss similarity index 100% rename from x-pack/plugins/lens/public/datasources/common/field_item.scss rename to x-pack/platform/plugins/shared/lens/public/datasources/common/field_item.scss diff --git a/x-pack/plugins/lens/public/datasources/common/field_item.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/common/field_item.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/common/field_item.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/common/field_item.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/common/field_item.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/common/field_item.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/common/field_item.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/common/field_item.tsx diff --git a/x-pack/plugins/lens/public/datasources/common/get_field_item_actions.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/common/get_field_item_actions.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/common/get_field_item_actions.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/common/get_field_item_actions.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/__mocks__/loader.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/__mocks__/loader.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/__mocks__/loader.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/__mocks__/loader.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/__snapshots__/utils.test.tsx.snap b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/__snapshots__/utils.test.tsx.snap similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/__snapshots__/utils.test.tsx.snap rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/__snapshots__/utils.test.tsx.snap diff --git a/x-pack/plugins/lens/public/datasources/form_based/datapanel.scss b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/datapanel.scss similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/datapanel.scss rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/datapanel.scss diff --git a/x-pack/plugins/lens/public/datasources/form_based/datapanel.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/datapanel.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/datapanel.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/datapanel.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/datapanel.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/datapanel.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/datapanel.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/datapanel.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dedupe_aggs.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dedupe_aggs.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dedupe_aggs.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dedupe_aggs.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/dedupe_aggs.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dedupe_aggs.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dedupe_aggs.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dedupe_aggs.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/advanced_options.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/advanced_options.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/advanced_options.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/advanced_options.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/bucket_nesting_editor.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/bucket_nesting_editor.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/bucket_nesting_editor.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/bucket_nesting_editor.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/bucket_nesting_editor.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/bucket_nesting_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/bucket_nesting_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/bucket_nesting_editor.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimension_editor.scss b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimension_editor.scss similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimension_editor.scss rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimension_editor.scss diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimension_editor.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimension_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimension_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimension_editor.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimension_editor_helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimension_editor_helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimension_editor_helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimension_editor_helpers.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimension_panel.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimension_panel.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimension_panel.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimension_panel.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimension_panel.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimension_panel.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimension_panel.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimension_panel.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimensions_editor_helpers.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimensions_editor_helpers.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/dimensions_editor_helpers.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimensions_editor_helpers.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/get_drop_props.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/get_drop_props.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/get_drop_props.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/get_drop_props.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/get_drop_props.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/get_drop_props.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/get_drop_props.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/get_drop_props.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/index.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/index.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/index.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/index.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/mocks.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/mocks.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/mocks.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/mocks.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/on_drop_handler.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/on_drop_handler.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/on_drop_handler.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/on_drop_handler.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/on_drop_handler.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/on_drop_handler.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/droppable/on_drop_handler.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/droppable/on_drop_handler.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/field_input.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/field_input.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/field_input.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/field_input.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/field_input.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/field_input.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/field_input.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/field_input.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/field_select.scss b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/field_select.scss similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/field_select.scss rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/field_select.scss diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/field_select.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/field_select.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/field_select.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/field_select.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/filtering.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/filtering.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/filtering.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/filtering.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/format_selector.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/format_selector.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/format_selector.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/format_selector.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/format_selector.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/format_selector.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/format_selector.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/format_selector.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/formatting/duration_input.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/formatting/duration_input.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/formatting/duration_input.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/formatting/duration_input.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/index.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/index.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/index.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/index.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/operation_support.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/operation_support.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/operation_support.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/operation_support.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/reduced_time_range.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/reduced_time_range.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/reduced_time_range.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/reduced_time_range.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/reference_editor.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/reference_editor.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/reference_editor.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/reference_editor.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/reference_editor.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/reference_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/reference_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/reference_editor.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/time_scaling.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/time_scaling.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/time_scaling.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/time_scaling.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/dimension_panel/time_shift.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/time_shift.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/dimension_panel/time_shift.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/dimension_panel/time_shift.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/document_field.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/document_field.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/document_field.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/document_field.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/form_based.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/form_based.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/form_based.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/form_based.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/form_based.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/form_based.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/form_based.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/form_based.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/form_based_suggestions.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/form_based_suggestions.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/form_based_suggestions.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/form_based_suggestions.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/form_based_suggestions.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/form_based_suggestions.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/form_based_suggestions.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/form_based_suggestions.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/help_popover.scss b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/help_popover.scss similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/help_popover.scss rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/help_popover.scss diff --git a/x-pack/plugins/lens/public/datasources/form_based/help_popover.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/help_popover.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/help_popover.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/help_popover.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/index.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/index.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/index.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/index.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/info_badges.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/info_badges.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/info_badges.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/info_badges.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/layer_settings.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/layer_settings.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/layer_settings.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/layer_settings.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/layerpanel.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/layerpanel.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/layerpanel.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/layerpanel.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/layerpanel.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/layerpanel.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/layerpanel.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/layerpanel.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/loader.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/loader.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/loader.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/loader.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/loader.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/loader.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/loader.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/loader.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/mocks.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/mocks.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/mocks.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/mocks.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/__mocks__/index.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/__mocks__/index.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/__mocks__/index.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/__mocks__/index.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/__snapshots__/percentile.test.tsx.snap b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/__snapshots__/percentile.test.tsx.snap similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/__snapshots__/percentile.test.tsx.snap rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/__snapshots__/percentile.test.tsx.snap diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/counter_rate.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/counter_rate.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/counter_rate.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/counter_rate.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/cumulative_sum.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/cumulative_sum.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/cumulative_sum.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/cumulative_sum.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/differences.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/differences.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/differences.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/differences.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/index.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/index.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/index.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/index.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/moving_average.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/moving_average.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/moving_average.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/moving_average.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/overall_metric.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/overall_metric.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/overall_metric.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/overall_metric.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/overall_metric.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/overall_metric.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/overall_metric.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/overall_metric.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/time_scale.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/time_scale.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/time_scale.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/time_scale.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/utils.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/utils.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/utils.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/utils.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/utils.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/utils.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/calculations/utils.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/calculations/utils.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/cardinality.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/cardinality.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/cardinality.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/cardinality.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/cardinality.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/cardinality.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/cardinality.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/cardinality.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/column_types.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/column_types.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/column_types.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/column_types.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/count.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/count.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/count.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/count.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/count.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/count.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/count.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/count.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/date_histogram.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/date_histogram.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/date_histogram.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/date_histogram.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/date_histogram.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/date_histogram.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/date_histogram.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/date_histogram.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.scss b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.scss similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.scss rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.scss diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filter_popover.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filters.scss b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filters.scss similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filters.scss rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filters.scss diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filters.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filters.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filters.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filters.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filters.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filters.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/filters.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/filters.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/index.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/filters/index.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/filters/index.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/__snapshots__/formula.test.tsx.snap b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/__snapshots__/formula.test.tsx.snap similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/__snapshots__/formula.test.tsx.snap rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/__snapshots__/formula.test.tsx.snap diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/context_variables.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/context_variables.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/context_variables.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/context_variables.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/context_variables.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/context_variables.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/context_variables.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/context_variables.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/formula.scss b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/formula.scss similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/formula.scss rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/formula.scss diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_editor.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_editor.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_help.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_help.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_help.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_help.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/index.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/index.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/index.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/index.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/math_completion.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/math_completion.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/math_completion.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/math_completion.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/math_completion.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/math_completion.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/math_completion.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/math_completion.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/math_tokenization.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/math_tokenization.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/math_tokenization.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/math_tokenization.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/formula.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/formula.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/formula.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/formula.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/formula.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/formula.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/formula.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/formula.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/formula_public_api.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/formula_public_api.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/formula_public_api.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/formula_public_api.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/formula_public_api.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/formula_public_api.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/formula_public_api.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/formula_public_api.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/generate.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/generate.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/generate.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/generate.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/index.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/index.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/index.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/index.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/math.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/math.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/math.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/math.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/math.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/math.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/math.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/math.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/math_examples.md b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/math_examples.md similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/math_examples.md rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/math_examples.md diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/mocks/operation_mocks.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/mocks/operation_mocks.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/mocks/operation_mocks.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/mocks/operation_mocks.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/parse.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/parse.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/parse.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/parse.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/types.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/types.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/types.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/types.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/util.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/util.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/util.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/util.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/validation.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/validation.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/validation.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/validation.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/validation_errors.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/validation_errors.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/validation_errors.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/validation_errors.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/get_group_by_key.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/get_group_by_key.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/get_group_by_key.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/get_group_by_key.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/helpers.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/helpers.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/helpers.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/helpers.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/helpers.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/index.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/index.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/index.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/index.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/last_value.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/last_value.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/last_value.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/last_value.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/last_value.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/last_value.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/last_value.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/last_value.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/metrics.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/metrics.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/metrics.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/metrics.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/metrics.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/metrics.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/metrics.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/metrics.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/percentile.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/percentile.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/percentile.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/percentile.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/percentile.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/percentile.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/percentile.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/percentile.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/percentile_ranks.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/percentile_ranks.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/percentile_ranks.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/percentile_ranks.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/percentile_ranks.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/percentile_ranks.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/percentile_ranks.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/percentile_ranks.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/advanced_editor.scss b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/advanced_editor.scss similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/advanced_editor.scss rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/advanced_editor.scss diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/advanced_editor.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/advanced_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/advanced_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/advanced_editor.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/constants.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/constants.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/constants.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/constants.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/index.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/index.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/index.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/index.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/range_editor.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/range_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/range_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/range_editor.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/ranges.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/ranges.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/ranges.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/ranges.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/ranges.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/ranges.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/ranges/ranges.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/ranges/ranges.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/shared_components/form_row.scss b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/shared_components/form_row.scss similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/shared_components/form_row.scss rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/shared_components/form_row.scss diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/shared_components/form_row.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/shared_components/form_row.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/shared_components/form_row.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/shared_components/form_row.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/shared_components/index.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/shared_components/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/shared_components/index.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/shared_components/index.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/shared_components/label_input.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/shared_components/label_input.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/shared_components/label_input.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/shared_components/label_input.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/static_value.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/static_value.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/static_value.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/static_value.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/static_value.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/static_value.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/static_value.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/static_value.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/constants.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/constants.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/constants.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/constants.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/field_inputs.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/field_inputs.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/field_inputs.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/field_inputs.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/helpers.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/helpers.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/helpers.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/helpers.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/include_exclude_options.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/include_exclude_options.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/include_exclude_options.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/include_exclude_options.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/include_exclude_options.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/include_exclude_options.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/include_exclude_options.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/include_exclude_options.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/index.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/index.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/index.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/terms.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/terms.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/terms.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/terms.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/types.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/types.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/types.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/types.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/values_input.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/values_input.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/values_input.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/values_input.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/values_input.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/values_input.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/definitions/terms/values_input.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/terms/values_input.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/index.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/index.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/index.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/index.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/layer_helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/layer_helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/layer_helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/layer_helpers.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/layer_helpers.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/layer_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/layer_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/layer_helpers.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/mocks.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/mocks.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/mocks.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/mocks.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/operations.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/operations.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/operations.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/operations.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/operations.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/operations.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/operations.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/operations.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/time_scale_utils.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/time_scale_utils.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/time_scale_utils.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/time_scale_utils.test.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/time_scale_utils.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/time_scale_utils.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/operations/time_scale_utils.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/time_scale_utils.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/pure_helpers.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/pure_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/pure_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/pure_helpers.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/pure_utils.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/pure_utils.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/pure_utils.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/pure_utils.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/reduced_time_range_utils.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/reduced_time_range_utils.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/reduced_time_range_utils.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/reduced_time_range_utils.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/state_helpers.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/state_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/state_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/state_helpers.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/time_shift_utils.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/time_shift_utils.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/time_shift_utils.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/time_shift_utils.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/time_shift_utils.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/time_shift_utils.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/time_shift_utils.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/time_shift_utils.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/to_expression.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/to_expression.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/to_expression.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/to_expression.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/types.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/types.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/types.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/types.ts diff --git a/x-pack/plugins/lens/public/datasources/form_based/utils.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/utils.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/utils.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/utils.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/form_based/utils.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/utils.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/form_based/utils.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/form_based/utils.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/components/datapanel.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/datapanel.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/components/datapanel.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/datapanel.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/components/datapanel.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/datapanel.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/components/datapanel.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/datapanel.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/components/dimension_editor.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/dimension_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/components/dimension_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/dimension_editor.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/components/dimension_trigger.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/dimension_trigger.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/components/dimension_trigger.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/dimension_trigger.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/components/field_select.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/field_select.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/components/field_select.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/field_select.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/components/field_select.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/field_select.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/components/field_select.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/components/field_select.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/dnd/get_drop_props.test.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/get_drop_props.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/dnd/get_drop_props.test.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/get_drop_props.test.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/dnd/get_drop_props.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/get_drop_props.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/dnd/get_drop_props.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/get_drop_props.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/dnd/index.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/dnd/index.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/index.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/dnd/mocks.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/mocks.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/dnd/mocks.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/mocks.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/dnd/on_drop.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/on_drop.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/dnd/on_drop.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/on_drop.test.ts diff --git a/x-pack/plugins/lens/public/datasources/text_based/dnd/on_drop.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/on_drop.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/dnd/on_drop.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/dnd/on_drop.ts diff --git a/x-pack/plugins/lens/public/datasources/text_based/fetch_data_from_aggregate_query.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/fetch_data_from_aggregate_query.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/fetch_data_from_aggregate_query.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/fetch_data_from_aggregate_query.ts diff --git a/x-pack/plugins/lens/public/datasources/text_based/fieldlist_cache.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/fieldlist_cache.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/fieldlist_cache.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/fieldlist_cache.ts diff --git a/x-pack/plugins/lens/public/datasources/text_based/index.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/index.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/index.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/index.ts diff --git a/x-pack/plugins/lens/public/datasources/text_based/remove_column.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/remove_column.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/remove_column.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/remove_column.ts diff --git a/x-pack/plugins/lens/public/datasources/text_based/text_based_languages.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/text_based_languages.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/text_based_languages.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/text_based_languages.test.ts diff --git a/x-pack/plugins/lens/public/datasources/text_based/text_based_languages.tsx b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/text_based_languages.tsx similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/text_based_languages.tsx rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/text_based_languages.tsx diff --git a/x-pack/plugins/lens/public/datasources/text_based/to_expression.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/to_expression.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/to_expression.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/to_expression.ts diff --git a/x-pack/plugins/lens/public/datasources/text_based/types.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/types.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/types.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/types.ts diff --git a/x-pack/plugins/lens/public/datasources/text_based/utils.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/utils.test.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/utils.test.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/utils.test.ts diff --git a/x-pack/plugins/lens/public/datasources/text_based/utils.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/utils.ts similarity index 100% rename from x-pack/plugins/lens/public/datasources/text_based/utils.ts rename to x-pack/platform/plugins/shared/lens/public/datasources/text_based/utils.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/__mocks__/expression_helpers.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/__mocks__/expression_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/__mocks__/expression_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/__mocks__/expression_helpers.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/__mocks__/suggestion_helpers.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/__mocks__/suggestion_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/__mocks__/suggestion_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/__mocks__/suggestion_helpers.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/banner_wrapper.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/banner_wrapper.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/banner_wrapper.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/banner_wrapper.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/buttons/draggable_dimension_button.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/buttons/draggable_dimension_button.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/buttons/draggable_dimension_button.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/buttons/draggable_dimension_button.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/buttons/drop_targets_utils.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/buttons/drop_targets_utils.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/buttons/drop_targets_utils.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/buttons/drop_targets_utils.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/buttons/empty_dimension_button.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/buttons/empty_dimension_button.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/buttons/empty_dimension_button.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/buttons/empty_dimension_button.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/buttons/fake_dimension_button.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/buttons/fake_dimension_button.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/buttons/fake_dimension_button.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/buttons/fake_dimension_button.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_option.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_option.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_option.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_option.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.scss b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.scss similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.scss rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.scss diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.test.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.test.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.test.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch_popover.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch_popover.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch_popover.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch_popover.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch_selectable.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch_selectable.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch_selectable.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch_selectable.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/index.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/index.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/index.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.test.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.test.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.test.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/dimension_container.scss b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/dimension_container.scss similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/dimension_container.scss rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/dimension_container.scss diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/dimension_container.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/dimension_container.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/dimension_container.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/dimension_container.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/index.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/index.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/index.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/index.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/clone_layer_action.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/clone_layer_action.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/clone_layer_action.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/clone_layer_action.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/index.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/index.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/index.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/index.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/layer_actions.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/layer_actions.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/layer_actions.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/layer_actions.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/open_layer_settings.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/open_layer_settings.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/open_layer_settings.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/open_layer_settings.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/order_bounds.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/order_bounds.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/order_bounds.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/order_bounds.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/remove_layer_action.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/remove_layer_action.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/remove_layer_action.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_actions/remove_layer_action.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_header.test.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_header.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_header.test.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_header.test.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_header.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_header.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_header.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_header.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.scss b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.scss similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.scss rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.scss diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.test.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.test.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.test.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/types.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/types.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/types.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/types.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/use_focus_update.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/use_focus_update.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/use_focus_update.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/config_panel/use_focus_update.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.scss b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.scss similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.scss rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.scss diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.test.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.test.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.test.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/data_panel_wrapper.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/easteregg/bee.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/easteregg/bee.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/easteregg/bee.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/easteregg/bee.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/easteregg/elastic_elk_b.png b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/easteregg/elastic_elk_b.png similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/easteregg/elastic_elk_b.png rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/easteregg/elastic_elk_b.png diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/easteregg/index.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/easteregg/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/easteregg/index.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/easteregg/index.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/editor_frame.test.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/editor_frame.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/editor_frame.test.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/editor_frame.test.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/editor_frame.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/editor_frame.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/editor_frame.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/editor_frame.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/expression_helpers.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/expression_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/expression_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/expression_helpers.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/frame_layout.scss b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/frame_layout.scss similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/frame_layout.scss rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/frame_layout.scss diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/frame_layout.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/frame_layout.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/frame_layout.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/frame_layout.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/index.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/index.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/index.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/index.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/state_helpers.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/state_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/state_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/state_helpers.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_helpers.test.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_helpers.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_helpers.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.scss b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_panel.scss similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.scss rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_panel.scss diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.test.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_panel.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.test.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_panel.test.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/geo_field_workspace_panel.scss b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/geo_field_workspace_panel.scss similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/geo_field_workspace_panel.scss rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/geo_field_workspace_panel.scss diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/geo_field_workspace_panel.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/geo_field_workspace_panel.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/geo_field_workspace_panel.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/geo_field_workspace_panel.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/index.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/index.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/index.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/index.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/message_list.scss b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/message_list.scss similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/message_list.scss rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/message_list.scss diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/message_list.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/message_list.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/message_list.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/message_list.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/title.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/title.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/title.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/title.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_errors.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_errors.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_errors.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_errors.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.test.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.test.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.test.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.scss b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.scss similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.scss rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.scss diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.test.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.test.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.test.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/error_helper.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/error_helper.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/error_helper.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/error_helper.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/index.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/index.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/index.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/index.ts diff --git a/x-pack/plugins/lens/public/editor_frame_service/mocks.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/mocks.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/mocks.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/mocks.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/service.tsx b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/service.tsx similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/service.tsx rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/service.tsx diff --git a/x-pack/plugins/lens/public/editor_frame_service/types.ts b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/types.ts similarity index 100% rename from x-pack/plugins/lens/public/editor_frame_service/types.ts rename to x-pack/platform/plugins/shared/lens/public/editor_frame_service/types.ts diff --git a/x-pack/plugins/lens/public/expressions.ts b/x-pack/platform/plugins/shared/lens/public/expressions.ts similarity index 100% rename from x-pack/plugins/lens/public/expressions.ts rename to x-pack/platform/plugins/shared/lens/public/expressions.ts diff --git a/x-pack/plugins/lens/public/help_menu_util.tsx b/x-pack/platform/plugins/shared/lens/public/help_menu_util.tsx similarity index 100% rename from x-pack/plugins/lens/public/help_menu_util.tsx rename to x-pack/platform/plugins/shared/lens/public/help_menu_util.tsx diff --git a/x-pack/plugins/lens/public/id_generator/id_generator.test.ts b/x-pack/platform/plugins/shared/lens/public/id_generator/id_generator.test.ts similarity index 100% rename from x-pack/plugins/lens/public/id_generator/id_generator.test.ts rename to x-pack/platform/plugins/shared/lens/public/id_generator/id_generator.test.ts diff --git a/x-pack/plugins/lens/public/id_generator/id_generator.ts b/x-pack/platform/plugins/shared/lens/public/id_generator/id_generator.ts similarity index 100% rename from x-pack/plugins/lens/public/id_generator/id_generator.ts rename to x-pack/platform/plugins/shared/lens/public/id_generator/id_generator.ts diff --git a/x-pack/plugins/lens/public/id_generator/index.ts b/x-pack/platform/plugins/shared/lens/public/id_generator/index.ts similarity index 100% rename from x-pack/plugins/lens/public/id_generator/index.ts rename to x-pack/platform/plugins/shared/lens/public/id_generator/index.ts diff --git a/x-pack/plugins/lens/public/index.ts b/x-pack/platform/plugins/shared/lens/public/index.ts similarity index 100% rename from x-pack/plugins/lens/public/index.ts rename to x-pack/platform/plugins/shared/lens/public/index.ts diff --git a/x-pack/plugins/lens/public/lens_attribute_service.ts b/x-pack/platform/plugins/shared/lens/public/lens_attribute_service.ts similarity index 100% rename from x-pack/plugins/lens/public/lens_attribute_service.ts rename to x-pack/platform/plugins/shared/lens/public/lens_attribute_service.ts diff --git a/x-pack/plugins/lens/public/lens_inspector_service.ts b/x-pack/platform/plugins/shared/lens/public/lens_inspector_service.ts similarity index 100% rename from x-pack/plugins/lens/public/lens_inspector_service.ts rename to x-pack/platform/plugins/shared/lens/public/lens_inspector_service.ts diff --git a/x-pack/plugins/lens/public/lens_suggestions_api/helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/lens_suggestions_api/helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/lens_suggestions_api/helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/lens_suggestions_api/helpers.test.ts diff --git a/x-pack/plugins/lens/public/lens_suggestions_api/helpers.ts b/x-pack/platform/plugins/shared/lens/public/lens_suggestions_api/helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/lens_suggestions_api/helpers.ts rename to x-pack/platform/plugins/shared/lens/public/lens_suggestions_api/helpers.ts diff --git a/x-pack/plugins/lens/public/lens_suggestions_api/index.ts b/x-pack/platform/plugins/shared/lens/public/lens_suggestions_api/index.ts similarity index 100% rename from x-pack/plugins/lens/public/lens_suggestions_api/index.ts rename to x-pack/platform/plugins/shared/lens/public/lens_suggestions_api/index.ts diff --git a/x-pack/plugins/lens/public/lens_suggestions_api/lens_suggestions_api.test.ts b/x-pack/platform/plugins/shared/lens/public/lens_suggestions_api/lens_suggestions_api.test.ts similarity index 100% rename from x-pack/plugins/lens/public/lens_suggestions_api/lens_suggestions_api.test.ts rename to x-pack/platform/plugins/shared/lens/public/lens_suggestions_api/lens_suggestions_api.test.ts diff --git a/x-pack/plugins/lens/public/lens_suggestions_api/readme.md b/x-pack/platform/plugins/shared/lens/public/lens_suggestions_api/readme.md similarity index 100% rename from x-pack/plugins/lens/public/lens_suggestions_api/readme.md rename to x-pack/platform/plugins/shared/lens/public/lens_suggestions_api/readme.md diff --git a/x-pack/plugins/lens/public/lens_ui_errors/error_boundary.tsx b/x-pack/platform/plugins/shared/lens/public/lens_ui_errors/error_boundary.tsx similarity index 100% rename from x-pack/plugins/lens/public/lens_ui_errors/error_boundary.tsx rename to x-pack/platform/plugins/shared/lens/public/lens_ui_errors/error_boundary.tsx diff --git a/x-pack/plugins/lens/public/lens_ui_errors/index.ts b/x-pack/platform/plugins/shared/lens/public/lens_ui_errors/index.ts similarity index 100% rename from x-pack/plugins/lens/public/lens_ui_errors/index.ts rename to x-pack/platform/plugins/shared/lens/public/lens_ui_errors/index.ts diff --git a/x-pack/plugins/lens/public/lens_ui_errors/memoized_error_notification.tsx b/x-pack/platform/plugins/shared/lens/public/lens_ui_errors/memoized_error_notification.tsx similarity index 100% rename from x-pack/plugins/lens/public/lens_ui_errors/memoized_error_notification.tsx rename to x-pack/platform/plugins/shared/lens/public/lens_ui_errors/memoized_error_notification.tsx diff --git a/x-pack/plugins/lens/public/lens_ui_telemetry/color_telemetry_helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/lens_ui_telemetry/color_telemetry_helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/lens_ui_telemetry/color_telemetry_helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/lens_ui_telemetry/color_telemetry_helpers.test.ts diff --git a/x-pack/plugins/lens/public/lens_ui_telemetry/color_telemetry_helpers.ts b/x-pack/platform/plugins/shared/lens/public/lens_ui_telemetry/color_telemetry_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/lens_ui_telemetry/color_telemetry_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/lens_ui_telemetry/color_telemetry_helpers.ts diff --git a/x-pack/plugins/lens/public/lens_ui_telemetry/index.ts b/x-pack/platform/plugins/shared/lens/public/lens_ui_telemetry/index.ts similarity index 100% rename from x-pack/plugins/lens/public/lens_ui_telemetry/index.ts rename to x-pack/platform/plugins/shared/lens/public/lens_ui_telemetry/index.ts diff --git a/x-pack/plugins/lens/public/lens_ui_telemetry/track_counter_events.ts b/x-pack/platform/plugins/shared/lens/public/lens_ui_telemetry/track_counter_events.ts similarity index 100% rename from x-pack/plugins/lens/public/lens_ui_telemetry/track_counter_events.ts rename to x-pack/platform/plugins/shared/lens/public/lens_ui_telemetry/track_counter_events.ts diff --git a/x-pack/plugins/lens/public/mocks/data_plugin_mock.ts b/x-pack/platform/plugins/shared/lens/public/mocks/data_plugin_mock.ts similarity index 100% rename from x-pack/plugins/lens/public/mocks/data_plugin_mock.ts rename to x-pack/platform/plugins/shared/lens/public/mocks/data_plugin_mock.ts diff --git a/x-pack/plugins/lens/public/mocks/data_views_service_mock.ts b/x-pack/platform/plugins/shared/lens/public/mocks/data_views_service_mock.ts similarity index 100% rename from x-pack/plugins/lens/public/mocks/data_views_service_mock.ts rename to x-pack/platform/plugins/shared/lens/public/mocks/data_views_service_mock.ts diff --git a/x-pack/plugins/lens/public/mocks/datasource_mock.tsx b/x-pack/platform/plugins/shared/lens/public/mocks/datasource_mock.tsx similarity index 100% rename from x-pack/plugins/lens/public/mocks/datasource_mock.tsx rename to x-pack/platform/plugins/shared/lens/public/mocks/datasource_mock.tsx diff --git a/x-pack/plugins/lens/public/mocks/dataview_mock.ts b/x-pack/platform/plugins/shared/lens/public/mocks/dataview_mock.ts similarity index 100% rename from x-pack/plugins/lens/public/mocks/dataview_mock.ts rename to x-pack/platform/plugins/shared/lens/public/mocks/dataview_mock.ts diff --git a/x-pack/plugins/lens/public/mocks/expression_renderer_mock.tsx b/x-pack/platform/plugins/shared/lens/public/mocks/expression_renderer_mock.tsx similarity index 100% rename from x-pack/plugins/lens/public/mocks/expression_renderer_mock.tsx rename to x-pack/platform/plugins/shared/lens/public/mocks/expression_renderer_mock.tsx diff --git a/x-pack/plugins/lens/public/mocks/index.ts b/x-pack/platform/plugins/shared/lens/public/mocks/index.ts similarity index 100% rename from x-pack/plugins/lens/public/mocks/index.ts rename to x-pack/platform/plugins/shared/lens/public/mocks/index.ts diff --git a/x-pack/plugins/lens/public/mocks/lens_plugin_mock.tsx b/x-pack/platform/plugins/shared/lens/public/mocks/lens_plugin_mock.tsx similarity index 100% rename from x-pack/plugins/lens/public/mocks/lens_plugin_mock.tsx rename to x-pack/platform/plugins/shared/lens/public/mocks/lens_plugin_mock.tsx diff --git a/x-pack/plugins/lens/public/mocks/services_mock.tsx b/x-pack/platform/plugins/shared/lens/public/mocks/services_mock.tsx similarity index 100% rename from x-pack/plugins/lens/public/mocks/services_mock.tsx rename to x-pack/platform/plugins/shared/lens/public/mocks/services_mock.tsx diff --git a/x-pack/plugins/lens/public/mocks/store_mocks.tsx b/x-pack/platform/plugins/shared/lens/public/mocks/store_mocks.tsx similarity index 100% rename from x-pack/plugins/lens/public/mocks/store_mocks.tsx rename to x-pack/platform/plugins/shared/lens/public/mocks/store_mocks.tsx diff --git a/x-pack/plugins/lens/public/mocks/suggestions_mock.ts b/x-pack/platform/plugins/shared/lens/public/mocks/suggestions_mock.ts similarity index 100% rename from x-pack/plugins/lens/public/mocks/suggestions_mock.ts rename to x-pack/platform/plugins/shared/lens/public/mocks/suggestions_mock.ts diff --git a/x-pack/plugins/lens/public/mocks/visualization_mock.tsx b/x-pack/platform/plugins/shared/lens/public/mocks/visualization_mock.tsx similarity index 100% rename from x-pack/plugins/lens/public/mocks/visualization_mock.tsx rename to x-pack/platform/plugins/shared/lens/public/mocks/visualization_mock.tsx diff --git a/x-pack/plugins/lens/public/persistence/index.ts b/x-pack/platform/plugins/shared/lens/public/persistence/index.ts similarity index 100% rename from x-pack/plugins/lens/public/persistence/index.ts rename to x-pack/platform/plugins/shared/lens/public/persistence/index.ts diff --git a/x-pack/plugins/lens/public/persistence/lens_client.ts b/x-pack/platform/plugins/shared/lens/public/persistence/lens_client.ts similarity index 100% rename from x-pack/plugins/lens/public/persistence/lens_client.ts rename to x-pack/platform/plugins/shared/lens/public/persistence/lens_client.ts diff --git a/x-pack/plugins/lens/public/persistence/saved_object_store.test.ts b/x-pack/platform/plugins/shared/lens/public/persistence/saved_object_store.test.ts similarity index 100% rename from x-pack/plugins/lens/public/persistence/saved_object_store.test.ts rename to x-pack/platform/plugins/shared/lens/public/persistence/saved_object_store.test.ts diff --git a/x-pack/plugins/lens/public/persistence/saved_object_store.ts b/x-pack/platform/plugins/shared/lens/public/persistence/saved_object_store.ts similarity index 100% rename from x-pack/plugins/lens/public/persistence/saved_object_store.ts rename to x-pack/platform/plugins/shared/lens/public/persistence/saved_object_store.ts diff --git a/x-pack/plugins/lens/public/persistence/saved_objects_utils/check_for_duplicate_title.ts b/x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/check_for_duplicate_title.ts similarity index 100% rename from x-pack/plugins/lens/public/persistence/saved_objects_utils/check_for_duplicate_title.ts rename to x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/check_for_duplicate_title.ts diff --git a/x-pack/plugins/lens/public/persistence/saved_objects_utils/confirm_modal_promise.tsx b/x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/confirm_modal_promise.tsx similarity index 100% rename from x-pack/plugins/lens/public/persistence/saved_objects_utils/confirm_modal_promise.tsx rename to x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/confirm_modal_promise.tsx diff --git a/x-pack/plugins/lens/public/persistence/saved_objects_utils/constants.ts b/x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/constants.ts similarity index 100% rename from x-pack/plugins/lens/public/persistence/saved_objects_utils/constants.ts rename to x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/constants.ts diff --git a/x-pack/plugins/lens/public/persistence/saved_objects_utils/display_duplicate_title_confirm_modal.ts b/x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/display_duplicate_title_confirm_modal.ts similarity index 100% rename from x-pack/plugins/lens/public/persistence/saved_objects_utils/display_duplicate_title_confirm_modal.ts rename to x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/display_duplicate_title_confirm_modal.ts diff --git a/x-pack/plugins/lens/public/persistence/saved_objects_utils/find_object_by_title.test.ts b/x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/find_object_by_title.test.ts similarity index 100% rename from x-pack/plugins/lens/public/persistence/saved_objects_utils/find_object_by_title.test.ts rename to x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/find_object_by_title.test.ts diff --git a/x-pack/plugins/lens/public/persistence/saved_objects_utils/find_object_by_title.ts b/x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/find_object_by_title.ts similarity index 100% rename from x-pack/plugins/lens/public/persistence/saved_objects_utils/find_object_by_title.ts rename to x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/find_object_by_title.ts diff --git a/x-pack/plugins/lens/public/persistence/saved_objects_utils/index.ts b/x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/index.ts similarity index 100% rename from x-pack/plugins/lens/public/persistence/saved_objects_utils/index.ts rename to x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/index.ts diff --git a/x-pack/plugins/lens/public/persistence/saved_objects_utils/types.ts b/x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/types.ts similarity index 100% rename from x-pack/plugins/lens/public/persistence/saved_objects_utils/types.ts rename to x-pack/platform/plugins/shared/lens/public/persistence/saved_objects_utils/types.ts diff --git a/x-pack/plugins/lens/public/plugin.ts b/x-pack/platform/plugins/shared/lens/public/plugin.ts similarity index 100% rename from x-pack/plugins/lens/public/plugin.ts rename to x-pack/platform/plugins/shared/lens/public/plugin.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/data_loader.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/data_loader.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/data_loader.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/data_loader.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/expression_wrapper.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/expression_wrapper.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/expression_wrapper.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/expression_wrapper.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/expressions/callbacks.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/callbacks.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/expressions/callbacks.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/callbacks.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/expressions/expression_params.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/expression_params.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/expressions/expression_params.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/expression_params.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/expressions/merged_search_context.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/merged_search_context.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/expressions/merged_search_context.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/merged_search_context.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/expressions/on_event.test.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/on_event.test.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/expressions/on_event.test.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/on_event.test.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/expressions/on_event.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/on_event.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/expressions/on_event.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/on_event.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/expressions/on_render.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/on_render.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/expressions/on_render.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/on_render.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/expressions/telemetry.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/telemetry.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/expressions/telemetry.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/telemetry.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/expressions/update_data_views.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/update_data_views.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/expressions/update_data_views.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/update_data_views.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/expressions/variables.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/variables.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/expressions/variables.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/expressions/variables.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/helper.test.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/helper.test.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/helper.test.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/helper.test.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/helper.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/helper.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/helper.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/helper.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/initializers/initialize_actions.test.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_actions.test.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/initializers/initialize_actions.test.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_actions.test.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/initializers/initialize_actions.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_actions.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/initializers/initialize_actions.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_actions.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/initializers/initialize_dashboard_service.test.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_dashboard_service.test.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/initializers/initialize_dashboard_service.test.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_dashboard_service.test.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/initializers/initialize_dashboard_services.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_dashboard_services.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/initializers/initialize_dashboard_services.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_dashboard_services.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/initializers/initialize_edit.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_edit.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/initializers/initialize_edit.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_edit.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/initializers/initialize_inspector.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_inspector.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/initializers/initialize_inspector.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_inspector.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/initializers/initialize_integrations.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_integrations.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/initializers/initialize_integrations.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_integrations.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/initializers/initialize_internal_api.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_internal_api.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/initializers/initialize_internal_api.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_internal_api.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/initializers/initialize_search_context.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_search_context.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/initializers/initialize_search_context.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_search_context.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/initializers/initialize_state_management.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_state_management.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/initializers/initialize_state_management.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/initializers/initialize_state_management.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/inline_editing/mount.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/inline_editing/mount.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/inline_editing/mount.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/inline_editing/mount.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/inline_editing/panel_management.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/inline_editing/panel_management.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/inline_editing/panel_management.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/inline_editing/panel_management.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/inline_editing/setup_inline_editing.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/inline_editing/setup_inline_editing.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/inline_editing/setup_inline_editing.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/inline_editing/setup_inline_editing.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/inline_editing/state_management.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/inline_editing/state_management.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/inline_editing/state_management.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/inline_editing/state_management.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/lens_embeddable.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/lens_embeddable.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/lens_embeddable.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/lens_embeddable.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/logger.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/logger.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/logger.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/logger.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/mocks/index.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/mocks/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/mocks/index.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/mocks/index.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/renderer/hooks.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/renderer/hooks.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/renderer/hooks.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/renderer/hooks.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/renderer/lens_custom_renderer_component.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/renderer/lens_custom_renderer_component.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/renderer/lens_custom_renderer_component.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/renderer/lens_custom_renderer_component.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/renderer/lens_embeddable_component.test.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/renderer/lens_embeddable_component.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/renderer/lens_embeddable_component.test.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/renderer/lens_embeddable_component.test.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/renderer/lens_embeddable_component.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/renderer/lens_embeddable_component.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/renderer/lens_embeddable_component.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/renderer/lens_embeddable_component.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/type_guards.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/type_guards.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/type_guards.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/type_guards.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/types.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/types.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/types.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/types.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/user_messages/api.ts b/x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/api.ts similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/user_messages/api.ts rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/api.ts diff --git a/x-pack/plugins/lens/public/react_embeddable/user_messages/checks.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/checks.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/user_messages/checks.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/checks.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/user_messages/container.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/container.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/user_messages/container.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/container.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/user_messages/error_panel.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/error_panel.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/user_messages/error_panel.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/error_panel.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/user_messages/info_badges.scss b/x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/info_badges.scss similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/user_messages/info_badges.scss rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/info_badges.scss diff --git a/x-pack/plugins/lens/public/react_embeddable/user_messages/info_badges.test.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/info_badges.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/user_messages/info_badges.test.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/info_badges.test.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/user_messages/info_badges.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/info_badges.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/user_messages/info_badges.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/info_badges.tsx diff --git a/x-pack/plugins/lens/public/react_embeddable/user_messages/message_popover.tsx b/x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/message_popover.tsx similarity index 100% rename from x-pack/plugins/lens/public/react_embeddable/user_messages/message_popover.tsx rename to x-pack/platform/plugins/shared/lens/public/react_embeddable/user_messages/message_popover.tsx diff --git a/x-pack/plugins/lens/public/report_performance_metric_util.ts b/x-pack/platform/plugins/shared/lens/public/report_performance_metric_util.ts similarity index 100% rename from x-pack/plugins/lens/public/report_performance_metric_util.ts rename to x-pack/platform/plugins/shared/lens/public/report_performance_metric_util.ts diff --git a/x-pack/plugins/lens/public/search_provider.ts b/x-pack/platform/plugins/shared/lens/public/search_provider.ts similarity index 100% rename from x-pack/plugins/lens/public/search_provider.ts rename to x-pack/platform/plugins/shared/lens/public/search_provider.ts diff --git a/x-pack/plugins/lens/public/settings_storage.tsx b/x-pack/platform/plugins/shared/lens/public/settings_storage.tsx similarity index 100% rename from x-pack/plugins/lens/public/settings_storage.tsx rename to x-pack/platform/plugins/shared/lens/public/settings_storage.tsx diff --git a/x-pack/plugins/lens/public/shared_components/axis/extent/axis_extent_settings.test.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/axis_extent_settings.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/axis/extent/axis_extent_settings.test.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/axis_extent_settings.test.tsx diff --git a/x-pack/plugins/lens/public/shared_components/axis/extent/axis_extent_settings.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/axis_extent_settings.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/axis/extent/axis_extent_settings.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/axis_extent_settings.tsx diff --git a/x-pack/plugins/lens/public/shared_components/axis/extent/helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/axis/extent/helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/helpers.test.ts diff --git a/x-pack/plugins/lens/public/shared_components/axis/extent/helpers.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/axis/extent/helpers.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/helpers.ts diff --git a/x-pack/plugins/lens/public/shared_components/axis/extent/index.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/index.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/axis/extent/index.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/index.ts diff --git a/x-pack/plugins/lens/public/shared_components/axis/extent/to_expression.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/to_expression.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/axis/extent/to_expression.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/to_expression.tsx diff --git a/x-pack/plugins/lens/public/shared_components/axis/extent/types.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/types.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/axis/extent/types.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/axis/extent/types.ts diff --git a/x-pack/plugins/lens/public/shared_components/axis/ticks/axis_ticks_settings.test.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/axis/ticks/axis_ticks_settings.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/axis/ticks/axis_ticks_settings.test.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/axis/ticks/axis_ticks_settings.test.tsx diff --git a/x-pack/plugins/lens/public/shared_components/axis/ticks/axis_ticks_settings.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/axis/ticks/axis_ticks_settings.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/axis/ticks/axis_ticks_settings.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/axis/ticks/axis_ticks_settings.tsx diff --git a/x-pack/plugins/lens/public/shared_components/axis/title/toolbar_title_settings.test.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/axis/title/toolbar_title_settings.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/axis/title/toolbar_title_settings.test.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/axis/title/toolbar_title_settings.test.tsx diff --git a/x-pack/plugins/lens/public/shared_components/axis/title/toolbar_title_settings.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/axis/title/toolbar_title_settings.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/axis/title/toolbar_title_settings.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/axis/title/toolbar_title_settings.tsx diff --git a/x-pack/plugins/lens/public/shared_components/bar_orientation.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/bar_orientation.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/bar_orientation.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/bar_orientation.tsx diff --git a/x-pack/plugins/lens/public/shared_components/collapse_setting.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/collapse_setting.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/collapse_setting.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/collapse_setting.tsx diff --git a/x-pack/plugins/lens/public/shared_components/coloring/color_mapping_accessor.test.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/coloring/color_mapping_accessor.test.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/coloring/color_mapping_accessor.test.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/coloring/color_mapping_accessor.test.ts diff --git a/x-pack/plugins/lens/public/shared_components/coloring/color_mapping_accessor.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/coloring/color_mapping_accessor.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/coloring/color_mapping_accessor.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/coloring/color_mapping_accessor.ts diff --git a/x-pack/plugins/lens/public/shared_components/coloring/color_mapping_by_terms.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/coloring/color_mapping_by_terms.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/coloring/color_mapping_by_terms.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/coloring/color_mapping_by_terms.tsx diff --git a/x-pack/plugins/lens/public/shared_components/coloring/color_mapping_by_values.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/coloring/color_mapping_by_values.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/coloring/color_mapping_by_values.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/coloring/color_mapping_by_values.tsx diff --git a/x-pack/plugins/lens/public/shared_components/coloring/constants.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/coloring/constants.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/coloring/constants.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/coloring/constants.ts diff --git a/x-pack/plugins/lens/public/shared_components/coloring/get_cell_color_fn.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/coloring/get_cell_color_fn.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/coloring/get_cell_color_fn.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/coloring/get_cell_color_fn.ts diff --git a/x-pack/plugins/lens/public/shared_components/coloring/index.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/coloring/index.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/coloring/index.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/coloring/index.ts diff --git a/x-pack/plugins/lens/public/shared_components/coloring/palette_panel_container.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/coloring/palette_panel_container.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/coloring/palette_panel_container.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/coloring/palette_panel_container.tsx diff --git a/x-pack/plugins/lens/public/shared_components/coloring/utils.test.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/coloring/utils.test.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/coloring/utils.test.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/coloring/utils.test.ts diff --git a/x-pack/plugins/lens/public/shared_components/coloring/utils.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/coloring/utils.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/coloring/utils.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/coloring/utils.ts diff --git a/x-pack/plugins/lens/public/shared_components/datasource_default_values.test.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/datasource_default_values.test.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/datasource_default_values.test.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/datasource_default_values.test.ts diff --git a/x-pack/plugins/lens/public/shared_components/datasource_default_values.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/datasource_default_values.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/datasource_default_values.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/datasource_default_values.ts diff --git a/x-pack/plugins/lens/public/shared_components/dataview_picker/dataview_picker.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/dataview_picker.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/dataview_picker/dataview_picker.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/dataview_picker.tsx diff --git a/x-pack/plugins/lens/public/shared_components/dataview_picker/helpers.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/dataview_picker/helpers.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/helpers.ts diff --git a/x-pack/plugins/lens/public/shared_components/dataview_picker/index.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/index.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/dataview_picker/index.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/index.ts diff --git a/x-pack/plugins/lens/public/shared_components/dataview_picker/toolbar_button.scss b/x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/toolbar_button.scss similarity index 100% rename from x-pack/plugins/lens/public/shared_components/dataview_picker/toolbar_button.scss rename to x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/toolbar_button.scss diff --git a/x-pack/plugins/lens/public/shared_components/dataview_picker/toolbar_button.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/toolbar_button.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/dataview_picker/toolbar_button.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/toolbar_button.tsx diff --git a/x-pack/plugins/lens/public/shared_components/dataview_picker/trigger.test.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/trigger.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/dataview_picker/trigger.test.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/trigger.test.tsx diff --git a/x-pack/plugins/lens/public/shared_components/dataview_picker/trigger.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/trigger.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/dataview_picker/trigger.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/dataview_picker/trigger.tsx diff --git a/x-pack/plugins/lens/public/shared_components/experimental_badge.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/experimental_badge.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/experimental_badge.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/experimental_badge.tsx diff --git a/x-pack/plugins/lens/public/shared_components/flyout_container.scss b/x-pack/platform/plugins/shared/lens/public/shared_components/flyout_container.scss similarity index 100% rename from x-pack/plugins/lens/public/shared_components/flyout_container.scss rename to x-pack/platform/plugins/shared/lens/public/shared_components/flyout_container.scss diff --git a/x-pack/plugins/lens/public/shared_components/flyout_container.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/flyout_container.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/flyout_container.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/flyout_container.tsx diff --git a/x-pack/plugins/lens/public/shared_components/helpers.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/helpers.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/helpers.ts diff --git a/x-pack/plugins/lens/public/shared_components/icon_set.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/icon_set.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/icon_set.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/icon_set.tsx diff --git a/x-pack/plugins/lens/public/shared_components/ignore_global_filter/data_view_picker_icon.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/ignore_global_filter/data_view_picker_icon.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/ignore_global_filter/data_view_picker_icon.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/ignore_global_filter/data_view_picker_icon.tsx diff --git a/x-pack/plugins/lens/public/shared_components/ignore_global_filter/index.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/ignore_global_filter/index.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/ignore_global_filter/index.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/ignore_global_filter/index.ts diff --git a/x-pack/plugins/lens/public/shared_components/ignore_global_filter/info_badge.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/ignore_global_filter/info_badge.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/ignore_global_filter/info_badge.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/ignore_global_filter/info_badge.tsx diff --git a/x-pack/plugins/lens/public/shared_components/ignore_global_filter/settings_control.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/ignore_global_filter/settings_control.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/ignore_global_filter/settings_control.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/ignore_global_filter/settings_control.tsx diff --git a/x-pack/plugins/lens/public/shared_components/index.ts b/x-pack/platform/plugins/shared/lens/public/shared_components/index.ts similarity index 100% rename from x-pack/plugins/lens/public/shared_components/index.ts rename to x-pack/platform/plugins/shared/lens/public/shared_components/index.ts diff --git a/x-pack/plugins/lens/public/shared_components/info_badges/info_badge.test.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/info_badges/info_badge.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/info_badges/info_badge.test.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/info_badges/info_badge.test.tsx diff --git a/x-pack/plugins/lens/public/shared_components/info_badges/info_badge.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/info_badges/info_badge.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/info_badges/info_badge.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/info_badges/info_badge.tsx diff --git a/x-pack/plugins/lens/public/shared_components/legend/layout/columns_number_setting.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/legend/layout/columns_number_setting.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/legend/layout/columns_number_setting.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/legend/layout/columns_number_setting.tsx diff --git a/x-pack/plugins/lens/public/shared_components/legend/legend_settings_popover.test.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/legend/legend_settings_popover.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/legend/legend_settings_popover.test.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/legend/legend_settings_popover.test.tsx diff --git a/x-pack/plugins/lens/public/shared_components/legend/legend_settings_popover.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/legend/legend_settings_popover.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/legend/legend_settings_popover.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/legend/legend_settings_popover.tsx diff --git a/x-pack/plugins/lens/public/shared_components/legend/location/legend_location_settings.test.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/legend/location/legend_location_settings.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/legend/location/legend_location_settings.test.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/legend/location/legend_location_settings.test.tsx diff --git a/x-pack/plugins/lens/public/shared_components/legend/location/legend_location_settings.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/legend/location/legend_location_settings.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/legend/location/legend_location_settings.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/legend/location/legend_location_settings.tsx diff --git a/x-pack/plugins/lens/public/shared_components/legend/size/legend_size_settings.test.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/legend/size/legend_size_settings.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/legend/size/legend_size_settings.test.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/legend/size/legend_size_settings.test.tsx diff --git a/x-pack/plugins/lens/public/shared_components/legend/size/legend_size_settings.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/legend/size/legend_size_settings.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/legend/size/legend_size_settings.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/legend/size/legend_size_settings.tsx diff --git a/x-pack/plugins/lens/public/shared_components/palette_picker.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/palette_picker.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/palette_picker.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/palette_picker.tsx diff --git a/x-pack/plugins/lens/public/shared_components/prepend_provider.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/prepend_provider.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/prepend_provider.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/prepend_provider.tsx diff --git a/x-pack/plugins/lens/public/shared_components/range_input_field.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/range_input_field.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/range_input_field.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/range_input_field.tsx diff --git a/x-pack/plugins/lens/public/shared_components/setting_with_sibling_flyout.scss b/x-pack/platform/plugins/shared/lens/public/shared_components/setting_with_sibling_flyout.scss similarity index 100% rename from x-pack/plugins/lens/public/shared_components/setting_with_sibling_flyout.scss rename to x-pack/platform/plugins/shared/lens/public/shared_components/setting_with_sibling_flyout.scss diff --git a/x-pack/plugins/lens/public/shared_components/setting_with_sibling_flyout.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/setting_with_sibling_flyout.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/setting_with_sibling_flyout.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/setting_with_sibling_flyout.tsx diff --git a/x-pack/plugins/lens/public/shared_components/static_header.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/static_header.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/static_header.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/static_header.tsx diff --git a/x-pack/plugins/lens/public/shared_components/toolbar_divider.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/toolbar_divider.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/toolbar_divider.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/toolbar_divider.tsx diff --git a/x-pack/plugins/lens/public/shared_components/toolbar_popover.scss b/x-pack/platform/plugins/shared/lens/public/shared_components/toolbar_popover.scss similarity index 100% rename from x-pack/plugins/lens/public/shared_components/toolbar_popover.scss rename to x-pack/platform/plugins/shared/lens/public/shared_components/toolbar_popover.scss diff --git a/x-pack/plugins/lens/public/shared_components/toolbar_popover.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/toolbar_popover.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/toolbar_popover.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/toolbar_popover.tsx diff --git a/x-pack/plugins/lens/public/shared_components/value_labels_settings.test.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/value_labels_settings.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/value_labels_settings.test.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/value_labels_settings.test.tsx diff --git a/x-pack/plugins/lens/public/shared_components/value_labels_settings.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/value_labels_settings.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/value_labels_settings.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/value_labels_settings.tsx diff --git a/x-pack/plugins/lens/public/shared_components/vis_label.tsx b/x-pack/platform/plugins/shared/lens/public/shared_components/vis_label.tsx similarity index 100% rename from x-pack/plugins/lens/public/shared_components/vis_label.tsx rename to x-pack/platform/plugins/shared/lens/public/shared_components/vis_label.tsx diff --git a/x-pack/plugins/lens/public/state_management/__snapshots__/load_initial.test.tsx.snap b/x-pack/platform/plugins/shared/lens/public/state_management/__snapshots__/load_initial.test.tsx.snap similarity index 100% rename from x-pack/plugins/lens/public/state_management/__snapshots__/load_initial.test.tsx.snap rename to x-pack/platform/plugins/shared/lens/public/state_management/__snapshots__/load_initial.test.tsx.snap diff --git a/x-pack/plugins/lens/public/state_management/context_middleware/index.test.ts b/x-pack/platform/plugins/shared/lens/public/state_management/context_middleware/index.test.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/context_middleware/index.test.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/context_middleware/index.test.ts diff --git a/x-pack/plugins/lens/public/state_management/context_middleware/index.ts b/x-pack/platform/plugins/shared/lens/public/state_management/context_middleware/index.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/context_middleware/index.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/context_middleware/index.ts diff --git a/x-pack/plugins/lens/public/state_management/context_middleware/subscribe_to_external_context.ts b/x-pack/platform/plugins/shared/lens/public/state_management/context_middleware/subscribe_to_external_context.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/context_middleware/subscribe_to_external_context.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/context_middleware/subscribe_to_external_context.ts diff --git a/x-pack/plugins/lens/public/state_management/fullscreen_middleware.ts b/x-pack/platform/plugins/shared/lens/public/state_management/fullscreen_middleware.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/fullscreen_middleware.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/fullscreen_middleware.ts diff --git a/x-pack/plugins/lens/public/state_management/index.test.ts b/x-pack/platform/plugins/shared/lens/public/state_management/index.test.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/index.test.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/index.test.ts diff --git a/x-pack/plugins/lens/public/state_management/index.ts b/x-pack/platform/plugins/shared/lens/public/state_management/index.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/index.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/index.ts diff --git a/x-pack/plugins/lens/public/state_management/init_middleware/index.ts b/x-pack/platform/plugins/shared/lens/public/state_management/init_middleware/index.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/init_middleware/index.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/init_middleware/index.ts diff --git a/x-pack/plugins/lens/public/state_management/init_middleware/load_initial.ts b/x-pack/platform/plugins/shared/lens/public/state_management/init_middleware/load_initial.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/init_middleware/load_initial.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/init_middleware/load_initial.ts diff --git a/x-pack/plugins/lens/public/state_management/lens_slice.test.ts b/x-pack/platform/plugins/shared/lens/public/state_management/lens_slice.test.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/lens_slice.test.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/lens_slice.test.ts diff --git a/x-pack/plugins/lens/public/state_management/lens_slice.ts b/x-pack/platform/plugins/shared/lens/public/state_management/lens_slice.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/lens_slice.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/lens_slice.ts diff --git a/x-pack/plugins/lens/public/state_management/load_initial.test.tsx b/x-pack/platform/plugins/shared/lens/public/state_management/load_initial.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/state_management/load_initial.test.tsx rename to x-pack/platform/plugins/shared/lens/public/state_management/load_initial.test.tsx diff --git a/x-pack/plugins/lens/public/state_management/optimizing_middleware.ts b/x-pack/platform/plugins/shared/lens/public/state_management/optimizing_middleware.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/optimizing_middleware.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/optimizing_middleware.ts diff --git a/x-pack/plugins/lens/public/state_management/selectors.test.ts b/x-pack/platform/plugins/shared/lens/public/state_management/selectors.test.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/selectors.test.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/selectors.test.ts diff --git a/x-pack/plugins/lens/public/state_management/selectors.ts b/x-pack/platform/plugins/shared/lens/public/state_management/selectors.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/selectors.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/selectors.ts diff --git a/x-pack/plugins/lens/public/state_management/shared_logic.ts b/x-pack/platform/plugins/shared/lens/public/state_management/shared_logic.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/shared_logic.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/shared_logic.ts diff --git a/x-pack/plugins/lens/public/state_management/types.ts b/x-pack/platform/plugins/shared/lens/public/state_management/types.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/types.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/types.ts diff --git a/x-pack/plugins/lens/public/state_management/utils.ts b/x-pack/platform/plugins/shared/lens/public/state_management/utils.ts similarity index 100% rename from x-pack/plugins/lens/public/state_management/utils.ts rename to x-pack/platform/plugins/shared/lens/public/state_management/utils.ts diff --git a/x-pack/plugins/lens/public/trigger_actions/convert_to_lens_action.ts b/x-pack/platform/plugins/shared/lens/public/trigger_actions/convert_to_lens_action.ts similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/convert_to_lens_action.ts rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/convert_to_lens_action.ts diff --git a/x-pack/plugins/lens/public/trigger_actions/dashboard_visualize_panel_actions.ts b/x-pack/platform/plugins/shared/lens/public/trigger_actions/dashboard_visualize_panel_actions.ts similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/dashboard_visualize_panel_actions.ts rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/dashboard_visualize_panel_actions.ts diff --git a/x-pack/plugins/lens/public/trigger_actions/open_in_discover_action.test.ts b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_in_discover_action.test.ts similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_in_discover_action.test.ts rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_in_discover_action.test.ts diff --git a/x-pack/plugins/lens/public/trigger_actions/open_in_discover_action.ts b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_in_discover_action.ts similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_in_discover_action.ts rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_in_discover_action.ts diff --git a/x-pack/plugins/lens/public/trigger_actions/open_in_discover_drilldown.test.tsx b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_in_discover_drilldown.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_in_discover_drilldown.test.tsx rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_in_discover_drilldown.test.tsx diff --git a/x-pack/plugins/lens/public/trigger_actions/open_in_discover_drilldown.tsx b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_in_discover_drilldown.tsx similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_in_discover_drilldown.tsx rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_in_discover_drilldown.tsx diff --git a/x-pack/plugins/lens/public/trigger_actions/open_in_discover_helpers.ts b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_in_discover_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_in_discover_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_in_discover_helpers.ts diff --git a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/create_action.test.tsx b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/create_action.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_lens_config/create_action.test.tsx rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/create_action.test.tsx diff --git a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/create_action.tsx b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/create_action.tsx similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_lens_config/create_action.tsx rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/create_action.tsx diff --git a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/create_action_helpers.ts b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/create_action_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_lens_config/create_action_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/create_action_helpers.ts diff --git a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/helpers.scss b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/helpers.scss similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_lens_config/helpers.scss rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/helpers.scss diff --git a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action.test.tsx b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action.test.tsx rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action.test.tsx diff --git a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action.tsx b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action.tsx similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action.tsx rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action.tsx diff --git a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action_helpers.tsx b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action_helpers.tsx similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action_helpers.tsx rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action_helpers.tsx diff --git a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_trigger.ts b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_trigger.ts similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_trigger.ts rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_trigger.ts diff --git a/x-pack/plugins/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/types.ts b/x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/types.ts similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/types.ts rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/types.ts diff --git a/x-pack/plugins/lens/public/trigger_actions/visualize_agg_based_vis_actions.ts b/x-pack/platform/plugins/shared/lens/public/trigger_actions/visualize_agg_based_vis_actions.ts similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/visualize_agg_based_vis_actions.ts rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/visualize_agg_based_vis_actions.ts diff --git a/x-pack/plugins/lens/public/trigger_actions/visualize_field_actions.ts b/x-pack/platform/plugins/shared/lens/public/trigger_actions/visualize_field_actions.ts similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/visualize_field_actions.ts rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/visualize_field_actions.ts diff --git a/x-pack/plugins/lens/public/trigger_actions/visualize_tsvb_actions.ts b/x-pack/platform/plugins/shared/lens/public/trigger_actions/visualize_tsvb_actions.ts similarity index 100% rename from x-pack/plugins/lens/public/trigger_actions/visualize_tsvb_actions.ts rename to x-pack/platform/plugins/shared/lens/public/trigger_actions/visualize_tsvb_actions.ts diff --git a/x-pack/plugins/lens/public/types.ts b/x-pack/platform/plugins/shared/lens/public/types.ts similarity index 100% rename from x-pack/plugins/lens/public/types.ts rename to x-pack/platform/plugins/shared/lens/public/types.ts diff --git a/x-pack/plugins/lens/public/user_messages_ids.ts b/x-pack/platform/plugins/shared/lens/public/user_messages_ids.ts similarity index 100% rename from x-pack/plugins/lens/public/user_messages_ids.ts rename to x-pack/platform/plugins/shared/lens/public/user_messages_ids.ts diff --git a/x-pack/plugins/lens/public/user_messages_utils.ts b/x-pack/platform/plugins/shared/lens/public/user_messages_utils.ts similarity index 100% rename from x-pack/plugins/lens/public/user_messages_utils.ts rename to x-pack/platform/plugins/shared/lens/public/user_messages_utils.ts diff --git a/x-pack/plugins/lens/public/utils.test.ts b/x-pack/platform/plugins/shared/lens/public/utils.test.ts similarity index 100% rename from x-pack/plugins/lens/public/utils.test.ts rename to x-pack/platform/plugins/shared/lens/public/utils.test.ts diff --git a/x-pack/plugins/lens/public/utils.ts b/x-pack/platform/plugins/shared/lens/public/utils.ts similarity index 100% rename from x-pack/plugins/lens/public/utils.ts rename to x-pack/platform/plugins/shared/lens/public/utils.ts diff --git a/x-pack/plugins/lens/public/vis_type_alias.ts b/x-pack/platform/plugins/shared/lens/public/vis_type_alias.ts similarity index 100% rename from x-pack/plugins/lens/public/vis_type_alias.ts rename to x-pack/platform/plugins/shared/lens/public/vis_type_alias.ts diff --git a/x-pack/plugins/lens/public/visualization_container.scss b/x-pack/platform/plugins/shared/lens/public/visualization_container.scss similarity index 100% rename from x-pack/plugins/lens/public/visualization_container.scss rename to x-pack/platform/plugins/shared/lens/public/visualization_container.scss diff --git a/x-pack/plugins/lens/public/visualization_container.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualization_container.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualization_container.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualization_container.test.tsx diff --git a/x-pack/plugins/lens/public/visualization_container.tsx b/x-pack/platform/plugins/shared/lens/public/visualization_container.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualization_container.tsx rename to x-pack/platform/plugins/shared/lens/public/visualization_container.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/cell_value.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/cell_value.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/cell_value.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/cell_value.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/cell_value.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/cell_value.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/cell_value.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/cell_value.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/columns.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/columns.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/columns.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/columns.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/columns.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/columns.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/columns.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/columns.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/constants.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/constants.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/constants.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/constants.ts diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/dimension_editor.scss b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/dimension_editor.scss similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/dimension_editor.scss rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/dimension_editor.scss diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/dimension_editor.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/dimension_editor.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/dimension_editor.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/dimension_editor.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/dimension_editor.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/dimension_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/dimension_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/dimension_editor.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/dimension_editor_additional_section.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/dimension_editor_additional_section.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/dimension_editor_additional_section.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/dimension_editor_additional_section.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/dimension_editor_addtional_section.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/dimension_editor_addtional_section.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/dimension_editor_addtional_section.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/dimension_editor_addtional_section.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/helpers.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/helpers.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/helpers.ts diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/table_actions.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/table_actions.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/table_actions.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/table_actions.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/table_actions.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/table_actions.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/table_actions.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/table_actions.ts diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/table_basic.scss b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/table_basic.scss similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/table_basic.scss rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/table_basic.scss diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/table_basic.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/table_basic.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/table_basic.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/table_basic.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/table_basic.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/table_basic.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/table_basic.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/table_basic.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/toolbar.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/toolbar.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/toolbar.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/toolbar.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/toolbar.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/toolbar.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/toolbar.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/toolbar.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/components/types.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/types.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/components/types.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/components/types.ts diff --git a/x-pack/plugins/lens/public/visualizations/datatable/datatable_visualization.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/datatable_visualization.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/datatable_visualization.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/datatable_visualization.ts diff --git a/x-pack/plugins/lens/public/visualizations/datatable/expression.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/expression.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/expression.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/expression.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/expression.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/expression.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/expression.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/expression.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/index.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/index.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/index.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/index.ts diff --git a/x-pack/plugins/lens/public/visualizations/datatable/utils.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/utils.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/utils.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/utils.ts diff --git a/x-pack/plugins/lens/public/visualizations/datatable/visualization.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/visualization.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/visualization.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/visualization.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/datatable/visualization.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/datatable/visualization.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/datatable/visualization.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/datatable/visualization.tsx diff --git a/x-pack/plugins/lens/public/visualizations/gauge/constants.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/constants.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/constants.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/constants.ts diff --git a/x-pack/plugins/lens/public/visualizations/gauge/dimension_editor.scss b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/dimension_editor.scss similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/dimension_editor.scss rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/dimension_editor.scss diff --git a/x-pack/plugins/lens/public/visualizations/gauge/dimension_editor.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/dimension_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/dimension_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/dimension_editor.tsx diff --git a/x-pack/plugins/lens/public/visualizations/gauge/gauge_visualization.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/gauge_visualization.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/gauge_visualization.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/gauge_visualization.ts diff --git a/x-pack/plugins/lens/public/visualizations/gauge/index.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/index.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/index.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/index.ts diff --git a/x-pack/plugins/lens/public/visualizations/gauge/palette_config.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/palette_config.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/palette_config.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/palette_config.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/gauge/palette_config.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/palette_config.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/palette_config.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/palette_config.tsx diff --git a/x-pack/plugins/lens/public/visualizations/gauge/suggestions.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/suggestions.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/suggestions.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/suggestions.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/gauge/suggestions.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/suggestions.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/suggestions.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/suggestions.ts diff --git a/x-pack/plugins/lens/public/visualizations/gauge/toolbar_component/gauge_config_panel.scss b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/toolbar_component/gauge_config_panel.scss similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/toolbar_component/gauge_config_panel.scss rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/toolbar_component/gauge_config_panel.scss diff --git a/x-pack/plugins/lens/public/visualizations/gauge/toolbar_component/gauge_toolbar.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/toolbar_component/gauge_toolbar.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/toolbar_component/gauge_toolbar.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/toolbar_component/gauge_toolbar.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/gauge/toolbar_component/index.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/toolbar_component/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/toolbar_component/index.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/toolbar_component/index.tsx diff --git a/x-pack/plugins/lens/public/visualizations/gauge/utils.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/utils.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/utils.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/utils.ts diff --git a/x-pack/plugins/lens/public/visualizations/gauge/visualization.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/visualization.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/visualization.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/visualization.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/gauge/visualization.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/gauge/visualization.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/gauge/visualization.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/gauge/visualization.tsx diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/constants.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/constants.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/constants.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/constants.ts diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/dimension_editor.scss b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/dimension_editor.scss similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/dimension_editor.scss rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/dimension_editor.scss diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/dimension_editor.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/dimension_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/dimension_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/dimension_editor.tsx diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/heatmap_visualization.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/heatmap_visualization.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/heatmap_visualization.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/heatmap_visualization.ts diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/index.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/index.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/index.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/index.ts diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/suggestions.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/suggestions.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/suggestions.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/suggestions.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/suggestions.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/suggestions.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/suggestions.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/suggestions.ts diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/toolbar_component.scss b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/toolbar_component.scss similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/toolbar_component.scss rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/toolbar_component.scss diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/toolbar_component.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/toolbar_component.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/toolbar_component.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/toolbar_component.tsx diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/types.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/types.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/types.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/types.ts diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/utils.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/utils.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/utils.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/utils.ts diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/visualization.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/visualization.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/visualization.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/visualization.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/heatmap/visualization.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/visualization.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/heatmap/visualization.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/visualization.tsx diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/dimension_editor.scss b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/dimension_editor.scss similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/dimension_editor.scss rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/dimension_editor.scss diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/dimension_editor.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/dimension_editor.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/dimension_editor.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/dimension_editor.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/dimension_editor.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/dimension_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/dimension_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/dimension_editor.tsx diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/index.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/index.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/index.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/index.ts diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/align_options.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/align_options.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/align_options.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/align_options.tsx diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/index.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/index.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/index.tsx diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/size_options.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/size_options.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/size_options.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/size_options.tsx diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/text_formatting_options.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/text_formatting_options.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/text_formatting_options.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/text_formatting_options.tsx diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/title_position_option.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/title_position_option.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/title_position_option.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/title_position_option.tsx diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/titles_and_text_options_popover.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/titles_and_text_options_popover.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/metric_config_panel/titles_and_text_options_popover.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_config_panel/titles_and_text_options_popover.tsx diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/metric_suggestions.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_suggestions.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/metric_suggestions.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_suggestions.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/metric_suggestions.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_suggestions.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/metric_suggestions.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_suggestions.ts diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/metric_visualization.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_visualization.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/metric_visualization.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/metric_visualization.ts diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/palette_config.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/palette_config.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/palette_config.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/palette_config.tsx diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/visualization.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/visualization.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/visualization.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/visualization.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/legacy_metric/visualization.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/visualization.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/legacy_metric/visualization.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/legacy_metric/visualization.tsx diff --git a/x-pack/plugins/lens/public/visualizations/metric/__snapshots__/visualization.test.ts.snap b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/__snapshots__/visualization.test.ts.snap similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/__snapshots__/visualization.test.ts.snap rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/__snapshots__/visualization.test.ts.snap diff --git a/x-pack/plugins/lens/public/visualizations/metric/constants.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/constants.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/constants.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/constants.ts diff --git a/x-pack/plugins/lens/public/visualizations/metric/dimension_editor.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/dimension_editor.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/dimension_editor.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/dimension_editor.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/metric/dimension_editor.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/dimension_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/dimension_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/dimension_editor.tsx diff --git a/x-pack/plugins/lens/public/visualizations/metric/index.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/index.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/index.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/index.ts diff --git a/x-pack/plugins/lens/public/visualizations/metric/metric_visualization.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/metric_visualization.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/metric_visualization.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/metric_visualization.ts diff --git a/x-pack/plugins/lens/public/visualizations/metric/palette_config.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/palette_config.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/palette_config.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/palette_config.tsx diff --git a/x-pack/plugins/lens/public/visualizations/metric/suggestions.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/suggestions.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/suggestions.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/suggestions.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/metric/suggestions.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/suggestions.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/suggestions.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/suggestions.ts diff --git a/x-pack/plugins/lens/public/visualizations/metric/to_expression.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/to_expression.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/to_expression.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/to_expression.ts diff --git a/x-pack/plugins/lens/public/visualizations/metric/toolbar/index.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/toolbar/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/toolbar/index.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/toolbar/index.tsx diff --git a/x-pack/plugins/lens/public/visualizations/metric/toolbar/titles_and_text_popover.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/toolbar/titles_and_text_popover.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/toolbar/titles_and_text_popover.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/toolbar/titles_and_text_popover.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/metric/toolbar/titles_and_text_popover.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/toolbar/titles_and_text_popover.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/toolbar/titles_and_text_popover.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/toolbar/titles_and_text_popover.tsx diff --git a/x-pack/plugins/lens/public/visualizations/metric/toolbar/toolbar.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/toolbar/toolbar.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/toolbar/toolbar.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/toolbar/toolbar.tsx diff --git a/x-pack/plugins/lens/public/visualizations/metric/types.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/types.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/types.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/types.ts diff --git a/x-pack/plugins/lens/public/visualizations/metric/visualization.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/visualization.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/visualization.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/visualization.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/metric/visualization.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/metric/visualization.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/metric/visualization.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/metric/visualization.tsx diff --git a/x-pack/plugins/lens/public/visualizations/partition/constants.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/constants.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/constants.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/constants.ts diff --git a/x-pack/plugins/lens/public/visualizations/partition/dimension_editor.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/dimension_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/dimension_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/dimension_editor.tsx diff --git a/x-pack/plugins/lens/public/visualizations/partition/index.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/index.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/index.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/index.ts diff --git a/x-pack/plugins/lens/public/visualizations/partition/layer_settings.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/layer_settings.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/layer_settings.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/layer_settings.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/partition/layer_settings.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/layer_settings.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/layer_settings.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/layer_settings.tsx diff --git a/x-pack/plugins/lens/public/visualizations/partition/partition_charts_meta.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/partition_charts_meta.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/partition_charts_meta.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/partition_charts_meta.ts diff --git a/x-pack/plugins/lens/public/visualizations/partition/persistence.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/persistence.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/persistence.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/persistence.tsx diff --git a/x-pack/plugins/lens/public/visualizations/partition/pie_visualization.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/pie_visualization.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/pie_visualization.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/pie_visualization.ts diff --git a/x-pack/plugins/lens/public/visualizations/partition/render_helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/render_helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/render_helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/render_helpers.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/partition/render_helpers.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/render_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/render_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/render_helpers.ts diff --git a/x-pack/plugins/lens/public/visualizations/partition/suggestions.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/suggestions.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/suggestions.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/suggestions.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/partition/suggestions.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/suggestions.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/suggestions.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/suggestions.ts diff --git a/x-pack/plugins/lens/public/visualizations/partition/to_expression.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/to_expression.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/to_expression.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/to_expression.ts diff --git a/x-pack/plugins/lens/public/visualizations/partition/toolbar.scss b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/toolbar.scss similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/toolbar.scss rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/toolbar.scss diff --git a/x-pack/plugins/lens/public/visualizations/partition/toolbar.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/toolbar.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/toolbar.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/toolbar.tsx diff --git a/x-pack/plugins/lens/public/visualizations/partition/visualization.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/visualization.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/visualization.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/visualization.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/partition/visualization.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/partition/visualization.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/partition/visualization.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/partition/visualization.tsx diff --git a/x-pack/plugins/lens/public/visualizations/tagcloud/constants.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/constants.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/tagcloud/constants.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/constants.ts diff --git a/x-pack/plugins/lens/public/visualizations/tagcloud/index.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/index.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/tagcloud/index.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/index.ts diff --git a/x-pack/plugins/lens/public/visualizations/tagcloud/suggestions.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/suggestions.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/tagcloud/suggestions.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/suggestions.ts diff --git a/x-pack/plugins/lens/public/visualizations/tagcloud/tagcloud_toolbar/font_size_input.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/tagcloud_toolbar/font_size_input.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/tagcloud/tagcloud_toolbar/font_size_input.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/tagcloud_toolbar/font_size_input.tsx diff --git a/x-pack/plugins/lens/public/visualizations/tagcloud/tagcloud_toolbar/index.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/tagcloud_toolbar/index.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/tagcloud/tagcloud_toolbar/index.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/tagcloud_toolbar/index.ts diff --git a/x-pack/plugins/lens/public/visualizations/tagcloud/tagcloud_toolbar/tagcloud_toolbar.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/tagcloud_toolbar/tagcloud_toolbar.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/tagcloud/tagcloud_toolbar/tagcloud_toolbar.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/tagcloud_toolbar/tagcloud_toolbar.tsx diff --git a/x-pack/plugins/lens/public/visualizations/tagcloud/tagcloud_visualization.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/tagcloud_visualization.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/tagcloud/tagcloud_visualization.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/tagcloud_visualization.tsx diff --git a/x-pack/plugins/lens/public/visualizations/tagcloud/tags_dimension_editor.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/tags_dimension_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/tagcloud/tags_dimension_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/tags_dimension_editor.tsx diff --git a/x-pack/plugins/lens/public/visualizations/tagcloud/types.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/types.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/tagcloud/types.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/tagcloud/types.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/__snapshots__/to_expression.test.ts.snap b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/__snapshots__/to_expression.test.ts.snap similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/__snapshots__/to_expression.test.ts.snap rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/__snapshots__/to_expression.test.ts.snap diff --git a/x-pack/plugins/lens/public/visualizations/xy/__snapshots__/visualization.test.tsx.snap b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/__snapshots__/visualization.test.tsx.snap similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/__snapshots__/visualization.test.tsx.snap rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/__snapshots__/visualization.test.tsx.snap diff --git a/x-pack/plugins/lens/public/visualizations/xy/add_layer.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/add_layer.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/add_layer.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/add_layer.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/add_layer.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/add_layer.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/add_layer.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/add_layer.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/annotations/actions/__snapshots__/revert_changes_action.test.tsx.snap b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/__snapshots__/revert_changes_action.test.tsx.snap similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/annotations/actions/__snapshots__/revert_changes_action.test.tsx.snap rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/__snapshots__/revert_changes_action.test.tsx.snap diff --git a/x-pack/plugins/lens/public/visualizations/xy/annotations/actions/__snapshots__/save_action.test.tsx.snap b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/__snapshots__/save_action.test.tsx.snap similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/annotations/actions/__snapshots__/save_action.test.tsx.snap rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/__snapshots__/save_action.test.tsx.snap diff --git a/x-pack/plugins/lens/public/visualizations/xy/annotations/actions/index.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/index.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/annotations/actions/index.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/index.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/annotations/actions/revert_changes_action.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/revert_changes_action.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/annotations/actions/revert_changes_action.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/revert_changes_action.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/annotations/actions/revert_changes_action.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/revert_changes_action.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/annotations/actions/revert_changes_action.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/revert_changes_action.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/annotations/actions/save_action.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/save_action.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/annotations/actions/save_action.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/save_action.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/annotations/actions/save_action.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/save_action.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/annotations/actions/save_action.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/save_action.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/annotations/actions/unlink_action.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/unlink_action.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/annotations/actions/unlink_action.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/unlink_action.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/annotations/actions/unlink_action.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/unlink_action.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/annotations/actions/unlink_action.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/actions/unlink_action.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/annotations/helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/annotations/helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/helpers.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/annotations/helpers.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/helpers.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/annotations/helpers.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/annotations/helpers.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/axes_configuration.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/axes_configuration.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/axes_configuration.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/axes_configuration.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/axes_configuration.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/axes_configuration.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/axes_configuration.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/axes_configuration.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/color_assignment.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/color_assignment.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/color_assignment.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/color_assignment.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/color_assignment.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/color_assignment.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/color_assignment.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/color_assignment.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/index.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/index.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/index.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/index.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/layer_settings.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/layer_settings.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/layer_settings.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/layer_settings.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/legend_stats_telemetry_helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/legend_stats_telemetry_helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/legend_stats_telemetry_helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/legend_stats_telemetry_helpers.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/legend_stats_telemetry_helpers.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/legend_stats_telemetry_helpers.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/legend_stats_telemetry_helpers.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/legend_stats_telemetry_helpers.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/load_annotation_library_flyout.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/load_annotation_library_flyout.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/load_annotation_library_flyout.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/load_annotation_library_flyout.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/persistence.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/persistence.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/persistence.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/persistence.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/reference_line_helpers.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/reference_line_helpers.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/reference_line_helpers.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/reference_line_helpers.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/reference_line_helpers.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/reference_line_helpers.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/reference_line_helpers.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/reference_line_helpers.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/state_helpers.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/state_helpers.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/state_helpers.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/state_helpers.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/to_expression.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/to_expression.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/to_expression.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/to_expression.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/to_expression.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/to_expression.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/to_expression.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/to_expression.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/types.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/types.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/types.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/types.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/visualization.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/visualization.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/visualization.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/visualization.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/visualization.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/visualization.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/visualization.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/visualization.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/visualization_helpers.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/visualization_helpers.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/visualization_helpers.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/visualization_helpers.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/annotations_config_panel/annotations_panel.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/annotations_config_panel/annotations_panel.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/annotations_config_panel/annotations_panel.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/annotations_config_panel/annotations_panel.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.scss b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.scss similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.scss rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.scss diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/axis_settings_popover.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/dimension_editor.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/dimension_editor.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/dimension_editor.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/dimension_editor.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/dimension_editor.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/dimension_editor.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/dimension_editor.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/dimension_editor.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/index.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/index.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/index.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/layer_header.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/layer_header.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/layer_header.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/layer_header.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/layer_header.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/layer_header.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/layer_header.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/layer_header.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/reference_line_panel.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/reference_line_panel.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/reference_line_panel.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/reference_line_config_panel/reference_line_panel.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/shared/marker_decoration_settings.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/shared/marker_decoration_settings.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/shared/marker_decoration_settings.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/shared/marker_decoration_settings.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/titles_and_text_popover/index.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/titles_and_text_popover/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/titles_and_text_popover/index.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/titles_and_text_popover/index.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/end_value_definitions.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/end_value_definitions.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/end_value_definitions.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/end_value_definitions.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fill_opacity_option.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fill_opacity_option.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fill_opacity_option.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fill_opacity_option.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fill_opacity_option.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fill_opacity_option.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fill_opacity_option.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fill_opacity_option.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fitting_function_definitions.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fitting_function_definitions.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fitting_function_definitions.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/fitting_function_definitions.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/index.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/index.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/index.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/index.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_definitions.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_definitions.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_definitions.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_definitions.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_option.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_option.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_option.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_option.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_option.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_option.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_option.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/line_curve_option.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/missing_value_option.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/missing_value_option.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/missing_value_option.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/missing_value_option.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/missing_values_option.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/missing_values_option.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/missing_values_option.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/missing_values_option.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/visual_options_popover.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/visual_options_popover.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/visual_options_popover.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/visual_options_popover/visual_options_popover.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/xy_config_panel.test.tsx b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/xy_config_panel.test.tsx similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_config_panel/xy_config_panel.test.tsx rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_config_panel/xy_config_panel.test.tsx diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_suggestions.test.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_suggestions.test.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_suggestions.test.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_suggestions.test.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_suggestions.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_suggestions.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_suggestions.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_suggestions.ts diff --git a/x-pack/plugins/lens/public/visualizations/xy/xy_visualization.ts b/x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_visualization.ts similarity index 100% rename from x-pack/plugins/lens/public/visualizations/xy/xy_visualization.ts rename to x-pack/platform/plugins/shared/lens/public/visualizations/xy/xy_visualization.ts diff --git a/x-pack/plugins/lens/readme.md b/x-pack/platform/plugins/shared/lens/readme.md similarity index 99% rename from x-pack/plugins/lens/readme.md rename to x-pack/platform/plugins/shared/lens/readme.md index 776718e1b9e48..4cd4227474311 100644 --- a/x-pack/plugins/lens/readme.md +++ b/x-pack/platform/plugins/shared/lens/readme.md @@ -225,7 +225,7 @@ The following sections are concerned with developing the Lens plugin itself. Run all tests from the `x-pack` root directory -- Unit tests: `yarn test:jest x-pack/plugins/lens` +- Unit tests: `yarn test:jest x-pack/platform/plugins/shared/lens` - Functional tests: - Run `node scripts/functional_tests_server` - Run `node ../scripts/functional_test_runner.js --config ./test/functional/apps/lens/group1/config.ts` diff --git a/x-pack/plugins/lens/server/content_management/cm_services.ts b/x-pack/platform/plugins/shared/lens/server/content_management/cm_services.ts similarity index 100% rename from x-pack/plugins/lens/server/content_management/cm_services.ts rename to x-pack/platform/plugins/shared/lens/server/content_management/cm_services.ts diff --git a/x-pack/plugins/lens/server/content_management/index.ts b/x-pack/platform/plugins/shared/lens/server/content_management/index.ts similarity index 100% rename from x-pack/plugins/lens/server/content_management/index.ts rename to x-pack/platform/plugins/shared/lens/server/content_management/index.ts diff --git a/x-pack/plugins/lens/server/content_management/lens_storage.ts b/x-pack/platform/plugins/shared/lens/server/content_management/lens_storage.ts similarity index 100% rename from x-pack/plugins/lens/server/content_management/lens_storage.ts rename to x-pack/platform/plugins/shared/lens/server/content_management/lens_storage.ts diff --git a/x-pack/plugins/lens/server/content_management/v1/cm_services.ts b/x-pack/platform/plugins/shared/lens/server/content_management/v1/cm_services.ts similarity index 100% rename from x-pack/plugins/lens/server/content_management/v1/cm_services.ts rename to x-pack/platform/plugins/shared/lens/server/content_management/v1/cm_services.ts diff --git a/x-pack/plugins/lens/server/embeddable/make_lens_embeddable_factory.test.ts b/x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.test.ts similarity index 100% rename from x-pack/plugins/lens/server/embeddable/make_lens_embeddable_factory.test.ts rename to x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.test.ts diff --git a/x-pack/plugins/lens/server/embeddable/make_lens_embeddable_factory.ts b/x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.ts similarity index 99% rename from x-pack/plugins/lens/server/embeddable/make_lens_embeddable_factory.ts rename to x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.ts index 9262b6054af09..78efda15ee000 100644 --- a/x-pack/plugins/lens/server/embeddable/make_lens_embeddable_factory.ts +++ b/x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.ts @@ -178,7 +178,7 @@ export const makeLensEmbeddableFactory = } as unknown as SerializableRecord; }, // FOLLOW THESE GUIDELINES IF YOU ARE ADDING A NEW MIGRATION! - // 1. Make sure you are applying migrations for a given version in the same order here as they are applied in x-pack/plugins/lens/server/migrations/saved_object_migrations.ts + // 1. Make sure you are applying migrations for a given version in the same order here as they are applied in x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.ts }), getLensCustomVisualizationMigrations(customVisualizationMigrations) ), diff --git a/x-pack/plugins/lens/server/expressions/expressions.ts b/x-pack/platform/plugins/shared/lens/server/expressions/expressions.ts similarity index 100% rename from x-pack/plugins/lens/server/expressions/expressions.ts rename to x-pack/platform/plugins/shared/lens/server/expressions/expressions.ts diff --git a/x-pack/plugins/lens/server/expressions/index.ts b/x-pack/platform/plugins/shared/lens/server/expressions/index.ts similarity index 100% rename from x-pack/plugins/lens/server/expressions/index.ts rename to x-pack/platform/plugins/shared/lens/server/expressions/index.ts diff --git a/x-pack/plugins/lens/server/expressions/utils.ts b/x-pack/platform/plugins/shared/lens/server/expressions/utils.ts similarity index 100% rename from x-pack/plugins/lens/server/expressions/utils.ts rename to x-pack/platform/plugins/shared/lens/server/expressions/utils.ts diff --git a/x-pack/plugins/lens/server/index.ts b/x-pack/platform/plugins/shared/lens/server/index.ts similarity index 100% rename from x-pack/plugins/lens/server/index.ts rename to x-pack/platform/plugins/shared/lens/server/index.ts diff --git a/x-pack/plugins/lens/server/migrations/__snapshots__/saved_object_migrations.test.ts.snap b/x-pack/platform/plugins/shared/lens/server/migrations/__snapshots__/saved_object_migrations.test.ts.snap similarity index 100% rename from x-pack/plugins/lens/server/migrations/__snapshots__/saved_object_migrations.test.ts.snap rename to x-pack/platform/plugins/shared/lens/server/migrations/__snapshots__/saved_object_migrations.test.ts.snap diff --git a/x-pack/plugins/lens/server/migrations/common_migrations.test.ts b/x-pack/platform/plugins/shared/lens/server/migrations/common_migrations.test.ts similarity index 100% rename from x-pack/plugins/lens/server/migrations/common_migrations.test.ts rename to x-pack/platform/plugins/shared/lens/server/migrations/common_migrations.test.ts diff --git a/x-pack/plugins/lens/server/migrations/common_migrations.ts b/x-pack/platform/plugins/shared/lens/server/migrations/common_migrations.ts similarity index 100% rename from x-pack/plugins/lens/server/migrations/common_migrations.ts rename to x-pack/platform/plugins/shared/lens/server/migrations/common_migrations.ts diff --git a/x-pack/plugins/lens/server/migrations/saved_object_migrations.test.ts b/x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.test.ts similarity index 100% rename from x-pack/plugins/lens/server/migrations/saved_object_migrations.test.ts rename to x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.test.ts diff --git a/x-pack/plugins/lens/server/migrations/saved_object_migrations.ts b/x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.ts similarity index 99% rename from x-pack/plugins/lens/server/migrations/saved_object_migrations.ts rename to x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.ts index a981dd332d67e..f7b7e542d130c 100644 --- a/x-pack/plugins/lens/server/migrations/saved_object_migrations.ts +++ b/x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.ts @@ -592,7 +592,7 @@ const lensMigrations: SavedObjectMigrationMap = { '8.6.0': flow(migrateIndexPatternDatasource, migratePartitionMetrics), '8.9.0': migrateMetricFormatter, // FOLLOW THESE GUIDELINES IF YOU ARE ADDING A NEW MIGRATION! - // 1. Make sure you are applying migrations for a given version in the same order here as they are applied in x-pack/plugins/lens/server/embeddable/make_lens_embeddable_factory.ts + // 1. Make sure you are applying migrations for a given version in the same order here as they are applied in x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.ts }; export const getAllMigrations = ( diff --git a/x-pack/plugins/lens/server/migrations/types.ts b/x-pack/platform/plugins/shared/lens/server/migrations/types.ts similarity index 100% rename from x-pack/plugins/lens/server/migrations/types.ts rename to x-pack/platform/plugins/shared/lens/server/migrations/types.ts diff --git a/x-pack/plugins/lens/server/plugin.tsx b/x-pack/platform/plugins/shared/lens/server/plugin.tsx similarity index 100% rename from x-pack/plugins/lens/server/plugin.tsx rename to x-pack/platform/plugins/shared/lens/server/plugin.tsx diff --git a/x-pack/plugins/lens/server/saved_objects.ts b/x-pack/platform/plugins/shared/lens/server/saved_objects.ts similarity index 100% rename from x-pack/plugins/lens/server/saved_objects.ts rename to x-pack/platform/plugins/shared/lens/server/saved_objects.ts diff --git a/x-pack/plugins/lens/to_playground.gif b/x-pack/platform/plugins/shared/lens/to_playground.gif similarity index 100% rename from x-pack/plugins/lens/to_playground.gif rename to x-pack/platform/plugins/shared/lens/to_playground.gif diff --git a/x-pack/plugins/lens/tsconfig.json b/x-pack/platform/plugins/shared/lens/tsconfig.json similarity index 97% rename from x-pack/plugins/lens/tsconfig.json rename to x-pack/platform/plugins/shared/lens/tsconfig.json index 39ec693856441..06c3d27ead34a 100644 --- a/x-pack/plugins/lens/tsconfig.json +++ b/x-pack/platform/plugins/shared/lens/tsconfig.json @@ -1,9 +1,9 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, - "include": ["*.ts", "common/**/*", "public/**/*", "server/**/*", "../../../typings/**/*"], + "include": ["*.ts", "common/**/*", "public/**/*", "server/**/*", "../../../../../typings/**/*"], "kbn_references": [ "@kbn/spaces-plugin", "@kbn/core", diff --git a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js index 1f3a2d20eea28..2f8a2cbbfcc09 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js +++ b/x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js @@ -240,7 +240,7 @@ function ExplorerChartContainer({
} width={0} diff --git a/x-pack/platform/plugins/shared/ml/public/application/services/field_format_service.ts b/x-pack/platform/plugins/shared/ml/public/application/services/field_format_service.ts index 8d21c368a7303..2f456ec5713fd 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/services/field_format_service.ts +++ b/x-pack/platform/plugins/shared/ml/public/application/services/field_format_service.ts @@ -29,7 +29,7 @@ export class FieldFormatService { // specified IDs. List of Kibana data views is passed, with a title // attribute set in each pattern which will be compared to the indices // configured in the datafeed of each job. - // Builds a map of Kibana FieldFormats (plugins/data/common/field_formats) + // Builds a map of Kibana FieldFormats (platform/plugins/shared/data/common/field_formats) // against detector index by job ID. async populateFormats(jobIds: string[]): Promise { // Populate a map of data view IDs against job ID, by finding the ID of the data diff --git a/x-pack/platform/plugins/shared/ml/public/application/util/chart_utils.js b/x-pack/platform/plugins/shared/ml/public/application/util/chart_utils.js index 19b53177d6868..a7f908493bd0a 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/util/chart_utils.js +++ b/x-pack/platform/plugins/shared/ml/public/application/util/chart_utils.js @@ -99,7 +99,7 @@ export function drawLineChartDots(data, lineChartGroup, lineChartValuesLine, rad } // this replicates Kibana's filterAxisLabels() behavior -// which can be found in src/plugins/vis_types/vislib/public/vislib/lib/axis/axis_labels.js +// which can be found in src/platform/plugins/private/vis_types/vislib/public/vislib/lib/axis/axis_labels.js // axis labels which overflow the chart's boundaries will be removed export function filterAxisLabels(selection, chartWidth) { if (selection === undefined || selection.selectAll === undefined) { diff --git a/x-pack/solutions/observability/plugins/observability/common/utils/get_inspect_response.ts b/x-pack/solutions/observability/plugins/observability/common/utils/get_inspect_response.ts index 7c5d8368bd192..4b5131f58d1dc 100644 --- a/x-pack/solutions/observability/plugins/observability/common/utils/get_inspect_response.ts +++ b/x-pack/solutions/observability/plugins/observability/common/utils/get_inspect_response.ts @@ -15,7 +15,7 @@ import { WrappedElasticsearchClientError } from './unwrap_es_response'; * Get statistics to show on inspector tab. * * If you're using searchSource (which we're not), this gets populated from - * https://github.com/elastic/kibana/blob/c7d742cb8b8935f3812707a747a139806e4be203/src/plugins/data/common/search/search_source/inspect/inspector_stats.ts + * src/plugins/data/common/search/search_source/inspect/inspector_stats.ts * * We do most of the same here, but not using searchSource. */ diff --git a/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts b/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts index fbcb053acdc52..492fc20f7c819 100644 --- a/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts +++ b/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts @@ -18,7 +18,7 @@ export type InspectResponse = Request[]; * Get statistics to show on inspector tab. * * If you're using searchSource (which we're not), this gets populated from - * https://github.com/elastic/kibana/blob/c7d742cb8b8935f3812707a747a139806e4be203/src/plugins/data/common/search/search_source/inspect/inspector_stats.ts + * src/platform/plugins/shared/data/common/search/search_source/inspect/inspector_stats.ts * * We do most of the same here, but not using searchSource. */ diff --git a/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/autocomplete/index.mock.ts b/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/autocomplete/index.mock.ts index 2372ad727e9f1..0dcc991dd0aae 100644 --- a/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/autocomplete/index.mock.ts +++ b/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/autocomplete/index.mock.ts @@ -5,7 +5,7 @@ * 2.0. */ -// Copied from "src/plugins/data/public/mocks.ts" but without any type information +// Copied from "src/platform/plugins/shared/data/public/mocks.ts" but without any type information // TODO: Remove this in favor of the data/public/mocks if/when they become available, https://github.com/elastic/kibana/issues/100715 export const autocompleteStartMock = { getQuerySuggestions: jest.fn(), diff --git a/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts b/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts index 32e9d60197868..5d50fd94bdc3c 100644 --- a/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts +++ b/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts @@ -7,7 +7,7 @@ import { DataViewFieldBase } from '@kbn/es-query'; -// Copied from "src/plugins/data/common/index_patterns/fields/fields.mocks.ts" but with the types changed to "DataViewFieldBase" since that type is compatible. +// Copied from "src/platform/plugins/shared/data/common/index_patterns/fields/fields.mocks.ts" but with the types changed to "DataViewFieldBase" since that type is compatible. // TODO: This should move out once those mocks are directly useable or in their own package, https://github.com/elastic/kibana/issues/100715 export const fields: DataViewFieldBase[] = [ diff --git a/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts b/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts index a4df119766a96..0135e9f8faa15 100644 --- a/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts +++ b/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts @@ -14,7 +14,7 @@ import { AutocompleteListsData } from '../field_value_lists'; * the lists that match against the field based on the types from the field * * NOTE: That we support one additional property from "FieldSpec" located here: - * src/plugins/data/common/index_patterns/fields/types.ts + * src/platform/plugins/shared/data/common/index_patterns/fields/types.ts * This type property is esTypes. If it exists and is on there we will read off the esTypes. * @param lists The lists to match against the field * @param field The field to check against the list to see if they are compatible diff --git a/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts b/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts index 7d776db124134..3f384c3b979bb 100644 --- a/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts +++ b/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts @@ -13,7 +13,7 @@ import { getField } from '../../fields/index.mock'; import { autocompleteStartMock } from '../../autocomplete/index.mock'; import { DataViewFieldBase } from '@kbn/es-query'; -// Copied from "src/plugins/data/common/index_patterns/index_pattern.stub.ts" +// Copied from "src/platform/plugins/shared/data/common/index_patterns/index_pattern.stub.ts" // TODO: Remove this in favor of the above if/when it is ported, https://github.com/elastic/kibana/issues/100715 export const stubIndexPatternWithFields = { id: '1234', diff --git a/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts b/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts index dbbe321014e2b..b8de79b8c729c 100644 --- a/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts +++ b/x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts @@ -11,7 +11,7 @@ import { ListOperatorTypeEnum as OperatorTypeEnum } from '@kbn/securitysolution- import { DataViewBase, DataViewFieldBase, getDataViewFieldSubtypeNested } from '@kbn/es-query'; // TODO: I have to use any here for now, but once this is available below, we should use the correct types, https://github.com/elastic/kibana/issues/100715 -// import { AutocompleteStart } from '../../../../../../../../../../../src/plugins/unified_search/public'; +// import { AutocompleteStart } from '../../../../../../../../../../../src/platform/plugins/shared/unified_search/public'; // eslint-disable-next-line @typescript-eslint/no-explicit-any type AutocompleteStart = any; diff --git a/x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src/helpers/index.ts b/x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src/helpers/index.ts index 6cbdbe55cfeb6..f01aae6177952 100644 --- a/x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src/helpers/index.ts +++ b/x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src/helpers/index.ts @@ -871,7 +871,7 @@ export const getFormattedBuilderEntries = ( entryIndex: index, field: isNewNestedEntry ? undefined - : // This type below is really a FieldSpec type from "src/plugins/data/common/index_patterns/fields/types.ts", we cast it here to keep using the DataViewFieldBase interface + : // This type below is really a FieldSpec type from "src/platform/plugins/shared/data/common/index_patterns/fields/types.ts", we cast it here to keep using the DataViewFieldBase interface ({ aggregatable: false, esTypes: ['nested'], diff --git a/x-pack/solutions/security/plugins/security_solution/package.json b/x-pack/solutions/security/plugins/security_solution/package.json index bfc764649ab81..70bae657557b7 100644 --- a/x-pack/solutions/security/plugins/security_solution/package.json +++ b/x-pack/solutions/security/plugins/security_solution/package.json @@ -22,13 +22,13 @@ "cypress:dw:endpoint": "echo '\n** WARNING **: Run script `cypress:dw:endpoint` no longer valid! Use `cypress:dw` instead\n'", "cypress:dw:endpoint:run": "echo '\n** WARNING **: Run script `cypress:dw:endpoint:run` no longer valid! Use `cypress:dw:run` instead\n'", "cypress:dw:endpoint:open": "echo '\n** WARNING **: Run script `cypress:dw:endpoint:open` no longer valid! Use `cypress:dw:open` instead\n'", - "junit:merge": "../../../../../node_modules/.bin/mochawesome-merge ../../../target/kibana-security-solution/cypress/results/mochawesome*.json > ../../../target/kibana-security-solution/cypress/results/output.json && ../../../node_modules/.bin/marge ../../../target/kibana-security-solution/cypress/results/output.json --reportDir ../../../target/kibana-security-solution/cypress/results && yarn junit:transform && mkdir -p ../../../target/junit && cp ../../../target/kibana-security-solution/cypress/results/*.xml ../../../target/junit/", + "junit:merge": "../../../../../node_modules/.bin/mochawesome-merge ../../../../../target/kibana-security-solution/cypress/results/mochawesome*.json > ../../../../../target/kibana-security-solution/cypress/results/output.json && ../../../../../node_modules/.bin/marge ../../../../../target/kibana-security-solution/cypress/results/output.json --reportDir ../../../../../target/kibana-security-solution/cypress/results && yarn junit:transform && mkdir -p ../../../../../target/junit && cp ../../../../../target/kibana-security-solution/cypress/results/*.xml ../../../../../target/junit/", "test:generate": "node scripts/endpoint/resolver_generator", "test:generate:serverless-dev": "NODE_TLS_REJECT_UNAUTHORIZED=0 node --no-warnings scripts/endpoint/resolver_generator --node https://elastic_serverless:changeme@127.0.0.1:9200 --kibana http://elastic_serverless:changeme@127.0.0.1:5601", "mappings:generate": "node scripts/mappings/mappings_generator", "mappings:load": "node scripts/mappings/mappings_loader", "siem-migrations:graph:draw": "node scripts/siem_migration/draw_graphs", - "junit:transform": "node scripts/junit_transformer --pathPattern '../../../../../target/kibana-security-solution/cypress/results/*.xml' --rootDirectory ../../../ --reportName 'Security Solution Cypress' --writeInPlace", + "junit:transform": "node scripts/junit_transformer --pathPattern '../../../../../target/kibana-security-solution/cypress/results/*.xml' --rootDirectory ../../../../../ --reportName 'Security Solution Cypress' --writeInPlace", "openapi:generate": "node scripts/openapi/generate", "openapi:generate:debug": "node --inspect-brk scripts/openapi/generate", "openapi:bundle:detections": "node scripts/openapi/bundle_detections", diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.ts b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.ts index b98adfb4a875c..52c2c20635f3c 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.ts @@ -71,7 +71,7 @@ export const errorToErrorStackAdapter = (error: unknown): Error => { * See this file, we are not allowed to import files such as es_error. * So instead we say maybe err is on there so that we can unwrap it and get * our status code from it if possible within the error in our function. - * src/plugins/data/public/search/errors/es_error.tsx + * src/platform/plugins/shared/data/public/search/errors/es_error.tsx */ export type MaybeESError = IEsError & { err?: Record }; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/constants.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/constants.ts index bd9a827e768dc..087b274aa7e0c 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/constants.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/constants.ts @@ -17,7 +17,7 @@ export const DATA_VIEW_ID_REF_NAME = 'dataViewId'; /** * This needs to match the type of the saved query saved object. That type is defined here: - * https://github.com/elastic/kibana/blob/main/src/plugins/data/public/query/saved_query/saved_query_service.ts#L54 + * https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/data/public/query/saved_query/saved_query_service.ts#L54 */ export const SAVED_QUERY_TYPE = 'query'; diff --git a/x-pack/solutions/security/plugins/timelines/public/hooks/use_app_toasts.ts b/x-pack/solutions/security/plugins/timelines/public/hooks/use_app_toasts.ts index 3ef00461dbd40..9eec46b5a1dfb 100644 --- a/x-pack/solutions/security/plugins/timelines/public/hooks/use_app_toasts.ts +++ b/x-pack/solutions/security/plugins/timelines/public/hooks/use_app_toasts.ts @@ -67,7 +67,7 @@ export const errorToErrorStackAdapter = (error: unknown): Error => { * See this file, we are not allowed to import files such as es_error. * So instead we say maybe err is on there so that we can unwrap it and get * our status code from it if possible within the error in our function. - * src/plugins/data/public/search/errors/es_error.tsx + * src/platform/plugins/shared/data/public/search/errors/es_error.tsx */ export type MaybeESError = IEsError & { err?: Record }; diff --git a/x-pack/test/security_solution_cypress/package.json b/x-pack/test/security_solution_cypress/package.json index 79f07c2d07a60..6223b9b3bc624 100644 --- a/x-pack/test/security_solution_cypress/package.json +++ b/x-pack/test/security_solution_cypress/package.json @@ -21,7 +21,7 @@ "cypress:changed-specs-only:ess": "yarn cypress:ess --changed-specs-only --env burn=5", "cypress:cloud_security_posture:run:ess": "yarn cypress:ess --spec './cypress/e2e/cloud_security_posture/**/*.cy.ts'", "cypress:burn:ess": "yarn cypress:ess --env burn=5", - "junit:merge": "../../../node_modules/.bin/mochawesome-merge ../../../../../target/kibana-security-solution/cypress/results/mochawesome*.json > ../../../../../target/kibana-security-solution/cypress/results/output.json && ../../../node_modules/.bin/marge ../../../../../target/kibana-security-solution/cypress/results/output.json --reportDir ../../../../../target/kibana-security-solution/cypress/results && yarn junit:transform && mkdir -p ../../../../../target/junit && cp ../../../../../target/kibana-security-solution/cypress/results/*.xml ../../../../../target/junit/", + "junit:merge": "../../../node_modules/.bin/mochawesome-merge ../../../target/kibana-security-solution/cypress/results/mochawesome*.json > ../../../target/kibana-security-solution/cypress/results/output.json && ../../../node_modules/.bin/marge ../../../target/kibana-security-solution/cypress/results/output.json --reportDir ../../../target/kibana-security-solution/cypress/results && yarn junit:transform && mkdir -p ../../../target/junit && cp ../../../target/kibana-security-solution/cypress/results/*.xml ../../../target/junit/", "junit:transform": "node ../../solutions/security/plugins/security_solution/scripts/junit_transformer --pathPattern '../../../target/kibana-security-solution/cypress/results/*.xml' --rootDirectory ../../../ --reportName 'Security Solution Cypress' --writeInPlace", "cypress:serverless": "TZ=UTC NODE_OPTIONS=--openssl-legacy-provider node ../../solutions/security/plugins/security_solution/scripts/start_cypress_parallel --config-file ../../test/security_solution_cypress/cypress/cypress_ci_serverless.config.ts --ftr-config-file ../../test/security_solution_cypress/serverless_config", "cypress:cloud:serverless": "TZ=UTC NODE_OPTIONS=--openssl-legacy-provider NODE_TLS_REJECT_UNAUTHORIZED=0 ../../../node_modules/.bin/cypress", diff --git a/yarn.lock b/yarn.lock index 5797b39c86aaf..782b4407ac6a9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4096,7 +4096,7 @@ version "0.0.0" uid "" -"@kbn/calculate-width-from-char-count@link:packages/kbn-calculate-width-from-char-count": +"@kbn/calculate-width-from-char-count@link:src/platform/packages/shared/kbn-calculate-width-from-char-count": version "0.0.0" uid "" @@ -4128,15 +4128,15 @@ version "0.0.0" uid "" -"@kbn/chart-expressions-common@link:src/plugins/chart_expressions/common": +"@kbn/chart-expressions-common@link:src/platform/packages/shared/chart-expressions-common": version "0.0.0" uid "" -"@kbn/chart-icons@link:packages/kbn-chart-icons": +"@kbn/chart-icons@link:src/platform/packages/shared/kbn-chart-icons": version "0.0.0" uid "" -"@kbn/charts-plugin@link:src/plugins/charts": +"@kbn/charts-plugin@link:src/platform/plugins/shared/charts": version "0.0.0" uid "" @@ -4232,7 +4232,7 @@ version "0.0.0" uid "" -"@kbn/coloring@link:packages/kbn-coloring": +"@kbn/coloring@link:src/platform/packages/shared/kbn-coloring": version "0.0.0" uid "" @@ -5256,7 +5256,7 @@ version "0.0.0" uid "" -"@kbn/data-plugin@link:src/plugins/data": +"@kbn/data-plugin@link:src/platform/plugins/shared/data": version "0.0.0" uid "" @@ -5268,7 +5268,7 @@ version "0.0.0" uid "" -"@kbn/data-service@link:packages/kbn-data-service": +"@kbn/data-service@link:src/platform/packages/shared/kbn-data-service": version "0.0.0" uid "" @@ -5428,7 +5428,7 @@ version "0.0.0" uid "" -"@kbn/dom-drag-drop@link:packages/kbn-dom-drag-drop": +"@kbn/dom-drag-drop@link:src/platform/packages/shared/kbn-dom-drag-drop": version "0.0.0" uid "" @@ -5612,19 +5612,19 @@ version "0.0.0" uid "" -"@kbn/event-annotation-common@link:packages/kbn-event-annotation-common": +"@kbn/event-annotation-common@link:src/platform/packages/shared/kbn-event-annotation-common": version "0.0.0" uid "" -"@kbn/event-annotation-components@link:packages/kbn-event-annotation-components": +"@kbn/event-annotation-components@link:src/platform/packages/shared/kbn-event-annotation-components": version "0.0.0" uid "" -"@kbn/event-annotation-listing-plugin@link:src/plugins/event_annotation_listing": +"@kbn/event-annotation-listing-plugin@link:src/platform/plugins/private/event_annotation_listing": version "0.0.0" uid "" -"@kbn/event-annotation-plugin@link:src/plugins/event_annotation": +"@kbn/event-annotation-plugin@link:src/platform/plugins/private/event_annotation": version "0.0.0" uid "" @@ -5656,11 +5656,11 @@ version "0.0.0" uid "" -"@kbn/expression-gauge-plugin@link:src/plugins/chart_expressions/expression_gauge": +"@kbn/expression-gauge-plugin@link:src/platform/plugins/shared/chart_expressions/expression_gauge": version "0.0.0" uid "" -"@kbn/expression-heatmap-plugin@link:src/plugins/chart_expressions/expression_heatmap": +"@kbn/expression-heatmap-plugin@link:src/platform/plugins/shared/chart_expressions/expression_heatmap": version "0.0.0" uid "" @@ -5668,7 +5668,7 @@ version "0.0.0" uid "" -"@kbn/expression-legacy-metric-vis-plugin@link:src/plugins/chart_expressions/expression_legacy_metric": +"@kbn/expression-legacy-metric-vis-plugin@link:src/platform/plugins/shared/chart_expressions/expression_legacy_metric": version "0.0.0" uid "" @@ -5676,11 +5676,11 @@ version "0.0.0" uid "" -"@kbn/expression-metric-vis-plugin@link:src/plugins/chart_expressions/expression_metric": +"@kbn/expression-metric-vis-plugin@link:src/platform/plugins/shared/chart_expressions/expression_metric": version "0.0.0" uid "" -"@kbn/expression-partition-vis-plugin@link:src/plugins/chart_expressions/expression_partition_vis": +"@kbn/expression-partition-vis-plugin@link:src/platform/plugins/shared/chart_expressions/expression_partition_vis": version "0.0.0" uid "" @@ -5696,11 +5696,11 @@ version "0.0.0" uid "" -"@kbn/expression-tagcloud-plugin@link:src/plugins/chart_expressions/expression_tagcloud": +"@kbn/expression-tagcloud-plugin@link:src/platform/plugins/shared/chart_expressions/expression_tagcloud": version "0.0.0" uid "" -"@kbn/expression-xy-plugin@link:src/plugins/chart_expressions/expression_xy": +"@kbn/expression-xy-plugin@link:src/platform/plugins/shared/chart_expressions/expression_xy": version "0.0.0" uid "" @@ -5708,7 +5708,7 @@ version "0.0.0" uid "" -"@kbn/expressions-plugin@link:src/plugins/expressions": +"@kbn/expressions-plugin@link:src/platform/plugins/shared/expressions": version "0.0.0" uid "" @@ -5856,7 +5856,7 @@ version "0.0.0" uid "" -"@kbn/graph-plugin@link:x-pack/plugins/graph": +"@kbn/graph-plugin@link:x-pack/platform/plugins/private/graph": version "0.0.0" uid "" @@ -6020,7 +6020,7 @@ version "0.0.0" uid "" -"@kbn/interpreter@link:packages/kbn-interpreter": +"@kbn/interpreter@link:src/platform/packages/shared/kbn-interpreter": version "0.0.0" uid "" @@ -6132,7 +6132,7 @@ version "0.0.0" uid "" -"@kbn/lens-formula-docs@link:packages/kbn-lens-formula-docs": +"@kbn/lens-formula-docs@link:src/platform/packages/private/kbn-lens-formula-docs": version "0.0.0" uid "" @@ -6140,7 +6140,7 @@ version "0.0.0" uid "" -"@kbn/lens-plugin@link:x-pack/plugins/lens": +"@kbn/lens-plugin@link:x-pack/platform/plugins/shared/lens": version "0.0.0" uid "" @@ -6208,7 +6208,7 @@ version "0.0.0" uid "" -"@kbn/managed-content-badge@link:packages/kbn-managed-content-badge": +"@kbn/managed-content-badge@link:src/platform/packages/private/kbn-managed-content-badge": version "0.0.0" uid "" @@ -6688,7 +6688,7 @@ version "0.0.0" uid "" -"@kbn/random-sampling@link:x-pack/packages/kbn-random-sampling": +"@kbn/random-sampling@link:x-pack/platform/packages/private/kbn-random-sampling": version "0.0.0" uid "" @@ -7540,7 +7540,7 @@ version "0.0.0" uid "" -"@kbn/sort-predicates@link:packages/kbn-sort-predicates": +"@kbn/sort-predicates@link:src/platform/packages/shared/kbn-sort-predicates": version "0.0.0" uid "" @@ -7720,7 +7720,7 @@ version "0.0.0" uid "" -"@kbn/timelion-grammar@link:packages/kbn-timelion-grammar": +"@kbn/timelion-grammar@link:src/platform/packages/private/kbn-timelion-grammar": version "0.0.0" uid "" @@ -7728,7 +7728,7 @@ version "0.0.0" uid "" -"@kbn/tinymath@link:packages/kbn-tinymath": +"@kbn/tinymath@link:src/platform/packages/private/kbn-tinymath": version "0.0.0" uid "" @@ -7744,7 +7744,7 @@ version "0.0.0" uid "" -"@kbn/transpose-utils@link:packages/kbn-transpose-utils": +"@kbn/transpose-utils@link:src/platform/packages/private/kbn-transpose-utils": version "0.0.0" uid "" @@ -7844,7 +7844,7 @@ version "0.0.0" uid "" -"@kbn/unified-search-plugin@link:src/plugins/unified_search": +"@kbn/unified-search-plugin@link:src/platform/plugins/shared/unified_search": version "0.0.0" uid "" @@ -7868,7 +7868,7 @@ version "0.0.0" uid "" -"@kbn/url-forwarding-plugin@link:src/plugins/url_forwarding": +"@kbn/url-forwarding-plugin@link:src/platform/plugins/private/url_forwarding": version "0.0.0" uid "" @@ -7920,15 +7920,15 @@ version "0.0.0" uid "" -"@kbn/vis-default-editor-plugin@link:src/plugins/vis_default_editor": +"@kbn/vis-default-editor-plugin@link:src/platform/plugins/private/vis_default_editor": version "0.0.0" uid "" -"@kbn/vis-type-gauge-plugin@link:src/plugins/vis_types/gauge": +"@kbn/vis-type-gauge-plugin@link:src/platform/plugins/private/vis_types/gauge": version "0.0.0" uid "" -"@kbn/vis-type-heatmap-plugin@link:src/plugins/vis_types/heatmap": +"@kbn/vis-type-heatmap-plugin@link:src/platform/plugins/private/vis_types/heatmap": version "0.0.0" uid "" @@ -7936,51 +7936,51 @@ version "0.0.0" uid "" -"@kbn/vis-type-metric-plugin@link:src/plugins/vis_types/metric": +"@kbn/vis-type-metric-plugin@link:src/platform/plugins/private/vis_types/metric": version "0.0.0" uid "" -"@kbn/vis-type-pie-plugin@link:src/plugins/vis_types/pie": +"@kbn/vis-type-pie-plugin@link:src/platform/plugins/private/vis_types/pie": version "0.0.0" uid "" -"@kbn/vis-type-table-plugin@link:src/plugins/vis_types/table": +"@kbn/vis-type-table-plugin@link:src/platform/plugins/private/vis_types/table": version "0.0.0" uid "" -"@kbn/vis-type-tagcloud-plugin@link:src/plugins/vis_types/tagcloud": +"@kbn/vis-type-tagcloud-plugin@link:src/platform/plugins/private/vis_types/tagcloud": version "0.0.0" uid "" -"@kbn/vis-type-timelion-plugin@link:src/plugins/vis_types/timelion": +"@kbn/vis-type-timelion-plugin@link:src/platform/plugins/private/vis_types/timelion": version "0.0.0" uid "" -"@kbn/vis-type-timeseries-plugin@link:src/plugins/vis_types/timeseries": +"@kbn/vis-type-timeseries-plugin@link:src/platform/plugins/shared/vis_types/timeseries": version "0.0.0" uid "" -"@kbn/vis-type-vega-plugin@link:src/plugins/vis_types/vega": +"@kbn/vis-type-vega-plugin@link:src/platform/plugins/private/vis_types/vega": version "0.0.0" uid "" -"@kbn/vis-type-vislib-plugin@link:src/plugins/vis_types/vislib": +"@kbn/vis-type-vislib-plugin@link:src/platform/plugins/private/vis_types/vislib": version "0.0.0" uid "" -"@kbn/vis-type-xy-plugin@link:src/plugins/vis_types/xy": +"@kbn/vis-type-xy-plugin@link:src/platform/plugins/private/vis_types/xy": version "0.0.0" uid "" -"@kbn/visualization-ui-components@link:packages/kbn-visualization-ui-components": +"@kbn/visualization-ui-components@link:src/platform/packages/shared/kbn-visualization-ui-components": version "0.0.0" uid "" -"@kbn/visualization-utils@link:packages/kbn-visualization-utils": +"@kbn/visualization-utils@link:src/platform/packages/shared/kbn-visualization-utils": version "0.0.0" uid "" -"@kbn/visualizations-plugin@link:src/plugins/visualizations": +"@kbn/visualizations-plugin@link:src/platform/plugins/shared/visualizations": version "0.0.0" uid ""