diff --git a/.buildkite/ftr_platform_stateful_configs.yml b/.buildkite/ftr_platform_stateful_configs.yml index bcf82ed057c45..e7cba99d5f048 100644 --- a/.buildkite/ftr_platform_stateful_configs.yml +++ b/.buildkite/ftr_platform_stateful_configs.yml @@ -178,6 +178,7 @@ enabled: - x-pack/test/banners_functional/config.ts - x-pack/test/cases_api_integration/security_and_spaces/config_basic.ts - x-pack/test/cases_api_integration/security_and_spaces/config_trial.ts + - x-pack/test/cases_api_integration/security_and_spaces/config_trial_common.ts - x-pack/test/cases_api_integration/security_and_spaces/config_no_public_base_url.ts - x-pack/test/cases_api_integration/spaces_only/config.ts - x-pack/test/disable_ems/config.ts diff --git a/.buildkite/pipeline-resource-definitions/kibana-es-snapshots.yml b/.buildkite/pipeline-resource-definitions/kibana-es-snapshots.yml index beccde5ab87f2..4ebaed73a25a4 100644 --- a/.buildkite/pipeline-resource-definitions/kibana-es-snapshots.yml +++ b/.buildkite/pipeline-resource-definitions/kibana-es-snapshots.yml @@ -22,7 +22,7 @@ spec: SLACK_NOTIFICATIONS_CHANNEL: '#kibana-operations-alerts' ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' allow_rebuilds: true - branch_configuration: main 8.x 8.17 8.16 8.15 7.17 + branch_configuration: main 8.x 8.17 8.16 7.17 default_branch: main repository: elastic/kibana pipeline_file: .buildkite/pipelines/es_snapshots/build.yml @@ -95,7 +95,7 @@ spec: SLACK_NOTIFICATIONS_CHANNEL: '#kibana-operations-alerts' ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' allow_rebuilds: true - branch_configuration: main 8.x 8.17 8.16 8.15 7.17 + branch_configuration: main 8.x 8.17 8.16 7.17 default_branch: main repository: elastic/kibana pipeline_file: .buildkite/pipelines/es_snapshots/promote.yml @@ -144,7 +144,7 @@ spec: ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' REPORT_FAILED_TESTS_TO_GITHUB: 'true' allow_rebuilds: true - branch_configuration: main 8.x 8.17 8.16 8.15 7.17 + branch_configuration: main 8.x 8.17 8.16 7.17 default_branch: main repository: elastic/kibana pipeline_file: .buildkite/pipelines/es_snapshots/verify.yml diff --git a/.buildkite/pipeline-resource-definitions/kibana-on-merge-unsupported-ftrs.yml b/.buildkite/pipeline-resource-definitions/kibana-on-merge-unsupported-ftrs.yml index 8219f37d349fb..0ee2f94272dcb 100644 --- a/.buildkite/pipeline-resource-definitions/kibana-on-merge-unsupported-ftrs.yml +++ b/.buildkite/pipeline-resource-definitions/kibana-on-merge-unsupported-ftrs.yml @@ -22,7 +22,7 @@ spec: SLACK_NOTIFICATIONS_CHANNEL: '#kibana-unsupported-ftrs-alerts' ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' allow_rebuilds: true - branch_configuration: main 8.x 8.17 8.16 8.15 7.17 + branch_configuration: main 8.x 8.17 8.16 7.17 default_branch: main repository: elastic/kibana pipeline_file: .buildkite/pipelines/on_merge_unsupported_ftrs.yml diff --git a/.buildkite/pipeline-resource-definitions/kibana-on-merge.yml b/.buildkite/pipeline-resource-definitions/kibana-on-merge.yml index aa56f4561fb6b..6fa09fe487ed7 100644 --- a/.buildkite/pipeline-resource-definitions/kibana-on-merge.yml +++ b/.buildkite/pipeline-resource-definitions/kibana-on-merge.yml @@ -25,7 +25,7 @@ spec: REPORT_FAILED_TESTS_TO_GITHUB: 'true' ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' allow_rebuilds: true - branch_configuration: main 8.x 8.17 8.16 8.15 7.17 + branch_configuration: main 8.x 8.17 8.16 7.17 default_branch: main repository: elastic/kibana pipeline_file: .buildkite/pipelines/on_merge.yml diff --git a/.buildkite/pipeline-utils/buildkite/emitPipeline.ts b/.buildkite/pipeline-utils/buildkite/emitPipeline.ts new file mode 100644 index 0000000000000..b0f12075eee79 --- /dev/null +++ b/.buildkite/pipeline-utils/buildkite/emitPipeline.ts @@ -0,0 +1,13 @@ +/* + * 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". + */ + +export function emitPipeline(pipelineSteps: string[]) { + const pipelineStr = [...new Set(pipelineSteps)].join('\n'); + console.log(pipelineStr); +} diff --git a/.buildkite/pipeline-utils/buildkite/index.ts b/.buildkite/pipeline-utils/buildkite/index.ts index fbfdea985e92b..3e99ee03f3f2e 100644 --- a/.buildkite/pipeline-utils/buildkite/index.ts +++ b/.buildkite/pipeline-utils/buildkite/index.ts @@ -9,3 +9,4 @@ export * from './client'; export * from './types'; +export * from './emitPipeline'; diff --git a/.buildkite/pipelines/on_merge_unsupported_ftrs.yml b/.buildkite/pipelines/on_merge_unsupported_ftrs.yml index 8903254ff4e8f..83683a822008c 100644 --- a/.buildkite/pipelines/on_merge_unsupported_ftrs.yml +++ b/.buildkite/pipelines/on_merge_unsupported_ftrs.yml @@ -37,6 +37,8 @@ steps: machineType: n2-standard-4 preemptible: true depends_on: build + env: + PING_SLACK_TEAM: "@obs-ux-infra_services-team" timeout_in_minutes: 120 retry: automatic: @@ -54,6 +56,8 @@ steps: machineType: n2-standard-4 preemptible: true depends_on: build + env: + PING_SLACK_TEAM: "@obs-ux-infra_services-team" timeout_in_minutes: 120 retry: automatic: diff --git a/.buildkite/scripts/lifecycle/post_command.sh b/.buildkite/scripts/lifecycle/post_command.sh index f90a4b451be1f..4d8217a4a284a 100755 --- a/.buildkite/scripts/lifecycle/post_command.sh +++ b/.buildkite/scripts/lifecycle/post_command.sh @@ -52,4 +52,12 @@ if [[ "$IS_TEST_EXECUTION_STEP" == "true" ]]; then buildkite-agent artifact upload 'target/test_failures/**/*' ts-node .buildkite/scripts/lifecycle/annotate_test_failures.ts fi + fi + +if [[ $BUILDKITE_COMMAND_EXIT_STATUS -ne 0 ]]; then + # If the slack team environment variable is set, ping the team in slack + if [ -n "${PING_SLACK_TEAM:-}" ]; then + buildkite-agent meta-data set 'slack:ping_team:body' "${PING_SLACK_TEAM}, can you please take a look at the test failures?" + fi +fi \ No newline at end of file diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 9751cb75e589d..4353f4f079a9f 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -7,9 +7,22 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ +/* eslint "no-restricted-syntax": [ + "error", + { + "selector": "CallExpression[callee.object.name='console'][callee.property.name!=/^(warn|error)$/]", + "message": "Debug logging to stdout in this file will attempt to upload the log message as yaml to buildkite, which might result in pipeline syntax error. Use emitPipeline() to upload steps, or log to stderr." + } + ] */ + import fs from 'fs'; import prConfigs from '../../../pull_requests.json'; -import { areChangesSkippable, doAnyChangesMatch, getAgentImageConfig } from '#pipeline-utils'; +import { + areChangesSkippable, + doAnyChangesMatch, + getAgentImageConfig, + emitPipeline, +} from '#pipeline-utils'; const prConfig = prConfigs.jobs.find((job) => job.pipelineSlug === 'kibana-pull-request'); const emptyStep = `steps: []`; @@ -35,7 +48,7 @@ const getPipeline = (filename: string, removeSteps = true) => { const skippable = await areChangesSkippable(SKIPPABLE_PR_MATCHERS, REQUIRED_PATHS); if (skippable) { - console.log(emptyStep); + emitPipeline([emptyStep]); return; } @@ -44,8 +57,8 @@ const getPipeline = (filename: string, removeSteps = true) => { const onlyRunQuickChecks = await areChangesSkippable([/^renovate\.json$/], REQUIRED_PATHS); if (onlyRunQuickChecks) { pipeline.push(getPipeline('.buildkite/pipelines/pull_request/renovate.yml', false)); - - console.log([...new Set(pipeline)].join('\n')); + console.warn('Isolated changes to renovate.json. Skipping main PR pipeline.'); + emitPipeline(pipeline); return; } @@ -57,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/, @@ -298,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/, @@ -319,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/, @@ -331,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/, @@ -401,8 +414,7 @@ const getPipeline = (filename: string, removeSteps = true) => { pipeline.push(getPipeline('.buildkite/pipelines/pull_request/post_build.yml')); - // remove duplicated steps - console.log([...new Set(pipeline)].join('\n')); + emitPipeline(pipeline); } catch (ex) { console.error('Error while generating the pipeline steps: ' + ex.message, ex); process.exit(1); diff --git a/.eslintignore b/.eslintignore index 270762242c87e..bd362556ae083 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 0e51464096200..5b37dbccf5056 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/**/*', @@ -271,6 +271,10 @@ const RESTRICTED_IMPORTS = [ message: 'Please, use rxjs instead: rxjs/operators is just a subset, unnecessarily duplicating the package import.', }, + { + name: '@testing-library/react-hooks', + message: 'Please use @testing-library/react instead', + }, ]; module.exports = { @@ -595,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', @@ -1581,7 +1587,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', }, @@ -1797,7 +1803,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 e57bfee2fccd0..6216b797f2f21 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -41,17 +41,6 @@ examples/unified_doc_viewer @elastic/kibana-core examples/unified_field_list_examples @elastic/kibana-data-discovery examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops -packages/content-management/content_editor @elastic/appex-sharedux -packages/content-management/content_insights/content_insights_public @elastic/appex-sharedux -packages/content-management/content_insights/content_insights_server @elastic/appex-sharedux -packages/content-management/favorites/favorites_common @elastic/appex-sharedux -packages/content-management/favorites/favorites_public @elastic/appex-sharedux -packages/content-management/favorites/favorites_server @elastic/appex-sharedux -packages/content-management/tabbed_table_list_view @elastic/appex-sharedux -packages/content-management/table_list_view @elastic/appex-sharedux -packages/content-management/table_list_view_common @elastic/appex-sharedux -packages/content-management/table_list_view_table @elastic/appex-sharedux -packages/content-management/user_profiles @elastic/appex-sharedux packages/core/analytics/core-analytics-browser-mocks @elastic/kibana-core packages/core/analytics/core-analytics-server-mocks @elastic/kibana-core packages/core/application/core-application-browser-mocks @elastic/kibana-core @@ -61,15 +50,7 @@ packages/core/base/core-base-server-mocks @elastic/kibana-core packages/core/capabilities/core-capabilities-browser-mocks @elastic/kibana-core packages/core/capabilities/core-capabilities-server-mocks @elastic/kibana-core packages/core/chrome/core-chrome-browser @elastic/appex-sharedux -packages/core/chrome/core-chrome-browser-internal @elastic/appex-sharedux packages/core/chrome/core-chrome-browser-mocks @elastic/appex-sharedux -packages/core/custom-branding/core-custom-branding-browser @elastic/appex-sharedux -packages/core/custom-branding/core-custom-branding-browser-internal @elastic/appex-sharedux -packages/core/custom-branding/core-custom-branding-browser-mocks @elastic/appex-sharedux -packages/core/custom-branding/core-custom-branding-common @elastic/appex-sharedux -packages/core/custom-branding/core-custom-branding-server @elastic/appex-sharedux -packages/core/custom-branding/core-custom-branding-server-internal @elastic/appex-sharedux -packages/core/custom-branding/core-custom-branding-server-mocks @elastic/appex-sharedux packages/core/deprecations/core-deprecations-browser-mocks @elastic/kibana-core packages/core/deprecations/core-deprecations-server-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-browser-mocks @elastic/kibana-core @@ -113,12 +94,7 @@ packages/core/status/core-status-server-mocks @elastic/kibana-core packages/core/test-helpers/core-test-helpers-kbn-server @elastic/kibana-core packages/core/test-helpers/core-test-helpers-model-versions @elastic/kibana-core packages/core/theme/core-theme-browser-mocks @elastic/kibana-core -packages/core/ui-settings/core-ui-settings-browser @elastic/appex-sharedux -packages/core/ui-settings/core-ui-settings-browser-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-browser-mocks @elastic/appex-sharedux -packages/core/ui-settings/core-ui-settings-common @elastic/appex-sharedux -packages/core/ui-settings/core-ui-settings-server @elastic/appex-sharedux -packages/core/ui-settings/core-ui-settings-server-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-mocks @elastic/appex-sharedux packages/core/usage-data/core-usage-data-server-mocks @elastic/kibana-core packages/core/user-settings/core-user-settings-server @elastic/kibana-security @@ -140,9 +116,7 @@ packages/kbn-babel-register @elastic/kibana-operations packages/kbn-babel-transform @elastic/kibana-operations packages/kbn-bazel-runner @elastic/kibana-operations packages/kbn-calculate-auto @elastic/obs-ux-management-team -packages/kbn-calculate-width-from-char-count @elastic/kibana-visualizations packages/kbn-capture-oas-snapshot-cli @elastic/kibana-core -packages/kbn-chart-icons @elastic/kibana-visualizations packages/kbn-charts-theme @elastic/kibana-visualizations packages/kbn-check-mappings-update-cli @elastic/kibana-core packages/kbn-check-prod-native-modules-cli @elastic/kibana-operations @@ -152,9 +126,7 @@ packages/kbn-ci-stats-reporter @elastic/kibana-operations packages/kbn-ci-stats-shipper-cli @elastic/kibana-operations packages/kbn-cli-dev-mode @elastic/kibana-operations packages/kbn-code-owners @elastic/appex-qa -packages/kbn-coloring @elastic/kibana-visualizations packages/kbn-cypress-config @elastic/kibana-operations -packages/kbn-data-service @elastic/kibana-visualizations @elastic/kibana-data-discovery packages/kbn-dependency-ownership @elastic/kibana-security packages/kbn-dependency-usage @elastic/kibana-security packages/kbn-dev-cli-errors @elastic/kibana-operations @@ -162,7 +134,6 @@ packages/kbn-dev-cli-runner @elastic/kibana-operations packages/kbn-dev-proc-runner @elastic/kibana-operations packages/kbn-dev-utils @elastic/kibana-operations packages/kbn-docs-utils @elastic/kibana-operations -packages/kbn-dom-drag-drop @elastic/kibana-visualizations @elastic/kibana-data-discovery packages/kbn-es @elastic/kibana-operations packages/kbn-es-archiver @elastic/kibana-operations @elastic/appex-qa packages/kbn-eslint-config @elastic/kibana-operations @@ -172,8 +143,6 @@ packages/kbn-eslint-plugin-eslint @elastic/kibana-operations packages/kbn-eslint-plugin-i18n @elastic/obs-knowledge-team @elastic/kibana-operations packages/kbn-eslint-plugin-imports @elastic/kibana-operations packages/kbn-eslint-plugin-telemetry @elastic/obs-knowledge-team -packages/kbn-event-annotation-common @elastic/kibana-visualizations -packages/kbn-event-annotation-components @elastic/kibana-visualizations packages/kbn-expect @elastic/kibana-operations @elastic/appex-qa packages/kbn-failed-test-reporter-cli @elastic/kibana-operations @elastic/appex-qa packages/kbn-find-used-node-modules @elastic/kibana-operations @@ -184,22 +153,18 @@ packages/kbn-ftr-screenshot-filename @elastic/kibana-operations @elastic/appex-q packages/kbn-gen-ai-functional-testing @elastic/appex-ai-infra packages/kbn-generate @elastic/kibana-operations packages/kbn-generate-console-definitions @elastic/kibana-management -packages/kbn-generate-csv @elastic/appex-sharedux packages/kbn-get-repo-files @elastic/kibana-operations packages/kbn-grid-layout @elastic/kibana-presentation packages/kbn-guided-onboarding @elastic/appex-sharedux packages/kbn-import-locator @elastic/kibana-operations packages/kbn-import-resolver @elastic/kibana-operations -packages/kbn-interpreter @elastic/kibana-visualizations packages/kbn-item-buffer @elastic/appex-sharedux packages/kbn-jest-serializers @elastic/kibana-operations packages/kbn-journeys @elastic/kibana-operations @elastic/appex-qa packages/kbn-json-ast @elastic/kibana-operations packages/kbn-kibana-manifest-schema @elastic/kibana-operations -packages/kbn-lens-formula-docs @elastic/kibana-visualizations packages/kbn-lint-packages-cli @elastic/kibana-operations packages/kbn-lint-ts-projects-cli @elastic/kibana-operations -packages/kbn-managed-content-badge @elastic/kibana-visualizations packages/kbn-managed-vscode-config @elastic/kibana-operations packages/kbn-managed-vscode-config-cli @elastic/kibana-operations packages/kbn-management/settings/section_registry @elastic/appex-sharedux @elastic/kibana-management @@ -209,8 +174,6 @@ packages/kbn-manifest @elastic/kibana-core packages/kbn-mock-idp-plugin @elastic/kibana-security packages/kbn-mock-idp-utils @elastic/kibana-security packages/kbn-monaco @elastic/appex-sharedux -packages/kbn-object-versioning @elastic/appex-sharedux -packages/kbn-object-versioning-utils @elastic/appex-sharedux packages/kbn-openapi-bundler @elastic/security-detection-rule-management packages/kbn-openapi-generator @elastic/security-detection-rule-management packages/kbn-optimizer @elastic/kibana-operations @@ -224,34 +187,20 @@ packages/kbn-plugin-check @elastic/appex-sharedux packages/kbn-plugin-generator @elastic/kibana-operations packages/kbn-plugin-helpers @elastic/kibana-operations packages/kbn-react-mute-legacy-root-warning @elastic/appex-sharedux -packages/kbn-recently-accessed @elastic/appex-sharedux packages/kbn-relocate @elastic/kibana-core packages/kbn-repo-file-maps @elastic/kibana-operations packages/kbn-repo-linter @elastic/kibana-operations packages/kbn-repo-path @elastic/kibana-operations packages/kbn-repo-source-classifier @elastic/kibana-operations packages/kbn-repo-source-classifier-cli @elastic/kibana-operations -packages/kbn-reporting/common @elastic/appex-sharedux -packages/kbn-reporting/export_types/csv @elastic/appex-sharedux -packages/kbn-reporting/export_types/csv_common @elastic/appex-sharedux -packages/kbn-reporting/export_types/pdf @elastic/appex-sharedux -packages/kbn-reporting/export_types/pdf_common @elastic/appex-sharedux -packages/kbn-reporting/export_types/png @elastic/appex-sharedux -packages/kbn-reporting/export_types/png_common @elastic/appex-sharedux -packages/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux -packages/kbn-reporting/mocks_server @elastic/appex-sharedux -packages/kbn-reporting/public @elastic/appex-sharedux -packages/kbn-reporting/server @elastic/appex-sharedux packages/kbn-saved-objects-settings @elastic/appex-sharedux packages/kbn-saved-search-component @elastic/obs-ux-logs-team packages/kbn-scout @elastic/appex-qa packages/kbn-scout-info @elastic/appex-qa packages/kbn-scout-reporting @elastic/appex-qa -packages/kbn-screenshotting-server @elastic/appex-sharedux packages/kbn-set-map @elastic/kibana-operations packages/kbn-some-dev-log @elastic/kibana-operations packages/kbn-sort-package-json @elastic/kibana-operations -packages/kbn-sort-predicates @elastic/kibana-visualizations packages/kbn-stdio-dev-helpers @elastic/kibana-operations packages/kbn-storybook @elastic/kibana-operations packages/kbn-styled-components-mapping-cli @elastic/kibana-operations @elastic/eui-team @@ -260,17 +209,11 @@ packages/kbn-test @elastic/kibana-operations @elastic/appex-qa packages/kbn-test-eui-helpers @elastic/kibana-visualizations packages/kbn-test-jest-helpers @elastic/kibana-operations @elastic/appex-qa packages/kbn-test-subj-selector @elastic/kibana-operations @elastic/appex-qa -packages/kbn-timelion-grammar @elastic/kibana-visualizations -packages/kbn-tinymath @elastic/kibana-visualizations packages/kbn-tooling-log @elastic/kibana-operations -packages/kbn-transpose-utils @elastic/kibana-visualizations packages/kbn-ts-projects @elastic/kibana-operations packages/kbn-ts-type-check-cli @elastic/kibana-operations -packages/kbn-ui-actions-browser @elastic/appex-sharedux packages/kbn-use-tracked-promise @elastic/obs-ux-logs-team packages/kbn-validate-next-docs-cli @elastic/kibana-operations -packages/kbn-visualization-ui-components @elastic/kibana-visualizations -packages/kbn-visualization-utils @elastic/kibana-visualizations packages/kbn-web-worker-stub @elastic/kibana-operations packages/kbn-whereis-pkg-cli @elastic/kibana-operations packages/kbn-yarn-lock-validator @elastic/kibana-operations @@ -307,7 +250,15 @@ src/core/packages/capabilities/browser-internal @elastic/kibana-core src/core/packages/capabilities/common @elastic/kibana-core src/core/packages/capabilities/server @elastic/kibana-core src/core/packages/capabilities/server-internal @elastic/kibana-core +src/core/packages/chrome/browser-internal @elastic/appex-sharedux src/core/packages/config/server-internal @elastic/kibana-core +src/core/packages/custom-branding/browser @elastic/appex-sharedux +src/core/packages/custom-branding/browser-internal @elastic/appex-sharedux +src/core/packages/custom-branding/browser-mocks @elastic/appex-sharedux +src/core/packages/custom-branding/common @elastic/appex-sharedux +src/core/packages/custom-branding/server @elastic/appex-sharedux +src/core/packages/custom-branding/server-internal @elastic/appex-sharedux +src/core/packages/custom-branding/server-mocks @elastic/appex-sharedux src/core/packages/deprecations/browser @elastic/kibana-core src/core/packages/deprecations/browser-internal @elastic/kibana-core src/core/packages/deprecations/common @elastic/kibana-core @@ -414,6 +365,11 @@ src/core/packages/test-helpers/so-type-serializer @elastic/kibana-core src/core/packages/test-helpers/test-utils @elastic/kibana-core src/core/packages/theme/browser @elastic/kibana-core src/core/packages/theme/browser-internal @elastic/kibana-core +src/core/packages/ui-settings/browser @elastic/appex-sharedux +src/core/packages/ui-settings/browser-internal @elastic/appex-sharedux +src/core/packages/ui-settings/common @elastic/appex-sharedux +src/core/packages/ui-settings/server @elastic/appex-sharedux +src/core/packages/ui-settings/server-internal @elastic/appex-sharedux src/core/packages/usage-data/base-server-internal @elastic/kibana-core src/core/packages/usage-data/server @elastic/kibana-core src/core/packages/usage-data/server-internal @elastic/kibana-core @@ -432,16 +388,34 @@ src/platform/packages/private/default-nav/ml @elastic/ml-ui src/platform/packages/private/kbn-apm-config-loader @elastic/kibana-core @vigneshshanmugam src/platform/packages/private/kbn-config-mocks @elastic/kibana-core src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql +src/platform/packages/private/kbn-generate-csv @elastic/appex-sharedux src/platform/packages/private/kbn-handlebars @elastic/kibana-security src/platform/packages/private/kbn-hapi-mocks @elastic/kibana-core src/platform/packages/private/kbn-health-gateway-server @elastic/kibana-core src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql +src/platform/packages/private/kbn-lens-formula-docs @elastic/kibana-visualizations +src/platform/packages/private/kbn-managed-content-badge @elastic/kibana-visualizations src/platform/packages/private/kbn-management/settings/application @elastic/kibana-management src/platform/packages/private/kbn-management/settings/components/field_category @elastic/kibana-management src/platform/packages/private/kbn-management/settings/components/form @elastic/kibana-management src/platform/packages/private/kbn-mapbox-gl @elastic/kibana-presentation src/platform/packages/private/kbn-panel-loader @elastic/kibana-presentation src/platform/packages/private/kbn-repo-packages @elastic/kibana-operations +src/platform/packages/private/kbn-reporting/common @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/csv @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/csv_common @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/pdf @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/pdf_common @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/png @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/png_common @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/mocks_server @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/public @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/server @elastic/appex-sharedux +src/platform/packages/private/kbn-screenshotting-server @elastic/appex-sharedux +src/platform/packages/private/kbn-timelion-grammar @elastic/kibana-visualizations +src/platform/packages/private/kbn-tinymath @elastic/kibana-visualizations +src/platform/packages/private/kbn-transpose-utils @elastic/kibana-visualizations src/platform/packages/private/kbn-ui-shared-deps-npm @elastic/kibana-operations src/platform/packages/private/kbn-ui-shared-deps-src @elastic/kibana-operations src/platform/packages/private/kbn-unsaved-changes-badge @elastic/kibana-data-discovery @@ -452,7 +426,19 @@ src/platform/packages/private/shared-ux/page/kibana_no_data/impl @elastic/appex- src/platform/packages/private/shared-ux/page/kibana_no_data/mocks @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/kibana_no_data/types @elastic/appex-sharedux src/platform/packages/private/shared-ux/storybook/config @elastic/appex-sharedux +src/platform/packages/shared/chart-expressions-common @elastic/kibana-visualizations src/platform/packages/shared/cloud @elastic/kibana-core +src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux +src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux +src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux +src/platform/packages/shared/content-management/favorites/favorites_common @elastic/appex-sharedux +src/platform/packages/shared/content-management/favorites/favorites_public @elastic/appex-sharedux +src/platform/packages/shared/content-management/favorites/favorites_server @elastic/appex-sharedux +src/platform/packages/shared/content-management/tabbed_table_list_view @elastic/appex-sharedux +src/platform/packages/shared/content-management/table_list_view @elastic/appex-sharedux +src/platform/packages/shared/content-management/table_list_view_common @elastic/appex-sharedux +src/platform/packages/shared/content-management/table_list_view_table @elastic/appex-sharedux +src/platform/packages/shared/content-management/user_profiles @elastic/appex-sharedux src/platform/packages/shared/deeplinks/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/shared/deeplinks/devtools @elastic/kibana-management src/platform/packages/shared/deeplinks/fleet @elastic/fleet @@ -469,20 +455,25 @@ src/platform/packages/shared/kbn-analytics @elastic/kibana-core src/platform/packages/shared/kbn-apm-data-view @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-apm-utils @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-avc-banner @elastic/security-defend-workflows +src/platform/packages/shared/kbn-calculate-width-from-char-count @elastic/kibana-visualizations src/platform/packages/shared/kbn-cases-components @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/platform/packages/shared/kbn-chart-icons @elastic/kibana-visualizations +src/platform/packages/shared/kbn-coloring @elastic/kibana-visualizations src/platform/packages/shared/kbn-config @elastic/kibana-core src/platform/packages/shared/kbn-config-schema @elastic/kibana-core src/platform/packages/shared/kbn-content-management-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-crypto @elastic/kibana-security src/platform/packages/shared/kbn-crypto-browser @elastic/kibana-core src/platform/packages/shared/kbn-custom-icons @elastic/obs-ux-logs-team +src/platform/packages/shared/kbn-data-service @elastic/kibana-visualizations @elastic/kibana-data-discovery src/platform/packages/shared/kbn-data-view-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-datemath @elastic/kibana-data-discovery src/platform/packages/shared/kbn-discover-contextual-components @elastic/obs-ux-logs-team @elastic/kibana-data-discovery src/platform/packages/shared/kbn-discover-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-doc-links @elastic/docs +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 src/platform/packages/shared/kbn-elastic-agent-utils @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-es-errors @elastic/kibana-core @@ -491,12 +482,15 @@ src/platform/packages/shared/kbn-es-types @elastic/kibana-core @elastic/obs-know src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql +src/platform/packages/shared/kbn-event-annotation-common @elastic/kibana-visualizations +src/platform/packages/shared/kbn-event-annotation-components @elastic/kibana-visualizations src/platform/packages/shared/kbn-field-types @elastic/kibana-data-discovery src/platform/packages/shared/kbn-field-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-flot-charts @elastic/kibana-presentation @elastic/stack-monitoring src/platform/packages/shared/kbn-grouping @elastic/response-ops src/platform/packages/shared/kbn-i18n @elastic/kibana-core src/platform/packages/shared/kbn-i18n-react @elastic/kibana-core +src/platform/packages/shared/kbn-interpreter @elastic/kibana-visualizations src/platform/packages/shared/kbn-io-ts-utils @elastic/obs-knowledge-team src/platform/packages/shared/kbn-lens-embeddable-utils @elastic/obs-ux-infra_services-team @elastic/kibana-visualizations src/platform/packages/shared/kbn-logging @elastic/kibana-core @@ -507,11 +501,14 @@ src/platform/packages/shared/kbn-management/settings/components/field_row @elast src/platform/packages/shared/kbn-management/settings/field_definition @elastic/kibana-management src/platform/packages/shared/kbn-management/settings/types @elastic/kibana-management src/platform/packages/shared/kbn-management/settings/utilities @elastic/kibana-management +src/platform/packages/shared/kbn-object-versioning @elastic/appex-sharedux +src/platform/packages/shared/kbn-object-versioning-utils @elastic/appex-sharedux src/platform/packages/shared/kbn-openapi-common @elastic/security-detection-rule-management src/platform/packages/shared/kbn-osquery-io-ts-types @elastic/security-asset-management src/platform/packages/shared/kbn-profiling-utils @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-react-field @elastic/kibana-data-discovery src/platform/packages/shared/kbn-react-hooks @elastic/obs-ux-logs-team +src/platform/packages/shared/kbn-recently-accessed @elastic/appex-sharedux src/platform/packages/shared/kbn-repo-info @elastic/kibana-operations src/platform/packages/shared/kbn-resizable-layout @elastic/kibana-data-discovery src/platform/packages/shared/kbn-rison @elastic/kibana-operations @@ -537,6 +534,7 @@ src/platform/packages/shared/kbn-server-route-repository-client @elastic/obs-kno src/platform/packages/shared/kbn-server-route-repository-utils @elastic/obs-knowledge-team src/platform/packages/shared/kbn-shared-svg @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-shared-ux-utility @elastic/appex-sharedux +src/platform/packages/shared/kbn-sort-predicates @elastic/kibana-visualizations src/platform/packages/shared/kbn-sse-utils @elastic/obs-knowledge-team src/platform/packages/shared/kbn-sse-utils-client @elastic/obs-knowledge-team src/platform/packages/shared/kbn-sse-utils-server @elastic/obs-knowledge-team @@ -545,6 +543,7 @@ src/platform/packages/shared/kbn-timerange @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-triggers-actions-ui-types @elastic/response-ops src/platform/packages/shared/kbn-try-in-console @elastic/search-kibana src/platform/packages/shared/kbn-typed-react-router-config @elastic/obs-knowledge-team @elastic/obs-ux-infra_services-team +src/platform/packages/shared/kbn-ui-actions-browser @elastic/appex-sharedux src/platform/packages/shared/kbn-ui-theme @elastic/kibana-operations src/platform/packages/shared/kbn-unified-data-table @elastic/kibana-data-discovery @elastic/security-threat-hunting-investigations src/platform/packages/shared/kbn-unified-doc-viewer @elastic/kibana-data-discovery @@ -554,6 +553,8 @@ src/platform/packages/shared/kbn-user-profile-components @elastic/kibana-securit src/platform/packages/shared/kbn-utility-types @elastic/kibana-core src/platform/packages/shared/kbn-utility-types-jest @elastic/kibana-operations src/platform/packages/shared/kbn-utils @elastic/kibana-operations +src/platform/packages/shared/kbn-visualization-ui-components @elastic/kibana-visualizations +src/platform/packages/shared/kbn-visualization-utils @elastic/kibana-visualizations src/platform/packages/shared/kbn-xstate-utils @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-zod @elastic/kibana-core src/platform/packages/shared/kbn-zod-helpers @elastic/security-detection-rule-management @@ -605,6 +606,8 @@ src/platform/packages/shared/shared-ux/router/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/storybook/mock @elastic/appex-sharedux src/platform/packages/shared/shared-ux/table_persist @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management +src/platform/plugins/private/event_annotation @elastic/kibana-visualizations +src/platform/plugins/private/event_annotation_listing @elastic/kibana-visualizations src/platform/plugins/private/files_management @elastic/appex-sharedux src/platform/plugins/private/ftr_apis @elastic/kibana-core src/platform/plugins/private/image_embeddable @elastic/appex-sharedux @@ -616,13 +619,34 @@ src/platform/plugins/private/links @elastic/kibana-presentation src/platform/plugins/private/maps_ems @elastic/kibana-presentation src/platform/plugins/private/no_data_page @elastic/appex-sharedux src/platform/plugins/private/presentation_panel @elastic/kibana-presentation +src/platform/plugins/private/url_forwarding @elastic/kibana-visualizations +src/platform/plugins/private/vis_default_editor @elastic/kibana-visualizations src/platform/plugins/private/vis_type_markdown @elastic/kibana-presentation +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_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/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/plugins/shared/ai_assistant_management/selection @elastic/obs-ai-assistant +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/chart_expressions/expression_legacy_metric @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/chart_expressions/expression_tagcloud @elastic/kibana-visualizations +src/platform/plugins/shared/chart_expressions/expression_xy @elastic/kibana-visualizations +src/platform/plugins/shared/charts @elastic/kibana-visualizations src/platform/plugins/shared/console @elastic/kibana-management src/platform/plugins/shared/content_management @elastic/appex-sharedux src/platform/plugins/shared/controls @elastic/kibana-presentation src/platform/plugins/shared/custom_integrations @elastic/fleet src/platform/plugins/shared/dashboard @elastic/kibana-presentation +src/platform/plugins/shared/data @elastic/kibana-visualizations @elastic/kibana-data-discovery src/platform/plugins/shared/data_view_editor @elastic/kibana-data-discovery src/platform/plugins/shared/data_view_field_editor @elastic/kibana-data-discovery src/platform/plugins/shared/data_view_management @elastic/kibana-data-discovery @@ -640,6 +664,7 @@ src/platform/plugins/shared/expression_metric @elastic/kibana-presentation 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/platform/plugins/shared/expressions @elastic/kibana-visualizations src/platform/plugins/shared/field_formats @elastic/kibana-data-discovery src/platform/plugins/shared/files @elastic/appex-sharedux src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux @@ -665,35 +690,10 @@ src/platform/plugins/shared/ui_actions @elastic/appex-sharedux src/platform/plugins/shared/ui_actions_enhanced @elastic/appex-sharedux src/platform/plugins/shared/unified_doc_viewer @elastic/kibana-data-discovery src/platform/plugins/shared/unified_histogram @elastic/kibana-data-discovery +src/platform/plugins/shared/unified_search @elastic/kibana-visualizations src/platform/plugins/shared/usage_collection @elastic/kibana-core -src/plugins/chart_expressions/common @elastic/kibana-visualizations -src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations -src/plugins/chart_expressions/expression_heatmap @elastic/kibana-visualizations -src/plugins/chart_expressions/expression_legacy_metric @elastic/kibana-visualizations -src/plugins/chart_expressions/expression_metric @elastic/kibana-visualizations -src/plugins/chart_expressions/expression_partition_vis @elastic/kibana-visualizations -src/plugins/chart_expressions/expression_tagcloud @elastic/kibana-visualizations -src/plugins/chart_expressions/expression_xy @elastic/kibana-visualizations -src/plugins/charts @elastic/kibana-visualizations -src/plugins/data @elastic/kibana-visualizations @elastic/kibana-data-discovery -src/plugins/event_annotation @elastic/kibana-visualizations -src/plugins/event_annotation_listing @elastic/kibana-visualizations -src/plugins/expressions @elastic/kibana-visualizations -src/plugins/unified_search @elastic/kibana-visualizations -src/plugins/url_forwarding @elastic/kibana-visualizations -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/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 -src/plugins/visualizations @elastic/kibana-visualizations +src/platform/plugins/shared/vis_types/timeseries @elastic/kibana-visualizations +src/platform/plugins/shared/visualizations @elastic/kibana-visualizations test test/analytics/plugins/analytics_ftr_helpers @elastic/kibana-core test/analytics/plugins/analytics_plugin_a @elastic/kibana-core @@ -754,12 +754,12 @@ x-pack/examples/third_party_vis_lens_example @elastic/kibana-visualizations x-pack/examples/triggers_actions_ui_example @elastic/response-ops x-pack/examples/ui_actions_enhanced_examples @elastic/appex-sharedux x-pack/packages/ai-infra/product-doc-artifact-builder @elastic/appex-ai-infra -x-pack/packages/kbn-random-sampling @elastic/kibana-visualizations x-pack/packages/kbn-streams-schema @elastic/streams-program-team x-pack/packages/kbn-synthetics-private-location @elastic/obs-ux-management-team x-pack/performance @elastic/appex-qa x-pack/platform/packages/private/kbn-alerting-state-types @elastic/response-ops x-pack/platform/packages/private/kbn-infra-forge @elastic/obs-ux-management-team +x-pack/platform/packages/private/kbn-random-sampling @elastic/kibana-visualizations x-pack/platform/packages/private/maps/vector_tile_utils @elastic/kibana-presentation x-pack/platform/packages/private/ml/agg_utils @elastic/ml-ui x-pack/platform/packages/private/ml/aiops_change_point_detection @elastic/ml-ui @@ -779,7 +779,6 @@ x-pack/platform/packages/private/ml/inference_integration_flyout @elastic/ml-ui x-pack/platform/packages/private/ml/is_defined @elastic/ml-ui x-pack/platform/packages/private/ml/is_populated_object @elastic/ml-ui x-pack/platform/packages/private/ml/json_schemas @elastic/ml-ui -x-pack/platform/packages/private/ml/kibana_theme @elastic/ml-ui x-pack/platform/packages/private/ml/local_storage @elastic/ml-ui x-pack/platform/packages/private/ml/nested_property @elastic/ml-ui x-pack/platform/packages/private/ml/number_utils @elastic/ml-ui @@ -843,6 +842,7 @@ x-pack/platform/plugins/private/discover_enhanced @elastic/kibana-data-discovery x-pack/platform/plugins/private/file_upload @elastic/kibana-presentation @elastic/ml-ui x-pack/platform/plugins/private/global_search_bar @elastic/appex-sharedux x-pack/platform/plugins/private/global_search_providers @elastic/appex-sharedux +x-pack/platform/plugins/private/graph @elastic/kibana-visualizations x-pack/platform/plugins/private/grokdebugger @elastic/kibana-management x-pack/platform/plugins/private/index_lifecycle_management @elastic/kibana-management x-pack/platform/plugins/private/license_api_guard @elastic/kibana-management @@ -854,7 +854,6 @@ x-pack/platform/plugins/private/remote_clusters @elastic/kibana-management x-pack/platform/plugins/private/reporting @elastic/appex-sharedux x-pack/platform/plugins/private/rollup @elastic/kibana-management x-pack/platform/plugins/private/runtime_fields @elastic/kibana-management -x-pack/platform/plugins/private/saved_objects_tagging @elastic/appex-sharedux x-pack/platform/plugins/private/snapshot_restore @elastic/kibana-management x-pack/platform/plugins/private/telemetry_collection_xpack @elastic/kibana-core x-pack/platform/plugins/private/transform @elastic/ml-ui @@ -884,6 +883,7 @@ x-pack/platform/plugins/shared/index_management @elastic/kibana-management x-pack/platform/plugins/shared/inference @elastic/appex-ai-infra x-pack/platform/plugins/shared/ingest_pipelines @elastic/kibana-management x-pack/platform/plugins/shared/integration_assistant @elastic/security-scalability +x-pack/platform/plugins/shared/lens @elastic/kibana-visualizations x-pack/platform/plugins/shared/license_management @elastic/kibana-management x-pack/platform/plugins/shared/licensing @elastic/kibana-core x-pack/platform/plugins/shared/logs_data_access @elastic/obs-ux-logs-team @@ -894,6 +894,7 @@ x-pack/platform/plugins/shared/notifications @elastic/appex-sharedux x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant @elastic/obs-ai-assistant x-pack/platform/plugins/shared/osquery @elastic/security-defend-workflows x-pack/platform/plugins/shared/rule_registry @elastic/response-ops @elastic/obs-ux-management-team +x-pack/platform/plugins/shared/saved_objects_tagging @elastic/appex-sharedux x-pack/platform/plugins/shared/screenshotting @elastic/kibana-reporting-services x-pack/platform/plugins/shared/searchprofiler @elastic/kibana-management x-pack/platform/plugins/shared/security @elastic/kibana-security @@ -904,8 +905,6 @@ x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops x-pack/platform/plugins/shared/task_manager @elastic/response-ops x-pack/platform/plugins/shared/triggers_actions_ui @elastic/response-ops x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux -x-pack/plugins/graph @elastic/kibana-visualizations -x-pack/plugins/lens @elastic/kibana-visualizations x-pack/solutions/observability/packages/alert_details @elastic/obs-ux-management-team x-pack/solutions/observability/packages/alerting_test_data @elastic/obs-ux-management-team x-pack/solutions/observability/packages/get_padded_alert_time_range_util @elastic/obs-ux-management-team @@ -1331,6 +1330,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /x-pack/solutions/observability/plugins/infra/server/routes/log_analysis @elastic/obs-ux-logs-team /x-pack/solutions/observability/plugins/infra/server/services/rules @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team /x-pack/test/common/utils/synthtrace @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team # Assigned per https://github.com/elastic/kibana/blob/main/packages/kbn-apm-synthtrace/kibana.jsonc#L5 +/x-pack/test/common/utils/server_route_repository @elastic/obs-knowledge-team # Infra Monitoring tests /x-pack/test/common/services/infra_synthtrace_kibana_client.ts @elastic/obs-ux-infra_services-team @@ -2343,8 +2343,15 @@ x-pack/test/security_solution_cypress/cypress/tasks/expandable_flyout @elastic/ /x-pack/platform/plugins/shared/stack_connectors/public/connector_types/sentinelone @elastic/security-defend-workflows /x-pack/platform/plugins/shared/stack_connectors/server/connector_types/sentinelone @elastic/security-defend-workflows /x-pack/platform/plugins/shared/stack_connectors/common/sentinelone @elastic/security-defend-workflows +/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/sentinelone.ts @elastic/security-defend-workflows /x-pack/platform/plugins/shared/stack_connectors/server/connector_types/crowdstrike @elastic/security-defend-workflows /x-pack/platform/plugins/shared/stack_connectors/common/crowdstrike @elastic/security-defend-workflows +/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/crowdstrike.ts @elastic/security-defend-workflows +/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint @elastic/security-defend-workflows +/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint @elastic/security-defend-workflows +/x-pack/platform/plugins/shared/stack_connectors/common/microsoft_defender_endpoint @elastic/security-defend-workflows +/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/microsoft_defender_endpoint.ts @elastic/security-defend-workflows + ## Security Solution shared OAS schemas /x-pack/solutions/security/plugins/security_solution/common/api/model @elastic/security-detection-rule-management @elastic/security-detection-engine @@ -2634,6 +2641,9 @@ oas_docs/.spectral.yaml @elastic/platform-docs oas_docs/kibana.info.serverless.yaml @elastic/platform-docs oas_docs/kibana.info.yaml @elastic/platform-docs +# Documentation settings files +docs/settings-gen @elastic/platform-docs + # Plugin manifests /src/plugins/**/kibana.jsonc @elastic/kibana-core /src/platform/plugins/shared/**/kibana.jsonc @elastic/kibana-core @@ -3164,7 +3174,6 @@ x-pack/platform/packages/private/ml/inference_integration_flyout @elastic/ml-ui x-pack/platform/packages/private/ml/is_defined @elastic/ml-ui x-pack/platform/packages/private/ml/is_populated_object @elastic/ml-ui x-pack/platform/packages/private/ml/json_schemas @elastic/ml-ui -x-pack/platform/packages/private/ml/kibana_theme @elastic/ml-ui x-pack/platform/packages/private/ml/local_storage @elastic/ml-ui x-pack/platform/packages/private/ml/nested_property @elastic/ml-ui x-pack/platform/packages/private/ml/number_utils @elastic/ml-ui @@ -3228,7 +3237,7 @@ x-pack/platform/plugins/private/remote_clusters @elastic/kibana-management x-pack/platform/plugins/private/reporting @elastic/appex-sharedux x-pack/platform/plugins/private/rollup @elastic/kibana-management x-pack/platform/plugins/private/runtime_fields @elastic/kibana-management -x-pack/platform/plugins/private/saved_objects_tagging @elastic/appex-sharedux +x-pack/platform/plugins/shared/saved_objects_tagging @elastic/appex-sharedux x-pack/platform/plugins/private/snapshot_restore @elastic/kibana-management x-pack/platform/plugins/private/telemetry_collection_xpack @elastic/kibana-core x-pack/platform/plugins/private/transform @elastic/ml-ui 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 b20d17ce789f8..35ea93ed971c5 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -10,17 +10,17 @@ "avcBanner": "src/platform/packages/shared/kbn-avc-banner/src", "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": "packages/content-management", + "contentManagement": "src/platform/packages/shared/content-management", "core": ["src/core", "packages/core"], "customIntegrations": "src/platform/plugins/shared/custom_integrations", "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"], @@ -39,29 +39,29 @@ "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", "filesManagement": "src/platform/plugins/private/files_management", "flot": "src/platform/packages/shared/kbn-flot-charts/lib", - "generateCsv": "packages/kbn-generate-csv", + "generateCsv": "src/platform/packages/private/kbn-generate-csv", "grouping": "src/platform/packages/shared/kbn-grouping/src", "alertsGrouping": "x-pack/solutions/observability/packages/kbn-alerts-grouping", "guidedOnboarding": "src/platform/plugins/shared/guided_onboarding", @@ -84,7 +84,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": [ @@ -98,11 +98,11 @@ "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", - "reporting": "packages/kbn-reporting", + "reporting": "src/platform/packages/private/kbn-reporting", "savedObjects": "src/platform/plugins/shared/saved_objects", "savedObjectsFinder": "src/platform/plugins/shared/saved_objects_finder", "savedObjectsManagement": "src/platform/plugins/shared/saved_objects_management", @@ -129,43 +129,43 @@ "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", "packages/kbn-ui-actions-browser"], + "uiActions": ["src/platform/plugins/shared/ui_actions", "src/platform/packages/shared/kbn-ui-actions-browser"], "uiActionsEnhanced": "src/platform/plugins/shared/ui_actions_enhanced", "uiActionsExamples": "examples/ui_action_examples", "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/api_docs/actions.devdocs.json b/api_docs/actions.devdocs.json index dd0c1f8f47de6..21614e1b29cfa 100644 --- a/api_docs/actions.devdocs.json +++ b/api_docs/actions.devdocs.json @@ -27,7 +27,7 @@ "section": "def-public.ActionsPublicPluginSetup", "text": "ActionsPublicPluginSetup" }, - ", void, object, object>" + ", void, never, never>" ], "path": "x-pack/platform/plugins/shared/actions/public/plugin.ts", "deprecated": false, diff --git a/api_docs/actions.mdx b/api_docs/actions.mdx index 3c03420645ae3..8d3554deeafda 100644 --- a/api_docs/actions.mdx +++ b/api_docs/actions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/actions title: "actions" image: https://source.unsplash.com/400x175/?github description: API docs for the actions plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions'] --- import actionsObj from './actions.devdocs.json'; diff --git a/api_docs/advanced_settings.mdx b/api_docs/advanced_settings.mdx index 510b7cf26e28d..84c640c6dba9a 100644 --- a/api_docs/advanced_settings.mdx +++ b/api_docs/advanced_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/advancedSettings title: "advancedSettings" image: https://source.unsplash.com/400x175/?github description: API docs for the advancedSettings plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings'] --- import advancedSettingsObj from './advanced_settings.devdocs.json'; diff --git a/api_docs/ai_assistant_management_selection.mdx b/api_docs/ai_assistant_management_selection.mdx index 6214d00dda0de..0efbc7508dc77 100644 --- a/api_docs/ai_assistant_management_selection.mdx +++ b/api_docs/ai_assistant_management_selection.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/aiAssistantManagementSelection title: "aiAssistantManagementSelection" image: https://source.unsplash.com/400x175/?github description: API docs for the aiAssistantManagementSelection plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiAssistantManagementSelection'] --- import aiAssistantManagementSelectionObj from './ai_assistant_management_selection.devdocs.json'; diff --git a/api_docs/aiops.devdocs.json b/api_docs/aiops.devdocs.json index c84ac2b685cc2..51248dca2224c 100644 --- a/api_docs/aiops.devdocs.json +++ b/api_docs/aiops.devdocs.json @@ -436,13 +436,7 @@ "\nUI settings." ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "x-pack/platform/plugins/shared/aiops/public/hooks/use_aiops_app_context.ts", "deprecated": false, @@ -493,6 +487,22 @@ "deprecated": false, "trackAdoption": false }, + { + "parentPluginId": "aiops", + "id": "def-public.AiopsAppContextValue.userProfile", + "type": "Object", + "tags": [], + "label": "userProfile", + "description": [ + "\nUser profile service." + ], + "signature": [ + "UserProfileService" + ], + "path": "x-pack/platform/plugins/shared/aiops/public/hooks/use_aiops_app_context.ts", + "deprecated": false, + "trackAdoption": false + }, { "parentPluginId": "aiops", "id": "def-public.AiopsAppContextValue.share", diff --git a/api_docs/aiops.mdx b/api_docs/aiops.mdx index 75b9a3178bc0d..101829f4b45cb 100644 --- a/api_docs/aiops.mdx +++ b/api_docs/aiops.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/aiops title: "aiops" image: https://source.unsplash.com/400x175/?github description: API docs for the aiops plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops'] --- import aiopsObj from './aiops.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) for questi | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 72 | 0 | 8 | 2 | +| 73 | 0 | 8 | 2 | ## Client diff --git a/api_docs/alerting.devdocs.json b/api_docs/alerting.devdocs.json index 5643941331826..c680add486a53 100644 --- a/api_docs/alerting.devdocs.json +++ b/api_docs/alerting.devdocs.json @@ -2273,7 +2273,7 @@ "label": "getIndexTemplateFields", "description": [], "signature": [ - "(alias: string, pattern: string) => ", + "(alias: string, patterns: string[]) => ", "IndexTemplateFields" ], "path": "x-pack/platform/plugins/shared/alerting/server/alerts_service/lib/data_stream_adapter.ts", @@ -2298,12 +2298,12 @@ { "parentPluginId": "alerting", "id": "def-server.DataStreamAdapter.getIndexTemplateFields.$2", - "type": "string", + "type": "Array", "tags": [], - "label": "pattern", + "label": "patterns", "description": [], "signature": [ - "string" + "string[]" ], "path": "x-pack/platform/plugins/shared/alerting/server/alerts_service/lib/data_stream_adapter.ts", "deprecated": false, @@ -3678,13 +3678,7 @@ "label": "uiSettingsClient", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "x-pack/platform/plugins/shared/alerting/server/types.ts", "deprecated": false, @@ -4367,7 +4361,7 @@ "section": "def-common.FilterStateStore", "text": "FilterStateStore" }, - "; }> | undefined; } & { meta: Record; }>[]; }> | undefined; timeframe?: Readonly<{} & { days: (2 | 1 | 7 | 6 | 5 | 4 | 3)[]; hours: Readonly<{} & { start: string; end: string; }>; timezone: string; }> | undefined; } & {}> | undefined; uuid?: string | undefined; useAlertDataForTemplate?: boolean | undefined; } & { params: Record; id: string; group: string; }> | Readonly<{ actionTypeId?: string | undefined; uuid?: string | undefined; } & { params: Record; id: string; }>)[]; field: \"actions\"; operation: \"add\" | \"set\"; }> | Readonly<{} & { value: Readonly<{} & { interval: string; }>; field: \"schedule\"; operation: \"set\"; }> | Readonly<{} & { value: string | null; field: \"throttle\"; operation: \"set\"; }> | Readonly<{} & { value: \"onActionGroupChange\" | \"onActiveAlert\" | \"onThrottleInterval\"; field: \"notifyWhen\"; operation: \"set\"; }> | Readonly<{} & { value: Readonly<{ id?: string | undefined; } & { duration: number; rRule: Readonly<{ count?: number | undefined; interval?: number | undefined; freq?: 0 | 2 | 1 | 3 | undefined; until?: string | undefined; byweekday?: string[] | undefined; bymonthday?: number[] | undefined; bymonth?: number[] | undefined; } & { dtstart: string; tzid: string; }>; }>; field: \"snoozeSchedule\"; operation: \"set\"; }> | Readonly<{ value?: string[] | undefined; } & { field: \"snoozeSchedule\"; operation: \"delete\"; }> | Readonly<{} & { field: \"apiKey\"; operation: \"set\"; }>" + "; }> | undefined; } & { meta: Record; }>[]; }> | undefined; timeframe?: Readonly<{} & { days: (2 | 1 | 7 | 6 | 5 | 4 | 3)[]; hours: Readonly<{} & { start: string; end: string; }>; timezone: string; }> | undefined; } & {}> | undefined; uuid?: string | undefined; useAlertDataForTemplate?: boolean | undefined; } & { params: Record; id: string; group: string; }> | Readonly<{ actionTypeId?: string | undefined; uuid?: string | undefined; } & { params: Record; id: string; }>)[]; field: \"actions\"; operation: \"add\" | \"set\"; }> | Readonly<{} & { value: Readonly<{} & { interval: string; }>; field: \"schedule\"; operation: \"set\"; }> | Readonly<{} & { value: string | null; field: \"throttle\"; operation: \"set\"; }> | Readonly<{} & { value: \"onActionGroupChange\" | \"onActiveAlert\" | \"onThrottleInterval\"; field: \"notifyWhen\"; operation: \"set\"; }> | Readonly<{} & { value: Readonly<{ id?: string | undefined; } & { duration: number; rRule: Readonly<{ count?: number | undefined; interval?: number | undefined; freq?: 0 | 2 | 1 | 3 | undefined; until?: string | undefined; byweekday?: (\"MO\" | \"TU\" | \"WE\" | \"TH\" | \"FR\" | \"SA\" | \"SU\")[] | undefined; bymonthday?: number[] | undefined; bymonth?: number[] | undefined; } & { dtstart: string; tzid: string; }>; }>; field: \"snoozeSchedule\"; operation: \"set\"; }> | Readonly<{ value?: string[] | undefined; } & { field: \"snoozeSchedule\"; operation: \"delete\"; }> | Readonly<{} & { field: \"apiKey\"; operation: \"set\"; }>" ], "path": "x-pack/platform/plugins/shared/alerting/server/application/rule/methods/bulk_edit/types/bulk_edit_rules_options.ts", "deprecated": false, @@ -4684,7 +4678,7 @@ "section": "def-common.RuleTypeParams", "text": "RuleTypeParams" }, - " = never>(params?: Readonly<{ options?: Readonly<{ page?: number | undefined; filter?: string | Record | undefined; search?: string | undefined; perPage?: number | undefined; defaultSearchOperator?: \"AND\" | \"OR\" | undefined; searchFields?: string[] | undefined; sortField?: string | undefined; sortOrder?: \"asc\" | \"desc\" | undefined; hasReference?: Readonly<{} & { id: string; type: string; }> | undefined; fields?: string[] | undefined; ruleTypeIds?: string[] | undefined; consumers?: string[] | undefined; } & {}> | undefined; includeSnoozeData?: boolean | undefined; excludeFromPublicApi?: boolean | undefined; } & {}> | undefined) => Promise<", + " = never>(params?: Readonly<{ options?: Readonly<{ page?: number | undefined; filter?: string | Record | undefined; search?: string | undefined; perPage?: number | undefined; defaultSearchOperator?: \"AND\" | \"OR\" | undefined; searchFields?: string[] | undefined; sortField?: string | undefined; sortOrder?: \"asc\" | \"desc\" | undefined; hasReference?: Readonly<{} & { id: string; type: string; }> | Readonly<{} & { id: string; type: string; }>[] | undefined; fields?: string[] | undefined; ruleTypeIds?: string[] | undefined; consumers?: string[] | undefined; } & {}> | undefined; includeSnoozeData?: boolean | undefined; excludeFromPublicApi?: boolean | undefined; } & {}> | undefined) => Promise<", { "pluginId": "alerting", "scope": "server", @@ -7336,13 +7330,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "x-pack/platform/plugins/shared/alerting/common/maintenance_window.ts", "deprecated": false, @@ -11031,7 +11019,13 @@ "description": [], "signature": [ "Omit<", - "Options", + { + "pluginId": "@kbn/rrule", + "scope": "common", + "docId": "kibKbnRrulePluginApi", + "section": "def-common.Options", + "text": "Options" + }, ", \"dtstart\" | \"until\" | \"byweekday\" | \"wkst\"> & { dtstart: string; byweekday?: (string | number)[] | null | undefined; wkst?: ", { "pluginId": "@kbn/rrule", diff --git a/api_docs/alerting.mdx b/api_docs/alerting.mdx index cce514fb67280..83c61534a7d19 100644 --- a/api_docs/alerting.mdx +++ b/api_docs/alerting.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/alerting title: "alerting" image: https://source.unsplash.com/400x175/?github description: API docs for the alerting plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting'] --- import alertingObj from './alerting.devdocs.json'; diff --git a/api_docs/apm.mdx b/api_docs/apm.mdx index 3c2ce0b2ce79d..9042c4ae48433 100644 --- a/api_docs/apm.mdx +++ b/api_docs/apm.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/apm title: "apm" image: https://source.unsplash.com/400x175/?github description: API docs for the apm plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apm'] --- import apmObj from './apm.devdocs.json'; diff --git a/api_docs/apm_data_access.mdx b/api_docs/apm_data_access.mdx index b22824b89fa02..e129ef37d878e 100644 --- a/api_docs/apm_data_access.mdx +++ b/api_docs/apm_data_access.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/apmDataAccess title: "apmDataAccess" image: https://source.unsplash.com/400x175/?github description: API docs for the apmDataAccess plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apmDataAccess'] --- import apmDataAccessObj from './apm_data_access.devdocs.json'; diff --git a/api_docs/asset_inventory.mdx b/api_docs/asset_inventory.mdx index d8a23e4a875ce..cb5a4830398e0 100644 --- a/api_docs/asset_inventory.mdx +++ b/api_docs/asset_inventory.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/assetInventory title: "assetInventory" image: https://source.unsplash.com/400x175/?github description: API docs for the assetInventory plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'assetInventory'] --- import assetInventoryObj from './asset_inventory.devdocs.json'; diff --git a/api_docs/banners.mdx b/api_docs/banners.mdx index 987faa2b56ea2..4a04cba50af62 100644 --- a/api_docs/banners.mdx +++ b/api_docs/banners.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/banners title: "banners" image: https://source.unsplash.com/400x175/?github description: API docs for the banners plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'banners'] --- import bannersObj from './banners.devdocs.json'; diff --git a/api_docs/canvas.mdx b/api_docs/canvas.mdx index f5b022977e360..aca2361019ec1 100644 --- a/api_docs/canvas.mdx +++ b/api_docs/canvas.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/canvas title: "canvas" image: https://source.unsplash.com/400x175/?github description: API docs for the canvas plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'canvas'] --- import canvasObj from './canvas.devdocs.json'; diff --git a/api_docs/cases.mdx b/api_docs/cases.mdx index ffe41330cc4a1..9dff8d4f4d078 100644 --- a/api_docs/cases.mdx +++ b/api_docs/cases.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cases title: "cases" image: https://source.unsplash.com/400x175/?github description: API docs for the cases plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cases'] --- import casesObj from './cases.devdocs.json'; diff --git a/api_docs/charts.mdx b/api_docs/charts.mdx index 80f0510d2e593..89ba88d68e9ea 100644 --- a/api_docs/charts.mdx +++ b/api_docs/charts.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/charts title: "charts" image: https://source.unsplash.com/400x175/?github description: API docs for the charts plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'charts'] --- import chartsObj from './charts.devdocs.json'; diff --git a/api_docs/cloud.mdx b/api_docs/cloud.mdx index 54a8b50d4d2c3..022499aec176d 100644 --- a/api_docs/cloud.mdx +++ b/api_docs/cloud.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloud title: "cloud" image: https://source.unsplash.com/400x175/?github description: API docs for the cloud plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloud'] --- import cloudObj from './cloud.devdocs.json'; diff --git a/api_docs/cloud_data_migration.mdx b/api_docs/cloud_data_migration.mdx index 7b94395368b48..a4135d9dbc054 100644 --- a/api_docs/cloud_data_migration.mdx +++ b/api_docs/cloud_data_migration.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloudDataMigration title: "cloudDataMigration" image: https://source.unsplash.com/400x175/?github description: API docs for the cloudDataMigration plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloudDataMigration'] --- import cloudDataMigrationObj from './cloud_data_migration.devdocs.json'; diff --git a/api_docs/cloud_defend.mdx b/api_docs/cloud_defend.mdx index 9129f52dc89da..3a02cfcc66360 100644 --- a/api_docs/cloud_defend.mdx +++ b/api_docs/cloud_defend.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloudDefend title: "cloudDefend" image: https://source.unsplash.com/400x175/?github description: API docs for the cloudDefend plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloudDefend'] --- import cloudDefendObj from './cloud_defend.devdocs.json'; diff --git a/api_docs/cloud_security_posture.mdx b/api_docs/cloud_security_posture.mdx index 2433f5e12fc7f..da24f9503f3f4 100644 --- a/api_docs/cloud_security_posture.mdx +++ b/api_docs/cloud_security_posture.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloudSecurityPosture title: "cloudSecurityPosture" image: https://source.unsplash.com/400x175/?github description: API docs for the cloudSecurityPosture plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloudSecurityPosture'] --- import cloudSecurityPostureObj from './cloud_security_posture.devdocs.json'; diff --git a/api_docs/console.devdocs.json b/api_docs/console.devdocs.json index bcc57745879c2..3c70bda7ffd0d 100644 --- a/api_docs/console.devdocs.json +++ b/api_docs/console.devdocs.json @@ -43,7 +43,7 @@ "section": "def-public.AppSetupUIPluginDependencies", "text": "AppSetupUIPluginDependencies" }, - ", object>" + ", never>" ], "path": "src/platform/plugins/shared/console/public/plugin.ts", "deprecated": false, @@ -92,7 +92,7 @@ "signature": [ "({ notifications, getStartServices, http }: ", "CoreSetup", - ", { devTools, home, share, usageCollection }: ", + "<{}, unknown>, { devTools, home, share, usageCollection }: ", { "pluginId": "console", "scope": "public", @@ -122,7 +122,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], "path": "src/platform/plugins/shared/console/public/plugin.ts", "deprecated": false, diff --git a/api_docs/console.mdx b/api_docs/console.mdx index f52c73469eb05..8f50da4bd486a 100644 --- a/api_docs/console.mdx +++ b/api_docs/console.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/console title: "console" image: https://source.unsplash.com/400x175/?github description: API docs for the console plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'console'] --- import consoleObj from './console.devdocs.json'; diff --git a/api_docs/content_management.mdx b/api_docs/content_management.mdx index ec9a4a3af7eea..bfe36155ba67c 100644 --- a/api_docs/content_management.mdx +++ b/api_docs/content_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/contentManagement title: "contentManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the contentManagement plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'contentManagement'] --- import contentManagementObj from './content_management.devdocs.json'; diff --git a/api_docs/controls.mdx b/api_docs/controls.mdx index d6a56d9ca584f..f6bc9868f8bc8 100644 --- a/api_docs/controls.mdx +++ b/api_docs/controls.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/controls title: "controls" image: https://source.unsplash.com/400x175/?github description: API docs for the controls plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'controls'] --- import controlsObj from './controls.devdocs.json'; diff --git a/api_docs/custom_integrations.mdx b/api_docs/custom_integrations.mdx index f34a73393cd04..f0762d37474c3 100644 --- a/api_docs/custom_integrations.mdx +++ b/api_docs/custom_integrations.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/customIntegrations title: "customIntegrations" image: https://source.unsplash.com/400x175/?github description: API docs for the customIntegrations plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'customIntegrations'] --- import customIntegrationsObj from './custom_integrations.devdocs.json'; diff --git a/api_docs/dashboard.mdx b/api_docs/dashboard.mdx index 909c631fa4e7c..b2267d06ac936 100644 --- a/api_docs/dashboard.mdx +++ b/api_docs/dashboard.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dashboard title: "dashboard" image: https://source.unsplash.com/400x175/?github description: API docs for the dashboard plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dashboard'] --- import dashboardObj from './dashboard.devdocs.json'; diff --git a/api_docs/dashboard_enhanced.mdx b/api_docs/dashboard_enhanced.mdx index cebaca69fed34..96e9301ebcc4a 100644 --- a/api_docs/dashboard_enhanced.mdx +++ b/api_docs/dashboard_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dashboardEnhanced title: "dashboardEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the dashboardEnhanced plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dashboardEnhanced'] --- import dashboardEnhancedObj from './dashboard_enhanced.devdocs.json'; diff --git a/api_docs/data.mdx b/api_docs/data.mdx index 431010f0234e6..7ca34fcbd24f7 100644 --- a/api_docs/data.mdx +++ b/api_docs/data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/data title: "data" image: https://source.unsplash.com/400x175/?github description: API docs for the data plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data'] --- import dataObj from './data.devdocs.json'; diff --git a/api_docs/data_quality.mdx b/api_docs/data_quality.mdx index 23e4f8a0d0999..bb1260f457334 100644 --- a/api_docs/data_quality.mdx +++ b/api_docs/data_quality.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataQuality title: "dataQuality" image: https://source.unsplash.com/400x175/?github description: API docs for the dataQuality plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataQuality'] --- import dataQualityObj from './data_quality.devdocs.json'; diff --git a/api_docs/data_query.devdocs.json b/api_docs/data_query.devdocs.json index 533d1b78d9607..f21b42ad75ce3 100644 --- a/api_docs/data_query.devdocs.json +++ b/api_docs/data_query.devdocs.json @@ -61,13 +61,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/plugins/data/public/query/filter_manager/filter_manager.ts", "deprecated": false, diff --git a/api_docs/data_query.mdx b/api_docs/data_query.mdx index 62cb911d760d8..8ffaaeaf42508 100644 --- a/api_docs/data_query.mdx +++ b/api_docs/data_query.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/data-query title: "data.query" image: https://source.unsplash.com/400x175/?github description: API docs for the data.query plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.query'] --- import dataQueryObj from './data_query.devdocs.json'; diff --git a/api_docs/data_search.devdocs.json b/api_docs/data_search.devdocs.json index c206083e9d607..6c163453f98de 100644 --- a/api_docs/data_search.devdocs.json +++ b/api_docs/data_search.devdocs.json @@ -1369,7 +1369,7 @@ "signature": [ "(core: ", "CoreSetup", - ", deps: SetupDependencies) => void" + "<{}, unknown>, deps: SetupDependencies) => void" ], "path": "src/plugins/data/server/search/session/session_service.ts", "deprecated": false, @@ -1384,7 +1384,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], "path": "src/plugins/data/server/search/session/session_service.ts", "deprecated": false, @@ -3286,13 +3286,7 @@ "description": [], "signature": [ "{ get: (key: string, context?: ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.GetUiSettingsContext", - "text": "GetUiSettingsContext" - }, + "GetUiSettingsContext", " | undefined) => Promise; }" ], "path": "src/plugins/data/server/search/types.ts", diff --git a/api_docs/data_search.mdx b/api_docs/data_search.mdx index 823bb4cf01be8..a60f74b9ccc54 100644 --- a/api_docs/data_search.mdx +++ b/api_docs/data_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/data-search title: "data.search" image: https://source.unsplash.com/400x175/?github description: API docs for the data.search plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.search'] --- import dataSearchObj from './data_search.devdocs.json'; diff --git a/api_docs/data_usage.mdx b/api_docs/data_usage.mdx index fc46154ffc99a..66bd5820c45da 100644 --- a/api_docs/data_usage.mdx +++ b/api_docs/data_usage.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataUsage title: "dataUsage" image: https://source.unsplash.com/400x175/?github description: API docs for the dataUsage plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataUsage'] --- import dataUsageObj from './data_usage.devdocs.json'; diff --git a/api_docs/data_view_editor.mdx b/api_docs/data_view_editor.mdx index 7a7008a429009..8b450c76b7081 100644 --- a/api_docs/data_view_editor.mdx +++ b/api_docs/data_view_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViewEditor title: "dataViewEditor" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViewEditor plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewEditor'] --- import dataViewEditorObj from './data_view_editor.devdocs.json'; diff --git a/api_docs/data_view_field_editor.mdx b/api_docs/data_view_field_editor.mdx index 4ad7eae039a55..40c55de31a69f 100644 --- a/api_docs/data_view_field_editor.mdx +++ b/api_docs/data_view_field_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViewFieldEditor title: "dataViewFieldEditor" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViewFieldEditor plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewFieldEditor'] --- import dataViewFieldEditorObj from './data_view_field_editor.devdocs.json'; diff --git a/api_docs/data_view_management.mdx b/api_docs/data_view_management.mdx index c3d9877f042fc..56b710444e54c 100644 --- a/api_docs/data_view_management.mdx +++ b/api_docs/data_view_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViewManagement title: "dataViewManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViewManagement plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewManagement'] --- import dataViewManagementObj from './data_view_management.devdocs.json'; diff --git a/api_docs/data_views.devdocs.json b/api_docs/data_views.devdocs.json index 6b2d3b931b588..bb0ad384cf7fe 100644 --- a/api_docs/data_views.devdocs.json +++ b/api_docs/data_views.devdocs.json @@ -5417,13 +5417,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/platform/plugins/shared/data_views/public/ui_settings_wrapper.ts", "deprecated": false, @@ -5474,21 +5468,9 @@ "description": [], "signature": [ "() => Promise) | undefined>>" ], "path": "src/platform/plugins/shared/data_views/public/ui_settings_wrapper.ts", diff --git a/api_docs/data_views.mdx b/api_docs/data_views.mdx index ad0ed590fbae5..86da07ae8471d 100644 --- a/api_docs/data_views.mdx +++ b/api_docs/data_views.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViews title: "dataViews" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViews plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViews'] --- import dataViewsObj from './data_views.devdocs.json'; diff --git a/api_docs/data_visualizer.mdx b/api_docs/data_visualizer.mdx index ffed11235730a..5db379b12caa4 100644 --- a/api_docs/data_visualizer.mdx +++ b/api_docs/data_visualizer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataVisualizer title: "dataVisualizer" image: https://source.unsplash.com/400x175/?github description: API docs for the dataVisualizer plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataVisualizer'] --- import dataVisualizerObj from './data_visualizer.devdocs.json'; diff --git a/api_docs/dataset_quality.mdx b/api_docs/dataset_quality.mdx index 0127cb07b14b3..1fc2fe575203c 100644 --- a/api_docs/dataset_quality.mdx +++ b/api_docs/dataset_quality.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/datasetQuality title: "datasetQuality" image: https://source.unsplash.com/400x175/?github description: API docs for the datasetQuality plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'datasetQuality'] --- import datasetQualityObj from './dataset_quality.devdocs.json'; diff --git a/api_docs/deprecations_by_api.mdx b/api_docs/deprecations_by_api.mdx index 7819357e9921f..51d015f63f37d 100644 --- a/api_docs/deprecations_by_api.mdx +++ b/api_docs/deprecations_by_api.mdx @@ -7,7 +7,7 @@ id: kibDevDocsDeprecationsByApi slug: /kibana-dev-docs/api-meta/deprecated-api-list-by-api title: Deprecated API usage by API description: A list of deprecated APIs, which plugins are still referencing them, and when they need to be removed by. -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- @@ -23,7 +23,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | @kbn/core, usageCollection, taskManager, security, files, monitoringCollection, banners, telemetry, securitySolution, @kbn/test-suites-xpack, cloudFullStory, customBranding, enterpriseSearch, interactiveSetup, mockIdpPlugin, spaces, ml | - | | | @kbn/core, graph, visualizations, lens, dataVisualizer, ml, aiops, dashboardEnhanced, securitySolution, eventAnnotation, @kbn/core-saved-objects-browser-mocks | - | | | @kbn/core, savedObjects, graph, visualizations, canvas, ml | - | -| | @kbn/core, @kbn/core-ui-settings-server-internal, dataViews, data, graph, taskManager, share, lens, spaces, actions, alerting, dashboard, ml, @kbn/core-saved-objects-migration-server-mocks, savedSearch, canvas, cases, fleet, maps, lists, securitySolution, apmDataAccess, apm, visualizations, infra, slo, synthetics, uptime, cloudSecurityPosture, eventAnnotation, links, savedObjectsManagement | - | +| | @kbn/core, dataViews, data, graph, taskManager, share, lens, spaces, actions, alerting, dashboard, ml, @kbn/core-saved-objects-migration-server-mocks, savedSearch, canvas, cases, fleet, maps, lists, securitySolution, apmDataAccess, apm, visualizations, infra, slo, synthetics, uptime, cloudSecurityPosture, eventAnnotation, links, savedObjectsManagement | - | | | stackAlerts, alerting, securitySolution, inputControlVis | - | | | graph, stackAlerts, inputControlVis, securitySolution | - | | | dataVisualizer, stackAlerts, expressionPartitionVis | - | @@ -49,8 +49,8 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | securitySolution | - | | | @kbn/core, graph, @kbn/core-saved-objects-browser-mocks, fleet, osquery, securitySolution, alerting, lists | - | | | @kbn/core, actions, @kbn/alerting-types, alerting, savedSearch, canvas, securitySolution, taskManager, enterpriseSearch | - | -| | @kbn/core, home, savedObjectsTagging, canvas, savedObjectsTaggingOss, upgradeAssistant, securitySolution, lists, savedObjectsManagement, @kbn/core-saved-objects-browser-mocks, @kbn/core-ui-settings-server-internal | - | -| | @kbn/core, dataViews, data, graph, lens, actions, alerting, dashboard, savedSearch, canvas, savedObjectsTagging, cases, maps, lists, securitySolution, visualizations | - | +| | @kbn/core, home, savedObjectsTagging, canvas, savedObjectsTaggingOss, upgradeAssistant, securitySolution, lists, savedObjectsManagement, @kbn/core-saved-objects-browser-mocks | - | +| | @kbn/core, dataViews, data, graph, lens, actions, alerting, dashboard, savedSearch, canvas, cases, savedObjectsTagging, maps, lists, securitySolution, visualizations | - | | | security, securitySolution, cloudLinks, cases | - | | | security, cases, securitySolution, searchPlayground | - | | | lists, securitySolution, @kbn/securitysolution-io-ts-list-types | - | @@ -115,7 +115,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | @kbn/core-lifecycle-browser-mocks, @kbn/core | - | | | @kbn/core, lens | - | | | @kbn/core | - | -| | @kbn/core, savedObjectsManagement, savedObjects, graph, visualizations, lens, savedObjectsTagging, eventAnnotation, maps, dashboard, kibanaUtils, expressions, data, savedObjectsTaggingOss, embeddable, uiActionsEnhanced, controls, canvas, dashboardEnhanced, globalSearchProviders | - | +| | @kbn/core, savedObjectsManagement, savedObjects, graph, visualizations, lens, savedObjectsTagging, eventAnnotation, maps, streamsApp, dashboard, kibanaUtils, expressions, data, savedObjectsTaggingOss, embeddable, uiActionsEnhanced, controls, canvas, dashboardEnhanced, globalSearchProviders | - | | | @kbn/core, data, spaces, dashboard, savedSearch, visualizations, cloudSecurityPosture | - | | | graph, visTypeTimeseries, dataViewManagement, dataViews | - | | | graph, visTypeTimeseries, dataViewManagement, dataViews | - | @@ -157,7 +157,6 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | aiAssistantManagementSelection, observabilityAiAssistantManagement | - | | | @kbn/react-kibana-context-styled, kibanaReact | - | | | indexLifecycleManagement | - | -| | observabilityAIAssistantApp | - | | | dashboard | - | | | dashboard | - | | | @kbn/reporting-public, discover | - | diff --git a/api_docs/deprecations_by_plugin.mdx b/api_docs/deprecations_by_plugin.mdx index cd4c4be8053e0..90429fd6ada8d 100644 --- a/api_docs/deprecations_by_plugin.mdx +++ b/api_docs/deprecations_by_plugin.mdx @@ -7,7 +7,7 @@ id: kibDevDocsDeprecationsByPlugin slug: /kibana-dev-docs/api-meta/deprecated-api-list-by-plugin title: Deprecated API usage by plugin description: A list of deprecated APIs, which plugins are still referencing them, and when they need to be removed by. -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- @@ -32,7 +32,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [table_list_view.tsx](https://github.com/elastic/kibana/tree/main/packages/content-management/table_list_view/src/table_list_view.tsx#:~:text=withoutPageTemplateWrapper), [table_list_view.tsx](https://github.com/elastic/kibana/tree/main/packages/content-management/table_list_view/src/table_list_view.tsx#:~:text=withoutPageTemplateWrapper) | - | +| | [table_list_view.tsx](https://github.com/elastic/kibana/tree/main/src/platform/packages/shared/content-management/table_list_view/src/table_list_view.tsx#:~:text=withoutPageTemplateWrapper), [table_list_view.tsx](https://github.com/elastic/kibana/tree/main/src/platform/packages/shared/content-management/table_list_view/src/table_list_view.tsx#:~:text=withoutPageTemplateWrapper) | - | @@ -89,12 +89,12 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [index.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/browser-internal/index.ts#:~:text=SavedObjectsService), [core_system.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/root/browser-internal/src/core_system.ts#:~:text=SavedObjectsService), [core_system.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/root/browser-internal/src/core_system.ts#:~:text=SavedObjectsService), [core_system.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/root/browser-internal/src/core_system.ts#:~:text=SavedObjectsService) | - | | | [mocks.ts](https://github.com/elastic/kibana/tree/main/src/core/public/mocks.ts#:~:text=savedObjectsServiceMock), [plugins_service.test.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/plugins/browser-internal/src/plugins_service.test.ts#:~:text=savedObjectsServiceMock), [plugins_service.test.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/plugins/browser-internal/src/plugins_service.test.ts#:~:text=savedObjectsServiceMock) | - | | | [mocks.ts](https://github.com/elastic/kibana/tree/main/src/core/public/mocks.ts#:~:text=simpleSavedObjectMock) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/common/index.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/browser-internal/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject)+ 59 more | - | +| | [index.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/common/index.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/browser-internal/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject), [simple_saved_object.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts#:~:text=SavedObject)+ 62 more | - | | | [index.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/common/index.ts#:~:text=SavedObjectAttributeSingle), [index.ts](https://github.com/elastic/kibana/tree/main/src/core/public/index.ts#:~:text=SavedObjectAttributeSingle), [index.ts](https://github.com/elastic/kibana/tree/main/src/core/types/index.ts#:~:text=SavedObjectAttributeSingle) | - | | | [index.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/common/index.ts#:~:text=SavedObjectAttribute), [index.ts](https://github.com/elastic/kibana/tree/main/src/core/public/index.ts#:~:text=SavedObjectAttribute), [index.ts](https://github.com/elastic/kibana/tree/main/src/core/types/index.ts#:~:text=SavedObjectAttribute) | - | | | [index.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/common/index.ts#:~:text=SavedObjectAttributes), [index.ts](https://github.com/elastic/kibana/tree/main/src/core/public/index.ts#:~:text=SavedObjectAttributes), [index.ts](https://github.com/elastic/kibana/tree/main/src/core/types/index.ts#:~:text=SavedObjectAttributes) | - | | | [index.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/common/index.ts#:~:text=SavedObjectReference), [create.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/apis/create.ts#:~:text=SavedObjectReference), [create.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/apis/create.ts#:~:text=SavedObjectReference), [bulk_update.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/apis/bulk_update.ts#:~:text=SavedObjectReference), [bulk_update.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/apis/bulk_update.ts#:~:text=SavedObjectReference), [update.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/apis/update.ts#:~:text=SavedObjectReference), [update.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-browser/src/apis/update.ts#:~:text=SavedObjectReference), [index.ts](https://github.com/elastic/kibana/tree/main/src/core/public/index.ts#:~:text=SavedObjectReference), [index.ts](https://github.com/elastic/kibana/tree/main/src/core/types/index.ts#:~:text=SavedObjectReference) | - | -| | [saved_objects_type.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/server/src/saved_objects_type.ts#:~:text=migrations), [saved_objects_type.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/server/src/saved_objects_type.ts#:~:text=migrations), [version_map.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/base-server-internal/src/model_version/version_map.ts#:~:text=migrations), [version_map.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/base-server-internal/src/model_version/version_map.ts#:~:text=migrations), [version_map.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/base-server-internal/src/model_version/version_map.ts#:~:text=migrations), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=migrations), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=migrations), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=migrations), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=migrations), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=migrations)+ 109 more | - | +| | [saved_objects_type.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/server/src/saved_objects_type.ts#:~:text=migrations), [saved_objects_type.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/server/src/saved_objects_type.ts#:~:text=migrations), [version_map.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/base-server-internal/src/model_version/version_map.ts#:~:text=migrations), [version_map.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/base-server-internal/src/model_version/version_map.ts#:~:text=migrations), [version_map.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/base-server-internal/src/model_version/version_map.ts#:~:text=migrations), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=migrations), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=migrations), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=migrations), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=migrations), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=migrations)+ 110 more | - | | | [saved_objects_type.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/server/src/saved_objects_type.ts#:~:text=schemas), [validation.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/validation.ts#:~:text=schemas), [validation.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/validation.ts#:~:text=schemas), [validation.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/validation.ts#:~:text=schemas), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=schemas), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=schemas), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=schemas), [extract_migration_info.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/test-helpers/so-type-serializer/src/extract_migration_info.ts#:~:text=schemas), [extract_migration_info.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/test-helpers/so-type-serializer/src/extract_migration_info.ts#:~:text=schemas), [extract_migration_info.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/test-helpers/so-type-serializer/src/extract_migration_info.ts#:~:text=schemas)+ 19 more | - | | | [utils.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/utils.ts#:~:text=convertToMultiNamespaceTypeVersion), [internal_transforms.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/internal_transforms.ts#:~:text=convertToMultiNamespaceTypeVersion), [internal_transforms.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/internal_transforms.ts#:~:text=convertToMultiNamespaceTypeVersion), [internal_transforms.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/internal_transforms.ts#:~:text=convertToMultiNamespaceTypeVersion), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=convertToMultiNamespaceTypeVersion), [validate_migrations.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts#:~:text=convertToMultiNamespaceTypeVersion), [extract_migration_info.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/test-helpers/so-type-serializer/src/extract_migration_info.ts#:~:text=convertToMultiNamespaceTypeVersion), [extract_migration_info.test.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/test-helpers/so-type-serializer/src/extract_migration_info.test.ts#:~:text=convertToMultiNamespaceTypeVersion), [get_migration_hash.test.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/test-helpers/so-type-serializer/src/get_migration_hash.test.ts#:~:text=convertToMultiNamespaceTypeVersion), [get_migration_hash.test.ts](https://github.com/elastic/kibana/tree/main/src/core/packages/test-helpers/so-type-serializer/src/get_migration_hash.test.ts#:~:text=convertToMultiNamespaceTypeVersion)+ 22 more | - | @@ -151,15 +151,6 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] -## @kbn/core-ui-settings-server-internal - -| Deprecated API | Reference location(s) | Remove By | -| ---------------|-----------|-----------| -| | [transforms.test.ts](https://github.com/elastic/kibana/tree/main/packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/transforms.test.ts#:~:text=SavedObject), [transforms.test.ts](https://github.com/elastic/kibana/tree/main/packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/transforms.test.ts#:~:text=SavedObject), [transforms.test.ts](https://github.com/elastic/kibana/tree/main/packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/transforms.test.ts#:~:text=SavedObject) | - | -| | [ui_settings.ts](https://github.com/elastic/kibana/tree/main/packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/ui_settings.ts#:~:text=migrations) | - | - - - ## @kbn/esql-utils | Deprecated API | Reference location(s) | Remove By | @@ -220,7 +211,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [printable_pdf.ts](https://github.com/elastic/kibana/tree/main/packages/kbn-reporting/export_types/pdf/printable_pdf.ts#:~:text=JobParamsPDFDeprecated), [printable_pdf.ts](https://github.com/elastic/kibana/tree/main/packages/kbn-reporting/export_types/pdf/printable_pdf.ts#:~:text=JobParamsPDFDeprecated), [printable_pdf.ts](https://github.com/elastic/kibana/tree/main/packages/kbn-reporting/export_types/pdf/printable_pdf.ts#:~:text=JobParamsPDFDeprecated) | - | +| | [printable_pdf.ts](https://github.com/elastic/kibana/tree/main/src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts#:~:text=JobParamsPDFDeprecated), [printable_pdf.ts](https://github.com/elastic/kibana/tree/main/src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts#:~:text=JobParamsPDFDeprecated), [printable_pdf.ts](https://github.com/elastic/kibana/tree/main/src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts#:~:text=JobParamsPDFDeprecated) | - | @@ -228,7 +219,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [register_pdf_png_modal_reporting.tsx](https://github.com/elastic/kibana/tree/main/packages/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx#:~:text=shareableUrlForSavedObject) | - | +| | [register_pdf_png_modal_reporting.tsx](https://github.com/elastic/kibana/tree/main/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx#:~:text=shareableUrlForSavedObject) | - | @@ -976,14 +967,6 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] -## observabilityAIAssistantApp - -| Deprecated API | Reference location(s) | Remove By | -| ---------------|-----------|-----------| -| | [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx#:~:text=AssistantAvatar), [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx#:~:text=AssistantAvatar) | - | - - - ## observabilityAiAssistantManagement | Deprecated API | Reference location(s) | Remove By | @@ -1105,10 +1088,10 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [request_handler_context.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/server/request_handler_context.ts#:~:text=authz) | - | -| | [get_table_column_definition.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx#:~:text=SavedObject), [get_table_column_definition.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx#:~:text=SavedObject), [get_table_column_definition.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx#:~:text=SavedObject), [types.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/common/types.ts#:~:text=SavedObject), [types.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/common/types.ts#:~:text=SavedObject), [utils.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts#:~:text=SavedObject), [utils.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts#:~:text=SavedObject), [utils.test.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts#:~:text=SavedObject), [utils.test.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts#:~:text=SavedObject), [utils.test.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts#:~:text=SavedObject)+ 3 more | - | -| | [get_table_column_definition.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx#:~:text=SavedObjectReference), [get_table_column_definition.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [utils.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts#:~:text=SavedObjectReference)+ 12 more | - | -| | [tag.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/private/saved_objects_tagging/server/saved_objects/tag.ts#:~:text=convertToMultiNamespaceTypeVersion) | - | +| | [request_handler_context.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/server/request_handler_context.ts#:~:text=authz) | - | +| | [get_table_column_definition.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx#:~:text=SavedObject), [get_table_column_definition.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx#:~:text=SavedObject), [get_table_column_definition.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx#:~:text=SavedObject), [types.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/common/types.ts#:~:text=SavedObject), [types.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/common/types.ts#:~:text=SavedObject), [utils.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.ts#:~:text=SavedObject), [utils.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.ts#:~:text=SavedObject), [utils.test.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.test.ts#:~:text=SavedObject), [utils.test.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.test.ts#:~:text=SavedObject), [utils.test.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.test.ts#:~:text=SavedObject)+ 3 more | - | +| | [get_table_column_definition.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx#:~:text=SavedObjectReference), [get_table_column_definition.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [references.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts#:~:text=SavedObjectReference), [utils.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.ts#:~:text=SavedObjectReference)+ 12 more | - | +| | [tag.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/saved_objects_tagging/server/saved_objects/tag.ts#:~:text=convertToMultiNamespaceTypeVersion) | - | @@ -1169,7 +1152,7 @@ migrates to using the Kibana Privilege model: https://github.com/elastic/kibana/ | | [license_service.test.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/common/licensing/license_service.test.ts#:~:text=mode), [license_service.test.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/common/licensing/license_service.test.ts#:~:text=mode), [license_service.test.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/common/licensing/license_service.test.ts#:~:text=mode) | 8.8.0 | | | [plugin.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/plugin.ts#:~:text=license%24) | 8.8.0 | | | [logout_app.test.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/public/authentication/logout/logout_app.test.ts#:~:text=appBasePath) | - | -| | [oidc.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts#:~:text=authRequired), [oidc.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts#:~:text=authRequired), [oidc.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts#:~:text=authRequired), [oidc.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts#:~:text=authRequired), [oidc.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts#:~:text=authRequired), [saml.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/authentication/saml.ts#:~:text=authRequired), [reset_session_page.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/authorization/reset_session_page.ts#:~:text=authRequired), [capture_url.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/views/capture_url.ts#:~:text=authRequired), [logged_out.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/views/logged_out.ts#:~:text=authRequired), [login.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/views/login.ts#:~:text=authRequired)+ 10 more | - | +| | [reset_session_page.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/authorization/reset_session_page.ts#:~:text=authRequired), [capture_url.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/views/capture_url.ts#:~:text=authRequired), [logged_out.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/views/logged_out.ts#:~:text=authRequired), [login.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/views/login.ts#:~:text=authRequired), [login.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/views/login.ts#:~:text=authRequired), [logout.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/views/logout.ts#:~:text=authRequired), [record_violations.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/routes/analytics/record_violations.ts#:~:text=authRequired), [anonymous.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/authentication/providers/anonymous.ts#:~:text=authRequired), [basic.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/authentication/providers/basic.ts#:~:text=authRequired), [kerberos.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/authentication/providers/kerberos.ts#:~:text=authRequired)+ 4 more | - | | | [config.ts](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/server/config.ts#:~:text=max) | - | | | [plugin.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/public/plugin.tsx#:~:text=authc) | - | | | [plugin.tsx](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/security/public/plugin.tsx#:~:text=authc) | - | @@ -1296,6 +1279,14 @@ migrates to using the Kibana Privilege model: https://github.com/elastic/kibana/ +## streamsApp + +| Deprecated API | Reference location(s) | Remove By | +| ---------------|-----------|-----------| +| | [to_reference_list.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/to_reference_list.ts#:~:text=SavedObjectReference), [to_reference_list.ts](https://github.com/elastic/kibana/tree/main/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/to_reference_list.ts#:~:text=SavedObjectReference) | - | + + + ## synthetics | Deprecated API | Reference location(s) | Remove By | diff --git a/api_docs/deprecations_by_team.mdx b/api_docs/deprecations_by_team.mdx index c685fd8042fd1..15b3cf22b523a 100644 --- a/api_docs/deprecations_by_team.mdx +++ b/api_docs/deprecations_by_team.mdx @@ -7,7 +7,7 @@ id: kibDevDocsDeprecationsDueByTeam slug: /kibana-dev-docs/api-meta/deprecations-due-by-team title: Deprecated APIs due to be removed, by team description: Lists the teams that are referencing deprecated APIs with a remove by date. -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- diff --git a/api_docs/dev_tools.devdocs.json b/api_docs/dev_tools.devdocs.json index d15e8403e005a..9bda22baf427a 100644 --- a/api_docs/dev_tools.devdocs.json +++ b/api_docs/dev_tools.devdocs.json @@ -27,7 +27,7 @@ "section": "def-public.DevToolsSetup", "text": "DevToolsSetup" }, - ", void, object, object>" + ", void, never, never>" ], "path": "src/platform/plugins/shared/dev_tools/public/plugin.ts", "deprecated": false, @@ -59,7 +59,7 @@ "signature": [ "(coreSetup: ", "CoreSetup", - ", { urlForwarding }: { urlForwarding: { forwardApp: (legacyAppId: string, newAppId: string, rewritePath?: ((legacyPath: string) => string) | undefined) => void; }; }) => { register: (devToolArgs: ", + "<{}, unknown>, { urlForwarding }: { urlForwarding: { forwardApp: (legacyAppId: string, newAppId: string, rewritePath?: ((legacyPath: string) => string) | undefined) => void; }; }) => { register: (devToolArgs: ", "CreateDevToolArgs", ") => ", "DevToolApp", @@ -78,7 +78,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], "path": "src/platform/plugins/shared/dev_tools/public/plugin.ts", "deprecated": false, diff --git a/api_docs/dev_tools.mdx b/api_docs/dev_tools.mdx index 5361e8c22c420..8cbc785f08711 100644 --- a/api_docs/dev_tools.mdx +++ b/api_docs/dev_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/devTools title: "devTools" image: https://source.unsplash.com/400x175/?github description: API docs for the devTools plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'devTools'] --- import devToolsObj from './dev_tools.devdocs.json'; diff --git a/api_docs/discover.devdocs.json b/api_docs/discover.devdocs.json index 571e4bae6cafb..70e9c82a1c41b 100644 --- a/api_docs/discover.devdocs.json +++ b/api_docs/discover.devdocs.json @@ -1482,13 +1482,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/platform/plugins/shared/discover/public/build_services.ts", "deprecated": false, @@ -1502,13 +1496,7 @@ "label": "settings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.SettingsStart", - "text": "SettingsStart" - } + "SettingsStart" ], "path": "src/platform/plugins/shared/discover/public/build_services.ts", "deprecated": false, diff --git a/api_docs/discover.mdx b/api_docs/discover.mdx index e4db34e0c2241..1f2826c35f4bd 100644 --- a/api_docs/discover.mdx +++ b/api_docs/discover.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/discover title: "discover" image: https://source.unsplash.com/400x175/?github description: API docs for the discover plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discover'] --- import discoverObj from './discover.devdocs.json'; diff --git a/api_docs/discover_enhanced.mdx b/api_docs/discover_enhanced.mdx index e5222b84238cb..b119fc5c22238 100644 --- a/api_docs/discover_enhanced.mdx +++ b/api_docs/discover_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/discoverEnhanced title: "discoverEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the discoverEnhanced plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discoverEnhanced'] --- import discoverEnhancedObj from './discover_enhanced.devdocs.json'; diff --git a/api_docs/discover_shared.mdx b/api_docs/discover_shared.mdx index 6539e62e33835..786e366a913ea 100644 --- a/api_docs/discover_shared.mdx +++ b/api_docs/discover_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/discoverShared title: "discoverShared" image: https://source.unsplash.com/400x175/?github description: API docs for the discoverShared plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discoverShared'] --- import discoverSharedObj from './discover_shared.devdocs.json'; diff --git a/api_docs/ecs_data_quality_dashboard.mdx b/api_docs/ecs_data_quality_dashboard.mdx index 3563768195169..d2bc8a7f93e41 100644 --- a/api_docs/ecs_data_quality_dashboard.mdx +++ b/api_docs/ecs_data_quality_dashboard.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ecsDataQualityDashboard title: "ecsDataQualityDashboard" image: https://source.unsplash.com/400x175/?github description: API docs for the ecsDataQualityDashboard plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ecsDataQualityDashboard'] --- import ecsDataQualityDashboardObj from './ecs_data_quality_dashboard.devdocs.json'; diff --git a/api_docs/elastic_assistant.mdx b/api_docs/elastic_assistant.mdx index 8b579d115d083..2c6ec6e7d6260 100644 --- a/api_docs/elastic_assistant.mdx +++ b/api_docs/elastic_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/elasticAssistant title: "elasticAssistant" image: https://source.unsplash.com/400x175/?github description: API docs for the elasticAssistant plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'elasticAssistant'] --- import elasticAssistantObj from './elastic_assistant.devdocs.json'; diff --git a/api_docs/embeddable.devdocs.json b/api_docs/embeddable.devdocs.json index 46e0b8ac91a27..ba3a7e414ba4b 100644 --- a/api_docs/embeddable.devdocs.json +++ b/api_docs/embeddable.devdocs.json @@ -11,7 +11,7 @@ "description": [ "\nA wrapper around the session storage which provides strongly typed helper methods\nfor common incoming and outgoing states used by the embeddable infrastructure.\n" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -22,7 +22,7 @@ "tags": [], "label": "isTransferInProgress", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false }, @@ -36,7 +36,7 @@ "signature": [ "any" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -52,7 +52,7 @@ "NavigateToAppOptions", " | undefined) => Promise" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -68,7 +68,7 @@ "Observable", "" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -85,7 +85,7 @@ "PublicAppInfo", "> | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -107,7 +107,7 @@ }, " | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -127,7 +127,7 @@ "signature": [ "(appId: string) => string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -143,7 +143,7 @@ "signature": [ "string" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -171,7 +171,7 @@ }, " | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -187,7 +187,7 @@ "signature": [ "string" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -204,7 +204,7 @@ "signature": [ "boolean | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -224,7 +224,7 @@ "signature": [ "(appId?: string | undefined) => void" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -240,7 +240,7 @@ "signature": [ "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -268,7 +268,7 @@ }, " | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -284,7 +284,7 @@ "signature": [ "string" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -301,7 +301,7 @@ "signature": [ "boolean | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -329,7 +329,7 @@ }, "; } | undefined) => Promise" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -343,7 +343,7 @@ "signature": [ "string" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -355,7 +355,7 @@ "tags": [], "label": "options", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -369,7 +369,7 @@ "signature": [ "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false }, @@ -383,7 +383,7 @@ "signature": [ "boolean | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false }, @@ -397,7 +397,7 @@ "signature": [ "boolean | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false }, @@ -417,7 +417,7 @@ "text": "EmbeddableEditorState" } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false } @@ -446,7 +446,7 @@ }, "; } | undefined) => Promise" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -460,7 +460,7 @@ "signature": [ "string" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -472,7 +472,7 @@ "tags": [], "label": "options", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -486,7 +486,7 @@ "signature": [ "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false }, @@ -506,7 +506,7 @@ "text": "EmbeddablePackageState" } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/embeddable_state_transfer.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/embeddable_state_transfer.ts", "deprecated": false, "trackAdoption": false } @@ -535,7 +535,7 @@ }, " extends Error" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/panel_incompatible_error.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -546,7 +546,7 @@ "tags": [], "label": "code", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/panel_incompatible_error.ts", "deprecated": false, "trackAdoption": false }, @@ -560,7 +560,7 @@ "signature": [ "any" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/panel_incompatible_error.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -586,7 +586,7 @@ }, " extends Error" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/panel_not_found_error.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -597,7 +597,7 @@ "tags": [], "label": "code", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/panel_not_found_error.ts", "deprecated": false, "trackAdoption": false }, @@ -611,7 +611,7 @@ "signature": [ "any" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/errors.ts", + "path": "src/platform/plugins/shared/embeddable/public/react_embeddable_system/panel_not_found_error.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -647,7 +647,7 @@ "text": "MultiValueClickContext" } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -667,7 +667,7 @@ "text": "ChartActionContext" } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -701,7 +701,7 @@ "text": "RangeSelectContext" } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -721,7 +721,7 @@ "text": "ChartActionContext" } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -755,7 +755,7 @@ "text": "RowClickContext" } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -775,7 +775,7 @@ "text": "ChartActionContext" } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -809,7 +809,7 @@ "text": "ValueClickContext" } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -829,7 +829,7 @@ "text": "ChartActionContext" } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1264,7 +1264,7 @@ "description": [ "\nA state package that contains information an editor will need to create or edit an embeddable then redirect back." ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1275,7 +1275,7 @@ "tags": [], "label": "originatingApp", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1289,7 +1289,7 @@ "signature": [ "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1303,7 +1303,7 @@ "signature": [ "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1317,7 +1317,7 @@ "signature": [ "object | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1333,7 +1333,7 @@ "signature": [ "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false } @@ -1349,7 +1349,7 @@ "description": [ "\nA state package that contains all fields necessary to create or update an embeddable by reference or by value in a container." ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1360,7 +1360,7 @@ "tags": [], "label": "type", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1376,7 +1376,7 @@ "signature": [ "object" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1390,7 +1390,7 @@ "signature": [ "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1404,7 +1404,7 @@ "signature": [ "{ width?: number | undefined; height?: number | undefined; } | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1420,7 +1420,7 @@ "signature": [ "string | undefined" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/state_transfer/types.ts", + "path": "src/platform/plugins/shared/embeddable/public/state_transfer/types.ts", "deprecated": false, "trackAdoption": false } @@ -1470,78 +1470,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "embeddable", - "id": "def-public.PropertySpec", - "type": "Interface", - "tags": [], - "label": "PropertySpec", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/types.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.PropertySpec.displayName", - "type": "string", - "tags": [], - "label": "displayName", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/types.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.PropertySpec.accessPath", - "type": "string", - "tags": [], - "label": "accessPath", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/types.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.PropertySpec.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/types.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.PropertySpec.description", - "type": "string", - "tags": [], - "label": "description", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/types.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.PropertySpec.value", - "type": "string", - "tags": [], - "label": "value", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/types.ts", - "deprecated": false, - "trackAdoption": false - } - ], - "initialIsOpen": false - }, { "parentPluginId": "embeddable", "id": "def-public.ReactEmbeddableFactory", @@ -1813,7 +1741,7 @@ "signature": [ "\"CELL_VALUE_TRIGGER\"" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1844,7 +1772,7 @@ }, " | undefined; }[]; }" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1889,7 +1817,7 @@ "text": "RowClickContext" } ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1904,7 +1832,7 @@ "signature": [ "\"CONTEXT_MENU_TRIGGER\"" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1919,7 +1847,7 @@ "signature": [ "\"MULTI_VALUE_CLICK_TRIGGER\"" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1958,7 +1886,7 @@ }, " | undefined; }[]; timeFieldName?: string | undefined; negate?: boolean | undefined; }; }" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1973,7 +1901,7 @@ "signature": [ "\"PANEL_BADGE_TRIGGER\"" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1988,7 +1916,7 @@ "signature": [ "\"PANEL_HOVER_TRIGGER\"" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2003,7 +1931,7 @@ "signature": [ "\"PANEL_NOTIFICATION_TRIGGER\"" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2034,7 +1962,7 @@ }, "; column: number; range: number[]; timeFieldName?: string | undefined; }; }" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2049,7 +1977,7 @@ "signature": [ "\"SELECT_RANGE_TRIGGER\"" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2064,7 +1992,7 @@ "signature": [ "\"VALUE_CLICK_TRIGGER\"" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2095,7 +2023,7 @@ }, ", \"columns\" | \"rows\">; column: number; row: number; value: any; }[]; timeFieldName?: string | undefined; negate?: boolean | undefined; }; }" ], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2104,45 +2032,102 @@ "objects": [ { "parentPluginId": "embeddable", - "id": "def-public.cellValueTrigger", + "id": "def-public.ADD_PANEL_ANNOTATION_GROUP", "type": "Object", "tags": [], - "label": "cellValueTrigger", + "label": "ADD_PANEL_ANNOTATION_GROUP", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.cellValueTrigger.id", + "id": "def-public.ADD_PANEL_ANNOTATION_GROUP.id", "type": "string", "tags": [], "label": "id", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", "deprecated": false, "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.cellValueTrigger.title", + "id": "def-public.ADD_PANEL_ANNOTATION_GROUP.getDisplayName", + "type": "Function", + "tags": [], + "label": "getDisplayName", + "description": [], + "signature": [ + "() => string" + ], + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", + "deprecated": false, + "trackAdoption": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "embeddable", + "id": "def-public.ADD_PANEL_ANNOTATION_GROUP.order", + "type": "number", + "tags": [], + "label": "order", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", + "deprecated": false, + "trackAdoption": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.ADD_PANEL_LEGACY_GROUP", + "type": "Object", + "tags": [], + "label": "ADD_PANEL_LEGACY_GROUP", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.ADD_PANEL_LEGACY_GROUP.id", "type": "string", "tags": [], - "label": "title", + "label": "id", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", "deprecated": false, "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.cellValueTrigger.description", - "type": "string", + "id": "def-public.ADD_PANEL_LEGACY_GROUP.getDisplayName", + "type": "Function", "tags": [], - "label": "description", + "label": "getDisplayName", + "description": [], + "signature": [ + "() => string" + ], + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", + "deprecated": false, + "trackAdoption": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "embeddable", + "id": "def-public.ADD_PANEL_LEGACY_GROUP.order", + "type": "number", + "tags": [], + "label": "order", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", "deprecated": false, "trackAdoption": false } @@ -2151,183 +2136,115 @@ }, { "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING", + "id": "def-public.ADD_PANEL_OTHER_GROUP", "type": "Object", "tags": [], - "label": "COMMON_EMBEDDABLE_GROUPING", + "label": "ADD_PANEL_OTHER_GROUP", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", "deprecated": false, "trackAdoption": false, "children": [ { "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.annotation", - "type": "Object", + "id": "def-public.ADD_PANEL_OTHER_GROUP.id", + "type": "string", "tags": [], - "label": "annotation", + "label": "id", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.annotation.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.annotation.getDisplayName", - "type": "Function", - "tags": [], - "label": "getDisplayName", - "description": [], - "signature": [ - "() => string" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.annotation.order", - "type": "number", - "tags": [], - "label": "order", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", - "deprecated": false, - "trackAdoption": false - } - ] + "trackAdoption": false }, { "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.other", - "type": "Object", + "id": "def-public.ADD_PANEL_OTHER_GROUP.getDisplayName", + "type": "Function", "tags": [], - "label": "other", + "label": "getDisplayName", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", + "signature": [ + "() => string" + ], + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", "deprecated": false, "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.other.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.other.getDisplayName", - "type": "Function", - "tags": [], - "label": "getDisplayName", - "description": [], - "signature": [ - "() => string" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.other.getIconType", - "type": "Function", - "tags": [], - "label": "getIconType", - "description": [], - "signature": [ - "() => string" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.other.order", - "type": "number", - "tags": [], - "label": "order", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", - "deprecated": false, - "trackAdoption": false - } - ] + "children": [], + "returnComment": [] }, { "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.legacy", - "type": "Object", + "id": "def-public.ADD_PANEL_OTHER_GROUP.getIconType", + "type": "Function", "tags": [], - "label": "legacy", + "label": "getIconType", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", + "signature": [ + "() => string" + ], + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", "deprecated": false, "trackAdoption": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.legacy.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", - "deprecated": false, - "trackAdoption": false - }, - { - "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.legacy.getDisplayName", - "type": "Function", - "tags": [], - "label": "getDisplayName", - "description": [], - "signature": [ - "() => string" - ], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "embeddable", - "id": "def-public.COMMON_EMBEDDABLE_GROUPING.legacy.order", - "type": "number", - "tags": [], - "label": "order", - "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts", - "deprecated": false, - "trackAdoption": false - } - ] + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "embeddable", + "id": "def-public.ADD_PANEL_OTHER_GROUP.order", + "type": "number", + "tags": [], + "label": "order", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/add_panel_groups.ts", + "deprecated": false, + "trackAdoption": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.cellValueTrigger", + "type": "Object", + "tags": [], + "label": "cellValueTrigger", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.cellValueTrigger.id", + "type": "string", + "tags": [], + "label": "id", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.cellValueTrigger.title", + "type": "string", + "tags": [], + "label": "title", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.cellValueTrigger.description", + "type": "string", + "tags": [], + "label": "description", + "description": [], + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", + "deprecated": false, + "trackAdoption": false } ], "initialIsOpen": false @@ -2339,7 +2256,7 @@ "tags": [], "label": "contextMenuTrigger", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2350,7 +2267,7 @@ "tags": [], "label": "id", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false }, @@ -2361,7 +2278,7 @@ "tags": [], "label": "title", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false }, @@ -2372,7 +2289,7 @@ "tags": [], "label": "description", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false } @@ -2386,7 +2303,7 @@ "tags": [], "label": "panelBadgeTrigger", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2397,7 +2314,7 @@ "tags": [], "label": "id", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false }, @@ -2408,7 +2325,7 @@ "tags": [], "label": "title", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false }, @@ -2419,7 +2336,7 @@ "tags": [], "label": "description", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false } @@ -2433,7 +2350,7 @@ "tags": [], "label": "panelHoverTrigger", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2444,7 +2361,7 @@ "tags": [], "label": "id", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false }, @@ -2455,7 +2372,7 @@ "tags": [], "label": "title", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false }, @@ -2466,7 +2383,7 @@ "tags": [], "label": "description", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false } @@ -2480,7 +2397,7 @@ "tags": [], "label": "panelNotificationTrigger", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2491,7 +2408,7 @@ "tags": [], "label": "id", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false }, @@ -2502,7 +2419,7 @@ "tags": [], "label": "title", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false }, @@ -2513,7 +2430,7 @@ "tags": [], "label": "description", "description": [], - "path": "src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts", + "path": "src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/embeddable.mdx b/api_docs/embeddable.mdx index 4b10e5445ade1..231e051266505 100644 --- a/api_docs/embeddable.mdx +++ b/api_docs/embeddable.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/embeddable title: "embeddable" image: https://source.unsplash.com/400x175/?github description: API docs for the embeddable plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'embeddable'] --- import embeddableObj from './embeddable.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kib | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 179 | 0 | 152 | 2 | +| 172 | 0 | 145 | 2 | ## Client diff --git a/api_docs/embeddable_enhanced.mdx b/api_docs/embeddable_enhanced.mdx index 70bb4babe41ef..e1bfdf21a2488 100644 --- a/api_docs/embeddable_enhanced.mdx +++ b/api_docs/embeddable_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/embeddableEnhanced title: "embeddableEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the embeddableEnhanced plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'embeddableEnhanced'] --- import embeddableEnhancedObj from './embeddable_enhanced.devdocs.json'; diff --git a/api_docs/encrypted_saved_objects.mdx b/api_docs/encrypted_saved_objects.mdx index 8fcac142068fc..4b7525e17da4e 100644 --- a/api_docs/encrypted_saved_objects.mdx +++ b/api_docs/encrypted_saved_objects.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/encryptedSavedObjects title: "encryptedSavedObjects" image: https://source.unsplash.com/400x175/?github description: API docs for the encryptedSavedObjects plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'encryptedSavedObjects'] --- import encryptedSavedObjectsObj from './encrypted_saved_objects.devdocs.json'; diff --git a/api_docs/enterprise_search.mdx b/api_docs/enterprise_search.mdx index cd02ce3d29f65..663e13b754306 100644 --- a/api_docs/enterprise_search.mdx +++ b/api_docs/enterprise_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/enterpriseSearch title: "enterpriseSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the enterpriseSearch plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'enterpriseSearch'] --- import enterpriseSearchObj from './enterprise_search.devdocs.json'; diff --git a/api_docs/entities_data_access.mdx b/api_docs/entities_data_access.mdx index bc8229d3c556a..ca8c8a4d8eb78 100644 --- a/api_docs/entities_data_access.mdx +++ b/api_docs/entities_data_access.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/entitiesDataAccess title: "entitiesDataAccess" image: https://source.unsplash.com/400x175/?github description: API docs for the entitiesDataAccess plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'entitiesDataAccess'] --- import entitiesDataAccessObj from './entities_data_access.devdocs.json'; diff --git a/api_docs/entity_manager.devdocs.json b/api_docs/entity_manager.devdocs.json index f17a2926e6606..6932d6810133a 100644 --- a/api_docs/entity_manager.devdocs.json +++ b/api_docs/entity_manager.devdocs.json @@ -760,7 +760,7 @@ "CoreStart", " | ", "CoreSetup", - "" + "<{}, unknown>" ], "path": "x-pack/platform/plugins/shared/entity_manager/public/lib/entity_client.ts", "deprecated": false, diff --git a/api_docs/entity_manager.mdx b/api_docs/entity_manager.mdx index 16899fff82efc..25efbb6b9ec4d 100644 --- a/api_docs/entity_manager.mdx +++ b/api_docs/entity_manager.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/entityManager title: "entityManager" image: https://source.unsplash.com/400x175/?github description: API docs for the entityManager plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'entityManager'] --- import entityManagerObj from './entity_manager.devdocs.json'; diff --git a/api_docs/es_ui_shared.mdx b/api_docs/es_ui_shared.mdx index b1f453d6f0466..7ef13a3b82fac 100644 --- a/api_docs/es_ui_shared.mdx +++ b/api_docs/es_ui_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/esUiShared title: "esUiShared" image: https://source.unsplash.com/400x175/?github description: API docs for the esUiShared plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'esUiShared'] --- import esUiSharedObj from './es_ui_shared.devdocs.json'; diff --git a/api_docs/esql.mdx b/api_docs/esql.mdx index 41568f391e720..169166fc50877 100644 --- a/api_docs/esql.mdx +++ b/api_docs/esql.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/esql title: "esql" image: https://source.unsplash.com/400x175/?github description: API docs for the esql plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'esql'] --- import esqlObj from './esql.devdocs.json'; diff --git a/api_docs/esql_data_grid.mdx b/api_docs/esql_data_grid.mdx index a11d657a3d71b..d856da50f2a56 100644 --- a/api_docs/esql_data_grid.mdx +++ b/api_docs/esql_data_grid.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/esqlDataGrid title: "esqlDataGrid" image: https://source.unsplash.com/400x175/?github description: API docs for the esqlDataGrid plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'esqlDataGrid'] --- import esqlDataGridObj from './esql_data_grid.devdocs.json'; diff --git a/api_docs/event_annotation.mdx b/api_docs/event_annotation.mdx index 339df034f4f88..068c513337ffc 100644 --- a/api_docs/event_annotation.mdx +++ b/api_docs/event_annotation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/eventAnnotation title: "eventAnnotation" image: https://source.unsplash.com/400x175/?github description: API docs for the eventAnnotation plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'eventAnnotation'] --- import eventAnnotationObj from './event_annotation.devdocs.json'; diff --git a/api_docs/event_annotation_listing.mdx b/api_docs/event_annotation_listing.mdx index 5f1bc64a35420..f506064f43b62 100644 --- a/api_docs/event_annotation_listing.mdx +++ b/api_docs/event_annotation_listing.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/eventAnnotationListing title: "eventAnnotationListing" image: https://source.unsplash.com/400x175/?github description: API docs for the eventAnnotationListing plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'eventAnnotationListing'] --- import eventAnnotationListingObj from './event_annotation_listing.devdocs.json'; diff --git a/api_docs/event_log.mdx b/api_docs/event_log.mdx index 7078958363d72..59bac3c298cd9 100644 --- a/api_docs/event_log.mdx +++ b/api_docs/event_log.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/eventLog title: "eventLog" image: https://source.unsplash.com/400x175/?github description: API docs for the eventLog plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'eventLog'] --- import eventLogObj from './event_log.devdocs.json'; diff --git a/api_docs/exploratory_view.mdx b/api_docs/exploratory_view.mdx index 6c7e6032cd465..83588b853fcff 100644 --- a/api_docs/exploratory_view.mdx +++ b/api_docs/exploratory_view.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/exploratoryView title: "exploratoryView" image: https://source.unsplash.com/400x175/?github description: API docs for the exploratoryView plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'exploratoryView'] --- import exploratoryViewObj from './exploratory_view.devdocs.json'; diff --git a/api_docs/expression_error.mdx b/api_docs/expression_error.mdx index bd7347e00bfc3..f4e60301132e7 100644 --- a/api_docs/expression_error.mdx +++ b/api_docs/expression_error.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionError title: "expressionError" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionError plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionError'] --- import expressionErrorObj from './expression_error.devdocs.json'; diff --git a/api_docs/expression_gauge.mdx b/api_docs/expression_gauge.mdx index aa26f1e6382bf..908a473a529e9 100644 --- a/api_docs/expression_gauge.mdx +++ b/api_docs/expression_gauge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionGauge title: "expressionGauge" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionGauge plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionGauge'] --- import expressionGaugeObj from './expression_gauge.devdocs.json'; diff --git a/api_docs/expression_heatmap.mdx b/api_docs/expression_heatmap.mdx index eefbf474f088e..a59ffcad72bc0 100644 --- a/api_docs/expression_heatmap.mdx +++ b/api_docs/expression_heatmap.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionHeatmap title: "expressionHeatmap" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionHeatmap plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionHeatmap'] --- import expressionHeatmapObj from './expression_heatmap.devdocs.json'; diff --git a/api_docs/expression_image.mdx b/api_docs/expression_image.mdx index 6c7cf2b026ac3..3654b9304a613 100644 --- a/api_docs/expression_image.mdx +++ b/api_docs/expression_image.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionImage title: "expressionImage" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionImage plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionImage'] --- import expressionImageObj from './expression_image.devdocs.json'; diff --git a/api_docs/expression_legacy_metric_vis.mdx b/api_docs/expression_legacy_metric_vis.mdx index 6636f503a2d9c..6d85ca4dc5a96 100644 --- a/api_docs/expression_legacy_metric_vis.mdx +++ b/api_docs/expression_legacy_metric_vis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionLegacyMetricVis title: "expressionLegacyMetricVis" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionLegacyMetricVis plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionLegacyMetricVis'] --- import expressionLegacyMetricVisObj from './expression_legacy_metric_vis.devdocs.json'; diff --git a/api_docs/expression_metric.mdx b/api_docs/expression_metric.mdx index b78913d2f1240..804afc83ed00c 100644 --- a/api_docs/expression_metric.mdx +++ b/api_docs/expression_metric.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionMetric title: "expressionMetric" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionMetric plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionMetric'] --- import expressionMetricObj from './expression_metric.devdocs.json'; diff --git a/api_docs/expression_metric_vis.mdx b/api_docs/expression_metric_vis.mdx index 422bccbd8303a..3fd35e09ce12e 100644 --- a/api_docs/expression_metric_vis.mdx +++ b/api_docs/expression_metric_vis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionMetricVis title: "expressionMetricVis" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionMetricVis plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionMetricVis'] --- import expressionMetricVisObj from './expression_metric_vis.devdocs.json'; diff --git a/api_docs/expression_partition_vis.mdx b/api_docs/expression_partition_vis.mdx index e8df91507d1df..990e59a5493ae 100644 --- a/api_docs/expression_partition_vis.mdx +++ b/api_docs/expression_partition_vis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionPartitionVis title: "expressionPartitionVis" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionPartitionVis plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionPartitionVis'] --- import expressionPartitionVisObj from './expression_partition_vis.devdocs.json'; diff --git a/api_docs/expression_repeat_image.mdx b/api_docs/expression_repeat_image.mdx index e7417a16c24f2..624d19cd19fba 100644 --- a/api_docs/expression_repeat_image.mdx +++ b/api_docs/expression_repeat_image.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionRepeatImage title: "expressionRepeatImage" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionRepeatImage plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionRepeatImage'] --- import expressionRepeatImageObj from './expression_repeat_image.devdocs.json'; diff --git a/api_docs/expression_reveal_image.mdx b/api_docs/expression_reveal_image.mdx index 497157fc73085..7404cdd165445 100644 --- a/api_docs/expression_reveal_image.mdx +++ b/api_docs/expression_reveal_image.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionRevealImage title: "expressionRevealImage" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionRevealImage plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionRevealImage'] --- import expressionRevealImageObj from './expression_reveal_image.devdocs.json'; diff --git a/api_docs/expression_shape.mdx b/api_docs/expression_shape.mdx index 457bebe60d77f..05d3b077877db 100644 --- a/api_docs/expression_shape.mdx +++ b/api_docs/expression_shape.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionShape title: "expressionShape" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionShape plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionShape'] --- import expressionShapeObj from './expression_shape.devdocs.json'; diff --git a/api_docs/expression_tagcloud.mdx b/api_docs/expression_tagcloud.mdx index 2529f3edf8703..99f79f5b87334 100644 --- a/api_docs/expression_tagcloud.mdx +++ b/api_docs/expression_tagcloud.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionTagcloud title: "expressionTagcloud" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionTagcloud plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionTagcloud'] --- import expressionTagcloudObj from './expression_tagcloud.devdocs.json'; diff --git a/api_docs/expression_x_y.mdx b/api_docs/expression_x_y.mdx index f5d3f494b0951..80f054441a7a4 100644 --- a/api_docs/expression_x_y.mdx +++ b/api_docs/expression_x_y.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionXY title: "expressionXY" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionXY plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionXY'] --- import expressionXYObj from './expression_x_y.devdocs.json'; diff --git a/api_docs/expressions.devdocs.json b/api_docs/expressions.devdocs.json index a4f977d059e10..4f9b236f11090 100644 --- a/api_docs/expressions.devdocs.json +++ b/api_docs/expressions.devdocs.json @@ -3993,7 +3993,7 @@ "section": "def-public.ExpressionsStart", "text": "ExpressionsStart" }, - ", object, object>" + ", never, never>" ], "path": "src/plugins/expressions/public/plugin.ts", "deprecated": false, @@ -4042,7 +4042,7 @@ "signature": [ "(core: ", "CoreSetup", - ") => ", + "<{}, unknown>) => ", { "pluginId": "expressions", "scope": "common", @@ -4064,7 +4064,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], "path": "src/plugins/expressions/public/plugin.ts", "deprecated": false, @@ -16678,7 +16678,7 @@ "section": "def-common.ExpressionsServiceStart", "text": "ExpressionsServiceStart" }, - ", object, object>" + ", {}, {}>" ], "path": "src/plugins/expressions/server/plugin.ts", "deprecated": false, @@ -16747,7 +16747,7 @@ "signature": [ "(core: ", "CoreSetup", - ") => ", + "<{}, unknown>) => ", { "pluginId": "expressions", "scope": "common", @@ -16769,7 +16769,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], "path": "src/plugins/expressions/server/plugin.ts", "deprecated": false, diff --git a/api_docs/expressions.mdx b/api_docs/expressions.mdx index 00bc4720c1600..10cc7f542dec2 100644 --- a/api_docs/expressions.mdx +++ b/api_docs/expressions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressions title: "expressions" image: https://source.unsplash.com/400x175/?github description: API docs for the expressions plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressions'] --- import expressionsObj from './expressions.devdocs.json'; diff --git a/api_docs/features.mdx b/api_docs/features.mdx index d07c221f4a515..b37af5b12fae0 100644 --- a/api_docs/features.mdx +++ b/api_docs/features.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/features title: "features" image: https://source.unsplash.com/400x175/?github description: API docs for the features plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'features'] --- import featuresObj from './features.devdocs.json'; diff --git a/api_docs/field_formats.devdocs.json b/api_docs/field_formats.devdocs.json index 42d143412a3f6..419463ca16005 100644 --- a/api_docs/field_formats.devdocs.json +++ b/api_docs/field_formats.devdocs.json @@ -825,13 +825,7 @@ ], "signature": [ "(uiSettings: ", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ") => Promise<", { "pluginId": "fieldFormats", @@ -856,13 +850,7 @@ "- {@link IUiSettingsClient }" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/platform/plugins/shared/field_formats/server/types.ts", "deprecated": false, diff --git a/api_docs/field_formats.mdx b/api_docs/field_formats.mdx index 305affd369489..ad6fb243309b8 100644 --- a/api_docs/field_formats.mdx +++ b/api_docs/field_formats.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/fieldFormats title: "fieldFormats" image: https://source.unsplash.com/400x175/?github description: API docs for the fieldFormats plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fieldFormats'] --- import fieldFormatsObj from './field_formats.devdocs.json'; diff --git a/api_docs/fields_metadata.mdx b/api_docs/fields_metadata.mdx index 52097e27e79ae..527cf6b9a66f4 100644 --- a/api_docs/fields_metadata.mdx +++ b/api_docs/fields_metadata.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/fieldsMetadata title: "fieldsMetadata" image: https://source.unsplash.com/400x175/?github description: API docs for the fieldsMetadata plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fieldsMetadata'] --- import fieldsMetadataObj from './fields_metadata.devdocs.json'; diff --git a/api_docs/file_upload.mdx b/api_docs/file_upload.mdx index a8a46c1cd20d3..0013ba97dadab 100644 --- a/api_docs/file_upload.mdx +++ b/api_docs/file_upload.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/fileUpload title: "fileUpload" image: https://source.unsplash.com/400x175/?github description: API docs for the fileUpload plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fileUpload'] --- import fileUploadObj from './file_upload.devdocs.json'; diff --git a/api_docs/files.devdocs.json b/api_docs/files.devdocs.json index ce9933246299d..45a35f18dcd9a 100644 --- a/api_docs/files.devdocs.json +++ b/api_docs/files.devdocs.json @@ -5979,7 +5979,7 @@ }, "" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -5992,7 +5992,7 @@ "description": [ "\nUnique file ID." ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6005,7 +6005,7 @@ "description": [ "\nISO string of when this file was created" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6018,7 +6018,7 @@ "description": [ "\nISO string of when the file was updated" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6033,7 +6033,7 @@ "description": [ "\nFile name.\n" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6049,7 +6049,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6065,7 +6065,7 @@ "signature": [ "number | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6083,7 +6083,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6099,7 +6099,7 @@ "signature": [ "Meta | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6115,7 +6115,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6130,7 +6130,7 @@ "description": [ "\nA unique kind that governs various aspects of the file. A consumer of the\nfiles service must register a file kind and link their files to a specific\nkind.\n" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6146,7 +6146,7 @@ "signature": [ "\"AWAITING_UPLOAD\" | \"UPLOADING\" | \"READY\" | \"UPLOAD_ERROR\" | \"DELETED\"" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6162,7 +6162,7 @@ "signature": [ "{ name?: string | undefined; id?: string | undefined; } | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6178,7 +6178,7 @@ "signature": [ "{ [hashName: string]: string | undefined; md5?: string | undefined; sha1?: string | undefined; sha256?: string | undefined; sha384?: string | undefined; sha512?: string | undefined; ssdeep?: string | undefined; tlsh?: string | undefined; } | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false } @@ -6323,7 +6323,7 @@ "text": "FileKindBase" } ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -6341,7 +6341,7 @@ "signature": [ "number | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -6357,7 +6357,7 @@ "signature": [ "{ list?: { enabled: boolean; } | undefined; delete?: { enabled: boolean; reason?: string | undefined; } | undefined; } | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false } @@ -6373,7 +6373,7 @@ "description": [ "\nAttributes of a file that represent a serialised version of the file." ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -6386,7 +6386,7 @@ "description": [ "\nUnique ID share instance" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false }, @@ -6399,7 +6399,7 @@ "description": [ "\nISO timestamp the share was created" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false }, @@ -6412,7 +6412,7 @@ "description": [ "\nUnix timestamp (in milliseconds) of when this share expires" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false }, @@ -6428,7 +6428,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false }, @@ -6441,7 +6441,7 @@ "description": [ "\nThe ID of the file this share is linked to" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false } @@ -6670,7 +6670,7 @@ }, " | undefined; }" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -6721,7 +6721,7 @@ "signature": [ "\"none\" | \"br\" | \"gzip\" | \"deflate\"" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -6754,7 +6754,7 @@ }, " & { FileKind: string; Meta?: Meta | undefined; }" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -6797,7 +6797,7 @@ "signature": [ "{ created: string; token: string; name?: string | undefined; valid_until: number; }" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -6823,7 +6823,7 @@ }, " & { token: string; }" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -6838,7 +6838,7 @@ "signature": [ "\"AWAITING_UPLOAD\" | \"UPLOADING\" | \"READY\" | \"UPLOAD_ERROR\" | \"DELETED\"" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/files.mdx b/api_docs/files.mdx index eb54f3ddb7eab..9959301f117e0 100644 --- a/api_docs/files.mdx +++ b/api_docs/files.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/files title: "files" image: https://source.unsplash.com/400x175/?github description: API docs for the files plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'files'] --- import filesObj from './files.devdocs.json'; diff --git a/api_docs/files_management.mdx b/api_docs/files_management.mdx index ff45e984b96aa..244af951ec1a8 100644 --- a/api_docs/files_management.mdx +++ b/api_docs/files_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/filesManagement title: "filesManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the filesManagement plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'filesManagement'] --- import filesManagementObj from './files_management.devdocs.json'; diff --git a/api_docs/fleet.devdocs.json b/api_docs/fleet.devdocs.json index 704a2ccd600ec..ded100da45b3e 100644 --- a/api_docs/fleet.devdocs.json +++ b/api_docs/fleet.devdocs.json @@ -20993,6 +20993,22 @@ "deprecated": false, "trackAdoption": false }, + { + "parentPluginId": "fleet", + "id": "def-common.FleetServerAgent.audit_unenrolled_reason", + "type": "string", + "tags": [], + "label": "audit_unenrolled_reason", + "description": [ + "\nDate/time the Elastic Agent was last upgraded" + ], + "signature": [ + "string | undefined" + ], + "path": "x-pack/platform/plugins/shared/fleet/common/types/models/agent.ts", + "deprecated": false, + "trackAdoption": false + }, { "parentPluginId": "fleet", "id": "def-common.FleetServerAgent.upgraded_at", @@ -21000,7 +21016,7 @@ "tags": [], "label": "upgraded_at", "description": [ - "\nDate/time the Elastic Agent was last upgraded" + "\nReason for agent unenrollment" ], "signature": [ "string | null | undefined" diff --git a/api_docs/fleet.mdx b/api_docs/fleet.mdx index a8380e60e63cb..07d32c7250a87 100644 --- a/api_docs/fleet.mdx +++ b/api_docs/fleet.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/fleet title: "fleet" image: https://source.unsplash.com/400x175/?github description: API docs for the fleet plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fleet'] --- import fleetObj from './fleet.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/fleet](https://github.com/orgs/elastic/teams/fleet) for questi | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 1435 | 5 | 1309 | 82 | +| 1436 | 5 | 1309 | 82 | ## Client diff --git a/api_docs/global_search.devdocs.json b/api_docs/global_search.devdocs.json index 9bd172b314d2d..420d95c94d96e 100644 --- a/api_docs/global_search.devdocs.json +++ b/api_docs/global_search.devdocs.json @@ -711,13 +711,7 @@ "; typeRegistry: ", "ISavedObjectTypeRegistry", "; }; uiSettings: { client: ", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", "; }; capabilities: ", "Observable", "<", diff --git a/api_docs/global_search.mdx b/api_docs/global_search.mdx index 906d6a1fe0307..e151ffd5c5425 100644 --- a/api_docs/global_search.mdx +++ b/api_docs/global_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/globalSearch title: "globalSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the globalSearch plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'globalSearch'] --- import globalSearchObj from './global_search.devdocs.json'; diff --git a/api_docs/guided_onboarding.mdx b/api_docs/guided_onboarding.mdx index 294a235e87d5f..d72e7b90fc737 100644 --- a/api_docs/guided_onboarding.mdx +++ b/api_docs/guided_onboarding.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/guidedOnboarding title: "guidedOnboarding" image: https://source.unsplash.com/400x175/?github description: API docs for the guidedOnboarding plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'guidedOnboarding'] --- import guidedOnboardingObj from './guided_onboarding.devdocs.json'; diff --git a/api_docs/home.mdx b/api_docs/home.mdx index 43a2362f43efe..9d134f817b75b 100644 --- a/api_docs/home.mdx +++ b/api_docs/home.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/home title: "home" image: https://source.unsplash.com/400x175/?github description: API docs for the home plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'home'] --- import homeObj from './home.devdocs.json'; diff --git a/api_docs/image_embeddable.mdx b/api_docs/image_embeddable.mdx index 1dacb5e04ffe8..e348c46ea2bca 100644 --- a/api_docs/image_embeddable.mdx +++ b/api_docs/image_embeddable.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/imageEmbeddable title: "imageEmbeddable" image: https://source.unsplash.com/400x175/?github description: API docs for the imageEmbeddable plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'imageEmbeddable'] --- import imageEmbeddableObj from './image_embeddable.devdocs.json'; diff --git a/api_docs/index_lifecycle_management.mdx b/api_docs/index_lifecycle_management.mdx index bc2c7ce66dee1..a2dfcd7eeba4b 100644 --- a/api_docs/index_lifecycle_management.mdx +++ b/api_docs/index_lifecycle_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/indexLifecycleManagement title: "indexLifecycleManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the indexLifecycleManagement plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'indexLifecycleManagement'] --- import indexLifecycleManagementObj from './index_lifecycle_management.devdocs.json'; diff --git a/api_docs/index_management.mdx b/api_docs/index_management.mdx index 25384a3109091..e9df5cff791b4 100644 --- a/api_docs/index_management.mdx +++ b/api_docs/index_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/indexManagement title: "indexManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the indexManagement plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'indexManagement'] --- import indexManagementObj from './index_management.devdocs.json'; diff --git a/api_docs/inference.mdx b/api_docs/inference.mdx index a9f43e52cf5ef..91a5e329c82ed 100644 --- a/api_docs/inference.mdx +++ b/api_docs/inference.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/inference title: "inference" image: https://source.unsplash.com/400x175/?github description: API docs for the inference plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'inference'] --- import inferenceObj from './inference.devdocs.json'; diff --git a/api_docs/infra.devdocs.json b/api_docs/infra.devdocs.json index 3338d2022cbe6..7b1ac33d7562e 100644 --- a/api_docs/infra.devdocs.json +++ b/api_docs/infra.devdocs.json @@ -239,13 +239,7 @@ "label": "uiSettingsClient", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "x-pack/solutions/observability/plugins/infra/server/types.ts", "deprecated": false, diff --git a/api_docs/infra.mdx b/api_docs/infra.mdx index 951f8ea7ab31b..00199edef607e 100644 --- a/api_docs/infra.mdx +++ b/api_docs/infra.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/infra title: "infra" image: https://source.unsplash.com/400x175/?github description: API docs for the infra plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'infra'] --- import infraObj from './infra.devdocs.json'; diff --git a/api_docs/ingest_pipelines.mdx b/api_docs/ingest_pipelines.mdx index 9d818b8320082..807090aef25a7 100644 --- a/api_docs/ingest_pipelines.mdx +++ b/api_docs/ingest_pipelines.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ingestPipelines title: "ingestPipelines" image: https://source.unsplash.com/400x175/?github description: API docs for the ingestPipelines plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ingestPipelines'] --- import ingestPipelinesObj from './ingest_pipelines.devdocs.json'; diff --git a/api_docs/inspector.devdocs.json b/api_docs/inspector.devdocs.json index 378720014b266..0e986e4567c94 100644 --- a/api_docs/inspector.devdocs.json +++ b/api_docs/inspector.devdocs.json @@ -35,7 +35,7 @@ "section": "def-public.Start", "text": "Start" }, - ", object, object>" + ", never, never>" ], "path": "src/platform/plugins/shared/inspector/public/plugin.tsx", "deprecated": false, @@ -99,7 +99,7 @@ "signature": [ "(_core: ", "CoreSetup", - ") => { registerView: (view: ", + "<{}, unknown>) => { registerView: (view: ", { "pluginId": "inspector", "scope": "public", @@ -124,7 +124,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], "path": "src/platform/plugins/shared/inspector/public/plugin.tsx", "deprecated": false, diff --git a/api_docs/inspector.mdx b/api_docs/inspector.mdx index 2f1e8b22ab08c..9e183421ddeb2 100644 --- a/api_docs/inspector.mdx +++ b/api_docs/inspector.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/inspector title: "inspector" image: https://source.unsplash.com/400x175/?github description: API docs for the inspector plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'inspector'] --- import inspectorObj from './inspector.devdocs.json'; diff --git a/api_docs/integration_assistant.mdx b/api_docs/integration_assistant.mdx index c7d96a6a24a21..f84dc0dc38ff5 100644 --- a/api_docs/integration_assistant.mdx +++ b/api_docs/integration_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/integrationAssistant title: "integrationAssistant" image: https://source.unsplash.com/400x175/?github description: API docs for the integrationAssistant plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'integrationAssistant'] --- import integrationAssistantObj from './integration_assistant.devdocs.json'; diff --git a/api_docs/interactive_setup.mdx b/api_docs/interactive_setup.mdx index a176ca787397b..c5336652335bc 100644 --- a/api_docs/interactive_setup.mdx +++ b/api_docs/interactive_setup.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/interactiveSetup title: "interactiveSetup" image: https://source.unsplash.com/400x175/?github description: API docs for the interactiveSetup plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'interactiveSetup'] --- import interactiveSetupObj from './interactive_setup.devdocs.json'; diff --git a/api_docs/inventory.mdx b/api_docs/inventory.mdx index e071ae4afe478..8e99b5f08926f 100644 --- a/api_docs/inventory.mdx +++ b/api_docs/inventory.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/inventory title: "inventory" image: https://source.unsplash.com/400x175/?github description: API docs for the inventory plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'inventory'] --- import inventoryObj from './inventory.devdocs.json'; diff --git a/api_docs/investigate.mdx b/api_docs/investigate.mdx index 979d29d8ad60b..ede4811ab75ca 100644 --- a/api_docs/investigate.mdx +++ b/api_docs/investigate.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/investigate title: "investigate" image: https://source.unsplash.com/400x175/?github description: API docs for the investigate plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'investigate'] --- import investigateObj from './investigate.devdocs.json'; diff --git a/api_docs/investigate_app.mdx b/api_docs/investigate_app.mdx index 8e49eb46f74f9..06621cb2d701a 100644 --- a/api_docs/investigate_app.mdx +++ b/api_docs/investigate_app.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/investigateApp title: "investigateApp" image: https://source.unsplash.com/400x175/?github description: API docs for the investigateApp plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'investigateApp'] --- import investigateAppObj from './investigate_app.devdocs.json'; diff --git a/api_docs/kbn_actions_types.mdx b/api_docs/kbn_actions_types.mdx index 4a057c2a8b4e0..a66699a8645f1 100644 --- a/api_docs/kbn_actions_types.mdx +++ b/api_docs/kbn_actions_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-actions-types title: "@kbn/actions-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/actions-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/actions-types'] --- import kbnActionsTypesObj from './kbn_actions_types.devdocs.json'; diff --git a/api_docs/kbn_ai_assistant.mdx b/api_docs/kbn_ai_assistant.mdx index c9f08e4a0f81a..fb796a49aa28a 100644 --- a/api_docs/kbn_ai_assistant.mdx +++ b/api_docs/kbn_ai_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ai-assistant title: "@kbn/ai-assistant" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ai-assistant plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ai-assistant'] --- import kbnAiAssistantObj from './kbn_ai_assistant.devdocs.json'; diff --git a/api_docs/kbn_ai_assistant_common.mdx b/api_docs/kbn_ai_assistant_common.mdx index 9754f1c849103..9e210171da61a 100644 --- a/api_docs/kbn_ai_assistant_common.mdx +++ b/api_docs/kbn_ai_assistant_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ai-assistant-common title: "@kbn/ai-assistant-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ai-assistant-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ai-assistant-common'] --- import kbnAiAssistantCommonObj from './kbn_ai_assistant_common.devdocs.json'; diff --git a/api_docs/kbn_ai_assistant_icon.mdx b/api_docs/kbn_ai_assistant_icon.mdx index ad469b1eca4bb..27ae3b2164f7c 100644 --- a/api_docs/kbn_ai_assistant_icon.mdx +++ b/api_docs/kbn_ai_assistant_icon.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ai-assistant-icon title: "@kbn/ai-assistant-icon" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ai-assistant-icon plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ai-assistant-icon'] --- import kbnAiAssistantIconObj from './kbn_ai_assistant_icon.devdocs.json'; diff --git a/api_docs/kbn_aiops_components.devdocs.json b/api_docs/kbn_aiops_components.devdocs.json index 4de5d72951d46..992e131e93f02 100644 --- a/api_docs/kbn_aiops_components.devdocs.json +++ b/api_docs/kbn_aiops_components.devdocs.json @@ -358,13 +358,7 @@ "text": "FieldFormatsStart" }, "; uiSettings: ", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", "; }" ], "path": "x-pack/platform/packages/private/ml/aiops_components/src/document_count_chart/document_count_chart.tsx", diff --git a/api_docs/kbn_aiops_components.mdx b/api_docs/kbn_aiops_components.mdx index 0d4046526c941..fa5b01a07e79e 100644 --- a/api_docs/kbn_aiops_components.mdx +++ b/api_docs/kbn_aiops_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-aiops-components title: "@kbn/aiops-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/aiops-components plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/aiops-components'] --- import kbnAiopsComponentsObj from './kbn_aiops_components.devdocs.json'; diff --git a/api_docs/kbn_aiops_log_pattern_analysis.mdx b/api_docs/kbn_aiops_log_pattern_analysis.mdx index 6ecbb2f472388..d5fc485901a88 100644 --- a/api_docs/kbn_aiops_log_pattern_analysis.mdx +++ b/api_docs/kbn_aiops_log_pattern_analysis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-aiops-log-pattern-analysis title: "@kbn/aiops-log-pattern-analysis" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/aiops-log-pattern-analysis plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/aiops-log-pattern-analysis'] --- import kbnAiopsLogPatternAnalysisObj from './kbn_aiops_log_pattern_analysis.devdocs.json'; diff --git a/api_docs/kbn_aiops_log_rate_analysis.mdx b/api_docs/kbn_aiops_log_rate_analysis.mdx index 143207280e7a2..7a67058300b18 100644 --- a/api_docs/kbn_aiops_log_rate_analysis.mdx +++ b/api_docs/kbn_aiops_log_rate_analysis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-aiops-log-rate-analysis title: "@kbn/aiops-log-rate-analysis" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/aiops-log-rate-analysis plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/aiops-log-rate-analysis'] --- import kbnAiopsLogRateAnalysisObj from './kbn_aiops_log_rate_analysis.devdocs.json'; diff --git a/api_docs/kbn_alerting_api_integration_helpers.mdx b/api_docs/kbn_alerting_api_integration_helpers.mdx index 851a1560c8e06..fd41b3147b317 100644 --- a/api_docs/kbn_alerting_api_integration_helpers.mdx +++ b/api_docs/kbn_alerting_api_integration_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerting-api-integration-helpers title: "@kbn/alerting-api-integration-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerting-api-integration-helpers plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerting-api-integration-helpers'] --- import kbnAlertingApiIntegrationHelpersObj from './kbn_alerting_api_integration_helpers.devdocs.json'; diff --git a/api_docs/kbn_alerting_comparators.mdx b/api_docs/kbn_alerting_comparators.mdx index 7f3d27037d657..7d2ce5ea9aec2 100644 --- a/api_docs/kbn_alerting_comparators.mdx +++ b/api_docs/kbn_alerting_comparators.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerting-comparators title: "@kbn/alerting-comparators" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerting-comparators plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerting-comparators'] --- import kbnAlertingComparatorsObj from './kbn_alerting_comparators.devdocs.json'; diff --git a/api_docs/kbn_alerting_state_types.mdx b/api_docs/kbn_alerting_state_types.mdx index bb301fd2978d9..2eb0d10a755a8 100644 --- a/api_docs/kbn_alerting_state_types.mdx +++ b/api_docs/kbn_alerting_state_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerting-state-types title: "@kbn/alerting-state-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerting-state-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerting-state-types'] --- import kbnAlertingStateTypesObj from './kbn_alerting_state_types.devdocs.json'; diff --git a/api_docs/kbn_alerting_types.devdocs.json b/api_docs/kbn_alerting_types.devdocs.json index 85ec0b5127fa2..d72ff8fb85f6b 100644 --- a/api_docs/kbn_alerting_types.devdocs.json +++ b/api_docs/kbn_alerting_types.devdocs.json @@ -3574,7 +3574,13 @@ "description": [], "signature": [ "Omit<", - "Options", + { + "pluginId": "@kbn/rrule", + "scope": "common", + "docId": "kibKbnRrulePluginApi", + "section": "def-common.Options", + "text": "Options" + }, ", \"dtstart\" | \"until\" | \"byweekday\" | \"wkst\"> & { dtstart: string; byweekday?: (string | number)[] | null | undefined; wkst?: ", { "pluginId": "@kbn/rrule", diff --git a/api_docs/kbn_alerting_types.mdx b/api_docs/kbn_alerting_types.mdx index 8aeeab38b5e7c..15bc6e08ecb90 100644 --- a/api_docs/kbn_alerting_types.mdx +++ b/api_docs/kbn_alerting_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerting-types title: "@kbn/alerting-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerting-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerting-types'] --- import kbnAlertingTypesObj from './kbn_alerting_types.devdocs.json'; diff --git a/api_docs/kbn_alerts_as_data_utils.mdx b/api_docs/kbn_alerts_as_data_utils.mdx index ba8797eb183a2..18d8b18025d3b 100644 --- a/api_docs/kbn_alerts_as_data_utils.mdx +++ b/api_docs/kbn_alerts_as_data_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerts-as-data-utils title: "@kbn/alerts-as-data-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerts-as-data-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerts-as-data-utils'] --- import kbnAlertsAsDataUtilsObj from './kbn_alerts_as_data_utils.devdocs.json'; diff --git a/api_docs/kbn_alerts_grouping.mdx b/api_docs/kbn_alerts_grouping.mdx index 01e369d7e1c34..80b2d811f9be7 100644 --- a/api_docs/kbn_alerts_grouping.mdx +++ b/api_docs/kbn_alerts_grouping.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerts-grouping title: "@kbn/alerts-grouping" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerts-grouping plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerts-grouping'] --- import kbnAlertsGroupingObj from './kbn_alerts_grouping.devdocs.json'; diff --git a/api_docs/kbn_alerts_ui_shared.mdx b/api_docs/kbn_alerts_ui_shared.mdx index 8e9bf2bf6717d..82ee9c7a0d291 100644 --- a/api_docs/kbn_alerts_ui_shared.mdx +++ b/api_docs/kbn_alerts_ui_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerts-ui-shared title: "@kbn/alerts-ui-shared" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerts-ui-shared plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerts-ui-shared'] --- import kbnAlertsUiSharedObj from './kbn_alerts_ui_shared.devdocs.json'; diff --git a/api_docs/kbn_analytics.mdx b/api_docs/kbn_analytics.mdx index 909d3c9d3526b..8c2615e9db738 100644 --- a/api_docs/kbn_analytics.mdx +++ b/api_docs/kbn_analytics.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-analytics title: "@kbn/analytics" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/analytics plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics'] --- import kbnAnalyticsObj from './kbn_analytics.devdocs.json'; diff --git a/api_docs/kbn_analytics_collection_utils.mdx b/api_docs/kbn_analytics_collection_utils.mdx index e4cbe560ae0ad..85487d34d372f 100644 --- a/api_docs/kbn_analytics_collection_utils.mdx +++ b/api_docs/kbn_analytics_collection_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-analytics-collection-utils title: "@kbn/analytics-collection-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/analytics-collection-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics-collection-utils'] --- import kbnAnalyticsCollectionUtilsObj from './kbn_analytics_collection_utils.devdocs.json'; diff --git a/api_docs/kbn_apm_config_loader.mdx b/api_docs/kbn_apm_config_loader.mdx index 549a370f78ea5..bb92ccf2de69f 100644 --- a/api_docs/kbn_apm_config_loader.mdx +++ b/api_docs/kbn_apm_config_loader.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-config-loader title: "@kbn/apm-config-loader" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-config-loader plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-config-loader'] --- import kbnApmConfigLoaderObj from './kbn_apm_config_loader.devdocs.json'; diff --git a/api_docs/kbn_apm_data_view.mdx b/api_docs/kbn_apm_data_view.mdx index ceeb523043974..af8ce0ab8b0b9 100644 --- a/api_docs/kbn_apm_data_view.mdx +++ b/api_docs/kbn_apm_data_view.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-data-view title: "@kbn/apm-data-view" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-data-view plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-data-view'] --- import kbnApmDataViewObj from './kbn_apm_data_view.devdocs.json'; diff --git a/api_docs/kbn_apm_synthtrace.mdx b/api_docs/kbn_apm_synthtrace.mdx index 56d7037b6a112..54e7d93dac305 100644 --- a/api_docs/kbn_apm_synthtrace.mdx +++ b/api_docs/kbn_apm_synthtrace.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-synthtrace title: "@kbn/apm-synthtrace" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-synthtrace plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-synthtrace'] --- import kbnApmSynthtraceObj from './kbn_apm_synthtrace.devdocs.json'; diff --git a/api_docs/kbn_apm_synthtrace_client.mdx b/api_docs/kbn_apm_synthtrace_client.mdx index 1db7b08fb5d31..92a8d4d61ec5f 100644 --- a/api_docs/kbn_apm_synthtrace_client.mdx +++ b/api_docs/kbn_apm_synthtrace_client.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-synthtrace-client title: "@kbn/apm-synthtrace-client" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-synthtrace-client plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-synthtrace-client'] --- import kbnApmSynthtraceClientObj from './kbn_apm_synthtrace_client.devdocs.json'; diff --git a/api_docs/kbn_apm_types.mdx b/api_docs/kbn_apm_types.mdx index 6bee988bf5b76..81aa7a8b818a0 100644 --- a/api_docs/kbn_apm_types.mdx +++ b/api_docs/kbn_apm_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-types title: "@kbn/apm-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-types'] --- import kbnApmTypesObj from './kbn_apm_types.devdocs.json'; diff --git a/api_docs/kbn_apm_utils.mdx b/api_docs/kbn_apm_utils.mdx index 3b4e048390194..145f309f91fb7 100644 --- a/api_docs/kbn_apm_utils.mdx +++ b/api_docs/kbn_apm_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-utils title: "@kbn/apm-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-utils'] --- import kbnApmUtilsObj from './kbn_apm_utils.devdocs.json'; diff --git a/api_docs/kbn_avc_banner.devdocs.json b/api_docs/kbn_avc_banner.devdocs.json index 757b32f34d292..2acb5c4a571ab 100644 --- a/api_docs/kbn_avc_banner.devdocs.json +++ b/api_docs/kbn_avc_banner.devdocs.json @@ -5,10 +5,10 @@ "functions": [ { "parentPluginId": "@kbn/avc-banner", - "id": "def-public.AVCResultsBanner2024", + "id": "def-public.AVCResultsBanner", "type": "Function", "tags": [], - "label": "AVCResultsBanner2024", + "label": "AVCResultsBanner", "description": [], "signature": [ "({ onDismiss }: { onDismiss: () => void; }) => React.JSX.Element" @@ -19,7 +19,7 @@ "children": [ { "parentPluginId": "@kbn/avc-banner", - "id": "def-public.AVCResultsBanner2024.$1", + "id": "def-public.AVCResultsBanner.$1", "type": "Object", "tags": [], "label": "{ onDismiss }", @@ -38,10 +38,10 @@ }, { "parentPluginId": "@kbn/avc-banner", - "id": "def-public.useIsStillYear2024", + "id": "def-public.useIsStillYear2025", "type": "Function", "tags": [], - "label": "useIsStillYear2024", + "label": "useIsStillYear2025", "description": [], "signature": [ "() => boolean" diff --git a/api_docs/kbn_avc_banner.mdx b/api_docs/kbn_avc_banner.mdx index 2254d557b4efc..f8e131ddd43cc 100644 --- a/api_docs/kbn_avc_banner.mdx +++ b/api_docs/kbn_avc_banner.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-avc-banner title: "@kbn/avc-banner" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/avc-banner plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/avc-banner'] --- import kbnAvcBannerObj from './kbn_avc_banner.devdocs.json'; diff --git a/api_docs/kbn_axe_config.mdx b/api_docs/kbn_axe_config.mdx index 59af81a2fb601..4baf3ec470b56 100644 --- a/api_docs/kbn_axe_config.mdx +++ b/api_docs/kbn_axe_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-axe-config title: "@kbn/axe-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/axe-config plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/axe-config'] --- import kbnAxeConfigObj from './kbn_axe_config.devdocs.json'; diff --git a/api_docs/kbn_calculate_auto.mdx b/api_docs/kbn_calculate_auto.mdx index 51e42f3aeb173..c1943916187e4 100644 --- a/api_docs/kbn_calculate_auto.mdx +++ b/api_docs/kbn_calculate_auto.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-calculate-auto title: "@kbn/calculate-auto" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/calculate-auto plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/calculate-auto'] --- import kbnCalculateAutoObj from './kbn_calculate_auto.devdocs.json'; diff --git a/api_docs/kbn_calculate_width_from_char_count.mdx b/api_docs/kbn_calculate_width_from_char_count.mdx index 6c5c07c0919ad..28e9100b429fe 100644 --- a/api_docs/kbn_calculate_width_from_char_count.mdx +++ b/api_docs/kbn_calculate_width_from_char_count.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-calculate-width-from-char-count title: "@kbn/calculate-width-from-char-count" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/calculate-width-from-char-count plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/calculate-width-from-char-count'] --- import kbnCalculateWidthFromCharCountObj from './kbn_calculate_width_from_char_count.devdocs.json'; diff --git a/api_docs/kbn_cases_components.mdx b/api_docs/kbn_cases_components.mdx index e28243511b155..ab4199e0a09a9 100644 --- a/api_docs/kbn_cases_components.mdx +++ b/api_docs/kbn_cases_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cases-components title: "@kbn/cases-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cases-components plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cases-components'] --- import kbnCasesComponentsObj from './kbn_cases_components.devdocs.json'; diff --git a/api_docs/kbn_cbor.mdx b/api_docs/kbn_cbor.mdx index 1b112b96debb2..77501dec0b5fb 100644 --- a/api_docs/kbn_cbor.mdx +++ b/api_docs/kbn_cbor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cbor title: "@kbn/cbor" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cbor plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cbor'] --- import kbnCborObj from './kbn_cbor.devdocs.json'; diff --git a/api_docs/kbn_cell_actions.mdx b/api_docs/kbn_cell_actions.mdx index 4dc01b7ebc2d0..bb3caa81a18c6 100644 --- a/api_docs/kbn_cell_actions.mdx +++ b/api_docs/kbn_cell_actions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cell-actions title: "@kbn/cell-actions" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cell-actions plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cell-actions'] --- import kbnCellActionsObj from './kbn_cell_actions.devdocs.json'; diff --git a/api_docs/kbn_chart_expressions_common.mdx b/api_docs/kbn_chart_expressions_common.mdx index 0f113014323f5..ba3ea010d70c1 100644 --- a/api_docs/kbn_chart_expressions_common.mdx +++ b/api_docs/kbn_chart_expressions_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-chart-expressions-common title: "@kbn/chart-expressions-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/chart-expressions-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/chart-expressions-common'] --- import kbnChartExpressionsCommonObj from './kbn_chart_expressions_common.devdocs.json'; diff --git a/api_docs/kbn_chart_icons.mdx b/api_docs/kbn_chart_icons.mdx index d746bba00d8df..6ca0314d54d80 100644 --- a/api_docs/kbn_chart_icons.mdx +++ b/api_docs/kbn_chart_icons.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-chart-icons title: "@kbn/chart-icons" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/chart-icons plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/chart-icons'] --- import kbnChartIconsObj from './kbn_chart_icons.devdocs.json'; diff --git a/api_docs/kbn_charts_theme.mdx b/api_docs/kbn_charts_theme.mdx index 47ba98c19bf9d..1872dd89a2129 100644 --- a/api_docs/kbn_charts_theme.mdx +++ b/api_docs/kbn_charts_theme.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-charts-theme title: "@kbn/charts-theme" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/charts-theme plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/charts-theme'] --- import kbnChartsThemeObj from './kbn_charts_theme.devdocs.json'; diff --git a/api_docs/kbn_ci_stats_core.mdx b/api_docs/kbn_ci_stats_core.mdx index e497f31d5cee2..79a9552c8840d 100644 --- a/api_docs/kbn_ci_stats_core.mdx +++ b/api_docs/kbn_ci_stats_core.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ci-stats-core title: "@kbn/ci-stats-core" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ci-stats-core plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ci-stats-core'] --- import kbnCiStatsCoreObj from './kbn_ci_stats_core.devdocs.json'; diff --git a/api_docs/kbn_ci_stats_performance_metrics.mdx b/api_docs/kbn_ci_stats_performance_metrics.mdx index b7f818aea6905..8082b59a5bb30 100644 --- a/api_docs/kbn_ci_stats_performance_metrics.mdx +++ b/api_docs/kbn_ci_stats_performance_metrics.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ci-stats-performance-metrics title: "@kbn/ci-stats-performance-metrics" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ci-stats-performance-metrics plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ci-stats-performance-metrics'] --- import kbnCiStatsPerformanceMetricsObj from './kbn_ci_stats_performance_metrics.devdocs.json'; diff --git a/api_docs/kbn_ci_stats_reporter.mdx b/api_docs/kbn_ci_stats_reporter.mdx index 6dd2453aa2f1b..74b256e529bda 100644 --- a/api_docs/kbn_ci_stats_reporter.mdx +++ b/api_docs/kbn_ci_stats_reporter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ci-stats-reporter title: "@kbn/ci-stats-reporter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ci-stats-reporter plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ci-stats-reporter'] --- import kbnCiStatsReporterObj from './kbn_ci_stats_reporter.devdocs.json'; diff --git a/api_docs/kbn_cli_dev_mode.mdx b/api_docs/kbn_cli_dev_mode.mdx index 3c853c803c93d..a50d78f6c8e2f 100644 --- a/api_docs/kbn_cli_dev_mode.mdx +++ b/api_docs/kbn_cli_dev_mode.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cli-dev-mode title: "@kbn/cli-dev-mode" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cli-dev-mode plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cli-dev-mode'] --- import kbnCliDevModeObj from './kbn_cli_dev_mode.devdocs.json'; diff --git a/api_docs/kbn_cloud_security_posture.mdx b/api_docs/kbn_cloud_security_posture.mdx index 19e73b1968a73..f07d953fb3ab9 100644 --- a/api_docs/kbn_cloud_security_posture.mdx +++ b/api_docs/kbn_cloud_security_posture.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cloud-security-posture title: "@kbn/cloud-security-posture" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cloud-security-posture plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cloud-security-posture'] --- import kbnCloudSecurityPostureObj from './kbn_cloud_security_posture.devdocs.json'; diff --git a/api_docs/kbn_cloud_security_posture_common.mdx b/api_docs/kbn_cloud_security_posture_common.mdx index 6a755825b9453..0c9ac8ff7e311 100644 --- a/api_docs/kbn_cloud_security_posture_common.mdx +++ b/api_docs/kbn_cloud_security_posture_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cloud-security-posture-common title: "@kbn/cloud-security-posture-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cloud-security-posture-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cloud-security-posture-common'] --- import kbnCloudSecurityPostureCommonObj from './kbn_cloud_security_posture_common.devdocs.json'; diff --git a/api_docs/kbn_cloud_security_posture_graph.mdx b/api_docs/kbn_cloud_security_posture_graph.mdx index 89d67082f201d..4f06c5726ca17 100644 --- a/api_docs/kbn_cloud_security_posture_graph.mdx +++ b/api_docs/kbn_cloud_security_posture_graph.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cloud-security-posture-graph title: "@kbn/cloud-security-posture-graph" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cloud-security-posture-graph plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cloud-security-posture-graph'] --- import kbnCloudSecurityPostureGraphObj from './kbn_cloud_security_posture_graph.devdocs.json'; diff --git a/api_docs/kbn_code_editor.mdx b/api_docs/kbn_code_editor.mdx index f4259e1798b10..69fe5e1525bd8 100644 --- a/api_docs/kbn_code_editor.mdx +++ b/api_docs/kbn_code_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-code-editor title: "@kbn/code-editor" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/code-editor plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/code-editor'] --- import kbnCodeEditorObj from './kbn_code_editor.devdocs.json'; diff --git a/api_docs/kbn_code_editor_mock.mdx b/api_docs/kbn_code_editor_mock.mdx index 0841011e105ba..9b6e3d5e07f40 100644 --- a/api_docs/kbn_code_editor_mock.mdx +++ b/api_docs/kbn_code_editor_mock.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-code-editor-mock title: "@kbn/code-editor-mock" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/code-editor-mock plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/code-editor-mock'] --- import kbnCodeEditorMockObj from './kbn_code_editor_mock.devdocs.json'; diff --git a/api_docs/kbn_code_owners.mdx b/api_docs/kbn_code_owners.mdx index 48cfc4e6e3948..3ff88a93973d4 100644 --- a/api_docs/kbn_code_owners.mdx +++ b/api_docs/kbn_code_owners.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-code-owners title: "@kbn/code-owners" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/code-owners plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/code-owners'] --- import kbnCodeOwnersObj from './kbn_code_owners.devdocs.json'; diff --git a/api_docs/kbn_coloring.mdx b/api_docs/kbn_coloring.mdx index b3ee6d6ff623b..e6fecb75eefc6 100644 --- a/api_docs/kbn_coloring.mdx +++ b/api_docs/kbn_coloring.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-coloring title: "@kbn/coloring" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/coloring plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/coloring'] --- import kbnColoringObj from './kbn_coloring.devdocs.json'; diff --git a/api_docs/kbn_config.mdx b/api_docs/kbn_config.mdx index ff04427f8d714..6784bfc0937e6 100644 --- a/api_docs/kbn_config.mdx +++ b/api_docs/kbn_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-config title: "@kbn/config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/config plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config'] --- import kbnConfigObj from './kbn_config.devdocs.json'; diff --git a/api_docs/kbn_config_mocks.mdx b/api_docs/kbn_config_mocks.mdx index dd9acd756d7d3..0ac8be8195963 100644 --- a/api_docs/kbn_config_mocks.mdx +++ b/api_docs/kbn_config_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-config-mocks title: "@kbn/config-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/config-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config-mocks'] --- import kbnConfigMocksObj from './kbn_config_mocks.devdocs.json'; diff --git a/api_docs/kbn_config_schema.mdx b/api_docs/kbn_config_schema.mdx index 70b2df872561e..c4be086d7e868 100644 --- a/api_docs/kbn_config_schema.mdx +++ b/api_docs/kbn_config_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-config-schema title: "@kbn/config-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/config-schema plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config-schema'] --- import kbnConfigSchemaObj from './kbn_config_schema.devdocs.json'; diff --git a/api_docs/kbn_content_management_content_editor.devdocs.json b/api_docs/kbn_content_management_content_editor.devdocs.json index d08941f77886f..02a56bfde8991 100644 --- a/api_docs/kbn_content_management_content_editor.devdocs.json +++ b/api_docs/kbn_content_management_content_editor.devdocs.json @@ -17,7 +17,7 @@ "ContentEditorKibanaDependencies", ">) => React.JSX.Element" ], - "path": "packages/content-management/content_editor/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_editor/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -33,7 +33,7 @@ "ContentEditorKibanaDependencies", ">" ], - "path": "packages/content-management/content_editor/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_editor/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -56,7 +56,7 @@ "Services", ">) => React.JSX.Element" ], - "path": "packages/content-management/content_editor/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_editor/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -72,7 +72,7 @@ "Services", ">" ], - "path": "packages/content-management/content_editor/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_editor/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -99,7 +99,7 @@ }, ") => () => void" ], - "path": "packages/content-management/content_editor/src/open_content_editor.tsx", + "path": "src/platform/packages/shared/content-management/content_editor/src/open_content_editor.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -115,7 +115,7 @@ "tags": [], "label": "SavedObjectsReference", "description": [], - "path": "packages/content-management/content_editor/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_editor/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -126,7 +126,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/content-management/content_editor/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_editor/src/services.tsx", "deprecated": false, "trackAdoption": false }, @@ -137,7 +137,7 @@ "tags": [], "label": "name", "description": [], - "path": "packages/content-management/content_editor/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_editor/src/services.tsx", "deprecated": false, "trackAdoption": false }, @@ -148,7 +148,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/content-management/content_editor/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_editor/src/services.tsx", "deprecated": false, "trackAdoption": false } @@ -172,7 +172,7 @@ "CustomValidators", " | undefined; appendRows?: React.ReactNode; }" ], - "path": "packages/content-management/content_editor/src/open_content_editor.tsx", + "path": "src/platform/packages/shared/content-management/content_editor/src/open_content_editor.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_content_management_content_editor.mdx b/api_docs/kbn_content_management_content_editor.mdx index 61cf5e508249d..b15ad15c90c64 100644 --- a/api_docs/kbn_content_management_content_editor.mdx +++ b/api_docs/kbn_content_management_content_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-content-editor title: "@kbn/content-management-content-editor" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-content-editor plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-content-editor'] --- import kbnContentManagementContentEditorObj from './kbn_content_management_content_editor.devdocs.json'; diff --git a/api_docs/kbn_content_management_content_insights_public.devdocs.json b/api_docs/kbn_content_management_content_insights_public.devdocs.json index 9c6827a87c8c0..c0a4f297ea2f0 100644 --- a/api_docs/kbn_content_management_content_insights_public.devdocs.json +++ b/api_docs/kbn_content_management_content_insights_public.devdocs.json @@ -28,7 +28,7 @@ "text": "ContentInsightsClientPublic" } ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -42,7 +42,7 @@ "signature": [ "any" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -53,7 +53,7 @@ "tags": [], "label": "deps", "description": [], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -67,7 +67,7 @@ "signature": [ "HttpSetup" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false } @@ -80,7 +80,7 @@ "tags": [], "label": "config", "description": [], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -91,7 +91,7 @@ "tags": [], "label": "domainId", "description": [], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false } @@ -110,7 +110,7 @@ "signature": [ "(id: string, eventType: \"viewed\") => void" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -124,7 +124,7 @@ "signature": [ "string" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -139,7 +139,7 @@ "signature": [ "\"viewed\"" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -165,7 +165,7 @@ }, ">" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -179,7 +179,7 @@ "signature": [ "string" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -194,7 +194,7 @@ "signature": [ "\"viewed\"" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -225,7 +225,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/content-management/content_insights/content_insights_public/src/components/activity_view.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -245,7 +245,7 @@ "text": "ActivityViewProps" } ], - "path": "packages/content-management/content_insights/content_insights_public/src/components/activity_view.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -274,7 +274,7 @@ }, ">>) => React.JSX.Element" ], - "path": "packages/content-management/content_insights/content_insights_public/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -296,7 +296,7 @@ }, ">>" ], - "path": "packages/content-management/content_insights/content_insights_public/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -323,7 +323,7 @@ }, " | null" ], - "path": "packages/content-management/content_insights/content_insights_public/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -348,7 +348,7 @@ }, "; }) => React.JSX.Element" ], - "path": "packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -359,7 +359,7 @@ "tags": [], "label": "{ item }", "description": [], - "path": "packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -379,7 +379,7 @@ "text": "UserContentCommonSchema" } ], - "path": "packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx", "deprecated": false, "trackAdoption": false } @@ -398,7 +398,7 @@ "tags": [], "label": "ActivityViewProps", "description": [], - "path": "packages/content-management/content_insights/content_insights_public/src/components/activity_view.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -412,7 +412,7 @@ "signature": [ "{ createdBy?: string | undefined; updatedBy?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; managed?: boolean | undefined; }" ], - "path": "packages/content-management/content_insights/content_insights_public/src/components/activity_view.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.tsx", "deprecated": false, "trackAdoption": false }, @@ -426,7 +426,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/content_insights/content_insights_public/src/components/activity_view.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.tsx", "deprecated": false, "trackAdoption": false } @@ -442,7 +442,7 @@ "description": [ "\nPublic interface of the Content Management Insights service." ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -456,7 +456,7 @@ "signature": [ "(id: string, eventType: \"viewed\") => void" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -470,7 +470,7 @@ "signature": [ "string" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -485,7 +485,7 @@ "signature": [ "\"viewed\"" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -511,7 +511,7 @@ }, ">" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -525,7 +525,7 @@ "signature": [ "string" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -540,7 +540,7 @@ "signature": [ "\"viewed\"" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -560,7 +560,7 @@ "description": [ "\nAbstract external services for this component." ], - "path": "packages/content-management/content_insights/content_insights_public/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -580,7 +580,7 @@ "text": "ContentInsightsClientPublic" } ], - "path": "packages/content-management/content_insights/content_insights_public/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/services.tsx", "deprecated": false, "trackAdoption": false }, @@ -593,7 +593,7 @@ "description": [ "\nWhether versioning is enabled for the current kibana instance. (aka is Serverless)\nThis is used to determine if we should show the version mentions in the help text." ], - "path": "packages/content-management/content_insights/content_insights_public/src/services.tsx", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/services.tsx", "deprecated": false, "trackAdoption": false } @@ -613,7 +613,7 @@ "signature": [ "\"viewed\"" ], - "path": "packages/content-management/content_insights/content_insights_public/src/client.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_content_management_content_insights_public.mdx b/api_docs/kbn_content_management_content_insights_public.mdx index f10ba6f080257..0e0c9dedc53d5 100644 --- a/api_docs/kbn_content_management_content_insights_public.mdx +++ b/api_docs/kbn_content_management_content_insights_public.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-content-insights-public title: "@kbn/content-management-content-insights-public" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-content-insights-public plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-content-insights-public'] --- import kbnContentManagementContentInsightsPublicObj from './kbn_content_management_content_insights_public.devdocs.json'; diff --git a/api_docs/kbn_content_management_content_insights_server.devdocs.json b/api_docs/kbn_content_management_content_insights_server.devdocs.json index 1e282575547c7..41f083e6fe45a 100644 --- a/api_docs/kbn_content_management_content_insights_server.devdocs.json +++ b/api_docs/kbn_content_management_content_insights_server.devdocs.json @@ -25,7 +25,7 @@ "ContentInsightsConfig", ") => void" ], - "path": "packages/content-management/content_insights/content_insights_server/src/register.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -39,7 +39,7 @@ "signature": [ "ContentInsightsDependencies" ], - "path": "packages/content-management/content_insights/content_insights_server/src/register.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -54,7 +54,7 @@ "signature": [ "ContentInsightsConfig" ], - "path": "packages/content-management/content_insights/content_insights_server/src/register.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -72,7 +72,7 @@ "tags": [], "label": "ContentInsightsStats", "description": [], - "path": "packages/content-management/content_insights/content_insights_server/src/register.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -85,7 +85,7 @@ "description": [ "\nThe date from which the data is counted" ], - "path": "packages/content-management/content_insights/content_insights_server/src/register.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts", "deprecated": false, "trackAdoption": false }, @@ -98,7 +98,7 @@ "description": [ "\nTotal count of events" ], - "path": "packages/content-management/content_insights/content_insights_server/src/register.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts", "deprecated": false, "trackAdoption": false }, @@ -114,7 +114,7 @@ "signature": [ "{ date: string; count: number; }[]" ], - "path": "packages/content-management/content_insights/content_insights_server/src/register.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts", "deprecated": false, "trackAdoption": false } @@ -128,7 +128,7 @@ "tags": [], "label": "ContentInsightsStatsResponse", "description": [], - "path": "packages/content-management/content_insights/content_insights_server/src/register.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -148,7 +148,7 @@ "text": "ContentInsightsStats" } ], - "path": "packages/content-management/content_insights/content_insights_server/src/register.ts", + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_content_management_content_insights_server.mdx b/api_docs/kbn_content_management_content_insights_server.mdx index c4c4ac3be7fe1..053207eb9ce8b 100644 --- a/api_docs/kbn_content_management_content_insights_server.mdx +++ b/api_docs/kbn_content_management_content_insights_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-content-insights-server title: "@kbn/content-management-content-insights-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-content-insights-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-content-insights-server'] --- import kbnContentManagementContentInsightsServerObj from './kbn_content_management_content_insights_server.devdocs.json'; diff --git a/api_docs/kbn_content_management_favorites_common.devdocs.json b/api_docs/kbn_content_management_favorites_common.devdocs.json index 5db569f43100b..568d49a63569e 100644 --- a/api_docs/kbn_content_management_favorites_common.devdocs.json +++ b/api_docs/kbn_content_management_favorites_common.devdocs.json @@ -32,7 +32,7 @@ "signature": [ "100" ], - "path": "packages/content-management/favorites/favorites_common/index.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_common/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_content_management_favorites_common.mdx b/api_docs/kbn_content_management_favorites_common.mdx index a60a6304bdd50..e10d22e797c44 100644 --- a/api_docs/kbn_content_management_favorites_common.mdx +++ b/api_docs/kbn_content_management_favorites_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-favorites-common title: "@kbn/content-management-favorites-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-favorites-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-favorites-common'] --- import kbnContentManagementFavoritesCommonObj from './kbn_content_management_favorites_common.devdocs.json'; diff --git a/api_docs/kbn_content_management_favorites_public.devdocs.json b/api_docs/kbn_content_management_favorites_public.devdocs.json index 3391b141db3cd..35233b3d787bd 100644 --- a/api_docs/kbn_content_management_favorites_public.devdocs.json +++ b/api_docs/kbn_content_management_favorites_public.devdocs.json @@ -27,7 +27,7 @@ }, "" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -41,7 +41,7 @@ "signature": [ "any" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -55,7 +55,7 @@ "signature": [ "string" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -70,7 +70,7 @@ "signature": [ "string" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -82,7 +82,7 @@ "tags": [], "label": "deps", "description": [], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -96,7 +96,7 @@ "signature": [ "HttpSetup" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false }, @@ -110,7 +110,7 @@ "signature": [ "UserProfileService" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false }, @@ -131,7 +131,7 @@ }, " | undefined" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false } @@ -150,7 +150,7 @@ "signature": [ "() => Promise" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -168,7 +168,7 @@ "GetFavoritesResponse", ">" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -192,7 +192,7 @@ }, ">" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -206,7 +206,7 @@ "signature": [ "AddFavoriteRequest" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -232,7 +232,7 @@ }, ">" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -243,7 +243,7 @@ "tags": [], "label": "{ id }", "description": [], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -254,7 +254,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false } @@ -273,7 +273,7 @@ "signature": [ "() => string" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -289,7 +289,7 @@ "signature": [ "() => void" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -305,7 +305,7 @@ "signature": [ "() => void" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -331,7 +331,7 @@ "<{}>) => ", "SerializedStyles" ], - "path": "packages/content-management/favorites/favorites_public/src/components/favorite_button.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorite_button.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -346,7 +346,7 @@ "EuiThemeComputed", "<{}>" ], - "path": "packages/content-management/favorites/favorites_public/src/components/favorite_button.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorite_button.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -373,7 +373,7 @@ }, ") => React.JSX.Element | null" ], - "path": "packages/content-management/favorites/favorites_public/src/components/favorite_button.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorite_button.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -393,7 +393,7 @@ "text": "FavoriteButtonProps" } ], - "path": "packages/content-management/favorites/favorites_public/src/components/favorite_button.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorite_button.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -412,7 +412,7 @@ "signature": [ "({ favoritesClient, notifyError, children, }: React.PropsWithChildren) => React.JSX.Element" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_context.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_context.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -426,7 +426,7 @@ "signature": [ "React.PropsWithChildren" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_context.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_context.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -445,7 +445,7 @@ "signature": [ "({ emptyStateType, entityNamePlural, entityName, }: { emptyStateType: \"noItems\" | \"noMatchingItems\"; entityNamePlural?: string | undefined; entityName?: string | undefined; }) => React.JSX.Element" ], - "path": "packages/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -456,7 +456,7 @@ "tags": [], "label": "{\n emptyStateType = 'noItems',\n entityNamePlural = i18n.translate('contentManagement.favorites.defaultEntityNamePlural', {\n defaultMessage: 'items',\n }),\n entityName = i18n.translate('contentManagement.favorites.defaultEntityName', {\n defaultMessage: 'item',\n }),\n}", "description": [], - "path": "packages/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -470,7 +470,7 @@ "signature": [ "\"noItems\" | \"noMatchingItems\"" ], - "path": "packages/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx", "deprecated": false, "trackAdoption": false }, @@ -484,7 +484,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx", "deprecated": false, "trackAdoption": false }, @@ -498,7 +498,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx", "deprecated": false, "trackAdoption": false } @@ -522,7 +522,7 @@ "GetFavoritesResponse", ", unknown>" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_query.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_query.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -533,7 +533,7 @@ "tags": [], "label": "{ enabled = true }", "description": [], - "path": "packages/content-management/favorites/favorites_public/src/favorites_query.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_query.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -547,7 +547,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_query.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_query.tsx", "deprecated": false, "trackAdoption": false } @@ -566,7 +566,7 @@ "tags": [], "label": "FavoriteButtonProps", "description": [], - "path": "packages/content-management/favorites/favorites_public/src/components/favorite_button.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorite_button.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -577,7 +577,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/content-management/favorites/favorites_public/src/components/favorite_button.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorite_button.tsx", "deprecated": false, "trackAdoption": false }, @@ -591,7 +591,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/favorites/favorites_public/src/components/favorite_button.tsx", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorite_button.tsx", "deprecated": false, "trackAdoption": false } @@ -615,7 +615,7 @@ }, "" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -631,7 +631,7 @@ "GetFavoritesResponse", ">" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -655,7 +655,7 @@ }, ">" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -669,7 +669,7 @@ "signature": [ "AddFavoriteRequest" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -695,7 +695,7 @@ }, ">" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -706,7 +706,7 @@ "tags": [], "label": "params", "description": [], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -717,7 +717,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false } @@ -736,7 +736,7 @@ "signature": [ "() => Promise" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -752,7 +752,7 @@ "signature": [ "() => string" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -768,7 +768,7 @@ "signature": [ "() => void" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -784,7 +784,7 @@ "signature": [ "() => void" ], - "path": "packages/content-management/favorites/favorites_public/src/favorites_client.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts", "deprecated": false, "trackAdoption": false, "children": [], diff --git a/api_docs/kbn_content_management_favorites_public.mdx b/api_docs/kbn_content_management_favorites_public.mdx index 2f38def4a5084..2ba17cbe2a08b 100644 --- a/api_docs/kbn_content_management_favorites_public.mdx +++ b/api_docs/kbn_content_management_favorites_public.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-favorites-public title: "@kbn/content-management-favorites-public" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-favorites-public plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-favorites-public'] --- import kbnContentManagementFavoritesPublicObj from './kbn_content_management_favorites_public.devdocs.json'; diff --git a/api_docs/kbn_content_management_favorites_server.devdocs.json b/api_docs/kbn_content_management_favorites_server.devdocs.json index 58057bad832fc..ccd2514d36f9b 100644 --- a/api_docs/kbn_content_management_favorites_server.devdocs.json +++ b/api_docs/kbn_content_management_favorites_server.devdocs.json @@ -21,7 +21,7 @@ "signature": [ "({\n logger,\n core,\n usageCollection,\n}: { core: ", "CoreSetup", - "; logger: ", + "<{}, unknown>; logger: ", { "pluginId": "@kbn/logging", "scope": "common", @@ -40,7 +40,7 @@ " | undefined; }) => ", "FavoritesRegistrySetup" ], - "path": "packages/content-management/favorites/favorites_server/src/index.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -51,7 +51,7 @@ "tags": [], "label": "{\n logger,\n core,\n usageCollection,\n}", "description": [], - "path": "packages/content-management/favorites/favorites_server/src/index.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -64,9 +64,9 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], - "path": "packages/content-management/favorites/favorites_server/src/index.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/index.ts", "deprecated": false, "trackAdoption": false }, @@ -86,7 +86,7 @@ "text": "Logger" } ], - "path": "packages/content-management/favorites/favorites_server/src/index.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/index.ts", "deprecated": false, "trackAdoption": false }, @@ -107,7 +107,7 @@ }, " | undefined" ], - "path": "packages/content-management/favorites/favorites_server/src/index.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/index.ts", "deprecated": false, "trackAdoption": false } @@ -126,7 +126,7 @@ "tags": [], "label": "AddFavoriteResponse", "description": [], - "path": "packages/content-management/favorites/favorites_server/src/favorites_routes.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -140,7 +140,7 @@ "signature": [ "string[]" ], - "path": "packages/content-management/favorites/favorites_server/src/favorites_routes.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts", "deprecated": false, "trackAdoption": false } @@ -154,7 +154,7 @@ "tags": [], "label": "GetFavoritesResponse", "description": [], - "path": "packages/content-management/favorites/favorites_server/src/favorites_routes.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -168,7 +168,7 @@ "signature": [ "string[]" ], - "path": "packages/content-management/favorites/favorites_server/src/favorites_routes.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts", "deprecated": false, "trackAdoption": false }, @@ -182,7 +182,7 @@ "signature": [ "Record | undefined" ], - "path": "packages/content-management/favorites/favorites_server/src/favorites_routes.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts", "deprecated": false, "trackAdoption": false } @@ -196,7 +196,7 @@ "tags": [], "label": "RemoveFavoriteResponse", "description": [], - "path": "packages/content-management/favorites/favorites_server/src/favorites_routes.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -210,7 +210,7 @@ "signature": [ "string[]" ], - "path": "packages/content-management/favorites/favorites_server/src/favorites_routes.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts", "deprecated": false, "trackAdoption": false } @@ -230,7 +230,7 @@ "signature": [ "{ registerFavoriteType: (type: string, config?: FavoriteTypeConfig) => void; }" ], - "path": "packages/content-management/favorites/favorites_server/src/index.ts", + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_content_management_favorites_server.mdx b/api_docs/kbn_content_management_favorites_server.mdx index 8eeb38be2ffba..ad41c20a89d8e 100644 --- a/api_docs/kbn_content_management_favorites_server.mdx +++ b/api_docs/kbn_content_management_favorites_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-favorites-server title: "@kbn/content-management-favorites-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-favorites-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-favorites-server'] --- import kbnContentManagementFavoritesServerObj from './kbn_content_management_favorites_server.devdocs.json'; diff --git a/api_docs/kbn_content_management_tabbed_table_list_view.devdocs.json b/api_docs/kbn_content_management_tabbed_table_list_view.devdocs.json index b66e4702fb4e8..d504975b14a78 100644 --- a/api_docs/kbn_content_management_tabbed_table_list_view.devdocs.json +++ b/api_docs/kbn_content_management_tabbed_table_list_view.devdocs.json @@ -13,7 +13,7 @@ "signature": [ "({ title, description, headingId, children, tabs, activeTabId, changeActiveTab, }: TabbedTableListViewProps) => React.JSX.Element" ], - "path": "packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", + "path": "src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -27,7 +27,7 @@ "signature": [ "TabbedTableListViewProps" ], - "path": "packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", + "path": "src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -55,7 +55,7 @@ }, "" ], - "path": "packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", + "path": "src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -66,7 +66,7 @@ "tags": [], "label": "title", "description": [], - "path": "packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", + "path": "src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", "deprecated": false, "trackAdoption": false }, @@ -77,7 +77,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", + "path": "src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", "deprecated": false, "trackAdoption": false }, @@ -99,7 +99,7 @@ }, ") => React.ReactNode | Promise" ], - "path": "packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", + "path": "src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -120,7 +120,7 @@ }, "" ], - "path": "packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", + "path": "src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -144,7 +144,7 @@ "signature": [ "{ onFetchSuccess: () => void; setPageDataTestSubject: (subject: string) => void; }" ], - "path": "packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", + "path": "src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_content_management_tabbed_table_list_view.mdx b/api_docs/kbn_content_management_tabbed_table_list_view.mdx index 3d921cb42ab66..5ce764ad6970c 100644 --- a/api_docs/kbn_content_management_tabbed_table_list_view.mdx +++ b/api_docs/kbn_content_management_tabbed_table_list_view.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-tabbed-table-list-view title: "@kbn/content-management-tabbed-table-list-view" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-tabbed-table-list-view plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-tabbed-table-list-view'] --- import kbnContentManagementTabbedTableListViewObj from './kbn_content_management_tabbed_table_list_view.devdocs.json'; diff --git a/api_docs/kbn_content_management_table_list_view.devdocs.json b/api_docs/kbn_content_management_table_list_view.devdocs.json index 8e3f45f10ce5d..fde91efd59c5d 100644 --- a/api_docs/kbn_content_management_table_list_view.devdocs.json +++ b/api_docs/kbn_content_management_table_list_view.devdocs.json @@ -29,7 +29,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/content-management/table_list_view/src/table_list_view.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view/src/table_list_view.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -50,7 +50,7 @@ }, "" ], - "path": "packages/content-management/table_list_view/src/table_list_view.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view/src/table_list_view.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -81,7 +81,7 @@ }, ", \"id\" | \"entityName\" | \"entityNamePlural\" | \"initialFilter\" | \"headingId\" | \"initialPageSize\" | \"listingLimit\" | \"urlStateEnabled\" | \"customTableColumn\" | \"emptyPrompt\" | \"findItems\" | \"createItem\" | \"editItem\" | \"deleteItems\" | \"getDetailViewLink\" | \"getOnClickTitle\" | \"rowItemActions\" | \"contentEditor\" | \"titleColumnName\" | \"withoutPageTemplateWrapper\" | \"createdByEnabled\" | \"recentlyAccessed\"> & { title: string; description?: string | undefined; additionalRightSideActions?: React.ReactNode[] | undefined; children?: React.ReactNode; }" ], - "path": "packages/content-management/table_list_view/src/table_list_view.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view/src/table_list_view.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_content_management_table_list_view.mdx b/api_docs/kbn_content_management_table_list_view.mdx index fd0bacbcd3a0d..1003693d778d6 100644 --- a/api_docs/kbn_content_management_table_list_view.mdx +++ b/api_docs/kbn_content_management_table_list_view.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-table-list-view title: "@kbn/content-management-table-list-view" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-table-list-view plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-table-list-view'] --- import kbnContentManagementTableListViewObj from './kbn_content_management_table_list_view.devdocs.json'; diff --git a/api_docs/kbn_content_management_table_list_view_common.devdocs.json b/api_docs/kbn_content_management_table_list_view_common.devdocs.json index 3483f609970c7..cda64a8230951 100644 --- a/api_docs/kbn_content_management_table_list_view_common.devdocs.json +++ b/api_docs/kbn_content_management_table_list_view_common.devdocs.json @@ -27,7 +27,7 @@ "tags": [], "label": "UserContentCommonSchema", "description": [], - "path": "packages/content-management/table_list_view_common/index.ts", + "path": "src/platform/packages/shared/content-management/table_list_view_common/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -38,7 +38,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/content-management/table_list_view_common/index.ts", + "path": "src/platform/packages/shared/content-management/table_list_view_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -49,7 +49,7 @@ "tags": [], "label": "updatedAt", "description": [], - "path": "packages/content-management/table_list_view_common/index.ts", + "path": "src/platform/packages/shared/content-management/table_list_view_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -63,7 +63,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/table_list_view_common/index.ts", + "path": "src/platform/packages/shared/content-management/table_list_view_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -77,7 +77,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/table_list_view_common/index.ts", + "path": "src/platform/packages/shared/content-management/table_list_view_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -91,7 +91,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/table_list_view_common/index.ts", + "path": "src/platform/packages/shared/content-management/table_list_view_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -105,7 +105,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/content-management/table_list_view_common/index.ts", + "path": "src/platform/packages/shared/content-management/table_list_view_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -126,7 +126,7 @@ }, "[]" ], - "path": "packages/content-management/table_list_view_common/index.ts", + "path": "src/platform/packages/shared/content-management/table_list_view_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -137,7 +137,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/content-management/table_list_view_common/index.ts", + "path": "src/platform/packages/shared/content-management/table_list_view_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -151,7 +151,7 @@ "signature": [ "{ title: string; description?: string | undefined; }" ], - "path": "packages/content-management/table_list_view_common/index.ts", + "path": "src/platform/packages/shared/content-management/table_list_view_common/index.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_content_management_table_list_view_common.mdx b/api_docs/kbn_content_management_table_list_view_common.mdx index bfec7e0cd90cf..2b21c46bfec1b 100644 --- a/api_docs/kbn_content_management_table_list_view_common.mdx +++ b/api_docs/kbn_content_management_table_list_view_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-table-list-view-common title: "@kbn/content-management-table-list-view-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-table-list-view-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-table-list-view-common'] --- import kbnContentManagementTableListViewCommonObj from './kbn_content_management_table_list_view_common.devdocs.json'; diff --git a/api_docs/kbn_content_management_table_list_view_table.devdocs.json b/api_docs/kbn_content_management_table_list_view_table.devdocs.json index 83e4abb33ae13..29234b8a91ba4 100644 --- a/api_docs/kbn_content_management_table_list_view_table.devdocs.json +++ b/api_docs/kbn_content_management_table_list_view_table.devdocs.json @@ -23,7 +23,7 @@ }, ">) => React.JSX.Element" ], - "path": "packages/content-management/table_list_view_table/src/services.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -45,7 +45,7 @@ }, ">" ], - "path": "packages/content-management/table_list_view_table/src/services.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -68,7 +68,7 @@ "Services", ">) => React.JSX.Element" ], - "path": "packages/content-management/table_list_view_table/src/services.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -84,7 +84,7 @@ "Services", ">" ], - "path": "packages/content-management/table_list_view_table/src/services.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -119,7 +119,7 @@ }, ") => React.JSX.Element | null" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -141,7 +141,7 @@ }, "" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false } @@ -159,7 +159,7 @@ "description": [ "\nKibana-specific service types." ], - "path": "packages/content-management/table_list_view_table/src/services.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -191,7 +191,7 @@ "UserProfile", "[]>; }; }" ], - "path": "packages/content-management/table_list_view_table/src/services.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx", "deprecated": false, "trackAdoption": false }, @@ -233,7 +233,7 @@ }, "[]) => string[]; }; } | undefined" ], - "path": "packages/content-management/table_list_view_table/src/services.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx", "deprecated": false, "trackAdoption": false }, @@ -257,7 +257,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/content-management/table_list_view_table/src/services.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -303,7 +303,7 @@ }, " | undefined" ], - "path": "packages/content-management/table_list_view_table/src/services.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx", "deprecated": false, "trackAdoption": false }, @@ -326,7 +326,7 @@ }, " | undefined" ], - "path": "packages/content-management/table_list_view_table/src/services.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx", "deprecated": false, "trackAdoption": false }, @@ -342,7 +342,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/content-management/table_list_view_table/src/services.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx", "deprecated": false, "trackAdoption": false } @@ -366,7 +366,7 @@ }, "" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -377,7 +377,7 @@ "tags": [], "label": "entityName", "description": [], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -388,7 +388,7 @@ "tags": [], "label": "entityNamePlural", "description": [], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -399,7 +399,7 @@ "tags": [], "label": "listingLimit", "description": [], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -413,7 +413,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -424,7 +424,7 @@ "tags": [], "label": "initialPageSize", "description": [], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -438,7 +438,7 @@ "signature": [ "JSX.Element | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -455,7 +455,7 @@ "EuiBasicTableColumn", " | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -469,7 +469,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -483,7 +483,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -499,7 +499,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -515,7 +515,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -539,7 +539,7 @@ }, " | undefined) | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -553,7 +553,7 @@ "signature": [ "T" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -575,7 +575,7 @@ "SavedObjectsFindOptionsReference", "[] | undefined; } | undefined) => Promise<{ total: number; hits: T[]; }>" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -589,7 +589,7 @@ "signature": [ "string" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -601,7 +601,7 @@ "tags": [], "label": "refs", "description": [], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -616,7 +616,7 @@ "SavedObjectsFindOptionsReference", "[] | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -631,7 +631,7 @@ "SavedObjectsFindOptionsReference", "[] | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false } @@ -652,7 +652,7 @@ "signature": [ "((entity: T) => string | undefined) | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -666,7 +666,7 @@ "signature": [ "T" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -686,7 +686,7 @@ "signature": [ "((item: T) => (() => void) | undefined) | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -700,7 +700,7 @@ "signature": [ "T" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -718,7 +718,7 @@ "signature": [ "(() => void) | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -734,7 +734,7 @@ "signature": [ "((items: T[]) => Promise) | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -748,7 +748,7 @@ "signature": [ "T[]" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -768,7 +768,7 @@ "signature": [ "((item: T) => void) | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -782,7 +782,7 @@ "signature": [ "T" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -802,7 +802,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -821,17 +821,17 @@ "signature": [ "boolean | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": true, "trackAdoption": false, "references": [ { "plugin": "@kbn/content-management-table-list-view", - "path": "packages/content-management/table_list_view/src/table_list_view.tsx" + "path": "src/platform/packages/shared/content-management/table_list_view/src/table_list_view.tsx" }, { "plugin": "@kbn/content-management-table-list-view", - "path": "packages/content-management/table_list_view/src/table_list_view.tsx" + "path": "src/platform/packages/shared/content-management/table_list_view/src/table_list_view.tsx" }, { "plugin": "filesManagement", @@ -849,7 +849,7 @@ "signature": [ "ContentEditorConfig | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -871,7 +871,7 @@ }, ", \"get\"> | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -882,7 +882,7 @@ "tags": [], "label": "tableCaption", "description": [], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -898,7 +898,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false }, @@ -912,7 +912,7 @@ "signature": [ "() => void" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -928,7 +928,7 @@ "signature": [ "(subject: string) => void" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -942,7 +942,7 @@ "signature": [ "string" ], - "path": "packages/content-management/table_list_view_table/src/table_list_view_table.tsx", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -966,7 +966,7 @@ "signature": [ "{ delete?: { enabled: boolean; reason?: string | undefined; } | undefined; edit?: { enabled: boolean; reason?: string | undefined; } | undefined; }" ], - "path": "packages/content-management/table_list_view_table/src/types.ts", + "path": "src/platform/packages/shared/content-management/table_list_view_table/src/types.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_content_management_table_list_view_table.mdx b/api_docs/kbn_content_management_table_list_view_table.mdx index a438d6d608f42..451024711c48e 100644 --- a/api_docs/kbn_content_management_table_list_view_table.mdx +++ b/api_docs/kbn_content_management_table_list_view_table.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-table-list-view-table title: "@kbn/content-management-table-list-view-table" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-table-list-view-table plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-table-list-view-table'] --- import kbnContentManagementTableListViewTableObj from './kbn_content_management_table_list_view_table.devdocs.json'; diff --git a/api_docs/kbn_content_management_user_profiles.devdocs.json b/api_docs/kbn_content_management_user_profiles.devdocs.json index 68090f68568f6..cdee4b63f60e8 100644 --- a/api_docs/kbn_content_management_user_profiles.devdocs.json +++ b/api_docs/kbn_content_management_user_profiles.devdocs.json @@ -13,7 +13,7 @@ "signature": [ "({\n entityName = i18n.translate('contentManagement.userProfiles.managedAvatarTip.defaultEntityName', {\n defaultMessage: 'object',\n }),\n}: { entityName?: string | undefined; }) => React.JSX.Element" ], - "path": "packages/content-management/user_profiles/src/components/managed_avatar_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/managed_avatar_tip.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -24,7 +24,7 @@ "tags": [], "label": "{\n entityName = i18n.translate('contentManagement.userProfiles.managedAvatarTip.defaultEntityName', {\n defaultMessage: 'object',\n }),\n}", "description": [], - "path": "packages/content-management/user_profiles/src/components/managed_avatar_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/managed_avatar_tip.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -38,7 +38,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/user_profiles/src/components/managed_avatar_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/managed_avatar_tip.tsx", "deprecated": false, "trackAdoption": false } @@ -60,7 +60,7 @@ "IconType", " | undefined; includeVersionTip?: boolean | undefined; entityNamePlural?: string | undefined; }) => React.JSX.Element" ], - "path": "packages/content-management/user_profiles/src/components/user_missing_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -71,7 +71,7 @@ "tags": [], "label": "props", "description": [], - "path": "packages/content-management/user_profiles/src/components/user_missing_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -86,7 +86,7 @@ "IconType", " | undefined" ], - "path": "packages/content-management/user_profiles/src/components/user_missing_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx", "deprecated": false, "trackAdoption": false }, @@ -100,7 +100,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/content-management/user_profiles/src/components/user_missing_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx", "deprecated": false, "trackAdoption": false }, @@ -114,7 +114,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/user_profiles/src/components/user_missing_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx", "deprecated": false, "trackAdoption": false } @@ -134,7 +134,7 @@ "signature": [ "(props: { iconType?: string | undefined; includeVersionTip?: boolean | undefined; entityNamePlural?: string | undefined; }) => React.JSX.Element" ], - "path": "packages/content-management/user_profiles/src/components/user_missing_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -145,7 +145,7 @@ "tags": [], "label": "props", "description": [], - "path": "packages/content-management/user_profiles/src/components/user_missing_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -159,7 +159,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/user_profiles/src/components/user_missing_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx", "deprecated": false, "trackAdoption": false }, @@ -173,7 +173,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/content-management/user_profiles/src/components/user_missing_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx", "deprecated": false, "trackAdoption": false }, @@ -187,7 +187,7 @@ "signature": [ "string | undefined" ], - "path": "packages/content-management/user_profiles/src/components/user_missing_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx", "deprecated": false, "trackAdoption": false } @@ -207,7 +207,7 @@ "signature": [ "(props: { uid: string; }) => React.JSX.Element | null" ], - "path": "packages/content-management/user_profiles/src/components/user_avatar_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_avatar_tip.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -218,7 +218,7 @@ "tags": [], "label": "props", "description": [], - "path": "packages/content-management/user_profiles/src/components/user_avatar_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_avatar_tip.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -229,7 +229,7 @@ "tags": [], "label": "uid", "description": [], - "path": "packages/content-management/user_profiles/src/components/user_avatar_tip.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/components/user_avatar_tip.tsx", "deprecated": false, "trackAdoption": false } @@ -257,7 +257,7 @@ }, ">) => React.JSX.Element" ], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -279,7 +279,7 @@ }, ">" ], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -306,7 +306,7 @@ }, ">) => React.JSX.Element" ], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -328,7 +328,7 @@ }, ">" ], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -365,7 +365,7 @@ }, ">, unknown>" ], - "path": "packages/content-management/user_profiles/src/queries.ts", + "path": "src/platform/packages/shared/content-management/user_profiles/src/queries.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -379,7 +379,7 @@ "signature": [ "string" ], - "path": "packages/content-management/user_profiles/src/queries.ts", + "path": "src/platform/packages/shared/content-management/user_profiles/src/queries.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -416,7 +416,7 @@ }, ">[], unknown>" ], - "path": "packages/content-management/user_profiles/src/queries.ts", + "path": "src/platform/packages/shared/content-management/user_profiles/src/queries.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -430,7 +430,7 @@ "signature": [ "string[]" ], - "path": "packages/content-management/user_profiles/src/queries.ts", + "path": "src/platform/packages/shared/content-management/user_profiles/src/queries.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -442,7 +442,7 @@ "tags": [], "label": "opts", "description": [], - "path": "packages/content-management/user_profiles/src/queries.ts", + "path": "src/platform/packages/shared/content-management/user_profiles/src/queries.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -456,7 +456,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/content-management/user_profiles/src/queries.ts", + "path": "src/platform/packages/shared/content-management/user_profiles/src/queries.ts", "deprecated": false, "trackAdoption": false } @@ -483,7 +483,7 @@ "text": "UserProfilesServices" } ], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -499,7 +499,7 @@ "tags": [], "label": "UserProfilesKibanaDependencies", "description": [], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -519,7 +519,7 @@ "UserProfile", "[]>; }; }" ], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false } @@ -533,7 +533,7 @@ "tags": [], "label": "UserProfilesServices", "description": [], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -563,7 +563,7 @@ }, ">[]>" ], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -577,7 +577,7 @@ "signature": [ "string[]" ], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -611,7 +611,7 @@ }, ">>" ], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -625,7 +625,7 @@ "signature": [ "string" ], - "path": "packages/content-management/user_profiles/src/services.tsx", + "path": "src/platform/packages/shared/content-management/user_profiles/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true diff --git a/api_docs/kbn_content_management_user_profiles.mdx b/api_docs/kbn_content_management_user_profiles.mdx index 48b9837cff60f..68bd0bb414227 100644 --- a/api_docs/kbn_content_management_user_profiles.mdx +++ b/api_docs/kbn_content_management_user_profiles.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-user-profiles title: "@kbn/content-management-user-profiles" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-user-profiles plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-user-profiles'] --- import kbnContentManagementUserProfilesObj from './kbn_content_management_user_profiles.devdocs.json'; diff --git a/api_docs/kbn_content_management_utils.mdx b/api_docs/kbn_content_management_utils.mdx index b537b9716ab9a..b1a339eefaa71 100644 --- a/api_docs/kbn_content_management_utils.mdx +++ b/api_docs/kbn_content_management_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-utils title: "@kbn/content-management-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-utils'] --- import kbnContentManagementUtilsObj from './kbn_content_management_utils.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_browser.devdocs.json b/api_docs/kbn_core_analytics_browser.devdocs.json index de1d82301370a..4665138441f23 100644 --- a/api_docs/kbn_core_analytics_browser.devdocs.json +++ b/api_docs/kbn_core_analytics_browser.devdocs.json @@ -612,11 +612,11 @@ }, { "plugin": "@kbn/shared-ux-chrome-navigation", - "path": "packages/shared-ux/chrome/navigation/src/analytics/event_tracker.ts" + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/analytics/event_tracker.ts" }, { "plugin": "@kbn/shared-ux-chrome-navigation", - "path": "packages/shared-ux/chrome/navigation/src/services.tsx" + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/services.tsx" }, { "plugin": "spaces", @@ -1060,7 +1060,7 @@ }, { "plugin": "@kbn/shared-ux-chrome-navigation", - "path": "packages/shared-ux/chrome/navigation/mocks/storybook.ts" + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/mocks/storybook.ts" }, { "plugin": "@kbn/core-analytics-browser-mocks", @@ -1809,8 +1809,8 @@ "path": "src/core/packages/analytics/browser-internal/src/analytics_service.ts" }, { - "plugin": "@kbn/core-chrome-browser-internal", - "path": "packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.ts" }, { "plugin": "cloud", @@ -1962,23 +1962,23 @@ }, { "plugin": "@kbn/core", - "path": "src/core/packages/execution-context/browser-internal/src/execution_context_service.test.ts" + "path": "src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.test.ts" }, { "plugin": "@kbn/core", - "path": "src/core/packages/execution-context/browser-internal/src/execution_context_service.test.ts" + "path": "src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.test.ts" }, { - "plugin": "@kbn/core-chrome-browser-internal", - "path": "packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.test.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.test.ts" }, { - "plugin": "@kbn/core-chrome-browser-internal", - "path": "packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.test.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/execution-context/browser-internal/src/execution_context_service.test.ts" }, { - "plugin": "@kbn/core-chrome-browser-internal", - "path": "packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.test.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/execution-context/browser-internal/src/execution_context_service.test.ts" }, { "plugin": "@kbn/core-analytics-server-mocks", diff --git a/api_docs/kbn_core_analytics_browser.mdx b/api_docs/kbn_core_analytics_browser.mdx index 84a373390b0de..11f636a7712fd 100644 --- a/api_docs/kbn_core_analytics_browser.mdx +++ b/api_docs/kbn_core_analytics_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-browser title: "@kbn/core-analytics-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-browser'] --- import kbnCoreAnalyticsBrowserObj from './kbn_core_analytics_browser.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_browser_internal.mdx b/api_docs/kbn_core_analytics_browser_internal.mdx index a269b45be9c9b..70fc7aa661113 100644 --- a/api_docs/kbn_core_analytics_browser_internal.mdx +++ b/api_docs/kbn_core_analytics_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-browser-internal title: "@kbn/core-analytics-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-browser-internal'] --- import kbnCoreAnalyticsBrowserInternalObj from './kbn_core_analytics_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_browser_mocks.mdx b/api_docs/kbn_core_analytics_browser_mocks.mdx index e5de515a26ebc..7ca9e0615fe3f 100644 --- a/api_docs/kbn_core_analytics_browser_mocks.mdx +++ b/api_docs/kbn_core_analytics_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-browser-mocks title: "@kbn/core-analytics-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-browser-mocks'] --- import kbnCoreAnalyticsBrowserMocksObj from './kbn_core_analytics_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_server.devdocs.json b/api_docs/kbn_core_analytics_server.devdocs.json index 02ee239846628..4771066c3c615 100644 --- a/api_docs/kbn_core_analytics_server.devdocs.json +++ b/api_docs/kbn_core_analytics_server.devdocs.json @@ -620,11 +620,11 @@ }, { "plugin": "@kbn/shared-ux-chrome-navigation", - "path": "packages/shared-ux/chrome/navigation/src/analytics/event_tracker.ts" + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/analytics/event_tracker.ts" }, { "plugin": "@kbn/shared-ux-chrome-navigation", - "path": "packages/shared-ux/chrome/navigation/src/services.tsx" + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/services.tsx" }, { "plugin": "spaces", @@ -1068,7 +1068,7 @@ }, { "plugin": "@kbn/shared-ux-chrome-navigation", - "path": "packages/shared-ux/chrome/navigation/mocks/storybook.ts" + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/mocks/storybook.ts" }, { "plugin": "@kbn/core-analytics-browser-mocks", @@ -1817,8 +1817,8 @@ "path": "src/core/packages/analytics/browser-internal/src/analytics_service.ts" }, { - "plugin": "@kbn/core-chrome-browser-internal", - "path": "packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.ts" }, { "plugin": "cloud", @@ -1970,23 +1970,23 @@ }, { "plugin": "@kbn/core", - "path": "src/core/packages/execution-context/browser-internal/src/execution_context_service.test.ts" + "path": "src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.test.ts" }, { "plugin": "@kbn/core", - "path": "src/core/packages/execution-context/browser-internal/src/execution_context_service.test.ts" + "path": "src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.test.ts" }, { - "plugin": "@kbn/core-chrome-browser-internal", - "path": "packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.test.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.test.ts" }, { - "plugin": "@kbn/core-chrome-browser-internal", - "path": "packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.test.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/execution-context/browser-internal/src/execution_context_service.test.ts" }, { - "plugin": "@kbn/core-chrome-browser-internal", - "path": "packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.test.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/execution-context/browser-internal/src/execution_context_service.test.ts" }, { "plugin": "@kbn/core-analytics-server-mocks", diff --git a/api_docs/kbn_core_analytics_server.mdx b/api_docs/kbn_core_analytics_server.mdx index 12e2c65799f50..2d00c6a56a9dd 100644 --- a/api_docs/kbn_core_analytics_server.mdx +++ b/api_docs/kbn_core_analytics_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-server title: "@kbn/core-analytics-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-server'] --- import kbnCoreAnalyticsServerObj from './kbn_core_analytics_server.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_server_internal.mdx b/api_docs/kbn_core_analytics_server_internal.mdx index 92a265b507a98..70d0826ec3a18 100644 --- a/api_docs/kbn_core_analytics_server_internal.mdx +++ b/api_docs/kbn_core_analytics_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-server-internal title: "@kbn/core-analytics-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-server-internal'] --- import kbnCoreAnalyticsServerInternalObj from './kbn_core_analytics_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_server_mocks.mdx b/api_docs/kbn_core_analytics_server_mocks.mdx index 9f75bb349625d..a7fa6ab542cbc 100644 --- a/api_docs/kbn_core_analytics_server_mocks.mdx +++ b/api_docs/kbn_core_analytics_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-server-mocks title: "@kbn/core-analytics-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-server-mocks'] --- import kbnCoreAnalyticsServerMocksObj from './kbn_core_analytics_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_application_browser.mdx b/api_docs/kbn_core_application_browser.mdx index e1167816da474..38e7432e9f6dc 100644 --- a/api_docs/kbn_core_application_browser.mdx +++ b/api_docs/kbn_core_application_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-browser title: "@kbn/core-application-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-browser'] --- import kbnCoreApplicationBrowserObj from './kbn_core_application_browser.devdocs.json'; diff --git a/api_docs/kbn_core_application_browser_internal.mdx b/api_docs/kbn_core_application_browser_internal.mdx index c3b469c1493a2..3470b9397fa5b 100644 --- a/api_docs/kbn_core_application_browser_internal.mdx +++ b/api_docs/kbn_core_application_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-browser-internal title: "@kbn/core-application-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-browser-internal'] --- import kbnCoreApplicationBrowserInternalObj from './kbn_core_application_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_application_browser_mocks.mdx b/api_docs/kbn_core_application_browser_mocks.mdx index 20515df691608..35e53e902b6b5 100644 --- a/api_docs/kbn_core_application_browser_mocks.mdx +++ b/api_docs/kbn_core_application_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-browser-mocks title: "@kbn/core-application-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-browser-mocks'] --- import kbnCoreApplicationBrowserMocksObj from './kbn_core_application_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_application_common.mdx b/api_docs/kbn_core_application_common.mdx index 0f9a33f1102fe..22d9edbc99625 100644 --- a/api_docs/kbn_core_application_common.mdx +++ b/api_docs/kbn_core_application_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-common title: "@kbn/core-application-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-common'] --- import kbnCoreApplicationCommonObj from './kbn_core_application_common.devdocs.json'; diff --git a/api_docs/kbn_core_apps_browser_internal.devdocs.json b/api_docs/kbn_core_apps_browser_internal.devdocs.json index bcf50a10c4da3..1ed8e4257b9b9 100644 --- a/api_docs/kbn_core_apps_browser_internal.devdocs.json +++ b/api_docs/kbn_core_apps_browser_internal.devdocs.json @@ -288,13 +288,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/core/packages/apps/browser-internal/src/core_app.ts", "deprecated": false, diff --git a/api_docs/kbn_core_apps_browser_internal.mdx b/api_docs/kbn_core_apps_browser_internal.mdx index 7c386144b4678..7b47adb1ba144 100644 --- a/api_docs/kbn_core_apps_browser_internal.mdx +++ b/api_docs/kbn_core_apps_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-apps-browser-internal title: "@kbn/core-apps-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-apps-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-apps-browser-internal'] --- import kbnCoreAppsBrowserInternalObj from './kbn_core_apps_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_apps_browser_mocks.mdx b/api_docs/kbn_core_apps_browser_mocks.mdx index eaea5df7875dc..1660f2fcdb436 100644 --- a/api_docs/kbn_core_apps_browser_mocks.mdx +++ b/api_docs/kbn_core_apps_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-apps-browser-mocks title: "@kbn/core-apps-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-apps-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-apps-browser-mocks'] --- import kbnCoreAppsBrowserMocksObj from './kbn_core_apps_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_apps_server_internal.mdx b/api_docs/kbn_core_apps_server_internal.mdx index 2ad764ed2ee81..5d5086b91a99c 100644 --- a/api_docs/kbn_core_apps_server_internal.mdx +++ b/api_docs/kbn_core_apps_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-apps-server-internal title: "@kbn/core-apps-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-apps-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-apps-server-internal'] --- import kbnCoreAppsServerInternalObj from './kbn_core_apps_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_base_browser_mocks.mdx b/api_docs/kbn_core_base_browser_mocks.mdx index 915ecceff9b73..46770202543f2 100644 --- a/api_docs/kbn_core_base_browser_mocks.mdx +++ b/api_docs/kbn_core_base_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-browser-mocks title: "@kbn/core-base-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-browser-mocks'] --- import kbnCoreBaseBrowserMocksObj from './kbn_core_base_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_base_common.mdx b/api_docs/kbn_core_base_common.mdx index 534899c85e0bf..e4febb819604a 100644 --- a/api_docs/kbn_core_base_common.mdx +++ b/api_docs/kbn_core_base_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-common title: "@kbn/core-base-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-common'] --- import kbnCoreBaseCommonObj from './kbn_core_base_common.devdocs.json'; diff --git a/api_docs/kbn_core_base_server_internal.mdx b/api_docs/kbn_core_base_server_internal.mdx index 9a186b97ffdd3..3aee86bc7e1c8 100644 --- a/api_docs/kbn_core_base_server_internal.mdx +++ b/api_docs/kbn_core_base_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-server-internal title: "@kbn/core-base-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-server-internal'] --- import kbnCoreBaseServerInternalObj from './kbn_core_base_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_base_server_mocks.mdx b/api_docs/kbn_core_base_server_mocks.mdx index 73b4c5e130067..e0b87913a4bc2 100644 --- a/api_docs/kbn_core_base_server_mocks.mdx +++ b/api_docs/kbn_core_base_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-server-mocks title: "@kbn/core-base-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-server-mocks'] --- import kbnCoreBaseServerMocksObj from './kbn_core_base_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_browser_mocks.mdx b/api_docs/kbn_core_capabilities_browser_mocks.mdx index 30bad827e7aac..08c4b1386c307 100644 --- a/api_docs/kbn_core_capabilities_browser_mocks.mdx +++ b/api_docs/kbn_core_capabilities_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-browser-mocks title: "@kbn/core-capabilities-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-browser-mocks'] --- import kbnCoreCapabilitiesBrowserMocksObj from './kbn_core_capabilities_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_common.mdx b/api_docs/kbn_core_capabilities_common.mdx index 636bcc2a0106b..9ac2da4acba3b 100644 --- a/api_docs/kbn_core_capabilities_common.mdx +++ b/api_docs/kbn_core_capabilities_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-common title: "@kbn/core-capabilities-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-common'] --- import kbnCoreCapabilitiesCommonObj from './kbn_core_capabilities_common.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_server.mdx b/api_docs/kbn_core_capabilities_server.mdx index 4595c26a671ce..2cc56e2f62312 100644 --- a/api_docs/kbn_core_capabilities_server.mdx +++ b/api_docs/kbn_core_capabilities_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-server title: "@kbn/core-capabilities-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-server'] --- import kbnCoreCapabilitiesServerObj from './kbn_core_capabilities_server.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_server_mocks.mdx b/api_docs/kbn_core_capabilities_server_mocks.mdx index efd5901051566..c5823d09bab4f 100644 --- a/api_docs/kbn_core_capabilities_server_mocks.mdx +++ b/api_docs/kbn_core_capabilities_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-server-mocks title: "@kbn/core-capabilities-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-server-mocks'] --- import kbnCoreCapabilitiesServerMocksObj from './kbn_core_capabilities_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_chrome_browser.mdx b/api_docs/kbn_core_chrome_browser.mdx index 3d6bc9a5dee68..fbf1ae6f2b9ff 100644 --- a/api_docs/kbn_core_chrome_browser.mdx +++ b/api_docs/kbn_core_chrome_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-chrome-browser title: "@kbn/core-chrome-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-chrome-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-chrome-browser'] --- import kbnCoreChromeBrowserObj from './kbn_core_chrome_browser.devdocs.json'; diff --git a/api_docs/kbn_core_chrome_browser_mocks.mdx b/api_docs/kbn_core_chrome_browser_mocks.mdx index 266e26205a809..9055e2e6af013 100644 --- a/api_docs/kbn_core_chrome_browser_mocks.mdx +++ b/api_docs/kbn_core_chrome_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-chrome-browser-mocks title: "@kbn/core-chrome-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-chrome-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-chrome-browser-mocks'] --- import kbnCoreChromeBrowserMocksObj from './kbn_core_chrome_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_config_server_internal.mdx b/api_docs/kbn_core_config_server_internal.mdx index 15f7c45c4f918..85a9a137452e6 100644 --- a/api_docs/kbn_core_config_server_internal.mdx +++ b/api_docs/kbn_core_config_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-config-server-internal title: "@kbn/core-config-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-config-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-config-server-internal'] --- import kbnCoreConfigServerInternalObj from './kbn_core_config_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_browser.devdocs.json b/api_docs/kbn_core_custom_branding_browser.devdocs.json index e739f2f758e56..d25f032223dc2 100644 --- a/api_docs/kbn_core_custom_branding_browser.devdocs.json +++ b/api_docs/kbn_core_custom_branding_browser.devdocs.json @@ -11,7 +11,7 @@ "tags": [], "label": "CustomBrandingSetup", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-browser/types.ts", + "path": "src/core/packages/custom-branding/browser/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -25,16 +25,10 @@ "signature": [ "Observable", "<", - { - "pluginId": "@kbn/core-custom-branding-common", - "scope": "common", - "docId": "kibKbnCoreCustomBrandingCommonPluginApi", - "section": "def-common.CustomBranding", - "text": "CustomBranding" - }, + "CustomBranding", ">" ], - "path": "packages/core/custom-branding/core-custom-branding-browser/types.ts", + "path": "src/core/packages/custom-branding/browser/types.ts", "deprecated": false, "trackAdoption": false }, @@ -49,7 +43,7 @@ "Observable", "" ], - "path": "packages/core/custom-branding/core-custom-branding-browser/types.ts", + "path": "src/core/packages/custom-branding/browser/types.ts", "deprecated": false, "trackAdoption": false } @@ -63,7 +57,7 @@ "tags": [], "label": "CustomBrandingSetupDeps", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-browser/types.ts", + "path": "src/core/packages/custom-branding/browser/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -77,7 +71,7 @@ "signature": [ "InternalInjectedMetadataSetup" ], - "path": "packages/core/custom-branding/core-custom-branding-browser/types.ts", + "path": "src/core/packages/custom-branding/browser/types.ts", "deprecated": false, "trackAdoption": false } @@ -91,7 +85,7 @@ "tags": [], "label": "CustomBrandingStart", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-browser/types.ts", + "path": "src/core/packages/custom-branding/browser/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -105,16 +99,10 @@ "signature": [ "Observable", "<", - { - "pluginId": "@kbn/core-custom-branding-common", - "scope": "common", - "docId": "kibKbnCoreCustomBrandingCommonPluginApi", - "section": "def-common.CustomBranding", - "text": "CustomBranding" - }, + "CustomBranding", ">" ], - "path": "packages/core/custom-branding/core-custom-branding-browser/types.ts", + "path": "src/core/packages/custom-branding/browser/types.ts", "deprecated": false, "trackAdoption": false }, @@ -129,7 +117,7 @@ "Observable", "" ], - "path": "packages/core/custom-branding/core-custom-branding-browser/types.ts", + "path": "src/core/packages/custom-branding/browser/types.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_core_custom_branding_browser.mdx b/api_docs/kbn_core_custom_branding_browser.mdx index b87fb3ea24754..3e51dbfee34ab 100644 --- a/api_docs/kbn_core_custom_branding_browser.mdx +++ b/api_docs/kbn_core_custom_branding_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-browser title: "@kbn/core-custom-branding-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-browser'] --- import kbnCoreCustomBrandingBrowserObj from './kbn_core_custom_branding_browser.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_browser_internal.devdocs.json b/api_docs/kbn_core_custom_branding_browser_internal.devdocs.json index 28ae3ddedeb87..d9bc53043acfe 100644 --- a/api_docs/kbn_core_custom_branding_browser_internal.devdocs.json +++ b/api_docs/kbn_core_custom_branding_browser_internal.devdocs.json @@ -9,7 +9,7 @@ "tags": [], "label": "CustomBrandingService", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-browser-internal/src/custom_branding_service.ts", + "path": "src/core/packages/custom-branding/browser-internal/src/custom_branding_service.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -22,23 +22,11 @@ "description": [], "signature": [ "({ injectedMetadata }: ", - { - "pluginId": "@kbn/core-custom-branding-browser", - "scope": "public", - "docId": "kibKbnCoreCustomBrandingBrowserPluginApi", - "section": "def-public.CustomBrandingSetupDeps", - "text": "CustomBrandingSetupDeps" - }, + "CustomBrandingSetupDeps", ") => ", - { - "pluginId": "@kbn/core-custom-branding-browser", - "scope": "public", - "docId": "kibKbnCoreCustomBrandingBrowserPluginApi", - "section": "def-public.CustomBrandingSetup", - "text": "CustomBrandingSetup" - } + "CustomBrandingSetup" ], - "path": "packages/core/custom-branding/core-custom-branding-browser-internal/src/custom_branding_service.ts", + "path": "src/core/packages/custom-branding/browser-internal/src/custom_branding_service.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -50,15 +38,9 @@ "label": "{ injectedMetadata }", "description": [], "signature": [ - { - "pluginId": "@kbn/core-custom-branding-browser", - "scope": "public", - "docId": "kibKbnCoreCustomBrandingBrowserPluginApi", - "section": "def-public.CustomBrandingSetupDeps", - "text": "CustomBrandingSetupDeps" - } + "CustomBrandingSetupDeps" ], - "path": "packages/core/custom-branding/core-custom-branding-browser-internal/src/custom_branding_service.ts", + "path": "src/core/packages/custom-branding/browser-internal/src/custom_branding_service.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -75,15 +57,9 @@ "description": [], "signature": [ "() => ", - { - "pluginId": "@kbn/core-custom-branding-browser", - "scope": "public", - "docId": "kibKbnCoreCustomBrandingBrowserPluginApi", - "section": "def-public.CustomBrandingStart", - "text": "CustomBrandingStart" - } + "CustomBrandingStart" ], - "path": "packages/core/custom-branding/core-custom-branding-browser-internal/src/custom_branding_service.ts", + "path": "src/core/packages/custom-branding/browser-internal/src/custom_branding_service.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -99,7 +75,7 @@ "signature": [ "() => void" ], - "path": "packages/core/custom-branding/core-custom-branding-browser-internal/src/custom_branding_service.ts", + "path": "src/core/packages/custom-branding/browser-internal/src/custom_branding_service.ts", "deprecated": false, "trackAdoption": false, "children": [], diff --git a/api_docs/kbn_core_custom_branding_browser_internal.mdx b/api_docs/kbn_core_custom_branding_browser_internal.mdx index 6ad98bdff3c71..4c06cbfe4ade0 100644 --- a/api_docs/kbn_core_custom_branding_browser_internal.mdx +++ b/api_docs/kbn_core_custom_branding_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-browser-internal title: "@kbn/core-custom-branding-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-browser-internal'] --- import kbnCoreCustomBrandingBrowserInternalObj from './kbn_core_custom_branding_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_browser_mocks.devdocs.json b/api_docs/kbn_core_custom_branding_browser_mocks.devdocs.json index d036f32423782..29b3968bbbd56 100644 --- a/api_docs/kbn_core_custom_branding_browser_mocks.devdocs.json +++ b/api_docs/kbn_core_custom_branding_browser_mocks.devdocs.json @@ -14,7 +14,7 @@ "tags": [], "label": "customBrandingServiceMock", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-browser-mocks/custom_branding_service.mock.ts", + "path": "src/core/packages/custom-branding/browser-mocks/custom_branding_service.mock.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -28,7 +28,7 @@ "signature": [ "() => any" ], - "path": "packages/core/custom-branding/core-custom-branding-browser-mocks/custom_branding_service.mock.ts", + "path": "src/core/packages/custom-branding/browser-mocks/custom_branding_service.mock.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -45,18 +45,12 @@ "() => { customBranding$: ", "Observable", "<", - { - "pluginId": "@kbn/core-custom-branding-common", - "scope": "common", - "docId": "kibKbnCoreCustomBrandingCommonPluginApi", - "section": "def-common.CustomBranding", - "text": "CustomBranding" - }, + "CustomBranding", ">; hasCustomBranding$: ", "Observable", "; }" ], - "path": "packages/core/custom-branding/core-custom-branding-browser-mocks/custom_branding_service.mock.ts", + "path": "src/core/packages/custom-branding/browser-mocks/custom_branding_service.mock.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -73,18 +67,12 @@ "() => { customBranding$: ", "Observable", "<", - { - "pluginId": "@kbn/core-custom-branding-common", - "scope": "common", - "docId": "kibKbnCoreCustomBrandingCommonPluginApi", - "section": "def-common.CustomBranding", - "text": "CustomBranding" - }, + "CustomBranding", ">; hasCustomBranding$: ", "Observable", "; }" ], - "path": "packages/core/custom-branding/core-custom-branding-browser-mocks/custom_branding_service.mock.ts", + "path": "src/core/packages/custom-branding/browser-mocks/custom_branding_service.mock.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], diff --git a/api_docs/kbn_core_custom_branding_browser_mocks.mdx b/api_docs/kbn_core_custom_branding_browser_mocks.mdx index 3b23a9ba13f1f..fff30c3f5ce61 100644 --- a/api_docs/kbn_core_custom_branding_browser_mocks.mdx +++ b/api_docs/kbn_core_custom_branding_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-browser-mocks title: "@kbn/core-custom-branding-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-browser-mocks'] --- import kbnCoreCustomBrandingBrowserMocksObj from './kbn_core_custom_branding_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_common.devdocs.json b/api_docs/kbn_core_custom_branding_common.devdocs.json index 909563114b26b..f4af728226b61 100644 --- a/api_docs/kbn_core_custom_branding_common.devdocs.json +++ b/api_docs/kbn_core_custom_branding_common.devdocs.json @@ -27,7 +27,7 @@ "tags": [], "label": "CustomBranding", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-common/index.ts", + "path": "src/core/packages/custom-branding/common/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -43,7 +43,7 @@ "signature": [ "string | undefined" ], - "path": "packages/core/custom-branding/core-custom-branding-common/index.ts", + "path": "src/core/packages/custom-branding/common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -59,7 +59,7 @@ "signature": [ "string | undefined" ], - "path": "packages/core/custom-branding/core-custom-branding-common/index.ts", + "path": "src/core/packages/custom-branding/common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -75,7 +75,7 @@ "signature": [ "string | undefined" ], - "path": "packages/core/custom-branding/core-custom-branding-common/index.ts", + "path": "src/core/packages/custom-branding/common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -91,7 +91,7 @@ "signature": [ "string | undefined" ], - "path": "packages/core/custom-branding/core-custom-branding-common/index.ts", + "path": "src/core/packages/custom-branding/common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -107,7 +107,7 @@ "signature": [ "string | undefined" ], - "path": "packages/core/custom-branding/core-custom-branding-common/index.ts", + "path": "src/core/packages/custom-branding/common/index.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_core_custom_branding_common.mdx b/api_docs/kbn_core_custom_branding_common.mdx index daf6e2393e486..1618cb6a89f86 100644 --- a/api_docs/kbn_core_custom_branding_common.mdx +++ b/api_docs/kbn_core_custom_branding_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-common title: "@kbn/core-custom-branding-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-common'] --- import kbnCoreCustomBrandingCommonObj from './kbn_core_custom_branding_common.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_server.devdocs.json b/api_docs/kbn_core_custom_branding_server.devdocs.json index e83f0b97fc2ae..bd7944b37efda 100644 --- a/api_docs/kbn_core_custom_branding_server.devdocs.json +++ b/api_docs/kbn_core_custom_branding_server.devdocs.json @@ -19,7 +19,7 @@ "tags": [], "label": "CustomBrandingSetup", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-server/types.ts", + "path": "src/core/packages/custom-branding/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -32,16 +32,10 @@ "description": [], "signature": [ "(fetchFn: ", - { - "pluginId": "@kbn/core-custom-branding-server", - "scope": "server", - "docId": "kibKbnCoreCustomBrandingServerPluginApi", - "section": "def-server.CustomBrandingFetchFn", - "text": "CustomBrandingFetchFn" - }, + "CustomBrandingFetchFn", ") => void" ], - "path": "packages/core/custom-branding/core-custom-branding-server/types.ts", + "path": "src/core/packages/custom-branding/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -53,15 +47,9 @@ "label": "fetchFn", "description": [], "signature": [ - { - "pluginId": "@kbn/core-custom-branding-server", - "scope": "server", - "docId": "kibKbnCoreCustomBrandingServerPluginApi", - "section": "def-server.CustomBrandingFetchFn", - "text": "CustomBrandingFetchFn" - } + "CustomBrandingFetchFn" ], - "path": "packages/core/custom-branding/core-custom-branding-server/types.ts", + "path": "src/core/packages/custom-branding/server/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -80,16 +68,10 @@ "(request: ", "KibanaRequest", ", options: { unauthenticated?: boolean | undefined; }) => Promise<", - { - "pluginId": "@kbn/core-custom-branding-common", - "scope": "common", - "docId": "kibKbnCoreCustomBrandingCommonPluginApi", - "section": "def-common.CustomBranding", - "text": "CustomBranding" - }, + "CustomBranding", ">" ], - "path": "packages/core/custom-branding/core-custom-branding-server/types.ts", + "path": "src/core/packages/custom-branding/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -104,7 +86,7 @@ "KibanaRequest", "" ], - "path": "packages/core/custom-branding/core-custom-branding-server/types.ts", + "path": "src/core/packages/custom-branding/server/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -116,7 +98,7 @@ "tags": [], "label": "options", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-server/types.ts", + "path": "src/core/packages/custom-branding/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -130,7 +112,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/core/custom-branding/core-custom-branding-server/types.ts", + "path": "src/core/packages/custom-branding/server/types.ts", "deprecated": false, "trackAdoption": false } @@ -149,7 +131,7 @@ "tags": [], "label": "CustomBrandingStart", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-server/types.ts", + "path": "src/core/packages/custom-branding/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -177,16 +159,10 @@ "text": "MaybePromise" }, "<", - { - "pluginId": "@kbn/core-custom-branding-common", - "scope": "common", - "docId": "kibKbnCoreCustomBrandingCommonPluginApi", - "section": "def-common.CustomBranding", - "text": "CustomBranding" - }, + "CustomBranding", ">" ], - "path": "packages/core/custom-branding/core-custom-branding-server/types.ts", + "path": "src/core/packages/custom-branding/server/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -202,7 +178,7 @@ "KibanaRequest", "" ], - "path": "packages/core/custom-branding/core-custom-branding-server/types.ts", + "path": "src/core/packages/custom-branding/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -213,7 +189,7 @@ "tags": [], "label": "unauthenticated", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-server/types.ts", + "path": "src/core/packages/custom-branding/server/types.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_core_custom_branding_server.mdx b/api_docs/kbn_core_custom_branding_server.mdx index e17c9e120669f..e1959ee421add 100644 --- a/api_docs/kbn_core_custom_branding_server.mdx +++ b/api_docs/kbn_core_custom_branding_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-server title: "@kbn/core-custom-branding-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-server'] --- import kbnCoreCustomBrandingServerObj from './kbn_core_custom_branding_server.devdocs.json'; diff --git a/api_docs/kbn_core_custom_branding_server_internal.devdocs.json b/api_docs/kbn_core_custom_branding_server_internal.devdocs.json index 3d4f1f296f267..5c0993b768612 100644 --- a/api_docs/kbn_core_custom_branding_server_internal.devdocs.json +++ b/api_docs/kbn_core_custom_branding_server_internal.devdocs.json @@ -17,7 +17,7 @@ "tags": [], "label": "CustomBrandingService", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-server-internal/custom_branding_service.ts", + "path": "src/core/packages/custom-branding/server-internal/custom_branding_service.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -31,7 +31,7 @@ "signature": [ "any" ], - "path": "packages/core/custom-branding/core-custom-branding-server-internal/custom_branding_service.ts", + "path": "src/core/packages/custom-branding/server-internal/custom_branding_service.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -45,7 +45,7 @@ "signature": [ "CoreContext" ], - "path": "packages/core/custom-branding/core-custom-branding-server-internal/custom_branding_service.ts", + "path": "src/core/packages/custom-branding/server-internal/custom_branding_service.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -64,7 +64,7 @@ "() => ", "InternalCustomBrandingSetup" ], - "path": "packages/core/custom-branding/core-custom-branding-server-internal/custom_branding_service.ts", + "path": "src/core/packages/custom-branding/server-internal/custom_branding_service.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -79,15 +79,9 @@ "description": [], "signature": [ "() => ", - { - "pluginId": "@kbn/core-custom-branding-server", - "scope": "server", - "docId": "kibKbnCoreCustomBrandingServerPluginApi", - "section": "def-server.CustomBrandingStart", - "text": "CustomBrandingStart" - } + "CustomBrandingStart" ], - "path": "packages/core/custom-branding/core-custom-branding-server-internal/custom_branding_service.ts", + "path": "src/core/packages/custom-branding/server-internal/custom_branding_service.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -103,7 +97,7 @@ "signature": [ "() => void" ], - "path": "packages/core/custom-branding/core-custom-branding-server-internal/custom_branding_service.ts", + "path": "src/core/packages/custom-branding/server-internal/custom_branding_service.ts", "deprecated": false, "trackAdoption": false, "children": [], diff --git a/api_docs/kbn_core_custom_branding_server_internal.mdx b/api_docs/kbn_core_custom_branding_server_internal.mdx index 05315126232be..db5bd361d2bb9 100644 --- a/api_docs/kbn_core_custom_branding_server_internal.mdx +++ b/api_docs/kbn_core_custom_branding_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-server-internal title: "@kbn/core-custom-branding-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-server-internal'] --- import kbnCoreCustomBrandingServerInternalObj from './kbn_core_custom_branding_server_internal.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sh | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 6 | 0 | 6 | 1 | +| 6 | 0 | 6 | 0 | ## Server diff --git a/api_docs/kbn_core_custom_branding_server_mocks.devdocs.json b/api_docs/kbn_core_custom_branding_server_mocks.devdocs.json index d7913d3093813..3751c92de3499 100644 --- a/api_docs/kbn_core_custom_branding_server_mocks.devdocs.json +++ b/api_docs/kbn_core_custom_branding_server_mocks.devdocs.json @@ -22,7 +22,7 @@ "tags": [], "label": "customBrandingServiceMock", "description": [], - "path": "packages/core/custom-branding/core-custom-branding-server-mocks/src/custom_branding_service.mock.ts", + "path": "src/core/packages/custom-branding/server-mocks/src/custom_branding_service.mock.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -35,16 +35,10 @@ "description": [], "signature": [ "() => jest.Mocked<", - { - "pluginId": "@kbn/core-custom-branding-server-internal", - "scope": "server", - "docId": "kibKbnCoreCustomBrandingServerInternalPluginApi", - "section": "def-server.CustomBrandingService", - "text": "CustomBrandingService" - }, + "CustomBrandingService", ">" ], - "path": "packages/core/custom-branding/core-custom-branding-server-mocks/src/custom_branding_service.mock.ts", + "path": "src/core/packages/custom-branding/server-mocks/src/custom_branding_service.mock.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -60,7 +54,7 @@ "signature": [ "() => { register: jest.Mock; getBrandingFor: jest.Mock; }" ], - "path": "packages/core/custom-branding/core-custom-branding-server-mocks/src/custom_branding_service.mock.ts", + "path": "src/core/packages/custom-branding/server-mocks/src/custom_branding_service.mock.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -76,7 +70,7 @@ "signature": [ "() => {}" ], - "path": "packages/core/custom-branding/core-custom-branding-server-mocks/src/custom_branding_service.mock.ts", + "path": "src/core/packages/custom-branding/server-mocks/src/custom_branding_service.mock.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], diff --git a/api_docs/kbn_core_custom_branding_server_mocks.mdx b/api_docs/kbn_core_custom_branding_server_mocks.mdx index d3665f4073e74..06d7918ceffb1 100644 --- a/api_docs/kbn_core_custom_branding_server_mocks.mdx +++ b/api_docs/kbn_core_custom_branding_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-custom-branding-server-mocks title: "@kbn/core-custom-branding-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-custom-branding-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-custom-branding-server-mocks'] --- import kbnCoreCustomBrandingServerMocksObj from './kbn_core_custom_branding_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_browser.mdx b/api_docs/kbn_core_deprecations_browser.mdx index e0e0a3218c390..ccfa73a566fd9 100644 --- a/api_docs/kbn_core_deprecations_browser.mdx +++ b/api_docs/kbn_core_deprecations_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-browser title: "@kbn/core-deprecations-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-browser'] --- import kbnCoreDeprecationsBrowserObj from './kbn_core_deprecations_browser.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_browser_internal.mdx b/api_docs/kbn_core_deprecations_browser_internal.mdx index 4c19317811a7e..c06e7b398bf22 100644 --- a/api_docs/kbn_core_deprecations_browser_internal.mdx +++ b/api_docs/kbn_core_deprecations_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-browser-internal title: "@kbn/core-deprecations-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-browser-internal'] --- import kbnCoreDeprecationsBrowserInternalObj from './kbn_core_deprecations_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_browser_mocks.mdx b/api_docs/kbn_core_deprecations_browser_mocks.mdx index 22192c69be461..0c3184b44e411 100644 --- a/api_docs/kbn_core_deprecations_browser_mocks.mdx +++ b/api_docs/kbn_core_deprecations_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-browser-mocks title: "@kbn/core-deprecations-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-browser-mocks'] --- import kbnCoreDeprecationsBrowserMocksObj from './kbn_core_deprecations_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_common.mdx b/api_docs/kbn_core_deprecations_common.mdx index 26ed80ce8e8ae..32e2e224fa9ee 100644 --- a/api_docs/kbn_core_deprecations_common.mdx +++ b/api_docs/kbn_core_deprecations_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-common title: "@kbn/core-deprecations-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-common'] --- import kbnCoreDeprecationsCommonObj from './kbn_core_deprecations_common.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_server.mdx b/api_docs/kbn_core_deprecations_server.mdx index e73ea91c9b7b1..492fb033407e2 100644 --- a/api_docs/kbn_core_deprecations_server.mdx +++ b/api_docs/kbn_core_deprecations_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-server title: "@kbn/core-deprecations-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-server'] --- import kbnCoreDeprecationsServerObj from './kbn_core_deprecations_server.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_server_internal.mdx b/api_docs/kbn_core_deprecations_server_internal.mdx index bfc91229cee0e..4edd8f9d762a3 100644 --- a/api_docs/kbn_core_deprecations_server_internal.mdx +++ b/api_docs/kbn_core_deprecations_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-server-internal title: "@kbn/core-deprecations-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-server-internal'] --- import kbnCoreDeprecationsServerInternalObj from './kbn_core_deprecations_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_server_mocks.mdx b/api_docs/kbn_core_deprecations_server_mocks.mdx index 70e4ee5838290..bd73d46630437 100644 --- a/api_docs/kbn_core_deprecations_server_mocks.mdx +++ b/api_docs/kbn_core_deprecations_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-server-mocks title: "@kbn/core-deprecations-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-server-mocks'] --- import kbnCoreDeprecationsServerMocksObj from './kbn_core_deprecations_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_browser.mdx b/api_docs/kbn_core_doc_links_browser.mdx index 48401fd0f387b..34c7b9ede787d 100644 --- a/api_docs/kbn_core_doc_links_browser.mdx +++ b/api_docs/kbn_core_doc_links_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-browser title: "@kbn/core-doc-links-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-browser'] --- import kbnCoreDocLinksBrowserObj from './kbn_core_doc_links_browser.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_browser_mocks.mdx b/api_docs/kbn_core_doc_links_browser_mocks.mdx index 49556609b1b8f..3669411bbbbaa 100644 --- a/api_docs/kbn_core_doc_links_browser_mocks.mdx +++ b/api_docs/kbn_core_doc_links_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-browser-mocks title: "@kbn/core-doc-links-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-browser-mocks'] --- import kbnCoreDocLinksBrowserMocksObj from './kbn_core_doc_links_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_server.mdx b/api_docs/kbn_core_doc_links_server.mdx index d742dbc72dec0..0d1d6cb5bfde4 100644 --- a/api_docs/kbn_core_doc_links_server.mdx +++ b/api_docs/kbn_core_doc_links_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-server title: "@kbn/core-doc-links-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-server'] --- import kbnCoreDocLinksServerObj from './kbn_core_doc_links_server.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_server_mocks.mdx b/api_docs/kbn_core_doc_links_server_mocks.mdx index 06b5af257f31d..1e3a49f8965cb 100644 --- a/api_docs/kbn_core_doc_links_server_mocks.mdx +++ b/api_docs/kbn_core_doc_links_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-server-mocks title: "@kbn/core-doc-links-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-server-mocks'] --- import kbnCoreDocLinksServerMocksObj from './kbn_core_doc_links_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_client_server_internal.mdx b/api_docs/kbn_core_elasticsearch_client_server_internal.mdx index 92890122c0165..16ecdf57eb60e 100644 --- a/api_docs/kbn_core_elasticsearch_client_server_internal.mdx +++ b/api_docs/kbn_core_elasticsearch_client_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-client-server-internal title: "@kbn/core-elasticsearch-client-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-client-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-client-server-internal'] --- import kbnCoreElasticsearchClientServerInternalObj from './kbn_core_elasticsearch_client_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx b/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx index 5564cf91aa3b3..18913d4423b5e 100644 --- a/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx +++ b/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-client-server-mocks title: "@kbn/core-elasticsearch-client-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-client-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-client-server-mocks'] --- import kbnCoreElasticsearchClientServerMocksObj from './kbn_core_elasticsearch_client_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_server.mdx b/api_docs/kbn_core_elasticsearch_server.mdx index 4a47110197421..0b288a3c14211 100644 --- a/api_docs/kbn_core_elasticsearch_server.mdx +++ b/api_docs/kbn_core_elasticsearch_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-server title: "@kbn/core-elasticsearch-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-server'] --- import kbnCoreElasticsearchServerObj from './kbn_core_elasticsearch_server.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_server_internal.mdx b/api_docs/kbn_core_elasticsearch_server_internal.mdx index 9ce852b7e28d9..d780bf47d8c38 100644 --- a/api_docs/kbn_core_elasticsearch_server_internal.mdx +++ b/api_docs/kbn_core_elasticsearch_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-server-internal title: "@kbn/core-elasticsearch-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-server-internal'] --- import kbnCoreElasticsearchServerInternalObj from './kbn_core_elasticsearch_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_server_mocks.mdx b/api_docs/kbn_core_elasticsearch_server_mocks.mdx index 8c506083c3ec0..83638ae5fe337 100644 --- a/api_docs/kbn_core_elasticsearch_server_mocks.mdx +++ b/api_docs/kbn_core_elasticsearch_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-server-mocks title: "@kbn/core-elasticsearch-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-server-mocks'] --- import kbnCoreElasticsearchServerMocksObj from './kbn_core_elasticsearch_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_environment_server_internal.mdx b/api_docs/kbn_core_environment_server_internal.mdx index 0ca1e18349087..6521f01f2f883 100644 --- a/api_docs/kbn_core_environment_server_internal.mdx +++ b/api_docs/kbn_core_environment_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-environment-server-internal title: "@kbn/core-environment-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-environment-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-environment-server-internal'] --- import kbnCoreEnvironmentServerInternalObj from './kbn_core_environment_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_environment_server_mocks.mdx b/api_docs/kbn_core_environment_server_mocks.mdx index a6b906551eca5..330ede26680a1 100644 --- a/api_docs/kbn_core_environment_server_mocks.mdx +++ b/api_docs/kbn_core_environment_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-environment-server-mocks title: "@kbn/core-environment-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-environment-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-environment-server-mocks'] --- import kbnCoreEnvironmentServerMocksObj from './kbn_core_environment_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_browser.mdx b/api_docs/kbn_core_execution_context_browser.mdx index 9aed94e4410fd..54a0505369c6d 100644 --- a/api_docs/kbn_core_execution_context_browser.mdx +++ b/api_docs/kbn_core_execution_context_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-browser title: "@kbn/core-execution-context-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-browser'] --- import kbnCoreExecutionContextBrowserObj from './kbn_core_execution_context_browser.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_browser_internal.mdx b/api_docs/kbn_core_execution_context_browser_internal.mdx index 5fa41bd684804..b103ef14fadc0 100644 --- a/api_docs/kbn_core_execution_context_browser_internal.mdx +++ b/api_docs/kbn_core_execution_context_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-browser-internal title: "@kbn/core-execution-context-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-browser-internal'] --- import kbnCoreExecutionContextBrowserInternalObj from './kbn_core_execution_context_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_browser_mocks.mdx b/api_docs/kbn_core_execution_context_browser_mocks.mdx index 3eb0fa29bea6b..cf967ea3ec5eb 100644 --- a/api_docs/kbn_core_execution_context_browser_mocks.mdx +++ b/api_docs/kbn_core_execution_context_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-browser-mocks title: "@kbn/core-execution-context-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-browser-mocks'] --- import kbnCoreExecutionContextBrowserMocksObj from './kbn_core_execution_context_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_common.mdx b/api_docs/kbn_core_execution_context_common.mdx index 3350692c201be..8ed04c02e1348 100644 --- a/api_docs/kbn_core_execution_context_common.mdx +++ b/api_docs/kbn_core_execution_context_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-common title: "@kbn/core-execution-context-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-common'] --- import kbnCoreExecutionContextCommonObj from './kbn_core_execution_context_common.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_server.mdx b/api_docs/kbn_core_execution_context_server.mdx index 6ee16c8df0b5f..95568b659ad99 100644 --- a/api_docs/kbn_core_execution_context_server.mdx +++ b/api_docs/kbn_core_execution_context_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-server title: "@kbn/core-execution-context-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-server'] --- import kbnCoreExecutionContextServerObj from './kbn_core_execution_context_server.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_server_internal.mdx b/api_docs/kbn_core_execution_context_server_internal.mdx index 3d75c959cd5c2..ec90ed250eeb0 100644 --- a/api_docs/kbn_core_execution_context_server_internal.mdx +++ b/api_docs/kbn_core_execution_context_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-server-internal title: "@kbn/core-execution-context-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-server-internal'] --- import kbnCoreExecutionContextServerInternalObj from './kbn_core_execution_context_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_server_mocks.mdx b/api_docs/kbn_core_execution_context_server_mocks.mdx index 6b92aa302a02c..72f600913b739 100644 --- a/api_docs/kbn_core_execution_context_server_mocks.mdx +++ b/api_docs/kbn_core_execution_context_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-server-mocks title: "@kbn/core-execution-context-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-server-mocks'] --- import kbnCoreExecutionContextServerMocksObj from './kbn_core_execution_context_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_fatal_errors_browser.mdx b/api_docs/kbn_core_fatal_errors_browser.mdx index 3a3ae192ac2c1..9d7bc19cb37f9 100644 --- a/api_docs/kbn_core_fatal_errors_browser.mdx +++ b/api_docs/kbn_core_fatal_errors_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-fatal-errors-browser title: "@kbn/core-fatal-errors-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-fatal-errors-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-fatal-errors-browser'] --- import kbnCoreFatalErrorsBrowserObj from './kbn_core_fatal_errors_browser.devdocs.json'; diff --git a/api_docs/kbn_core_fatal_errors_browser_mocks.mdx b/api_docs/kbn_core_fatal_errors_browser_mocks.mdx index 9c5d12f84a109..2fb0e9aafaada 100644 --- a/api_docs/kbn_core_fatal_errors_browser_mocks.mdx +++ b/api_docs/kbn_core_fatal_errors_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-fatal-errors-browser-mocks title: "@kbn/core-fatal-errors-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-fatal-errors-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-fatal-errors-browser-mocks'] --- import kbnCoreFatalErrorsBrowserMocksObj from './kbn_core_fatal_errors_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_browser.mdx b/api_docs/kbn_core_feature_flags_browser.mdx index 609972d8036c2..4f2e5af705386 100644 --- a/api_docs/kbn_core_feature_flags_browser.mdx +++ b/api_docs/kbn_core_feature_flags_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-browser title: "@kbn/core-feature-flags-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-browser'] --- import kbnCoreFeatureFlagsBrowserObj from './kbn_core_feature_flags_browser.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_browser_internal.mdx b/api_docs/kbn_core_feature_flags_browser_internal.mdx index 6452e10d77975..303ed0c27d7d1 100644 --- a/api_docs/kbn_core_feature_flags_browser_internal.mdx +++ b/api_docs/kbn_core_feature_flags_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-browser-internal title: "@kbn/core-feature-flags-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-browser-internal'] --- import kbnCoreFeatureFlagsBrowserInternalObj from './kbn_core_feature_flags_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_browser_mocks.mdx b/api_docs/kbn_core_feature_flags_browser_mocks.mdx index ed82b11ffbf54..2a646e091209c 100644 --- a/api_docs/kbn_core_feature_flags_browser_mocks.mdx +++ b/api_docs/kbn_core_feature_flags_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-browser-mocks title: "@kbn/core-feature-flags-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-browser-mocks'] --- import kbnCoreFeatureFlagsBrowserMocksObj from './kbn_core_feature_flags_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_server.mdx b/api_docs/kbn_core_feature_flags_server.mdx index fa822843dc263..448c576599d17 100644 --- a/api_docs/kbn_core_feature_flags_server.mdx +++ b/api_docs/kbn_core_feature_flags_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-server title: "@kbn/core-feature-flags-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-server'] --- import kbnCoreFeatureFlagsServerObj from './kbn_core_feature_flags_server.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_server_internal.mdx b/api_docs/kbn_core_feature_flags_server_internal.mdx index 56bc5ccbcee94..2aa7d0f0e66d6 100644 --- a/api_docs/kbn_core_feature_flags_server_internal.mdx +++ b/api_docs/kbn_core_feature_flags_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-server-internal title: "@kbn/core-feature-flags-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-server-internal'] --- import kbnCoreFeatureFlagsServerInternalObj from './kbn_core_feature_flags_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_feature_flags_server_mocks.mdx b/api_docs/kbn_core_feature_flags_server_mocks.mdx index 496c39d35160f..d78ff6ece04b3 100644 --- a/api_docs/kbn_core_feature_flags_server_mocks.mdx +++ b/api_docs/kbn_core_feature_flags_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-feature-flags-server-mocks title: "@kbn/core-feature-flags-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-feature-flags-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-feature-flags-server-mocks'] --- import kbnCoreFeatureFlagsServerMocksObj from './kbn_core_feature_flags_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_browser.mdx b/api_docs/kbn_core_http_browser.mdx index c1918651b6d89..e2165570b009f 100644 --- a/api_docs/kbn_core_http_browser.mdx +++ b/api_docs/kbn_core_http_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-browser title: "@kbn/core-http-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-browser'] --- import kbnCoreHttpBrowserObj from './kbn_core_http_browser.devdocs.json'; diff --git a/api_docs/kbn_core_http_browser_internal.mdx b/api_docs/kbn_core_http_browser_internal.mdx index de414ad1192c3..a9e0801f6313e 100644 --- a/api_docs/kbn_core_http_browser_internal.mdx +++ b/api_docs/kbn_core_http_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-browser-internal title: "@kbn/core-http-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-browser-internal'] --- import kbnCoreHttpBrowserInternalObj from './kbn_core_http_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_browser_mocks.mdx b/api_docs/kbn_core_http_browser_mocks.mdx index 6cda0742459b6..2ff622ebe125b 100644 --- a/api_docs/kbn_core_http_browser_mocks.mdx +++ b/api_docs/kbn_core_http_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-browser-mocks title: "@kbn/core-http-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-browser-mocks'] --- import kbnCoreHttpBrowserMocksObj from './kbn_core_http_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_common.mdx b/api_docs/kbn_core_http_common.mdx index 480ec9d3ce527..03f0c3e3e23e6 100644 --- a/api_docs/kbn_core_http_common.mdx +++ b/api_docs/kbn_core_http_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-common title: "@kbn/core-http-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-common'] --- import kbnCoreHttpCommonObj from './kbn_core_http_common.devdocs.json'; diff --git a/api_docs/kbn_core_http_context_server_mocks.mdx b/api_docs/kbn_core_http_context_server_mocks.mdx index e36a4bcf65397..21ada8ebcb852 100644 --- a/api_docs/kbn_core_http_context_server_mocks.mdx +++ b/api_docs/kbn_core_http_context_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-context-server-mocks title: "@kbn/core-http-context-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-context-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-context-server-mocks'] --- import kbnCoreHttpContextServerMocksObj from './kbn_core_http_context_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_request_handler_context_server.devdocs.json b/api_docs/kbn_core_http_request_handler_context_server.devdocs.json index f52f593739f88..7f3ef3c320db3 100644 --- a/api_docs/kbn_core_http_request_handler_context_server.devdocs.json +++ b/api_docs/kbn_core_http_request_handler_context_server.devdocs.json @@ -83,13 +83,7 @@ "\n{@link UiSettingsRequestHandlerContext}" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.UiSettingsRequestHandlerContext", - "text": "UiSettingsRequestHandlerContext" - } + "UiSettingsRequestHandlerContext" ], "path": "src/core/packages/http/request-handler-context-server/src/request_handler_context.ts", "deprecated": false, @@ -240,13 +234,7 @@ "\nThe {@link IUiSettingsClient | UI Settings client}." ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/core/packages/http/request-handler-context-server/src/preboot_request_handler_context.ts", "deprecated": false, diff --git a/api_docs/kbn_core_http_request_handler_context_server.mdx b/api_docs/kbn_core_http_request_handler_context_server.mdx index 49c4f52e1d21b..9a990ba074083 100644 --- a/api_docs/kbn_core_http_request_handler_context_server.mdx +++ b/api_docs/kbn_core_http_request_handler_context_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-request-handler-context-server title: "@kbn/core-http-request-handler-context-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-request-handler-context-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-request-handler-context-server'] --- import kbnCoreHttpRequestHandlerContextServerObj from './kbn_core_http_request_handler_context_server.devdocs.json'; diff --git a/api_docs/kbn_core_http_resources_server.mdx b/api_docs/kbn_core_http_resources_server.mdx index b368d04a2f09a..e54a6ed74ae00 100644 --- a/api_docs/kbn_core_http_resources_server.mdx +++ b/api_docs/kbn_core_http_resources_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-resources-server title: "@kbn/core-http-resources-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-resources-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-resources-server'] --- import kbnCoreHttpResourcesServerObj from './kbn_core_http_resources_server.devdocs.json'; diff --git a/api_docs/kbn_core_http_resources_server_internal.mdx b/api_docs/kbn_core_http_resources_server_internal.mdx index 0fd1cb3034504..f5d82b5021ceb 100644 --- a/api_docs/kbn_core_http_resources_server_internal.mdx +++ b/api_docs/kbn_core_http_resources_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-resources-server-internal title: "@kbn/core-http-resources-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-resources-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-resources-server-internal'] --- import kbnCoreHttpResourcesServerInternalObj from './kbn_core_http_resources_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_resources_server_mocks.mdx b/api_docs/kbn_core_http_resources_server_mocks.mdx index b3e2ac9decea8..90737e97870d9 100644 --- a/api_docs/kbn_core_http_resources_server_mocks.mdx +++ b/api_docs/kbn_core_http_resources_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-resources-server-mocks title: "@kbn/core-http-resources-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-resources-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-resources-server-mocks'] --- import kbnCoreHttpResourcesServerMocksObj from './kbn_core_http_resources_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_router_server_internal.mdx b/api_docs/kbn_core_http_router_server_internal.mdx index 6b96150027938..6e33f77ebd9a0 100644 --- a/api_docs/kbn_core_http_router_server_internal.mdx +++ b/api_docs/kbn_core_http_router_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-router-server-internal title: "@kbn/core-http-router-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-router-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-router-server-internal'] --- import kbnCoreHttpRouterServerInternalObj from './kbn_core_http_router_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_router_server_mocks.mdx b/api_docs/kbn_core_http_router_server_mocks.mdx index d606f34c92aa9..4cb652362379d 100644 --- a/api_docs/kbn_core_http_router_server_mocks.mdx +++ b/api_docs/kbn_core_http_router_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-router-server-mocks title: "@kbn/core-http-router-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-router-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-router-server-mocks'] --- import kbnCoreHttpRouterServerMocksObj from './kbn_core_http_router_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_server.devdocs.json b/api_docs/kbn_core_http_server.devdocs.json index 4e753488317b7..67b2f5b018731 100644 --- a/api_docs/kbn_core_http_server.devdocs.json +++ b/api_docs/kbn_core_http_server.devdocs.json @@ -3013,20 +3013,20 @@ "path": "src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/export.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/get.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/get.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/get.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/get.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/get.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/internal/get.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/get.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/internal/get.ts" }, { "plugin": "@kbn/core", @@ -3074,11 +3074,11 @@ }, { "plugin": "@kbn/content-management-favorites-server", - "path": "packages/content-management/favorites/favorites_server/src/favorites_routes.ts" + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts" }, { "plugin": "@kbn/content-management-content-insights-server", - "path": "packages/content-management/content_insights/content_insights_server/src/register.ts" + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts" }, { "plugin": "licensing", @@ -3544,26 +3544,6 @@ "plugin": "rollup", "path": "x-pack/platform/plugins/private/rollup/server/routes/api/jobs/register_get_route.ts" }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/get_all_tags.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/get_tag.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/find_assignable_objects.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/get_assignable_types.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/find_tags.ts" - }, { "plugin": "snapshotRestore", "path": "x-pack/platform/plugins/private/snapshot_restore/server/routes/api/app.ts" @@ -3704,6 +3684,26 @@ "plugin": "watcher", "path": "x-pack/platform/plugins/private/watcher/server/routes/api/register_load_history_route.ts" }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/get_all_tags.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/get_tag.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/assignments/find_assignable_objects.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/assignments/get_assignable_types.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/internal/find_tags.ts" + }, { "plugin": "ingestPipelines", "path": "x-pack/platform/plugins/shared/ingest_pipelines/server/routes/api/get.ts" @@ -5461,40 +5461,40 @@ "path": "src/core/packages/saved-objects/server-internal/src/routes/deprecations/delete_unknown_types.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/set_many.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/set_many.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/set_many.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/set_many.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/set.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/set.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/set.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/set.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/set_many.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/internal/set_many.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/set_many.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/internal/set_many.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/set.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/internal/set.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/set.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/internal/set.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/validate.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/internal/validate.ts" }, { "plugin": "@kbn/core", @@ -5510,11 +5510,11 @@ }, { "plugin": "@kbn/content-management-favorites-server", - "path": "packages/content-management/favorites/favorites_server/src/favorites_routes.ts" + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts" }, { "plugin": "@kbn/content-management-favorites-server", - "path": "packages/content-management/favorites/favorites_server/src/favorites_routes.ts" + "path": "src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts" }, { "plugin": "contentManagement", @@ -5522,7 +5522,7 @@ }, { "plugin": "@kbn/content-management-content-insights-server", - "path": "packages/content-management/content_insights/content_insights_server/src/register.ts" + "path": "src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts" }, { "plugin": "licensing", @@ -6000,22 +6000,6 @@ "plugin": "rollup", "path": "x-pack/platform/plugins/private/rollup/server/routes/api/search/register_search_route.ts" }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/create_tag.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/update_tag.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/update_tags_assignments.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/bulk_delete.ts" - }, { "plugin": "snapshotRestore", "path": "x-pack/platform/plugins/private/snapshot_restore/server/routes/api/repositories.ts" @@ -6084,6 +6068,22 @@ "plugin": "watcher", "path": "x-pack/platform/plugins/private/watcher/server/routes/api/register_list_fields_route.ts" }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/create_tag.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/update_tag.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/assignments/update_tags_assignments.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/internal/bulk_delete.ts" + }, { "plugin": "ingestPipelines", "path": "x-pack/platform/plugins/shared/ingest_pipelines/server/routes/api/create.ts" @@ -7448,14 +7448,6 @@ "plugin": "security", "path": "x-pack/platform/plugins/shared/security/server/routes/authentication/saml.test.ts" }, - { - "plugin": "security", - "path": "x-pack/platform/plugins/shared/security/server/routes/authentication/saml.test.ts" - }, - { - "plugin": "security", - "path": "x-pack/platform/plugins/shared/security/server/routes/authentication/saml.test.ts" - }, { "plugin": "security", "path": "x-pack/platform/plugins/shared/security/server/routes/deprecations/kibana_user_role.test.ts" @@ -8441,20 +8433,20 @@ "path": "src/core/packages/saved-objects/server-internal/src/routes/delete.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/delete.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/delete.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/delete.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/delete.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/delete.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/internal/delete.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/delete.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/routes/internal/delete.ts" }, { "plugin": "home", @@ -8524,10 +8516,6 @@ "plugin": "reporting", "path": "x-pack/platform/plugins/private/reporting/server/test_helpers/create_mock_reportingplugin.ts" }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/delete_tag.ts" - }, { "plugin": "snapshotRestore", "path": "x-pack/platform/plugins/private/snapshot_restore/server/routes/api/repositories.ts" @@ -8548,6 +8536,10 @@ "plugin": "watcher", "path": "x-pack/platform/plugins/private/watcher/server/routes/api/watch/register_delete_route.ts" }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/delete_tag.ts" + }, { "plugin": "ingestPipelines", "path": "x-pack/platform/plugins/shared/ingest_pipelines/server/routes/api/delete.ts" @@ -11402,30 +11394,6 @@ "plugin": "taskManager", "path": "x-pack/platform/plugins/shared/task_manager/server/routes/background_task_utilization.ts" }, - { - "plugin": "security", - "path": "x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts" - }, - { - "plugin": "security", - "path": "x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts" - }, - { - "plugin": "security", - "path": "x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts" - }, - { - "plugin": "security", - "path": "x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts" - }, - { - "plugin": "security", - "path": "x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts" - }, - { - "plugin": "security", - "path": "x-pack/platform/plugins/shared/security/server/routes/authentication/saml.ts" - }, { "plugin": "security", "path": "x-pack/platform/plugins/shared/security/server/routes/authorization/reset_session_page.ts" @@ -13836,6 +13804,10 @@ "plugin": "ml", "path": "x-pack/platform/plugins/shared/ml/server/routes/saved_objects.ts" }, + { + "plugin": "ml", + "path": "x-pack/platform/plugins/shared/ml/server/routes/saved_objects.ts" + }, { "plugin": "ml", "path": "x-pack/platform/plugins/shared/ml/server/routes/results_service.ts" diff --git a/api_docs/kbn_core_http_server.mdx b/api_docs/kbn_core_http_server.mdx index bb31a000073a2..08cd0f0c4b584 100644 --- a/api_docs/kbn_core_http_server.mdx +++ b/api_docs/kbn_core_http_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-server title: "@kbn/core-http-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-server'] --- import kbnCoreHttpServerObj from './kbn_core_http_server.devdocs.json'; diff --git a/api_docs/kbn_core_http_server_internal.mdx b/api_docs/kbn_core_http_server_internal.mdx index 9a55d4ffc3fab..40eb72ea4f6a4 100644 --- a/api_docs/kbn_core_http_server_internal.mdx +++ b/api_docs/kbn_core_http_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-server-internal title: "@kbn/core-http-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-server-internal'] --- import kbnCoreHttpServerInternalObj from './kbn_core_http_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_server_mocks.mdx b/api_docs/kbn_core_http_server_mocks.mdx index bef7e30949b8a..4bfc6ef360b41 100644 --- a/api_docs/kbn_core_http_server_mocks.mdx +++ b/api_docs/kbn_core_http_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-server-mocks title: "@kbn/core-http-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-server-mocks'] --- import kbnCoreHttpServerMocksObj from './kbn_core_http_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_server_utils.mdx b/api_docs/kbn_core_http_server_utils.mdx index fb59afaa313c5..b7f0d4b70975d 100644 --- a/api_docs/kbn_core_http_server_utils.mdx +++ b/api_docs/kbn_core_http_server_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-server-utils title: "@kbn/core-http-server-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-server-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-server-utils'] --- import kbnCoreHttpServerUtilsObj from './kbn_core_http_server_utils.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_browser.mdx b/api_docs/kbn_core_i18n_browser.mdx index d7cb187b6554b..643314905ba07 100644 --- a/api_docs/kbn_core_i18n_browser.mdx +++ b/api_docs/kbn_core_i18n_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-browser title: "@kbn/core-i18n-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-browser'] --- import kbnCoreI18nBrowserObj from './kbn_core_i18n_browser.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_browser_mocks.mdx b/api_docs/kbn_core_i18n_browser_mocks.mdx index fa51f53d2360a..5ce231942cb18 100644 --- a/api_docs/kbn_core_i18n_browser_mocks.mdx +++ b/api_docs/kbn_core_i18n_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-browser-mocks title: "@kbn/core-i18n-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-browser-mocks'] --- import kbnCoreI18nBrowserMocksObj from './kbn_core_i18n_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_server.mdx b/api_docs/kbn_core_i18n_server.mdx index 7cc4f6f8e33de..9923a49d1296c 100644 --- a/api_docs/kbn_core_i18n_server.mdx +++ b/api_docs/kbn_core_i18n_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-server title: "@kbn/core-i18n-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-server'] --- import kbnCoreI18nServerObj from './kbn_core_i18n_server.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_server_internal.mdx b/api_docs/kbn_core_i18n_server_internal.mdx index fa791a8f453f5..71b1a7c9b7d4b 100644 --- a/api_docs/kbn_core_i18n_server_internal.mdx +++ b/api_docs/kbn_core_i18n_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-server-internal title: "@kbn/core-i18n-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-server-internal'] --- import kbnCoreI18nServerInternalObj from './kbn_core_i18n_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_server_mocks.mdx b/api_docs/kbn_core_i18n_server_mocks.mdx index 8d57c042470a1..d2ee3014079f0 100644 --- a/api_docs/kbn_core_i18n_server_mocks.mdx +++ b/api_docs/kbn_core_i18n_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-server-mocks title: "@kbn/core-i18n-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-server-mocks'] --- import kbnCoreI18nServerMocksObj from './kbn_core_i18n_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_injected_metadata_browser_mocks.mdx b/api_docs/kbn_core_injected_metadata_browser_mocks.mdx index 33012a1156a4b..9b2ebfcae3cd9 100644 --- a/api_docs/kbn_core_injected_metadata_browser_mocks.mdx +++ b/api_docs/kbn_core_injected_metadata_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-injected-metadata-browser-mocks title: "@kbn/core-injected-metadata-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-injected-metadata-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-injected-metadata-browser-mocks'] --- import kbnCoreInjectedMetadataBrowserMocksObj from './kbn_core_injected_metadata_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_integrations_browser_internal.devdocs.json b/api_docs/kbn_core_integrations_browser_internal.devdocs.json index a624baebee1b5..40368b60dd847 100644 --- a/api_docs/kbn_core_integrations_browser_internal.devdocs.json +++ b/api_docs/kbn_core_integrations_browser_internal.devdocs.json @@ -23,13 +23,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/core/packages/integrations/browser-internal/src/integrations_service.ts", "deprecated": false, diff --git a/api_docs/kbn_core_integrations_browser_internal.mdx b/api_docs/kbn_core_integrations_browser_internal.mdx index f28daba17425e..94c1153e45f26 100644 --- a/api_docs/kbn_core_integrations_browser_internal.mdx +++ b/api_docs/kbn_core_integrations_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-integrations-browser-internal title: "@kbn/core-integrations-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-integrations-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-integrations-browser-internal'] --- import kbnCoreIntegrationsBrowserInternalObj from './kbn_core_integrations_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_integrations_browser_mocks.mdx b/api_docs/kbn_core_integrations_browser_mocks.mdx index 317c13b7f852f..66aa954ce6d31 100644 --- a/api_docs/kbn_core_integrations_browser_mocks.mdx +++ b/api_docs/kbn_core_integrations_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-integrations-browser-mocks title: "@kbn/core-integrations-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-integrations-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-integrations-browser-mocks'] --- import kbnCoreIntegrationsBrowserMocksObj from './kbn_core_integrations_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_lifecycle_browser.devdocs.json b/api_docs/kbn_core_lifecycle_browser.devdocs.json index baf0337b0509f..c84ca4115f8bf 100644 --- a/api_docs/kbn_core_lifecycle_browser.devdocs.json +++ b/api_docs/kbn_core_lifecycle_browser.devdocs.json @@ -79,13 +79,7 @@ "{@link CustomBrandingSetup}" ], "signature": [ - { - "pluginId": "@kbn/core-custom-branding-browser", - "scope": "public", - "docId": "kibKbnCoreCustomBrandingBrowserPluginApi", - "section": "def-public.CustomBrandingSetup", - "text": "CustomBrandingSetup" - } + "CustomBrandingSetup" ], "path": "src/core/packages/lifecycle/browser/src/core_setup.ts", "deprecated": false, @@ -167,13 +161,7 @@ "{@link IUiSettingsClient}\n" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/core/packages/lifecycle/browser/src/core_setup.ts", "deprecated": false, @@ -189,13 +177,7 @@ "{@link SettingsStart}" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.SettingsStart", - "text": "SettingsStart" - } + "SettingsStart" ], "path": "src/core/packages/lifecycle/browser/src/core_setup.ts", "deprecated": false, @@ -387,13 +369,7 @@ "{@link CustomBrandingStart}" ], "signature": [ - { - "pluginId": "@kbn/core-custom-branding-browser", - "scope": "public", - "docId": "kibKbnCoreCustomBrandingBrowserPluginApi", - "section": "def-public.CustomBrandingStart", - "text": "CustomBrandingStart" - } + "CustomBrandingStart" ], "path": "src/core/packages/lifecycle/browser/src/core_start.ts", "deprecated": false, @@ -603,13 +579,7 @@ "{@link IUiSettingsClient}\n" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/core/packages/lifecycle/browser/src/core_start.ts", "deprecated": false, @@ -625,13 +595,7 @@ "{@link SettingsStart}" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.SettingsStart", - "text": "SettingsStart" - } + "SettingsStart" ], "path": "src/core/packages/lifecycle/browser/src/core_start.ts", "deprecated": false, diff --git a/api_docs/kbn_core_lifecycle_browser.mdx b/api_docs/kbn_core_lifecycle_browser.mdx index d8bfc3f77e50e..c7ad2056a222f 100644 --- a/api_docs/kbn_core_lifecycle_browser.mdx +++ b/api_docs/kbn_core_lifecycle_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-lifecycle-browser title: "@kbn/core-lifecycle-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-lifecycle-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-lifecycle-browser'] --- import kbnCoreLifecycleBrowserObj from './kbn_core_lifecycle_browser.devdocs.json'; diff --git a/api_docs/kbn_core_lifecycle_browser_mocks.devdocs.json b/api_docs/kbn_core_lifecycle_browser_mocks.devdocs.json index 3e12641d115fd..6e3a68424dbea 100644 --- a/api_docs/kbn_core_lifecycle_browser_mocks.devdocs.json +++ b/api_docs/kbn_core_lifecycle_browser_mocks.devdocs.json @@ -33,13 +33,7 @@ ">; customBranding: { customBranding$: ", "Observable", "<", - { - "pluginId": "@kbn/core-custom-branding-common", - "scope": "common", - "docId": "kibKbnCoreCustomBrandingCommonPluginApi", - "section": "def-common.CustomBranding", - "text": "CustomBranding" - }, + "CustomBranding", ">; hasCustomBranding$: ", "Observable", "; }; docLinks: jest.Mock; executionContext: jest.Mocked<", @@ -65,13 +59,7 @@ ">; customBranding: { customBranding$: ", "Observable", "<", - { - "pluginId": "@kbn/core-custom-branding-common", - "scope": "common", - "docId": "kibKbnCoreCustomBrandingCommonPluginApi", - "section": "def-common.CustomBranding", - "text": "CustomBranding" - }, + "CustomBranding", ">; hasCustomBranding$: ", "Observable", "; }; docLinks: ", @@ -111,29 +99,11 @@ "<", "OverlayStart", ">; uiSettings: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; settings: { client: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; globalClient: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; }; savedObjects: jest.Mocked<", "SavedObjectsStart", ">; deprecations: jest.Mocked<", @@ -165,29 +135,11 @@ "<", "NotificationsSetup", ">; uiSettings: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; settings: { client: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; globalClient: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; }; deprecations: undefined; theme: jest.Mocked<", "ThemeServiceSetup", ">; security: jest.Mocked<", @@ -242,13 +194,7 @@ ">; customBranding: { customBranding$: ", "Observable", "<", - { - "pluginId": "@kbn/core-custom-branding-common", - "scope": "common", - "docId": "kibKbnCoreCustomBrandingCommonPluginApi", - "section": "def-common.CustomBranding", - "text": "CustomBranding" - }, + "CustomBranding", ">; hasCustomBranding$: ", "Observable", "; }; docLinks: ", @@ -288,29 +234,11 @@ "<", "OverlayStart", ">; uiSettings: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; settings: { client: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; globalClient: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; }; savedObjects: jest.Mocked<", "SavedObjectsStart", ">; deprecations: jest.Mocked<", diff --git a/api_docs/kbn_core_lifecycle_browser_mocks.mdx b/api_docs/kbn_core_lifecycle_browser_mocks.mdx index a254a25a06634..87eaec276e8a1 100644 --- a/api_docs/kbn_core_lifecycle_browser_mocks.mdx +++ b/api_docs/kbn_core_lifecycle_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-lifecycle-browser-mocks title: "@kbn/core-lifecycle-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-lifecycle-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-lifecycle-browser-mocks'] --- import kbnCoreLifecycleBrowserMocksObj from './kbn_core_lifecycle_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_lifecycle_server.devdocs.json b/api_docs/kbn_core_lifecycle_server.devdocs.json index 6c3bd66d3943b..a875b053c9546 100644 --- a/api_docs/kbn_core_lifecycle_server.devdocs.json +++ b/api_docs/kbn_core_lifecycle_server.devdocs.json @@ -186,13 +186,7 @@ "{@link CustomBrandingSetup}" ], "signature": [ - { - "pluginId": "@kbn/core-custom-branding-server", - "scope": "server", - "docId": "kibKbnCoreCustomBrandingServerPluginApi", - "section": "def-server.CustomBrandingSetup", - "text": "CustomBrandingSetup" - } + "CustomBrandingSetup" ], "path": "src/core/packages/lifecycle/server/src/core_setup.ts", "deprecated": false, @@ -373,13 +367,7 @@ "{@link UiSettingsServiceSetup}" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.UiSettingsServiceSetup", - "text": "UiSettingsServiceSetup" - } + "UiSettingsServiceSetup" ], "path": "src/core/packages/lifecycle/server/src/core_setup.ts", "deprecated": false, @@ -555,13 +543,7 @@ "{@link CustomBrandingStart}" ], "signature": [ - { - "pluginId": "@kbn/core-custom-branding-server", - "scope": "server", - "docId": "kibKbnCoreCustomBrandingServerPluginApi", - "section": "def-server.CustomBrandingStart", - "text": "CustomBrandingStart" - } + "CustomBrandingStart" ], "path": "src/core/packages/lifecycle/server/src/core_start.ts", "deprecated": false, @@ -689,13 +671,7 @@ "{@link UiSettingsServiceStart}" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.UiSettingsServiceStart", - "text": "UiSettingsServiceStart" - } + "UiSettingsServiceStart" ], "path": "src/core/packages/lifecycle/server/src/core_start.ts", "deprecated": false, diff --git a/api_docs/kbn_core_lifecycle_server.mdx b/api_docs/kbn_core_lifecycle_server.mdx index 5ef8ab9553e57..9b79091ee7d48 100644 --- a/api_docs/kbn_core_lifecycle_server.mdx +++ b/api_docs/kbn_core_lifecycle_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-lifecycle-server title: "@kbn/core-lifecycle-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-lifecycle-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-lifecycle-server'] --- import kbnCoreLifecycleServerObj from './kbn_core_lifecycle_server.devdocs.json'; diff --git a/api_docs/kbn_core_lifecycle_server_mocks.devdocs.json b/api_docs/kbn_core_lifecycle_server_mocks.devdocs.json index ac92f799441a3..6addbf9c8465d 100644 --- a/api_docs/kbn_core_lifecycle_server_mocks.devdocs.json +++ b/api_docs/kbn_core_lifecycle_server_mocks.devdocs.json @@ -107,13 +107,7 @@ ">, [], any>; }; rendering: jest.Mocked<", "InternalRenderingServiceSetup", ">; uiSettings: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.UiSettingsServiceSetup", - "text": "UiSettingsServiceSetup" - }, + "UiSettingsServiceSetup", ">; logging: jest.Mocked<", "InternalLoggingServicePreboot", ">; metrics: jest.Mocked<", @@ -167,13 +161,7 @@ ">; savedObjects: jest.Mocked<", "InternalSavedObjectsServiceStart", ">; uiSettings: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.UiSettingsServiceStart", - "text": "UiSettingsServiceStart" - }, + "UiSettingsServiceStart", ">; coreUsageData: jest.Mocked<", "CoreUsageDataStart", ">; executionContext: jest.Mocked<", diff --git a/api_docs/kbn_core_lifecycle_server_mocks.mdx b/api_docs/kbn_core_lifecycle_server_mocks.mdx index 7b0fa1874f361..a0726003d1ada 100644 --- a/api_docs/kbn_core_lifecycle_server_mocks.mdx +++ b/api_docs/kbn_core_lifecycle_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-lifecycle-server-mocks title: "@kbn/core-lifecycle-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-lifecycle-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-lifecycle-server-mocks'] --- import kbnCoreLifecycleServerMocksObj from './kbn_core_lifecycle_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_logging_browser_mocks.mdx b/api_docs/kbn_core_logging_browser_mocks.mdx index 49fb85070512f..4ff6684b8e468 100644 --- a/api_docs/kbn_core_logging_browser_mocks.mdx +++ b/api_docs/kbn_core_logging_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-browser-mocks title: "@kbn/core-logging-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-browser-mocks'] --- import kbnCoreLoggingBrowserMocksObj from './kbn_core_logging_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_logging_common_internal.mdx b/api_docs/kbn_core_logging_common_internal.mdx index 84e6505c63cd8..80f8fdf45e916 100644 --- a/api_docs/kbn_core_logging_common_internal.mdx +++ b/api_docs/kbn_core_logging_common_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-common-internal title: "@kbn/core-logging-common-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-common-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-common-internal'] --- import kbnCoreLoggingCommonInternalObj from './kbn_core_logging_common_internal.devdocs.json'; diff --git a/api_docs/kbn_core_logging_server.mdx b/api_docs/kbn_core_logging_server.mdx index 7e541e374df49..09a9fc71dc552 100644 --- a/api_docs/kbn_core_logging_server.mdx +++ b/api_docs/kbn_core_logging_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-server title: "@kbn/core-logging-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-server'] --- import kbnCoreLoggingServerObj from './kbn_core_logging_server.devdocs.json'; diff --git a/api_docs/kbn_core_logging_server_internal.mdx b/api_docs/kbn_core_logging_server_internal.mdx index 89e9cab117adf..f940145a457d3 100644 --- a/api_docs/kbn_core_logging_server_internal.mdx +++ b/api_docs/kbn_core_logging_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-server-internal title: "@kbn/core-logging-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-server-internal'] --- import kbnCoreLoggingServerInternalObj from './kbn_core_logging_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_logging_server_mocks.mdx b/api_docs/kbn_core_logging_server_mocks.mdx index dd141a615af16..2c4ce2f4183e9 100644 --- a/api_docs/kbn_core_logging_server_mocks.mdx +++ b/api_docs/kbn_core_logging_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-server-mocks title: "@kbn/core-logging-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-server-mocks'] --- import kbnCoreLoggingServerMocksObj from './kbn_core_logging_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_collectors_server_internal.mdx b/api_docs/kbn_core_metrics_collectors_server_internal.mdx index 9c7f8d6bc2f09..363b14ccbad9f 100644 --- a/api_docs/kbn_core_metrics_collectors_server_internal.mdx +++ b/api_docs/kbn_core_metrics_collectors_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-collectors-server-internal title: "@kbn/core-metrics-collectors-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-collectors-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-collectors-server-internal'] --- import kbnCoreMetricsCollectorsServerInternalObj from './kbn_core_metrics_collectors_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_collectors_server_mocks.mdx b/api_docs/kbn_core_metrics_collectors_server_mocks.mdx index 75f30f53767bd..2b3131599f1be 100644 --- a/api_docs/kbn_core_metrics_collectors_server_mocks.mdx +++ b/api_docs/kbn_core_metrics_collectors_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-collectors-server-mocks title: "@kbn/core-metrics-collectors-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-collectors-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-collectors-server-mocks'] --- import kbnCoreMetricsCollectorsServerMocksObj from './kbn_core_metrics_collectors_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_server.mdx b/api_docs/kbn_core_metrics_server.mdx index 3cf8ce0c0b2c7..5fe529ec544c0 100644 --- a/api_docs/kbn_core_metrics_server.mdx +++ b/api_docs/kbn_core_metrics_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-server title: "@kbn/core-metrics-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-server'] --- import kbnCoreMetricsServerObj from './kbn_core_metrics_server.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_server_internal.mdx b/api_docs/kbn_core_metrics_server_internal.mdx index 696af6d2c6855..727ad76f98978 100644 --- a/api_docs/kbn_core_metrics_server_internal.mdx +++ b/api_docs/kbn_core_metrics_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-server-internal title: "@kbn/core-metrics-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-server-internal'] --- import kbnCoreMetricsServerInternalObj from './kbn_core_metrics_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_server_mocks.mdx b/api_docs/kbn_core_metrics_server_mocks.mdx index 7c32515a8fa17..fa4f6ea092c21 100644 --- a/api_docs/kbn_core_metrics_server_mocks.mdx +++ b/api_docs/kbn_core_metrics_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-server-mocks title: "@kbn/core-metrics-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-server-mocks'] --- import kbnCoreMetricsServerMocksObj from './kbn_core_metrics_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_mount_utils_browser.mdx b/api_docs/kbn_core_mount_utils_browser.mdx index d5f0668bd09de..093fbe939cb41 100644 --- a/api_docs/kbn_core_mount_utils_browser.mdx +++ b/api_docs/kbn_core_mount_utils_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-mount-utils-browser title: "@kbn/core-mount-utils-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-mount-utils-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-mount-utils-browser'] --- import kbnCoreMountUtilsBrowserObj from './kbn_core_mount_utils_browser.devdocs.json'; diff --git a/api_docs/kbn_core_node_server.mdx b/api_docs/kbn_core_node_server.mdx index d0d548a3101ad..e23c7617a1a73 100644 --- a/api_docs/kbn_core_node_server.mdx +++ b/api_docs/kbn_core_node_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-node-server title: "@kbn/core-node-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-node-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-node-server'] --- import kbnCoreNodeServerObj from './kbn_core_node_server.devdocs.json'; diff --git a/api_docs/kbn_core_node_server_internal.mdx b/api_docs/kbn_core_node_server_internal.mdx index 017363b864568..c568680851b49 100644 --- a/api_docs/kbn_core_node_server_internal.mdx +++ b/api_docs/kbn_core_node_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-node-server-internal title: "@kbn/core-node-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-node-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-node-server-internal'] --- import kbnCoreNodeServerInternalObj from './kbn_core_node_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_node_server_mocks.mdx b/api_docs/kbn_core_node_server_mocks.mdx index b0b6f7caaf37b..901dce9740da2 100644 --- a/api_docs/kbn_core_node_server_mocks.mdx +++ b/api_docs/kbn_core_node_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-node-server-mocks title: "@kbn/core-node-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-node-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-node-server-mocks'] --- import kbnCoreNodeServerMocksObj from './kbn_core_node_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_notifications_browser.mdx b/api_docs/kbn_core_notifications_browser.mdx index 10f2bcf0d4c33..d09223ac4b8ef 100644 --- a/api_docs/kbn_core_notifications_browser.mdx +++ b/api_docs/kbn_core_notifications_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-notifications-browser title: "@kbn/core-notifications-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-notifications-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-notifications-browser'] --- import kbnCoreNotificationsBrowserObj from './kbn_core_notifications_browser.devdocs.json'; diff --git a/api_docs/kbn_core_notifications_browser_internal.devdocs.json b/api_docs/kbn_core_notifications_browser_internal.devdocs.json index c75475db933a7..94841713c349b 100644 --- a/api_docs/kbn_core_notifications_browser_internal.devdocs.json +++ b/api_docs/kbn_core_notifications_browser_internal.devdocs.json @@ -169,13 +169,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/core/packages/notifications/browser-internal/src/toasts/toasts_api.tsx", "deprecated": false, diff --git a/api_docs/kbn_core_notifications_browser_internal.mdx b/api_docs/kbn_core_notifications_browser_internal.mdx index a4d889598a2d1..bc63d077a8c4b 100644 --- a/api_docs/kbn_core_notifications_browser_internal.mdx +++ b/api_docs/kbn_core_notifications_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-notifications-browser-internal title: "@kbn/core-notifications-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-notifications-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-notifications-browser-internal'] --- import kbnCoreNotificationsBrowserInternalObj from './kbn_core_notifications_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_notifications_browser_mocks.mdx b/api_docs/kbn_core_notifications_browser_mocks.mdx index a19fcbd558d46..ff20e1511459b 100644 --- a/api_docs/kbn_core_notifications_browser_mocks.mdx +++ b/api_docs/kbn_core_notifications_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-notifications-browser-mocks title: "@kbn/core-notifications-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-notifications-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-notifications-browser-mocks'] --- import kbnCoreNotificationsBrowserMocksObj from './kbn_core_notifications_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_overlays_browser.mdx b/api_docs/kbn_core_overlays_browser.mdx index 097ab94d0b1d8..e56f92d2b1535 100644 --- a/api_docs/kbn_core_overlays_browser.mdx +++ b/api_docs/kbn_core_overlays_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-overlays-browser title: "@kbn/core-overlays-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-overlays-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-overlays-browser'] --- import kbnCoreOverlaysBrowserObj from './kbn_core_overlays_browser.devdocs.json'; diff --git a/api_docs/kbn_core_overlays_browser_internal.mdx b/api_docs/kbn_core_overlays_browser_internal.mdx index 747c81df92625..d146d3a879ac3 100644 --- a/api_docs/kbn_core_overlays_browser_internal.mdx +++ b/api_docs/kbn_core_overlays_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-overlays-browser-internal title: "@kbn/core-overlays-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-overlays-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-overlays-browser-internal'] --- import kbnCoreOverlaysBrowserInternalObj from './kbn_core_overlays_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_overlays_browser_mocks.mdx b/api_docs/kbn_core_overlays_browser_mocks.mdx index c8e20e2ae51ca..0f35bdb953de0 100644 --- a/api_docs/kbn_core_overlays_browser_mocks.mdx +++ b/api_docs/kbn_core_overlays_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-overlays-browser-mocks title: "@kbn/core-overlays-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-overlays-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-overlays-browser-mocks'] --- import kbnCoreOverlaysBrowserMocksObj from './kbn_core_overlays_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_browser.mdx b/api_docs/kbn_core_plugins_browser.mdx index 138bf69e6572e..bed8074c3d6aa 100644 --- a/api_docs/kbn_core_plugins_browser.mdx +++ b/api_docs/kbn_core_plugins_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-browser title: "@kbn/core-plugins-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-browser'] --- import kbnCorePluginsBrowserObj from './kbn_core_plugins_browser.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_browser_mocks.mdx b/api_docs/kbn_core_plugins_browser_mocks.mdx index ecf25fb65663f..68c7105ad61b5 100644 --- a/api_docs/kbn_core_plugins_browser_mocks.mdx +++ b/api_docs/kbn_core_plugins_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-browser-mocks title: "@kbn/core-plugins-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-browser-mocks'] --- import kbnCorePluginsBrowserMocksObj from './kbn_core_plugins_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_contracts_browser.mdx b/api_docs/kbn_core_plugins_contracts_browser.mdx index c7fca14c7a491..f8f7c3d503332 100644 --- a/api_docs/kbn_core_plugins_contracts_browser.mdx +++ b/api_docs/kbn_core_plugins_contracts_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-contracts-browser title: "@kbn/core-plugins-contracts-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-contracts-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-contracts-browser'] --- import kbnCorePluginsContractsBrowserObj from './kbn_core_plugins_contracts_browser.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_contracts_server.mdx b/api_docs/kbn_core_plugins_contracts_server.mdx index 8ba1bb7005afb..cef09b18511a8 100644 --- a/api_docs/kbn_core_plugins_contracts_server.mdx +++ b/api_docs/kbn_core_plugins_contracts_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-contracts-server title: "@kbn/core-plugins-contracts-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-contracts-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-contracts-server'] --- import kbnCorePluginsContractsServerObj from './kbn_core_plugins_contracts_server.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_server.devdocs.json b/api_docs/kbn_core_plugins_server.devdocs.json index 842264dbd6dfb..815bfb9a7a6e6 100644 --- a/api_docs/kbn_core_plugins_server.devdocs.json +++ b/api_docs/kbn_core_plugins_server.devdocs.json @@ -39,7 +39,7 @@ "signature": [ "(core: ", "CoreSetup", - ", plugins: TPluginsSetup) => TSetup" + ", plugins: TPluginsSetup) => TSetup" ], "path": "src/core/packages/plugins/server/src/types.ts", "deprecated": false, @@ -54,7 +54,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "" ], "path": "src/core/packages/plugins/server/src/types.ts", "deprecated": false, diff --git a/api_docs/kbn_core_plugins_server.mdx b/api_docs/kbn_core_plugins_server.mdx index d02f65a7cf5d3..6af6a3efd98af 100644 --- a/api_docs/kbn_core_plugins_server.mdx +++ b/api_docs/kbn_core_plugins_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-server title: "@kbn/core-plugins-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-server'] --- import kbnCorePluginsServerObj from './kbn_core_plugins_server.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_server_mocks.mdx b/api_docs/kbn_core_plugins_server_mocks.mdx index 7f86b7a355dcd..eea32b5df961f 100644 --- a/api_docs/kbn_core_plugins_server_mocks.mdx +++ b/api_docs/kbn_core_plugins_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-server-mocks title: "@kbn/core-plugins-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-server-mocks'] --- import kbnCorePluginsServerMocksObj from './kbn_core_plugins_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_preboot_server.mdx b/api_docs/kbn_core_preboot_server.mdx index 50f7318489f73..0871d02a67cb6 100644 --- a/api_docs/kbn_core_preboot_server.mdx +++ b/api_docs/kbn_core_preboot_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-preboot-server title: "@kbn/core-preboot-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-preboot-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-preboot-server'] --- import kbnCorePrebootServerObj from './kbn_core_preboot_server.devdocs.json'; diff --git a/api_docs/kbn_core_preboot_server_mocks.mdx b/api_docs/kbn_core_preboot_server_mocks.mdx index 8ca70fae35601..e457f62314347 100644 --- a/api_docs/kbn_core_preboot_server_mocks.mdx +++ b/api_docs/kbn_core_preboot_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-preboot-server-mocks title: "@kbn/core-preboot-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-preboot-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-preboot-server-mocks'] --- import kbnCorePrebootServerMocksObj from './kbn_core_preboot_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_rendering_browser.mdx b/api_docs/kbn_core_rendering_browser.mdx index e5a1fc428675d..f14876a693a42 100644 --- a/api_docs/kbn_core_rendering_browser.mdx +++ b/api_docs/kbn_core_rendering_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-rendering-browser title: "@kbn/core-rendering-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-rendering-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-rendering-browser'] --- import kbnCoreRenderingBrowserObj from './kbn_core_rendering_browser.devdocs.json'; diff --git a/api_docs/kbn_core_rendering_browser_mocks.mdx b/api_docs/kbn_core_rendering_browser_mocks.mdx index 0336a2086624c..11369a50ab99d 100644 --- a/api_docs/kbn_core_rendering_browser_mocks.mdx +++ b/api_docs/kbn_core_rendering_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-rendering-browser-mocks title: "@kbn/core-rendering-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-rendering-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-rendering-browser-mocks'] --- import kbnCoreRenderingBrowserMocksObj from './kbn_core_rendering_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_rendering_server_internal.mdx b/api_docs/kbn_core_rendering_server_internal.mdx index 0fc193d9a7bb4..a312807af1103 100644 --- a/api_docs/kbn_core_rendering_server_internal.mdx +++ b/api_docs/kbn_core_rendering_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-rendering-server-internal title: "@kbn/core-rendering-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-rendering-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-rendering-server-internal'] --- import kbnCoreRenderingServerInternalObj from './kbn_core_rendering_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_rendering_server_mocks.mdx b/api_docs/kbn_core_rendering_server_mocks.mdx index 43b33cf27f511..5e5100a221cf1 100644 --- a/api_docs/kbn_core_rendering_server_mocks.mdx +++ b/api_docs/kbn_core_rendering_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-rendering-server-mocks title: "@kbn/core-rendering-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-rendering-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-rendering-server-mocks'] --- import kbnCoreRenderingServerMocksObj from './kbn_core_rendering_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_root_server_internal.mdx b/api_docs/kbn_core_root_server_internal.mdx index 0ec56ffdf07ef..58e57bb452d15 100644 --- a/api_docs/kbn_core_root_server_internal.mdx +++ b/api_docs/kbn_core_root_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-root-server-internal title: "@kbn/core-root-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-root-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-root-server-internal'] --- import kbnCoreRootServerInternalObj from './kbn_core_root_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_api_browser.mdx b/api_docs/kbn_core_saved_objects_api_browser.mdx index d35ecade07340..b6e6473d24bd3 100644 --- a/api_docs/kbn_core_saved_objects_api_browser.mdx +++ b/api_docs/kbn_core_saved_objects_api_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-api-browser title: "@kbn/core-saved-objects-api-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-api-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-api-browser'] --- import kbnCoreSavedObjectsApiBrowserObj from './kbn_core_saved_objects_api_browser.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_api_server.mdx b/api_docs/kbn_core_saved_objects_api_server.mdx index da58569c4c101..385cebf81f376 100644 --- a/api_docs/kbn_core_saved_objects_api_server.mdx +++ b/api_docs/kbn_core_saved_objects_api_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-api-server title: "@kbn/core-saved-objects-api-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-api-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-api-server'] --- import kbnCoreSavedObjectsApiServerObj from './kbn_core_saved_objects_api_server.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_api_server_mocks.mdx b/api_docs/kbn_core_saved_objects_api_server_mocks.mdx index c38b97cd93aa3..c994dd22e8361 100644 --- a/api_docs/kbn_core_saved_objects_api_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_api_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-api-server-mocks title: "@kbn/core-saved-objects-api-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-api-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-api-server-mocks'] --- import kbnCoreSavedObjectsApiServerMocksObj from './kbn_core_saved_objects_api_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_base_server_internal.mdx b/api_docs/kbn_core_saved_objects_base_server_internal.mdx index 2353fb2924e76..7485009eebc1a 100644 --- a/api_docs/kbn_core_saved_objects_base_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_base_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-base-server-internal title: "@kbn/core-saved-objects-base-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-base-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-base-server-internal'] --- import kbnCoreSavedObjectsBaseServerInternalObj from './kbn_core_saved_objects_base_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_base_server_mocks.mdx b/api_docs/kbn_core_saved_objects_base_server_mocks.mdx index 9d7d5d51c7b2e..388cdfd191ebc 100644 --- a/api_docs/kbn_core_saved_objects_base_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_base_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-base-server-mocks title: "@kbn/core-saved-objects-base-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-base-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-base-server-mocks'] --- import kbnCoreSavedObjectsBaseServerMocksObj from './kbn_core_saved_objects_base_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_browser.mdx b/api_docs/kbn_core_saved_objects_browser.mdx index e90dfe7c858ca..597e7488fd63e 100644 --- a/api_docs/kbn_core_saved_objects_browser.mdx +++ b/api_docs/kbn_core_saved_objects_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-browser title: "@kbn/core-saved-objects-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-browser'] --- import kbnCoreSavedObjectsBrowserObj from './kbn_core_saved_objects_browser.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_browser_internal.mdx b/api_docs/kbn_core_saved_objects_browser_internal.mdx index ae73dd01f1513..e06910230e74f 100644 --- a/api_docs/kbn_core_saved_objects_browser_internal.mdx +++ b/api_docs/kbn_core_saved_objects_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-browser-internal title: "@kbn/core-saved-objects-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-browser-internal'] --- import kbnCoreSavedObjectsBrowserInternalObj from './kbn_core_saved_objects_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_browser_mocks.mdx b/api_docs/kbn_core_saved_objects_browser_mocks.mdx index fcd291bbe77a7..c56dde97d2b9d 100644 --- a/api_docs/kbn_core_saved_objects_browser_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-browser-mocks title: "@kbn/core-saved-objects-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-browser-mocks'] --- import kbnCoreSavedObjectsBrowserMocksObj from './kbn_core_saved_objects_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_common.devdocs.json b/api_docs/kbn_core_saved_objects_common.devdocs.json index 25eac8abaaa32..a998d9922dd7d 100644 --- a/api_docs/kbn_core_saved_objects_common.devdocs.json +++ b/api_docs/kbn_core_saved_objects_common.devdocs.json @@ -1181,15 +1181,15 @@ }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx" }, { "plugin": "canvas", @@ -1233,31 +1233,19 @@ }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/types.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/types.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/types.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/types.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.ts" }, { "plugin": "upgradeAssistant", @@ -1285,15 +1273,27 @@ }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/test_utils/index.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.test.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.test.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.test.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/test_utils/index.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/test_utils/index.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/test_utils/index.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/test_utils/index.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/test_utils/index.ts" }, { "plugin": "lists", @@ -1432,16 +1432,16 @@ "path": "src/core/packages/saved-objects/browser-internal/src/simple_saved_object.test.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/transforms.test.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/saved_objects/transforms.test.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/transforms.test.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/saved_objects/transforms.test.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/transforms.test.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/saved_objects/transforms.test.ts" } ], "initialIsOpen": false @@ -1824,11 +1824,11 @@ }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx" }, { "plugin": "eventAnnotation", @@ -2050,6 +2050,14 @@ "plugin": "maps", "path": "x-pack/platform/plugins/shared/maps/public/routes/map_page/saved_map/save_to_library.ts" }, + { + "plugin": "streamsApp", + "path": "x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/to_reference_list.ts" + }, + { + "plugin": "streamsApp", + "path": "x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/to_reference_list.ts" + }, { "plugin": "dashboard", "path": "src/platform/plugins/shared/dashboard/common/bwc/types.ts" @@ -2236,55 +2244,55 @@ }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/tag_list.tsx" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/components/connected/tag_list.tsx" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/tag_list.tsx" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/components/connected/tag_list.tsx" }, { "plugin": "lens", @@ -2426,26 +2434,6 @@ "plugin": "canvas", "path": "x-pack/platform/plugins/private/canvas/canvas_plugin_src/functions/external/embeddable.ts" }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/references.test.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/references.test.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts" - }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts" - }, { "plugin": "dashboardEnhanced", "path": "x-pack/platform/plugins/shared/dashboard_enhanced/common/drilldowns/dashboard_drilldown/dashboard_drilldown_persistable_state.ts" @@ -2472,11 +2460,31 @@ }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/test_utils/index.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/references.test.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/references.test.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.test.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.test.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.test.ts" + }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/test_utils/index.ts" }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/test_utils/index.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/test_utils/index.ts" }, { "plugin": "globalSearchProviders", diff --git a/api_docs/kbn_core_saved_objects_common.mdx b/api_docs/kbn_core_saved_objects_common.mdx index 360589286bfde..190457005783c 100644 --- a/api_docs/kbn_core_saved_objects_common.mdx +++ b/api_docs/kbn_core_saved_objects_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-common title: "@kbn/core-saved-objects-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-common'] --- import kbnCoreSavedObjectsCommonObj from './kbn_core_saved_objects_common.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx b/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx index cfc5cd5000498..517e3ead9d454 100644 --- a/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-import-export-server-internal title: "@kbn/core-saved-objects-import-export-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-import-export-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-import-export-server-internal'] --- import kbnCoreSavedObjectsImportExportServerInternalObj from './kbn_core_saved_objects_import_export_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx b/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx index 83560c6fecd11..387cbe50dfdb1 100644 --- a/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-import-export-server-mocks title: "@kbn/core-saved-objects-import-export-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-import-export-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-import-export-server-mocks'] --- import kbnCoreSavedObjectsImportExportServerMocksObj from './kbn_core_saved_objects_import_export_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_migration_server_internal.mdx b/api_docs/kbn_core_saved_objects_migration_server_internal.mdx index 46289557d6253..5b0beadf9b458 100644 --- a/api_docs/kbn_core_saved_objects_migration_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_migration_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-migration-server-internal title: "@kbn/core-saved-objects-migration-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-migration-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-migration-server-internal'] --- import kbnCoreSavedObjectsMigrationServerInternalObj from './kbn_core_saved_objects_migration_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx b/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx index cc4daaa43cbe1..43f5f62dc1361 100644 --- a/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-migration-server-mocks title: "@kbn/core-saved-objects-migration-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-migration-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-migration-server-mocks'] --- import kbnCoreSavedObjectsMigrationServerMocksObj from './kbn_core_saved_objects_migration_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_server.devdocs.json b/api_docs/kbn_core_saved_objects_server.devdocs.json index c53d1efc56c1c..94cbded77e7b3 100644 --- a/api_docs/kbn_core_saved_objects_server.devdocs.json +++ b/api_docs/kbn_core_saved_objects_server.devdocs.json @@ -8975,8 +8975,8 @@ "path": "src/core/packages/saved-objects/server-internal/src/object_types/registration.ts" }, { - "plugin": "@kbn/core-ui-settings-server-internal", - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/ui_settings.ts" + "plugin": "@kbn/core", + "path": "src/core/packages/ui-settings/server-internal/src/saved_objects/ui_settings.ts" }, { "plugin": "@kbn/core", @@ -9877,10 +9877,6 @@ "plugin": "canvas", "path": "x-pack/platform/plugins/private/canvas/server/saved_objects/custom_element.ts" }, - { - "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/saved_objects/tag.ts" - }, { "plugin": "cases", "path": "x-pack/platform/plugins/shared/cases/server/saved_object_types/cases/cases.ts" @@ -9901,6 +9897,10 @@ "plugin": "cases", "path": "x-pack/platform/plugins/shared/cases/server/saved_object_types/connector_mappings.ts" }, + { + "plugin": "savedObjectsTagging", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/saved_objects/tag.ts" + }, { "plugin": "maps", "path": "x-pack/platform/plugins/shared/maps/server/saved_objects/setup_saved_objects.ts" diff --git a/api_docs/kbn_core_saved_objects_server.mdx b/api_docs/kbn_core_saved_objects_server.mdx index 50e3e42f7563b..58cdb095db31b 100644 --- a/api_docs/kbn_core_saved_objects_server.mdx +++ b/api_docs/kbn_core_saved_objects_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-server title: "@kbn/core-saved-objects-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-server'] --- import kbnCoreSavedObjectsServerObj from './kbn_core_saved_objects_server.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_server_internal.mdx b/api_docs/kbn_core_saved_objects_server_internal.mdx index 3781e9bc19f87..40b25f605bb7f 100644 --- a/api_docs/kbn_core_saved_objects_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-server-internal title: "@kbn/core-saved-objects-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-server-internal'] --- import kbnCoreSavedObjectsServerInternalObj from './kbn_core_saved_objects_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_server_mocks.mdx b/api_docs/kbn_core_saved_objects_server_mocks.mdx index f14d63d277013..e35e6678b3333 100644 --- a/api_docs/kbn_core_saved_objects_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-server-mocks title: "@kbn/core-saved-objects-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-server-mocks'] --- import kbnCoreSavedObjectsServerMocksObj from './kbn_core_saved_objects_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_utils_server.mdx b/api_docs/kbn_core_saved_objects_utils_server.mdx index 7389585cd27b7..5cb2ae4250df4 100644 --- a/api_docs/kbn_core_saved_objects_utils_server.mdx +++ b/api_docs/kbn_core_saved_objects_utils_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-utils-server title: "@kbn/core-saved-objects-utils-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-utils-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-utils-server'] --- import kbnCoreSavedObjectsUtilsServerObj from './kbn_core_saved_objects_utils_server.devdocs.json'; diff --git a/api_docs/kbn_core_security_browser.mdx b/api_docs/kbn_core_security_browser.mdx index 7c73a8669e0a5..3b22d4c90540a 100644 --- a/api_docs/kbn_core_security_browser.mdx +++ b/api_docs/kbn_core_security_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-browser title: "@kbn/core-security-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-browser'] --- import kbnCoreSecurityBrowserObj from './kbn_core_security_browser.devdocs.json'; diff --git a/api_docs/kbn_core_security_browser_internal.mdx b/api_docs/kbn_core_security_browser_internal.mdx index 1fe2a86f0c367..ce413c9f4bad4 100644 --- a/api_docs/kbn_core_security_browser_internal.mdx +++ b/api_docs/kbn_core_security_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-browser-internal title: "@kbn/core-security-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-browser-internal'] --- import kbnCoreSecurityBrowserInternalObj from './kbn_core_security_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_security_browser_mocks.mdx b/api_docs/kbn_core_security_browser_mocks.mdx index 9ca3cc346d333..042ae4971720c 100644 --- a/api_docs/kbn_core_security_browser_mocks.mdx +++ b/api_docs/kbn_core_security_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-browser-mocks title: "@kbn/core-security-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-browser-mocks'] --- import kbnCoreSecurityBrowserMocksObj from './kbn_core_security_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_security_common.mdx b/api_docs/kbn_core_security_common.mdx index 3ca159bec8d55..9304d13b7c3ea 100644 --- a/api_docs/kbn_core_security_common.mdx +++ b/api_docs/kbn_core_security_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-common title: "@kbn/core-security-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-common'] --- import kbnCoreSecurityCommonObj from './kbn_core_security_common.devdocs.json'; diff --git a/api_docs/kbn_core_security_server.mdx b/api_docs/kbn_core_security_server.mdx index d72898be464d1..5bc79cd9917c7 100644 --- a/api_docs/kbn_core_security_server.mdx +++ b/api_docs/kbn_core_security_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-server title: "@kbn/core-security-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-server'] --- import kbnCoreSecurityServerObj from './kbn_core_security_server.devdocs.json'; diff --git a/api_docs/kbn_core_security_server_internal.mdx b/api_docs/kbn_core_security_server_internal.mdx index adc8a7c310f44..ee757aa6e74e0 100644 --- a/api_docs/kbn_core_security_server_internal.mdx +++ b/api_docs/kbn_core_security_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-server-internal title: "@kbn/core-security-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-server-internal'] --- import kbnCoreSecurityServerInternalObj from './kbn_core_security_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_security_server_mocks.mdx b/api_docs/kbn_core_security_server_mocks.mdx index b4b8a5a6e44b7..343e732093ca1 100644 --- a/api_docs/kbn_core_security_server_mocks.mdx +++ b/api_docs/kbn_core_security_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-security-server-mocks title: "@kbn/core-security-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-security-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-security-server-mocks'] --- import kbnCoreSecurityServerMocksObj from './kbn_core_security_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_status_common.mdx b/api_docs/kbn_core_status_common.mdx index a8960fd65dc1c..1f107f94b72b5 100644 --- a/api_docs/kbn_core_status_common.mdx +++ b/api_docs/kbn_core_status_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-common title: "@kbn/core-status-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-common'] --- import kbnCoreStatusCommonObj from './kbn_core_status_common.devdocs.json'; diff --git a/api_docs/kbn_core_status_server.mdx b/api_docs/kbn_core_status_server.mdx index a640257794c00..54e49ce25ca16 100644 --- a/api_docs/kbn_core_status_server.mdx +++ b/api_docs/kbn_core_status_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-server title: "@kbn/core-status-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-server'] --- import kbnCoreStatusServerObj from './kbn_core_status_server.devdocs.json'; diff --git a/api_docs/kbn_core_status_server_internal.mdx b/api_docs/kbn_core_status_server_internal.mdx index d3676deeeaa97..df614413c6f30 100644 --- a/api_docs/kbn_core_status_server_internal.mdx +++ b/api_docs/kbn_core_status_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-server-internal title: "@kbn/core-status-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-server-internal'] --- import kbnCoreStatusServerInternalObj from './kbn_core_status_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_status_server_mocks.mdx b/api_docs/kbn_core_status_server_mocks.mdx index 838f9c873209f..54ee5fbb29f83 100644 --- a/api_docs/kbn_core_status_server_mocks.mdx +++ b/api_docs/kbn_core_status_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-server-mocks title: "@kbn/core-status-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-server-mocks'] --- import kbnCoreStatusServerMocksObj from './kbn_core_status_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_deprecations_getters.mdx b/api_docs/kbn_core_test_helpers_deprecations_getters.mdx index b98190fa3f1b4..8c78eaea91553 100644 --- a/api_docs/kbn_core_test_helpers_deprecations_getters.mdx +++ b/api_docs/kbn_core_test_helpers_deprecations_getters.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-deprecations-getters title: "@kbn/core-test-helpers-deprecations-getters" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-deprecations-getters plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-deprecations-getters'] --- import kbnCoreTestHelpersDeprecationsGettersObj from './kbn_core_test_helpers_deprecations_getters.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_http_setup_browser.devdocs.json b/api_docs/kbn_core_test_helpers_http_setup_browser.devdocs.json index ee061937ed523..4d32914de5124 100644 --- a/api_docs/kbn_core_test_helpers_http_setup_browser.devdocs.json +++ b/api_docs/kbn_core_test_helpers_http_setup_browser.devdocs.json @@ -102,13 +102,7 @@ ", [], unknown>; getPlugins: jest.MockInstance<", "InjectedMetadataPlugin", "[], [], unknown>; getAnonymousStatusPage: jest.MockInstance; getLegacyMetadata: jest.MockInstance<{ uiSettings: { defaults: Record; user?: Record | undefined; }; globalUiSettings: { defaults: Record; user?: Record | undefined; }; }, [], unknown>; getCustomBranding: jest.MockInstance<", - { - "pluginId": "@kbn/core-custom-branding-common", - "scope": "common", - "docId": "kibKbnCoreCustomBrandingCommonPluginApi", - "section": "def-common.CustomBranding", - "text": "CustomBranding" - }, + "CustomBranding", ", [], unknown>; getFeatureFlags: jest.MockInstance<{ overrides: Record; } | undefined, [], unknown>; } & ", "InternalInjectedMetadataSetup" ], diff --git a/api_docs/kbn_core_test_helpers_http_setup_browser.mdx b/api_docs/kbn_core_test_helpers_http_setup_browser.mdx index c21d2c43a947d..ba849beb9432b 100644 --- a/api_docs/kbn_core_test_helpers_http_setup_browser.mdx +++ b/api_docs/kbn_core_test_helpers_http_setup_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-http-setup-browser title: "@kbn/core-test-helpers-http-setup-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-http-setup-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-http-setup-browser'] --- import kbnCoreTestHelpersHttpSetupBrowserObj from './kbn_core_test_helpers_http_setup_browser.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_kbn_server.mdx b/api_docs/kbn_core_test_helpers_kbn_server.mdx index 28abaaa551cec..f6825c5a2a0ce 100644 --- a/api_docs/kbn_core_test_helpers_kbn_server.mdx +++ b/api_docs/kbn_core_test_helpers_kbn_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-kbn-server title: "@kbn/core-test-helpers-kbn-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-kbn-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-kbn-server'] --- import kbnCoreTestHelpersKbnServerObj from './kbn_core_test_helpers_kbn_server.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_model_versions.mdx b/api_docs/kbn_core_test_helpers_model_versions.mdx index db23bbab7fe65..6f9c99827157a 100644 --- a/api_docs/kbn_core_test_helpers_model_versions.mdx +++ b/api_docs/kbn_core_test_helpers_model_versions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-model-versions title: "@kbn/core-test-helpers-model-versions" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-model-versions plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-model-versions'] --- import kbnCoreTestHelpersModelVersionsObj from './kbn_core_test_helpers_model_versions.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_so_type_serializer.mdx b/api_docs/kbn_core_test_helpers_so_type_serializer.mdx index 4b03d1f10cadc..1e74fb28fe270 100644 --- a/api_docs/kbn_core_test_helpers_so_type_serializer.mdx +++ b/api_docs/kbn_core_test_helpers_so_type_serializer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-so-type-serializer title: "@kbn/core-test-helpers-so-type-serializer" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-so-type-serializer plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-so-type-serializer'] --- import kbnCoreTestHelpersSoTypeSerializerObj from './kbn_core_test_helpers_so_type_serializer.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_test_utils.devdocs.json b/api_docs/kbn_core_test_helpers_test_utils.devdocs.json index 30345b09f8e10..cf9262d276cd8 100644 --- a/api_docs/kbn_core_test_helpers_test_utils.devdocs.json +++ b/api_docs/kbn_core_test_helpers_test_utils.devdocs.json @@ -159,13 +159,7 @@ "text": "ScopedClusterClientMock" }, "; }; uiSettings: { client: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; }; deprecations: { client: jest.Mocked<", "DeprecationsClient", ">; }; }; }>" diff --git a/api_docs/kbn_core_test_helpers_test_utils.mdx b/api_docs/kbn_core_test_helpers_test_utils.mdx index 8271085e9cdb1..50a547eb5393e 100644 --- a/api_docs/kbn_core_test_helpers_test_utils.mdx +++ b/api_docs/kbn_core_test_helpers_test_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-test-utils title: "@kbn/core-test-helpers-test-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-test-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-test-utils'] --- import kbnCoreTestHelpersTestUtilsObj from './kbn_core_test_helpers_test_utils.devdocs.json'; diff --git a/api_docs/kbn_core_theme_browser.mdx b/api_docs/kbn_core_theme_browser.mdx index da2628411268d..c12d554fefe20 100644 --- a/api_docs/kbn_core_theme_browser.mdx +++ b/api_docs/kbn_core_theme_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-theme-browser title: "@kbn/core-theme-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-theme-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-theme-browser'] --- import kbnCoreThemeBrowserObj from './kbn_core_theme_browser.devdocs.json'; diff --git a/api_docs/kbn_core_theme_browser_internal.mdx b/api_docs/kbn_core_theme_browser_internal.mdx index 3075997d7b992..c3698aa39784b 100644 --- a/api_docs/kbn_core_theme_browser_internal.mdx +++ b/api_docs/kbn_core_theme_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-theme-browser-internal title: "@kbn/core-theme-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-theme-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-theme-browser-internal'] --- import kbnCoreThemeBrowserInternalObj from './kbn_core_theme_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_theme_browser_mocks.mdx b/api_docs/kbn_core_theme_browser_mocks.mdx index b26806ff79126..57655d6005eca 100644 --- a/api_docs/kbn_core_theme_browser_mocks.mdx +++ b/api_docs/kbn_core_theme_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-theme-browser-mocks title: "@kbn/core-theme-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-theme-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-theme-browser-mocks'] --- import kbnCoreThemeBrowserMocksObj from './kbn_core_theme_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_browser.devdocs.json b/api_docs/kbn_core_ui_settings_browser.devdocs.json index 4a500591da24b..b00238f875577 100644 --- a/api_docs/kbn_core_ui_settings_browser.devdocs.json +++ b/api_docs/kbn_core_ui_settings_browser.devdocs.json @@ -13,7 +13,7 @@ "description": [ "\nClient-side client that provides access to the advanced settings stored in elasticsearch.\nThe settings provide control over the behavior of the Kibana application.\nFor example, a user can specify how to display numeric or date fields.\nUsers can adjust the settings via Management UI.\n{@link IUiSettingsClient}\n" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -29,7 +29,7 @@ "signature": [ "(key: string, defaultOverride?: T | undefined) => T" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -43,7 +43,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -58,7 +58,7 @@ "signature": [ "T | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -80,7 +80,7 @@ "Observable", "" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -94,7 +94,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -109,7 +109,7 @@ "signature": [ "T | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -128,24 +128,12 @@ ], "signature": [ "() => Readonly>>" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -163,7 +151,7 @@ "signature": [ "(key: string, value: any) => Promise" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -177,7 +165,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -192,7 +180,7 @@ "signature": [ "any" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -212,7 +200,7 @@ "signature": [ "(key: string) => Promise" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -226,7 +214,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -246,7 +234,7 @@ "signature": [ "(key: string) => boolean" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -260,7 +248,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -280,7 +268,7 @@ "signature": [ "(key: string) => boolean" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -294,7 +282,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -314,7 +302,7 @@ "signature": [ "(key: string) => boolean" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -328,7 +316,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -348,7 +336,7 @@ "signature": [ "(key: string) => boolean" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -362,7 +350,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -384,7 +372,7 @@ "Observable", "<{ key: string; newValue: T; oldValue: T; }>" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -404,7 +392,7 @@ "Observable", "" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -424,7 +412,7 @@ "ValueValidation", ">" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -438,7 +426,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -453,7 +441,7 @@ "signature": [ "any" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -471,7 +459,7 @@ "tags": [], "label": "SettingsStart", "description": [], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -483,15 +471,9 @@ "label": "client", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false }, @@ -503,15 +485,9 @@ "label": "globalClient", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false } @@ -525,7 +501,7 @@ "tags": [], "label": "UiSettingsState", "description": [], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -538,24 +514,12 @@ "description": [], "signature": [ "[key: string]: ", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.PublicUiSettingsParams", - "text": "PublicUiSettingsParams" - }, + "PublicUiSettingsParams", " & ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UserProvidedValues", - "text": "UserProvidedValues" - }, + "UserProvidedValues", "" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false } @@ -574,48 +538,18 @@ "description": [], "signature": [ "{ value?: unknown; type?: ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", " | undefined; options?: string[] | number[] | undefined; scope?: ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsScope", - "text": "UiSettingsScope" - }, + "UiSettingsScope", " | undefined; order?: number | undefined; name?: string | undefined; description?: string | undefined; getValue?: ((context?: ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.GetUiSettingsContext", - "text": "GetUiSettingsContext" - }, + "GetUiSettingsContext", " | undefined) => Promise) | undefined; category?: string[] | undefined; metric?: { type: string; name: string; } | undefined; readonly?: boolean | undefined; optionLabels?: Record | undefined; requiresPageReload?: boolean | undefined; readonlyMode?: ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.ReadonlyModeType", - "text": "ReadonlyModeType" - }, + "ReadonlyModeType", " | undefined; sensitive?: boolean | undefined; deprecation?: ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.DeprecationSettings", - "text": "DeprecationSettings" - }, + "DeprecationSettings", " | undefined; }" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -628,15 +562,9 @@ "label": "SettingsSetup", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.SettingsStart", - "text": "SettingsStart" - } + "SettingsStart" ], - "path": "packages/core/ui-settings/core-ui-settings-browser/src/types.ts", + "path": "src/core/packages/ui-settings/browser/src/types.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_core_ui_settings_browser.mdx b/api_docs/kbn_core_ui_settings_browser.mdx index 1fa3e95449c37..7d1afab83ff23 100644 --- a/api_docs/kbn_core_ui_settings_browser.mdx +++ b/api_docs/kbn_core_ui_settings_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-browser title: "@kbn/core-ui-settings-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-browser'] --- import kbnCoreUiSettingsBrowserObj from './kbn_core_ui_settings_browser.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sh | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 33 | 2 | 20 | 1 | +| 33 | 2 | 20 | 0 | ## Client diff --git a/api_docs/kbn_core_ui_settings_browser_internal.devdocs.json b/api_docs/kbn_core_ui_settings_browser_internal.devdocs.json index 1e5ff23495bb3..a5a3f96898974 100644 --- a/api_docs/kbn_core_ui_settings_browser_internal.devdocs.json +++ b/api_docs/kbn_core_ui_settings_browser_internal.devdocs.json @@ -10,17 +10,11 @@ "label": "UiSettingsClient", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser-internal", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserInternalPluginApi", - "section": "def-public.UiSettingsClient", - "text": "UiSettingsClient" - }, + "UiSettingsClient", " extends ", "UiSettingsClientCommon" ], - "path": "packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/browser-internal/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -34,7 +28,7 @@ "signature": [ "any" ], - "path": "packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/browser-internal/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -48,7 +42,7 @@ "signature": [ "UiSettingsClientParams" ], - "path": "packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/browser-internal/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -66,7 +60,7 @@ "signature": [ "(key: string, newVal: any) => Promise" ], - "path": "packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/browser-internal/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -80,7 +74,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/browser-internal/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -95,7 +89,7 @@ "signature": [ "any" ], - "path": "packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/browser-internal/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -116,7 +110,7 @@ ], "label": "UiSettingsService", "description": [], - "path": "packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_service.ts", + "path": "src/core/packages/ui-settings/browser-internal/src/ui_settings_service.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -131,15 +125,9 @@ "({ http, injectedMetadata }: ", "UiSettingsServiceDeps", ") => ", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], - "path": "packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_service.ts", + "path": "src/core/packages/ui-settings/browser-internal/src/ui_settings_service.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -153,7 +141,7 @@ "signature": [ "UiSettingsServiceDeps" ], - "path": "packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_service.ts", + "path": "src/core/packages/ui-settings/browser-internal/src/ui_settings_service.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -170,15 +158,9 @@ "description": [], "signature": [ "() => ", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], - "path": "packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_service.ts", + "path": "src/core/packages/ui-settings/browser-internal/src/ui_settings_service.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -194,7 +176,7 @@ "signature": [ "() => void" ], - "path": "packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_service.ts", + "path": "src/core/packages/ui-settings/browser-internal/src/ui_settings_service.ts", "deprecated": false, "trackAdoption": false, "children": [], diff --git a/api_docs/kbn_core_ui_settings_browser_internal.mdx b/api_docs/kbn_core_ui_settings_browser_internal.mdx index 717c8167d9f8a..94f8aa1d18ee3 100644 --- a/api_docs/kbn_core_ui_settings_browser_internal.mdx +++ b/api_docs/kbn_core_ui_settings_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-browser-internal title: "@kbn/core-ui-settings-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-browser-internal'] --- import kbnCoreUiSettingsBrowserInternalObj from './kbn_core_ui_settings_browser_internal.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sh | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 11 | 1 | 11 | 3 | +| 11 | 1 | 11 | 0 | ## Client diff --git a/api_docs/kbn_core_ui_settings_browser_mocks.devdocs.json b/api_docs/kbn_core_ui_settings_browser_mocks.devdocs.json index c4510c060fe02..ce2af2305f069 100644 --- a/api_docs/kbn_core_ui_settings_browser_mocks.devdocs.json +++ b/api_docs/kbn_core_ui_settings_browser_mocks.devdocs.json @@ -43,21 +43,9 @@ "description": [], "signature": [ "() => { client: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; globalClient: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; }" ], "path": "packages/core/ui-settings/core-ui-settings-browser-mocks/src/settings_service.mock.ts", @@ -75,21 +63,9 @@ "description": [], "signature": [ "() => { client: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; globalClient: jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">; }" ], "path": "packages/core/ui-settings/core-ui-settings-browser-mocks/src/settings_service.mock.ts", @@ -137,13 +113,7 @@ "description": [], "signature": [ "() => jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">" ], "path": "packages/core/ui-settings/core-ui-settings-browser-mocks/src/ui_settings_service.mock.ts", @@ -161,13 +131,7 @@ "description": [], "signature": [ "() => jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">" ], "path": "packages/core/ui-settings/core-ui-settings-browser-mocks/src/ui_settings_service.mock.ts", diff --git a/api_docs/kbn_core_ui_settings_browser_mocks.mdx b/api_docs/kbn_core_ui_settings_browser_mocks.mdx index 74a031dd509c9..3ae69edda456c 100644 --- a/api_docs/kbn_core_ui_settings_browser_mocks.mdx +++ b/api_docs/kbn_core_ui_settings_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-browser-mocks title: "@kbn/core-ui-settings-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-browser-mocks'] --- import kbnCoreUiSettingsBrowserMocksObj from './kbn_core_ui_settings_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_common.devdocs.json b/api_docs/kbn_core_ui_settings_common.devdocs.json index e28cc01fdd45e..4fba867fa5ccb 100644 --- a/api_docs/kbn_core_ui_settings_common.devdocs.json +++ b/api_docs/kbn_core_ui_settings_common.devdocs.json @@ -28,16 +28,10 @@ "description": [], "signature": [ "(tags: ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.ThemeTags", - "text": "ThemeTags" - }, + "ThemeTags", ") => boolean" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -49,15 +43,9 @@ "label": "tags", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.ThemeTags", - "text": "ThemeTags" - } + "ThemeTags" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -75,15 +63,9 @@ "description": [], "signature": [ "(rawValue: unknown) => ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.DarkModeValue", - "text": "DarkModeValue" - } + "DarkModeValue" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/dark_mode.ts", + "path": "src/core/packages/ui-settings/common/src/dark_mode.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -97,7 +79,7 @@ "signature": [ "unknown" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/dark_mode.ts", + "path": "src/core/packages/ui-settings/common/src/dark_mode.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -116,7 +98,7 @@ "signature": [ "(value: unknown) => string" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -130,7 +112,7 @@ "signature": [ "unknown" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -148,15 +130,9 @@ "description": [], "signature": [ "(input: unknown) => ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.ThemeTags", - "text": "ThemeTags" - } + "ThemeTags" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -170,7 +146,7 @@ "signature": [ "unknown" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -190,7 +166,7 @@ "description": [ "\nUiSettings deprecation field options." ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -203,7 +179,7 @@ "description": [ "Deprecation message" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -216,7 +192,7 @@ "description": [ "Key to documentation links" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false } @@ -230,7 +206,7 @@ "tags": [], "label": "GetUiSettingsContext", "description": [], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -245,7 +221,7 @@ "KibanaRequest", " | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false } @@ -262,16 +238,10 @@ "\nUiSettings parameters defined by the plugins." ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsParams", - "text": "UiSettingsParams" - }, + "UiSettingsParams", "" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -287,7 +257,7 @@ "signature": [ "string | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -303,7 +273,7 @@ "signature": [ "T | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -318,16 +288,10 @@ ], "signature": [ "((context?: ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.GetUiSettingsContext", - "text": "GetUiSettingsContext" - }, + "GetUiSettingsContext", " | undefined) => Promise) | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -339,16 +303,10 @@ "label": "context", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.GetUiSettingsContext", - "text": "GetUiSettingsContext" - }, + "GetUiSettingsContext", " | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -368,7 +326,7 @@ "signature": [ "string | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -384,7 +342,7 @@ "signature": [ "string[] | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -400,7 +358,7 @@ "signature": [ "string[] | number[] | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -416,7 +374,7 @@ "signature": [ "Record | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -432,7 +390,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -448,7 +406,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -462,16 +420,10 @@ "a flag indicating the level of restriction of the readonly settings {@link ReadonlyModeType}" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.ReadonlyModeType", - "text": "ReadonlyModeType" - }, + "ReadonlyModeType", " | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -487,7 +439,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -501,16 +453,10 @@ "defines a type of UI element {@link UiSettingsType}" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", " | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -524,16 +470,10 @@ "optional deprecation information. Used to generate a deprecation warning." ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.DeprecationSettings", - "text": "DeprecationSettings" - }, + "DeprecationSettings", " | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -549,7 +489,7 @@ "signature": [ "number | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -572,7 +512,7 @@ }, "" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -590,7 +530,7 @@ "signature": [ "{ type: string; name: string; } | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": true, "trackAdoption": false, "references": [ @@ -618,16 +558,10 @@ "\nScope of the setting. `Global` denotes a setting globally available across namespaces. `Namespace` denotes a setting\nscoped to a namespace. The default value is 'namespace'" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsScope", - "text": "UiSettingsScope" - }, + "UiSettingsScope", " | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false } @@ -644,16 +578,10 @@ "\nDescribes the values explicitly set by user." ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UserProvidedValues", - "text": "UserProvidedValues" - }, + "UserProvidedValues", "" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -667,7 +595,7 @@ "signature": [ "T | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false }, @@ -681,7 +609,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false } @@ -703,7 +631,7 @@ "signature": [ "boolean | \"system\"" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/dark_mode.ts", + "path": "src/core/packages/ui-settings/common/src/dark_mode.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -718,7 +646,7 @@ "signature": [ "\"amsterdam\"" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -733,7 +661,7 @@ "signature": [ "\"v8light\" | \"v8dark\" | \"borealislight\" | \"borealisdark\"" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -750,7 +678,7 @@ "signature": [ "\"strict\" | \"ui\"" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -765,7 +693,7 @@ "signature": [ "string[]" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -780,7 +708,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -795,7 +723,7 @@ "signature": [ "\"v8light\" | \"v8dark\" | \"borealislight\" | \"borealisdark\"" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -810,7 +738,7 @@ "signature": [ "readonly (\"v8light\" | \"v8dark\" | \"borealislight\" | \"borealisdark\")[]" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -825,7 +753,7 @@ "signature": [ "string[]" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/timezones.ts", + "path": "src/core/packages/ui-settings/common/src/timezones.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -842,7 +770,7 @@ "signature": [ "\"namespace\" | \"global\"" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -859,7 +787,7 @@ "signature": [ "\"string\" | \"number\" | \"boolean\" | \"undefined\" | \"color\" | \"select\" | \"image\" | \"array\" | \"json\" | \"markdown\"" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts", + "path": "src/core/packages/ui-settings/common/src/ui_settings.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -878,7 +806,7 @@ "signature": [ "readonly (\"v8light\" | \"v8dark\" | \"borealislight\" | \"borealisdark\")[]" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -895,7 +823,7 @@ "signature": [ "readonly [\"v8light\", \"v8dark\", \"borealislight\", \"borealisdark\"]" ], - "path": "packages/core/ui-settings/core-ui-settings-common/src/theme.ts", + "path": "src/core/packages/ui-settings/common/src/theme.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_core_ui_settings_common.mdx b/api_docs/kbn_core_ui_settings_common.mdx index ae012fc145e5e..61f519301c37b 100644 --- a/api_docs/kbn_core_ui_settings_common.mdx +++ b/api_docs/kbn_core_ui_settings_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-common title: "@kbn/core-ui-settings-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-common'] --- import kbnCoreUiSettingsCommonObj from './kbn_core_ui_settings_common.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_server.devdocs.json b/api_docs/kbn_core_ui_settings_server.devdocs.json index cc499c229c66d..545a7b35836d9 100644 --- a/api_docs/kbn_core_ui_settings_server.devdocs.json +++ b/api_docs/kbn_core_ui_settings_server.devdocs.json @@ -21,7 +21,7 @@ "description": [ "\nServer-side client that provides access to the advanced settings stored in elasticsearch.\nThe settings provide control over the behavior of the Kibana application.\nFor example, a user can specify how to display numeric or date fields.\nUsers can adjust the settings via Management UI.\n" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -36,16 +36,10 @@ ], "signature": [ "() => Readonly, \"schema\">>>" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -62,16 +56,10 @@ ], "signature": [ "(key: string, context?: ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.GetUiSettingsContext", - "text": "GetUiSettingsContext" - }, + "GetUiSettingsContext", " | undefined) => Promise" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -85,7 +73,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -98,16 +86,10 @@ "label": "context", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.GetUiSettingsContext", - "text": "GetUiSettingsContext" - }, + "GetUiSettingsContext", " | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -126,16 +108,10 @@ ], "signature": [ "(context?: ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.GetUiSettingsContext", - "text": "GetUiSettingsContext" - }, + "GetUiSettingsContext", " | undefined) => Promise>" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -147,16 +123,10 @@ "label": "context", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.GetUiSettingsContext", - "text": "GetUiSettingsContext" - }, + "GetUiSettingsContext", " | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -175,16 +145,10 @@ ], "signature": [ "() => Promise>>" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -202,7 +166,7 @@ "signature": [ "(changes: Record) => Promise" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -216,7 +180,7 @@ "signature": [ "Record" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -236,7 +200,7 @@ "signature": [ "(key: string, value: any) => Promise" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -250,7 +214,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -265,7 +229,7 @@ "signature": [ "any" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -285,7 +249,7 @@ "signature": [ "(key: string) => Promise" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -299,7 +263,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -319,7 +283,7 @@ "signature": [ "(keys: string[], options?: { validateKeys?: boolean | undefined; handleWriteErrors?: boolean | undefined; } | undefined) => Promise" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -333,7 +297,7 @@ "signature": [ "string[]" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -345,7 +309,7 @@ "tags": [], "label": "options", "description": [], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -359,7 +323,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false }, @@ -373,7 +337,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false } @@ -394,7 +358,7 @@ "signature": [ "(key: string) => boolean" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -408,7 +372,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -428,7 +392,7 @@ "signature": [ "(key: string) => boolean" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -442,7 +406,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -462,7 +426,7 @@ "signature": [ "(key: string, value: unknown) => Promise" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -476,7 +440,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -491,7 +455,7 @@ "signature": [ "unknown" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server/src/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -511,7 +475,7 @@ "description": [ "\nCore's `uiSettings` request handler context." ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/request_handler_context.ts", + "path": "src/core/packages/ui-settings/server/src/request_handler_context.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -523,15 +487,9 @@ "label": "client", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/request_handler_context.ts", + "path": "src/core/packages/ui-settings/server/src/request_handler_context.ts", "deprecated": false, "trackAdoption": false }, @@ -543,15 +501,9 @@ "label": "globalClient", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/request_handler_context.ts", + "path": "src/core/packages/ui-settings/server/src/request_handler_context.ts", "deprecated": false, "trackAdoption": false } @@ -565,7 +517,7 @@ "tags": [], "label": "UiSettingsServiceSetup", "description": [], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -580,16 +532,10 @@ ], "signature": [ "(settings: Record>) => void" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -602,16 +548,10 @@ "description": [], "signature": [ "Record>" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -630,16 +570,10 @@ ], "signature": [ "(settings: Record>) => void" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -652,16 +586,10 @@ "description": [], "signature": [ "Record>" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -681,7 +609,7 @@ "signature": [ "(keys: string[]) => void" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -695,7 +623,7 @@ "signature": [ "string[]" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -713,7 +641,7 @@ "tags": [], "label": "UiSettingsServiceStart", "description": [], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -730,15 +658,9 @@ "(savedObjectsClient: ", "SavedObjectsClientContract", ") => ", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -752,7 +674,7 @@ "signature": [ "SavedObjectsClientContract" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -773,15 +695,9 @@ "(savedObjectsClient: ", "SavedObjectsClientContract", ") => ", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -795,7 +711,7 @@ "signature": [ "SavedObjectsClientContract" ], - "path": "packages/core/ui-settings/core-ui-settings-server/src/contracts.ts", + "path": "src/core/packages/ui-settings/server/src/contracts.ts", "deprecated": false, "trackAdoption": false, "isRequired": true diff --git a/api_docs/kbn_core_ui_settings_server.mdx b/api_docs/kbn_core_ui_settings_server.mdx index 936b7aa79c8ec..fa20f5d3db47c 100644 --- a/api_docs/kbn_core_ui_settings_server.mdx +++ b/api_docs/kbn_core_ui_settings_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-server title: "@kbn/core-ui-settings-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-server'] --- import kbnCoreUiSettingsServerObj from './kbn_core_ui_settings_server.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_server_internal.devdocs.json b/api_docs/kbn_core_ui_settings_server_internal.devdocs.json index 89ec32066a118..d42798073bd05 100644 --- a/api_docs/kbn_core_ui_settings_server_internal.devdocs.json +++ b/api_docs/kbn_core_ui_settings_server_internal.devdocs.json @@ -18,17 +18,11 @@ "label": "UiSettingsClient", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server-internal", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerInternalPluginApi", - "section": "def-server.UiSettingsClient", - "text": "UiSettingsClient" - }, + "UiSettingsClient", " extends ", "UiSettingsClientCommon" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -42,7 +36,7 @@ "signature": [ "any" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -56,7 +50,7 @@ "signature": [ "UiSettingsServiceOptions" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -77,17 +71,11 @@ "\nGlobal UiSettingsClient" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server-internal", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerInternalPluginApi", - "section": "def-server.UiSettingsGlobalClient", - "text": "UiSettingsGlobalClient" - }, + "UiSettingsGlobalClient", " extends ", "UiSettingsClientCommon" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -101,7 +89,7 @@ "signature": [ "any" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -115,7 +103,7 @@ "signature": [ "UiSettingsServiceOptions" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -133,7 +121,7 @@ "signature": [ "(changes: Record, options?: { validateKeys?: boolean | undefined; }) => Promise" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -147,7 +135,7 @@ "signature": [ "Record" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -159,7 +147,7 @@ "tags": [], "label": "options", "description": [], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -173,7 +161,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts", "deprecated": false, "trackAdoption": false } @@ -192,7 +180,7 @@ "signature": [ "(key: string, value: any) => Promise" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -206,7 +194,7 @@ "signature": [ "string" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -221,7 +209,7 @@ "signature": [ "any" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts", + "path": "src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -244,7 +232,7 @@ "signature": [ "(options: Options) => Promise | undefined>" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.ts", + "path": "src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -258,7 +246,7 @@ "signature": [ "Options" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.ts", + "path": "src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -279,7 +267,7 @@ "tags": [], "label": "uiSettingsConfig", "description": [], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_config.ts", + "path": "src/core/packages/ui-settings/server-internal/src/ui_settings_config.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -290,7 +278,7 @@ "tags": [], "label": "path", "description": [], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_config.ts", + "path": "src/core/packages/ui-settings/server-internal/src/ui_settings_config.ts", "deprecated": false, "trackAdoption": false }, @@ -335,7 +323,7 @@ }, " | undefined>; }>" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_config.ts", + "path": "src/core/packages/ui-settings/server-internal/src/ui_settings_config.ts", "deprecated": false, "trackAdoption": false }, @@ -365,7 +353,7 @@ }, "[]" ], - "path": "packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_config.ts", + "path": "src/core/packages/ui-settings/server-internal/src/ui_settings_config.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], diff --git a/api_docs/kbn_core_ui_settings_server_internal.mdx b/api_docs/kbn_core_ui_settings_server_internal.mdx index 2dac85955f32c..37ed55583a5db 100644 --- a/api_docs/kbn_core_ui_settings_server_internal.mdx +++ b/api_docs/kbn_core_ui_settings_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-server-internal title: "@kbn/core-ui-settings-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-server-internal'] --- import kbnCoreUiSettingsServerInternalObj from './kbn_core_ui_settings_server_internal.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sh | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 20 | 1 | 19 | 3 | +| 20 | 1 | 19 | 0 | ## Server diff --git a/api_docs/kbn_core_ui_settings_server_mocks.devdocs.json b/api_docs/kbn_core_ui_settings_server_mocks.devdocs.json index b16f1b9bd37e8..96ed28f3b1379 100644 --- a/api_docs/kbn_core_ui_settings_server_mocks.devdocs.json +++ b/api_docs/kbn_core_ui_settings_server_mocks.devdocs.json @@ -53,13 +53,7 @@ "description": [], "signature": [ "() => jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.UiSettingsServiceSetup", - "text": "UiSettingsServiceSetup" - }, + "UiSettingsServiceSetup", ">" ], "path": "packages/core/ui-settings/core-ui-settings-server-mocks/src/ui_settings_service.mock.ts", @@ -77,13 +71,7 @@ "description": [], "signature": [ "() => jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.UiSettingsServiceStart", - "text": "UiSettingsServiceStart" - }, + "UiSettingsServiceStart", ">" ], "path": "packages/core/ui-settings/core-ui-settings-server-mocks/src/ui_settings_service.mock.ts", @@ -101,13 +89,7 @@ "description": [], "signature": [ "() => jest.Mocked<", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">" ], "path": "packages/core/ui-settings/core-ui-settings-server-mocks/src/ui_settings_service.mock.ts", diff --git a/api_docs/kbn_core_ui_settings_server_mocks.mdx b/api_docs/kbn_core_ui_settings_server_mocks.mdx index c2b0a642cc1fa..af80e6375df22 100644 --- a/api_docs/kbn_core_ui_settings_server_mocks.mdx +++ b/api_docs/kbn_core_ui_settings_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-server-mocks title: "@kbn/core-ui-settings-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-server-mocks'] --- import kbnCoreUiSettingsServerMocksObj from './kbn_core_ui_settings_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_usage_data_server.mdx b/api_docs/kbn_core_usage_data_server.mdx index 368e49e501712..a35f2aa708019 100644 --- a/api_docs/kbn_core_usage_data_server.mdx +++ b/api_docs/kbn_core_usage_data_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-usage-data-server title: "@kbn/core-usage-data-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-usage-data-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-usage-data-server'] --- import kbnCoreUsageDataServerObj from './kbn_core_usage_data_server.devdocs.json'; diff --git a/api_docs/kbn_core_usage_data_server_internal.mdx b/api_docs/kbn_core_usage_data_server_internal.mdx index 0a07a3000689a..7d75b84759083 100644 --- a/api_docs/kbn_core_usage_data_server_internal.mdx +++ b/api_docs/kbn_core_usage_data_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-usage-data-server-internal title: "@kbn/core-usage-data-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-usage-data-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-usage-data-server-internal'] --- import kbnCoreUsageDataServerInternalObj from './kbn_core_usage_data_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_usage_data_server_mocks.mdx b/api_docs/kbn_core_usage_data_server_mocks.mdx index 9d079dc65532e..e4348b44cea3e 100644 --- a/api_docs/kbn_core_usage_data_server_mocks.mdx +++ b/api_docs/kbn_core_usage_data_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-usage-data-server-mocks title: "@kbn/core-usage-data-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-usage-data-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-usage-data-server-mocks'] --- import kbnCoreUsageDataServerMocksObj from './kbn_core_usage_data_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_browser.mdx b/api_docs/kbn_core_user_profile_browser.mdx index d1ccda022c3c9..580e23e0296eb 100644 --- a/api_docs/kbn_core_user_profile_browser.mdx +++ b/api_docs/kbn_core_user_profile_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-browser title: "@kbn/core-user-profile-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-browser'] --- import kbnCoreUserProfileBrowserObj from './kbn_core_user_profile_browser.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_browser_internal.mdx b/api_docs/kbn_core_user_profile_browser_internal.mdx index de4bf89024b03..2758bff4db549 100644 --- a/api_docs/kbn_core_user_profile_browser_internal.mdx +++ b/api_docs/kbn_core_user_profile_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-browser-internal title: "@kbn/core-user-profile-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-browser-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-browser-internal'] --- import kbnCoreUserProfileBrowserInternalObj from './kbn_core_user_profile_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_browser_mocks.mdx b/api_docs/kbn_core_user_profile_browser_mocks.mdx index 27a9c74ea110f..5c0716ca0ce9f 100644 --- a/api_docs/kbn_core_user_profile_browser_mocks.mdx +++ b/api_docs/kbn_core_user_profile_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-browser-mocks title: "@kbn/core-user-profile-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-browser-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-browser-mocks'] --- import kbnCoreUserProfileBrowserMocksObj from './kbn_core_user_profile_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_common.mdx b/api_docs/kbn_core_user_profile_common.mdx index 84eae8683d3de..75ee240ad4b2d 100644 --- a/api_docs/kbn_core_user_profile_common.mdx +++ b/api_docs/kbn_core_user_profile_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-common title: "@kbn/core-user-profile-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-common'] --- import kbnCoreUserProfileCommonObj from './kbn_core_user_profile_common.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_server.mdx b/api_docs/kbn_core_user_profile_server.mdx index c9bf9e2afa8fd..f07bef64b8ee5 100644 --- a/api_docs/kbn_core_user_profile_server.mdx +++ b/api_docs/kbn_core_user_profile_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-server title: "@kbn/core-user-profile-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-server'] --- import kbnCoreUserProfileServerObj from './kbn_core_user_profile_server.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_server_internal.mdx b/api_docs/kbn_core_user_profile_server_internal.mdx index 3d58127e2721b..0d754d9fe012d 100644 --- a/api_docs/kbn_core_user_profile_server_internal.mdx +++ b/api_docs/kbn_core_user_profile_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-server-internal title: "@kbn/core-user-profile-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-server-internal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-server-internal'] --- import kbnCoreUserProfileServerInternalObj from './kbn_core_user_profile_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_user_profile_server_mocks.mdx b/api_docs/kbn_core_user_profile_server_mocks.mdx index ec4bd0be55715..0529ba9556f0b 100644 --- a/api_docs/kbn_core_user_profile_server_mocks.mdx +++ b/api_docs/kbn_core_user_profile_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-profile-server-mocks title: "@kbn/core-user-profile-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-profile-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-profile-server-mocks'] --- import kbnCoreUserProfileServerMocksObj from './kbn_core_user_profile_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_user_settings_server.mdx b/api_docs/kbn_core_user_settings_server.mdx index 602b1d834930c..6b78cf2630d4c 100644 --- a/api_docs/kbn_core_user_settings_server.mdx +++ b/api_docs/kbn_core_user_settings_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-settings-server title: "@kbn/core-user-settings-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-settings-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-settings-server'] --- import kbnCoreUserSettingsServerObj from './kbn_core_user_settings_server.devdocs.json'; diff --git a/api_docs/kbn_core_user_settings_server_mocks.mdx b/api_docs/kbn_core_user_settings_server_mocks.mdx index f7f5948fd4651..ca2bcac393fbf 100644 --- a/api_docs/kbn_core_user_settings_server_mocks.mdx +++ b/api_docs/kbn_core_user_settings_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-user-settings-server-mocks title: "@kbn/core-user-settings-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-user-settings-server-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-user-settings-server-mocks'] --- import kbnCoreUserSettingsServerMocksObj from './kbn_core_user_settings_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_crypto.mdx b/api_docs/kbn_crypto.mdx index 71d848080515a..d19f2d4787bb2 100644 --- a/api_docs/kbn_crypto.mdx +++ b/api_docs/kbn_crypto.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-crypto title: "@kbn/crypto" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/crypto plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/crypto'] --- import kbnCryptoObj from './kbn_crypto.devdocs.json'; diff --git a/api_docs/kbn_crypto_browser.mdx b/api_docs/kbn_crypto_browser.mdx index ce54e21775123..dbdb3d8b9f916 100644 --- a/api_docs/kbn_crypto_browser.mdx +++ b/api_docs/kbn_crypto_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-crypto-browser title: "@kbn/crypto-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/crypto-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/crypto-browser'] --- import kbnCryptoBrowserObj from './kbn_crypto_browser.devdocs.json'; diff --git a/api_docs/kbn_custom_icons.mdx b/api_docs/kbn_custom_icons.mdx index f23fbc2d6d844..6230eb1dce038 100644 --- a/api_docs/kbn_custom_icons.mdx +++ b/api_docs/kbn_custom_icons.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-custom-icons title: "@kbn/custom-icons" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/custom-icons plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/custom-icons'] --- import kbnCustomIconsObj from './kbn_custom_icons.devdocs.json'; diff --git a/api_docs/kbn_custom_integrations.mdx b/api_docs/kbn_custom_integrations.mdx index 31e928ebc2144..09ced87e8c320 100644 --- a/api_docs/kbn_custom_integrations.mdx +++ b/api_docs/kbn_custom_integrations.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-custom-integrations title: "@kbn/custom-integrations" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/custom-integrations plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/custom-integrations'] --- import kbnCustomIntegrationsObj from './kbn_custom_integrations.devdocs.json'; diff --git a/api_docs/kbn_cypress_config.mdx b/api_docs/kbn_cypress_config.mdx index 638b2023139e8..1b44536053aa5 100644 --- a/api_docs/kbn_cypress_config.mdx +++ b/api_docs/kbn_cypress_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cypress-config title: "@kbn/cypress-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cypress-config plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cypress-config'] --- import kbnCypressConfigObj from './kbn_cypress_config.devdocs.json'; diff --git a/api_docs/kbn_data_forge.mdx b/api_docs/kbn_data_forge.mdx index 7c10c31bb5a0e..372757f237131 100644 --- a/api_docs/kbn_data_forge.mdx +++ b/api_docs/kbn_data_forge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-data-forge title: "@kbn/data-forge" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/data-forge plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/data-forge'] --- import kbnDataForgeObj from './kbn_data_forge.devdocs.json'; diff --git a/api_docs/kbn_data_service.mdx b/api_docs/kbn_data_service.mdx index 0b29d554d5e4c..16aa8959bf778 100644 --- a/api_docs/kbn_data_service.mdx +++ b/api_docs/kbn_data_service.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-data-service title: "@kbn/data-service" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/data-service plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/data-service'] --- import kbnDataServiceObj from './kbn_data_service.devdocs.json'; diff --git a/api_docs/kbn_data_stream_adapter.mdx b/api_docs/kbn_data_stream_adapter.mdx index f2d13bbac456d..f5143f7c56436 100644 --- a/api_docs/kbn_data_stream_adapter.mdx +++ b/api_docs/kbn_data_stream_adapter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-data-stream-adapter title: "@kbn/data-stream-adapter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/data-stream-adapter plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/data-stream-adapter'] --- import kbnDataStreamAdapterObj from './kbn_data_stream_adapter.devdocs.json'; diff --git a/api_docs/kbn_data_view_utils.mdx b/api_docs/kbn_data_view_utils.mdx index 19fdaf78e530e..cba4980c1316a 100644 --- a/api_docs/kbn_data_view_utils.mdx +++ b/api_docs/kbn_data_view_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-data-view-utils title: "@kbn/data-view-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/data-view-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/data-view-utils'] --- import kbnDataViewUtilsObj from './kbn_data_view_utils.devdocs.json'; diff --git a/api_docs/kbn_datemath.mdx b/api_docs/kbn_datemath.mdx index 74fe6de09204e..24306006202ca 100644 --- a/api_docs/kbn_datemath.mdx +++ b/api_docs/kbn_datemath.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-datemath title: "@kbn/datemath" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/datemath plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/datemath'] --- import kbnDatemathObj from './kbn_datemath.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_analytics.mdx b/api_docs/kbn_deeplinks_analytics.mdx index ba78f9c09d249..f248207d6a0ec 100644 --- a/api_docs/kbn_deeplinks_analytics.mdx +++ b/api_docs/kbn_deeplinks_analytics.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-analytics title: "@kbn/deeplinks-analytics" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-analytics plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-analytics'] --- import kbnDeeplinksAnalyticsObj from './kbn_deeplinks_analytics.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_devtools.mdx b/api_docs/kbn_deeplinks_devtools.mdx index 5994e17175a69..7ee59fff15f93 100644 --- a/api_docs/kbn_deeplinks_devtools.mdx +++ b/api_docs/kbn_deeplinks_devtools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-devtools title: "@kbn/deeplinks-devtools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-devtools plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-devtools'] --- import kbnDeeplinksDevtoolsObj from './kbn_deeplinks_devtools.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_fleet.mdx b/api_docs/kbn_deeplinks_fleet.mdx index abd604c32c306..71b7736f48a99 100644 --- a/api_docs/kbn_deeplinks_fleet.mdx +++ b/api_docs/kbn_deeplinks_fleet.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-fleet title: "@kbn/deeplinks-fleet" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-fleet plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-fleet'] --- import kbnDeeplinksFleetObj from './kbn_deeplinks_fleet.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_management.mdx b/api_docs/kbn_deeplinks_management.mdx index 19cb16077589d..b6f3cc89756f9 100644 --- a/api_docs/kbn_deeplinks_management.mdx +++ b/api_docs/kbn_deeplinks_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-management title: "@kbn/deeplinks-management" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-management plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-management'] --- import kbnDeeplinksManagementObj from './kbn_deeplinks_management.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_ml.mdx b/api_docs/kbn_deeplinks_ml.mdx index 77f2a2b5e5441..8a4f6b891630b 100644 --- a/api_docs/kbn_deeplinks_ml.mdx +++ b/api_docs/kbn_deeplinks_ml.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-ml title: "@kbn/deeplinks-ml" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-ml plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-ml'] --- import kbnDeeplinksMlObj from './kbn_deeplinks_ml.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_observability.mdx b/api_docs/kbn_deeplinks_observability.mdx index 4abac5f1ce7ba..7181a4cfc3708 100644 --- a/api_docs/kbn_deeplinks_observability.mdx +++ b/api_docs/kbn_deeplinks_observability.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-observability title: "@kbn/deeplinks-observability" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-observability plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-observability'] --- import kbnDeeplinksObservabilityObj from './kbn_deeplinks_observability.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_search.mdx b/api_docs/kbn_deeplinks_search.mdx index 3ca09292226e6..ff99795df54ff 100644 --- a/api_docs/kbn_deeplinks_search.mdx +++ b/api_docs/kbn_deeplinks_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-search title: "@kbn/deeplinks-search" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-search plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-search'] --- import kbnDeeplinksSearchObj from './kbn_deeplinks_search.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_security.mdx b/api_docs/kbn_deeplinks_security.mdx index eabb65bc40ad2..6d9def4b43d89 100644 --- a/api_docs/kbn_deeplinks_security.mdx +++ b/api_docs/kbn_deeplinks_security.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-security title: "@kbn/deeplinks-security" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-security plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-security'] --- import kbnDeeplinksSecurityObj from './kbn_deeplinks_security.devdocs.json'; diff --git a/api_docs/kbn_deeplinks_shared.mdx b/api_docs/kbn_deeplinks_shared.mdx index abf81c7ec97f5..e088b76ee280c 100644 --- a/api_docs/kbn_deeplinks_shared.mdx +++ b/api_docs/kbn_deeplinks_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-deeplinks-shared title: "@kbn/deeplinks-shared" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/deeplinks-shared plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/deeplinks-shared'] --- import kbnDeeplinksSharedObj from './kbn_deeplinks_shared.devdocs.json'; diff --git a/api_docs/kbn_default_nav_analytics.mdx b/api_docs/kbn_default_nav_analytics.mdx index 6bfec84ccced8..f97d23b488690 100644 --- a/api_docs/kbn_default_nav_analytics.mdx +++ b/api_docs/kbn_default_nav_analytics.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-default-nav-analytics title: "@kbn/default-nav-analytics" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/default-nav-analytics plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/default-nav-analytics'] --- import kbnDefaultNavAnalyticsObj from './kbn_default_nav_analytics.devdocs.json'; diff --git a/api_docs/kbn_default_nav_devtools.mdx b/api_docs/kbn_default_nav_devtools.mdx index 038a449307917..c2622890120ae 100644 --- a/api_docs/kbn_default_nav_devtools.mdx +++ b/api_docs/kbn_default_nav_devtools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-default-nav-devtools title: "@kbn/default-nav-devtools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/default-nav-devtools plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/default-nav-devtools'] --- import kbnDefaultNavDevtoolsObj from './kbn_default_nav_devtools.devdocs.json'; diff --git a/api_docs/kbn_default_nav_management.mdx b/api_docs/kbn_default_nav_management.mdx index fcd931ca8ada0..b80e9f2db75a5 100644 --- a/api_docs/kbn_default_nav_management.mdx +++ b/api_docs/kbn_default_nav_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-default-nav-management title: "@kbn/default-nav-management" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/default-nav-management plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/default-nav-management'] --- import kbnDefaultNavManagementObj from './kbn_default_nav_management.devdocs.json'; diff --git a/api_docs/kbn_default_nav_ml.mdx b/api_docs/kbn_default_nav_ml.mdx index 46242c4afeb15..7b3163866b13d 100644 --- a/api_docs/kbn_default_nav_ml.mdx +++ b/api_docs/kbn_default_nav_ml.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-default-nav-ml title: "@kbn/default-nav-ml" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/default-nav-ml plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/default-nav-ml'] --- import kbnDefaultNavMlObj from './kbn_default_nav_ml.devdocs.json'; diff --git a/api_docs/kbn_dev_cli_errors.mdx b/api_docs/kbn_dev_cli_errors.mdx index c28404ec822bf..12898d64d49a5 100644 --- a/api_docs/kbn_dev_cli_errors.mdx +++ b/api_docs/kbn_dev_cli_errors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-cli-errors title: "@kbn/dev-cli-errors" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-cli-errors plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-cli-errors'] --- import kbnDevCliErrorsObj from './kbn_dev_cli_errors.devdocs.json'; diff --git a/api_docs/kbn_dev_cli_runner.mdx b/api_docs/kbn_dev_cli_runner.mdx index 38cfb42c0a9eb..734500a648387 100644 --- a/api_docs/kbn_dev_cli_runner.mdx +++ b/api_docs/kbn_dev_cli_runner.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-cli-runner title: "@kbn/dev-cli-runner" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-cli-runner plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-cli-runner'] --- import kbnDevCliRunnerObj from './kbn_dev_cli_runner.devdocs.json'; diff --git a/api_docs/kbn_dev_proc_runner.mdx b/api_docs/kbn_dev_proc_runner.mdx index 4297d5315e43b..1802db812213f 100644 --- a/api_docs/kbn_dev_proc_runner.mdx +++ b/api_docs/kbn_dev_proc_runner.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-proc-runner title: "@kbn/dev-proc-runner" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-proc-runner plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-proc-runner'] --- import kbnDevProcRunnerObj from './kbn_dev_proc_runner.devdocs.json'; diff --git a/api_docs/kbn_dev_utils.mdx b/api_docs/kbn_dev_utils.mdx index d6e58bd2faeeb..e680b3bedc672 100644 --- a/api_docs/kbn_dev_utils.mdx +++ b/api_docs/kbn_dev_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-utils title: "@kbn/dev-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-utils'] --- import kbnDevUtilsObj from './kbn_dev_utils.devdocs.json'; diff --git a/api_docs/kbn_discover_contextual_components.mdx b/api_docs/kbn_discover_contextual_components.mdx index 5855471e79bcf..eb1e5eb407431 100644 --- a/api_docs/kbn_discover_contextual_components.mdx +++ b/api_docs/kbn_discover_contextual_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-discover-contextual-components title: "@kbn/discover-contextual-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/discover-contextual-components plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/discover-contextual-components'] --- import kbnDiscoverContextualComponentsObj from './kbn_discover_contextual_components.devdocs.json'; diff --git a/api_docs/kbn_discover_utils.mdx b/api_docs/kbn_discover_utils.mdx index 117c07fa0cabd..e18604347b233 100644 --- a/api_docs/kbn_discover_utils.mdx +++ b/api_docs/kbn_discover_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-discover-utils title: "@kbn/discover-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/discover-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/discover-utils'] --- import kbnDiscoverUtilsObj from './kbn_discover_utils.devdocs.json'; diff --git a/api_docs/kbn_doc_links.mdx b/api_docs/kbn_doc_links.mdx index 0f843e2c0eaf5..8a77f1dcaa2a3 100644 --- a/api_docs/kbn_doc_links.mdx +++ b/api_docs/kbn_doc_links.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-doc-links title: "@kbn/doc-links" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/doc-links plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/doc-links'] --- import kbnDocLinksObj from './kbn_doc_links.devdocs.json'; diff --git a/api_docs/kbn_docs_utils.mdx b/api_docs/kbn_docs_utils.mdx index 8ea8529fcef81..41da857da2622 100644 --- a/api_docs/kbn_docs_utils.mdx +++ b/api_docs/kbn_docs_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-docs-utils title: "@kbn/docs-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/docs-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/docs-utils'] --- import kbnDocsUtilsObj from './kbn_docs_utils.devdocs.json'; diff --git a/api_docs/kbn_dom_drag_drop.mdx b/api_docs/kbn_dom_drag_drop.mdx index 891880744deaf..8a3e09e724600 100644 --- a/api_docs/kbn_dom_drag_drop.mdx +++ b/api_docs/kbn_dom_drag_drop.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dom-drag-drop title: "@kbn/dom-drag-drop" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dom-drag-drop plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dom-drag-drop'] --- import kbnDomDragDropObj from './kbn_dom_drag_drop.devdocs.json'; diff --git a/api_docs/kbn_ebt_tools.mdx b/api_docs/kbn_ebt_tools.mdx index d497cfa96b409..21732bae54e3a 100644 --- a/api_docs/kbn_ebt_tools.mdx +++ b/api_docs/kbn_ebt_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ebt-tools title: "@kbn/ebt-tools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ebt-tools plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ebt-tools'] --- import kbnEbtToolsObj from './kbn_ebt_tools.devdocs.json'; diff --git a/api_docs/kbn_ecs_data_quality_dashboard.mdx b/api_docs/kbn_ecs_data_quality_dashboard.mdx index 46e9b2c6aa83b..7a6ed3912db1e 100644 --- a/api_docs/kbn_ecs_data_quality_dashboard.mdx +++ b/api_docs/kbn_ecs_data_quality_dashboard.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ecs-data-quality-dashboard title: "@kbn/ecs-data-quality-dashboard" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ecs-data-quality-dashboard plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ecs-data-quality-dashboard'] --- import kbnEcsDataQualityDashboardObj from './kbn_ecs_data_quality_dashboard.devdocs.json'; diff --git a/api_docs/kbn_elastic_agent_utils.mdx b/api_docs/kbn_elastic_agent_utils.mdx index 3358c0ad1a321..b6a34822626e4 100644 --- a/api_docs/kbn_elastic_agent_utils.mdx +++ b/api_docs/kbn_elastic_agent_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-elastic-agent-utils title: "@kbn/elastic-agent-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/elastic-agent-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/elastic-agent-utils'] --- import kbnElasticAgentUtilsObj from './kbn_elastic_agent_utils.devdocs.json'; diff --git a/api_docs/kbn_elastic_assistant.mdx b/api_docs/kbn_elastic_assistant.mdx index b0800f9ea25bf..3e7ff25249c89 100644 --- a/api_docs/kbn_elastic_assistant.mdx +++ b/api_docs/kbn_elastic_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-elastic-assistant title: "@kbn/elastic-assistant" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/elastic-assistant plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/elastic-assistant'] --- import kbnElasticAssistantObj from './kbn_elastic_assistant.devdocs.json'; diff --git a/api_docs/kbn_elastic_assistant_common.mdx b/api_docs/kbn_elastic_assistant_common.mdx index ff4d48186579a..81bb2478a6a24 100644 --- a/api_docs/kbn_elastic_assistant_common.mdx +++ b/api_docs/kbn_elastic_assistant_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-elastic-assistant-common title: "@kbn/elastic-assistant-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/elastic-assistant-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/elastic-assistant-common'] --- import kbnElasticAssistantCommonObj from './kbn_elastic_assistant_common.devdocs.json'; diff --git a/api_docs/kbn_entities_schema.mdx b/api_docs/kbn_entities_schema.mdx index 9f6658be2fa54..92554c9772be5 100644 --- a/api_docs/kbn_entities_schema.mdx +++ b/api_docs/kbn_entities_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-entities-schema title: "@kbn/entities-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/entities-schema plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/entities-schema'] --- import kbnEntitiesSchemaObj from './kbn_entities_schema.devdocs.json'; diff --git a/api_docs/kbn_es.mdx b/api_docs/kbn_es.mdx index 6a68bc79cfcd4..e796f6cd8d7e8 100644 --- a/api_docs/kbn_es.mdx +++ b/api_docs/kbn_es.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es title: "@kbn/es" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es'] --- import kbnEsObj from './kbn_es.devdocs.json'; diff --git a/api_docs/kbn_es_archiver.mdx b/api_docs/kbn_es_archiver.mdx index 725ebd5e5e07a..cdb01e964e227 100644 --- a/api_docs/kbn_es_archiver.mdx +++ b/api_docs/kbn_es_archiver.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-archiver title: "@kbn/es-archiver" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-archiver plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-archiver'] --- import kbnEsArchiverObj from './kbn_es_archiver.devdocs.json'; diff --git a/api_docs/kbn_es_errors.mdx b/api_docs/kbn_es_errors.mdx index 6b0d8d20829ee..7ea8d85a87c49 100644 --- a/api_docs/kbn_es_errors.mdx +++ b/api_docs/kbn_es_errors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-errors title: "@kbn/es-errors" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-errors plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-errors'] --- import kbnEsErrorsObj from './kbn_es_errors.devdocs.json'; diff --git a/api_docs/kbn_es_query.mdx b/api_docs/kbn_es_query.mdx index 3e0d631e77136..85ac53febbc6c 100644 --- a/api_docs/kbn_es_query.mdx +++ b/api_docs/kbn_es_query.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-query title: "@kbn/es-query" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-query plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-query'] --- import kbnEsQueryObj from './kbn_es_query.devdocs.json'; diff --git a/api_docs/kbn_es_types.mdx b/api_docs/kbn_es_types.mdx index 5e80ac1744a32..12dfed2612f79 100644 --- a/api_docs/kbn_es_types.mdx +++ b/api_docs/kbn_es_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-types title: "@kbn/es-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-types'] --- import kbnEsTypesObj from './kbn_es_types.devdocs.json'; diff --git a/api_docs/kbn_eslint_plugin_imports.mdx b/api_docs/kbn_eslint_plugin_imports.mdx index 6f58db652c589..4d8bdaf3169d1 100644 --- a/api_docs/kbn_eslint_plugin_imports.mdx +++ b/api_docs/kbn_eslint_plugin_imports.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-eslint-plugin-imports title: "@kbn/eslint-plugin-imports" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/eslint-plugin-imports plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/eslint-plugin-imports'] --- import kbnEslintPluginImportsObj from './kbn_eslint_plugin_imports.devdocs.json'; diff --git a/api_docs/kbn_esql_ast.mdx b/api_docs/kbn_esql_ast.mdx index a9d9cae7be8b3..7faf4ba87d294 100644 --- a/api_docs/kbn_esql_ast.mdx +++ b/api_docs/kbn_esql_ast.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-esql-ast title: "@kbn/esql-ast" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/esql-ast plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/esql-ast'] --- import kbnEsqlAstObj from './kbn_esql_ast.devdocs.json'; diff --git a/api_docs/kbn_esql_editor.mdx b/api_docs/kbn_esql_editor.mdx index 8aab2f97636cc..ff95f0145b167 100644 --- a/api_docs/kbn_esql_editor.mdx +++ b/api_docs/kbn_esql_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-esql-editor title: "@kbn/esql-editor" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/esql-editor plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/esql-editor'] --- import kbnEsqlEditorObj from './kbn_esql_editor.devdocs.json'; diff --git a/api_docs/kbn_esql_utils.mdx b/api_docs/kbn_esql_utils.mdx index 1ffe4e13d5457..7869264ca2784 100644 --- a/api_docs/kbn_esql_utils.mdx +++ b/api_docs/kbn_esql_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-esql-utils title: "@kbn/esql-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/esql-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/esql-utils'] --- import kbnEsqlUtilsObj from './kbn_esql_utils.devdocs.json'; diff --git a/api_docs/kbn_esql_validation_autocomplete.mdx b/api_docs/kbn_esql_validation_autocomplete.mdx index c7e03eeec3774..650b698c6d35f 100644 --- a/api_docs/kbn_esql_validation_autocomplete.mdx +++ b/api_docs/kbn_esql_validation_autocomplete.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-esql-validation-autocomplete title: "@kbn/esql-validation-autocomplete" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/esql-validation-autocomplete plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/esql-validation-autocomplete'] --- import kbnEsqlValidationAutocompleteObj from './kbn_esql_validation_autocomplete.devdocs.json'; diff --git a/api_docs/kbn_event_annotation_common.mdx b/api_docs/kbn_event_annotation_common.mdx index 587b61bddd26a..ec020c2ccca23 100644 --- a/api_docs/kbn_event_annotation_common.mdx +++ b/api_docs/kbn_event_annotation_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-event-annotation-common title: "@kbn/event-annotation-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/event-annotation-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/event-annotation-common'] --- import kbnEventAnnotationCommonObj from './kbn_event_annotation_common.devdocs.json'; diff --git a/api_docs/kbn_event_annotation_components.mdx b/api_docs/kbn_event_annotation_components.mdx index 480b494273d01..f1cdac759a96b 100644 --- a/api_docs/kbn_event_annotation_components.mdx +++ b/api_docs/kbn_event_annotation_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-event-annotation-components title: "@kbn/event-annotation-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/event-annotation-components plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/event-annotation-components'] --- import kbnEventAnnotationComponentsObj from './kbn_event_annotation_components.devdocs.json'; diff --git a/api_docs/kbn_expandable_flyout.mdx b/api_docs/kbn_expandable_flyout.mdx index 76d423ced4857..e1447636af11e 100644 --- a/api_docs/kbn_expandable_flyout.mdx +++ b/api_docs/kbn_expandable_flyout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-expandable-flyout title: "@kbn/expandable-flyout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/expandable-flyout plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/expandable-flyout'] --- import kbnExpandableFlyoutObj from './kbn_expandable_flyout.devdocs.json'; diff --git a/api_docs/kbn_field_types.mdx b/api_docs/kbn_field_types.mdx index 466de71678213..03861226a67c9 100644 --- a/api_docs/kbn_field_types.mdx +++ b/api_docs/kbn_field_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-field-types title: "@kbn/field-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/field-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/field-types'] --- import kbnFieldTypesObj from './kbn_field_types.devdocs.json'; diff --git a/api_docs/kbn_field_utils.mdx b/api_docs/kbn_field_utils.mdx index da1c44621d24e..b1b5845db0940 100644 --- a/api_docs/kbn_field_utils.mdx +++ b/api_docs/kbn_field_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-field-utils title: "@kbn/field-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/field-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/field-utils'] --- import kbnFieldUtilsObj from './kbn_field_utils.devdocs.json'; diff --git a/api_docs/kbn_find_used_node_modules.mdx b/api_docs/kbn_find_used_node_modules.mdx index 81288767bcc41..4762f25ec1311 100644 --- a/api_docs/kbn_find_used_node_modules.mdx +++ b/api_docs/kbn_find_used_node_modules.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-find-used-node-modules title: "@kbn/find-used-node-modules" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/find-used-node-modules plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/find-used-node-modules'] --- import kbnFindUsedNodeModulesObj from './kbn_find_used_node_modules.devdocs.json'; diff --git a/api_docs/kbn_formatters.mdx b/api_docs/kbn_formatters.mdx index 06f634aae0a95..44b0266d8b2f2 100644 --- a/api_docs/kbn_formatters.mdx +++ b/api_docs/kbn_formatters.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-formatters title: "@kbn/formatters" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/formatters plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/formatters'] --- import kbnFormattersObj from './kbn_formatters.devdocs.json'; diff --git a/api_docs/kbn_ftr_common_functional_services.mdx b/api_docs/kbn_ftr_common_functional_services.mdx index 0b25cfd8c412e..4c40cf2bf85d4 100644 --- a/api_docs/kbn_ftr_common_functional_services.mdx +++ b/api_docs/kbn_ftr_common_functional_services.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ftr-common-functional-services title: "@kbn/ftr-common-functional-services" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ftr-common-functional-services plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ftr-common-functional-services'] --- import kbnFtrCommonFunctionalServicesObj from './kbn_ftr_common_functional_services.devdocs.json'; diff --git a/api_docs/kbn_ftr_common_functional_ui_services.mdx b/api_docs/kbn_ftr_common_functional_ui_services.mdx index b0faf6d8fc3c7..8b5e338985573 100644 --- a/api_docs/kbn_ftr_common_functional_ui_services.mdx +++ b/api_docs/kbn_ftr_common_functional_ui_services.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ftr-common-functional-ui-services title: "@kbn/ftr-common-functional-ui-services" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ftr-common-functional-ui-services plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ftr-common-functional-ui-services'] --- import kbnFtrCommonFunctionalUiServicesObj from './kbn_ftr_common_functional_ui_services.devdocs.json'; diff --git a/api_docs/kbn_gen_ai_functional_testing.mdx b/api_docs/kbn_gen_ai_functional_testing.mdx index 8e404a478f311..6c4fea748cffb 100644 --- a/api_docs/kbn_gen_ai_functional_testing.mdx +++ b/api_docs/kbn_gen_ai_functional_testing.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-gen-ai-functional-testing title: "@kbn/gen-ai-functional-testing" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/gen-ai-functional-testing plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/gen-ai-functional-testing'] --- import kbnGenAiFunctionalTestingObj from './kbn_gen_ai_functional_testing.devdocs.json'; diff --git a/api_docs/kbn_generate.mdx b/api_docs/kbn_generate.mdx index 2fc3850fd99a8..21fba135b6653 100644 --- a/api_docs/kbn_generate.mdx +++ b/api_docs/kbn_generate.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-generate title: "@kbn/generate" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/generate plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/generate'] --- import kbnGenerateObj from './kbn_generate.devdocs.json'; diff --git a/api_docs/kbn_generate_console_definitions.mdx b/api_docs/kbn_generate_console_definitions.mdx index fbc5e75f1a28c..a7bef1256864f 100644 --- a/api_docs/kbn_generate_console_definitions.mdx +++ b/api_docs/kbn_generate_console_definitions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-generate-console-definitions title: "@kbn/generate-console-definitions" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/generate-console-definitions plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/generate-console-definitions'] --- import kbnGenerateConsoleDefinitionsObj from './kbn_generate_console_definitions.devdocs.json'; diff --git a/api_docs/kbn_generate_csv.devdocs.json b/api_docs/kbn_generate_csv.devdocs.json index 535dee81a98dc..2485fd5e884c7 100644 --- a/api_docs/kbn_generate_csv.devdocs.json +++ b/api_docs/kbn_generate_csv.devdocs.json @@ -17,7 +17,7 @@ "tags": [], "label": "CsvESQLGenerator", "description": [], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -31,7 +31,7 @@ "signature": [ "any" ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -51,7 +51,7 @@ "text": "JobParamsCsvESQL" } ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -74,7 +74,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>" ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -89,7 +89,7 @@ "signature": [ "TaskInstanceFields" ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -104,7 +104,7 @@ "signature": [ "Clients" ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -125,7 +125,7 @@ "text": "CancellationToken" } ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -146,7 +146,7 @@ "text": "Logger" } ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -161,7 +161,7 @@ "signature": [ "Writable" ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -181,7 +181,7 @@ "TaskRunResult", ">" ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -197,7 +197,7 @@ "tags": [], "label": "CsvGenerator", "description": [], - "path": "packages/kbn-generate-csv/src/generate_csv.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -211,7 +211,7 @@ "signature": [ "any" ], - "path": "packages/kbn-generate-csv/src/generate_csv.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -227,7 +227,7 @@ "JobParamsCSV", ", \"version\">" ], - "path": "packages/kbn-generate-csv/src/generate_csv.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -250,7 +250,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>" ], - "path": "packages/kbn-generate-csv/src/generate_csv.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -265,7 +265,7 @@ "signature": [ "TaskInstanceFields" ], - "path": "packages/kbn-generate-csv/src/generate_csv.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -280,7 +280,7 @@ "signature": [ "Clients" ], - "path": "packages/kbn-generate-csv/src/generate_csv.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -295,7 +295,7 @@ "signature": [ "Dependencies" ], - "path": "packages/kbn-generate-csv/src/generate_csv.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -316,7 +316,7 @@ "text": "CancellationToken" } ], - "path": "packages/kbn-generate-csv/src/generate_csv.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -337,7 +337,7 @@ "text": "Logger" } ], - "path": "packages/kbn-generate-csv/src/generate_csv.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -352,7 +352,7 @@ "signature": [ "Writable" ], - "path": "packages/kbn-generate-csv/src/generate_csv.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -372,7 +372,7 @@ "TaskRunResult", ">" ], - "path": "packages/kbn-generate-csv/src/generate_csv.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -391,7 +391,7 @@ "tags": [], "label": "JobParamsCsvESQL", "description": [], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -405,7 +405,7 @@ "signature": [ "{ esql: string; }" ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false }, @@ -419,7 +419,7 @@ "signature": [ "string[] | undefined" ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false }, @@ -440,7 +440,7 @@ }, "[] | undefined" ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false }, @@ -454,7 +454,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-generate-csv/src/generate_csv_esql.ts", + "path": "src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_generate_csv.mdx b/api_docs/kbn_generate_csv.mdx index a36656003c648..6e37555169369 100644 --- a/api_docs/kbn_generate_csv.mdx +++ b/api_docs/kbn_generate_csv.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-generate-csv title: "@kbn/generate-csv" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/generate-csv plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/generate-csv'] --- import kbnGenerateCsvObj from './kbn_generate_csv.devdocs.json'; diff --git a/api_docs/kbn_grid_layout.mdx b/api_docs/kbn_grid_layout.mdx index 2b3eeb56e20da..836d0e6e0843e 100644 --- a/api_docs/kbn_grid_layout.mdx +++ b/api_docs/kbn_grid_layout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-grid-layout title: "@kbn/grid-layout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/grid-layout plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/grid-layout'] --- import kbnGridLayoutObj from './kbn_grid_layout.devdocs.json'; diff --git a/api_docs/kbn_grouping.mdx b/api_docs/kbn_grouping.mdx index 0f7e685279ca9..7d5ef41436cf7 100644 --- a/api_docs/kbn_grouping.mdx +++ b/api_docs/kbn_grouping.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-grouping title: "@kbn/grouping" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/grouping plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/grouping'] --- import kbnGroupingObj from './kbn_grouping.devdocs.json'; diff --git a/api_docs/kbn_guided_onboarding.mdx b/api_docs/kbn_guided_onboarding.mdx index 0c39895d7b87e..875d3bb4e5560 100644 --- a/api_docs/kbn_guided_onboarding.mdx +++ b/api_docs/kbn_guided_onboarding.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-guided-onboarding title: "@kbn/guided-onboarding" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/guided-onboarding plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/guided-onboarding'] --- import kbnGuidedOnboardingObj from './kbn_guided_onboarding.devdocs.json'; diff --git a/api_docs/kbn_handlebars.mdx b/api_docs/kbn_handlebars.mdx index b46a8cadee717..5a6195a99cae3 100644 --- a/api_docs/kbn_handlebars.mdx +++ b/api_docs/kbn_handlebars.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-handlebars title: "@kbn/handlebars" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/handlebars plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/handlebars'] --- import kbnHandlebarsObj from './kbn_handlebars.devdocs.json'; diff --git a/api_docs/kbn_hapi_mocks.mdx b/api_docs/kbn_hapi_mocks.mdx index 29267f3416f7a..ca6537eb2116d 100644 --- a/api_docs/kbn_hapi_mocks.mdx +++ b/api_docs/kbn_hapi_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-hapi-mocks title: "@kbn/hapi-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/hapi-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/hapi-mocks'] --- import kbnHapiMocksObj from './kbn_hapi_mocks.devdocs.json'; diff --git a/api_docs/kbn_health_gateway_server.mdx b/api_docs/kbn_health_gateway_server.mdx index fdd164dfa2ce9..d5c384ea8adf1 100644 --- a/api_docs/kbn_health_gateway_server.mdx +++ b/api_docs/kbn_health_gateway_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-health-gateway-server title: "@kbn/health-gateway-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/health-gateway-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/health-gateway-server'] --- import kbnHealthGatewayServerObj from './kbn_health_gateway_server.devdocs.json'; diff --git a/api_docs/kbn_home_sample_data_card.mdx b/api_docs/kbn_home_sample_data_card.mdx index 989de051ab2fe..1dd05b237f873 100644 --- a/api_docs/kbn_home_sample_data_card.mdx +++ b/api_docs/kbn_home_sample_data_card.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-home-sample-data-card title: "@kbn/home-sample-data-card" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/home-sample-data-card plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/home-sample-data-card'] --- import kbnHomeSampleDataCardObj from './kbn_home_sample_data_card.devdocs.json'; diff --git a/api_docs/kbn_home_sample_data_tab.mdx b/api_docs/kbn_home_sample_data_tab.mdx index cbc4ce653d826..557bae22942d3 100644 --- a/api_docs/kbn_home_sample_data_tab.mdx +++ b/api_docs/kbn_home_sample_data_tab.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-home-sample-data-tab title: "@kbn/home-sample-data-tab" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/home-sample-data-tab plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/home-sample-data-tab'] --- import kbnHomeSampleDataTabObj from './kbn_home_sample_data_tab.devdocs.json'; diff --git a/api_docs/kbn_i18n.mdx b/api_docs/kbn_i18n.mdx index 4ce6ed02c447b..44898a513a74f 100644 --- a/api_docs/kbn_i18n.mdx +++ b/api_docs/kbn_i18n.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-i18n title: "@kbn/i18n" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/i18n plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/i18n'] --- import kbnI18nObj from './kbn_i18n.devdocs.json'; diff --git a/api_docs/kbn_i18n_react.mdx b/api_docs/kbn_i18n_react.mdx index 541ca3f6977e3..d986d3dd38df7 100644 --- a/api_docs/kbn_i18n_react.mdx +++ b/api_docs/kbn_i18n_react.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-i18n-react title: "@kbn/i18n-react" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/i18n-react plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/i18n-react'] --- import kbnI18nReactObj from './kbn_i18n_react.devdocs.json'; diff --git a/api_docs/kbn_import_resolver.mdx b/api_docs/kbn_import_resolver.mdx index 05b72f81919a4..8953a7400716e 100644 --- a/api_docs/kbn_import_resolver.mdx +++ b/api_docs/kbn_import_resolver.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-import-resolver title: "@kbn/import-resolver" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/import-resolver plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/import-resolver'] --- import kbnImportResolverObj from './kbn_import_resolver.devdocs.json'; diff --git a/api_docs/kbn_index_adapter.mdx b/api_docs/kbn_index_adapter.mdx index 198e05fcd3f9f..a260c555a5c36 100644 --- a/api_docs/kbn_index_adapter.mdx +++ b/api_docs/kbn_index_adapter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-index-adapter title: "@kbn/index-adapter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/index-adapter plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/index-adapter'] --- import kbnIndexAdapterObj from './kbn_index_adapter.devdocs.json'; diff --git a/api_docs/kbn_index_lifecycle_management_common_shared.mdx b/api_docs/kbn_index_lifecycle_management_common_shared.mdx index f103e598839aa..7506c728e357b 100644 --- a/api_docs/kbn_index_lifecycle_management_common_shared.mdx +++ b/api_docs/kbn_index_lifecycle_management_common_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-index-lifecycle-management-common-shared title: "@kbn/index-lifecycle-management-common-shared" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/index-lifecycle-management-common-shared plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/index-lifecycle-management-common-shared'] --- import kbnIndexLifecycleManagementCommonSharedObj from './kbn_index_lifecycle_management_common_shared.devdocs.json'; diff --git a/api_docs/kbn_index_management_shared_types.mdx b/api_docs/kbn_index_management_shared_types.mdx index 887c85a4501f6..e5cbf4112278f 100644 --- a/api_docs/kbn_index_management_shared_types.mdx +++ b/api_docs/kbn_index_management_shared_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-index-management-shared-types title: "@kbn/index-management-shared-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/index-management-shared-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/index-management-shared-types'] --- import kbnIndexManagementSharedTypesObj from './kbn_index_management_shared_types.devdocs.json'; diff --git a/api_docs/kbn_inference_common.devdocs.json b/api_docs/kbn_inference_common.devdocs.json index b4cab38f2ee86..1eac6ddb975d5 100644 --- a/api_docs/kbn_inference_common.devdocs.json +++ b/api_docs/kbn_inference_common.devdocs.json @@ -1378,6 +1378,87 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "@kbn/inference-common", + "id": "def-common.MessageContentImage", + "type": "Interface", + "tags": [], + "label": "MessageContentImage", + "description": [], + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "@kbn/inference-common", + "id": "def-common.MessageContentImage.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "\"image\"" + ], + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "@kbn/inference-common", + "id": "def-common.MessageContentImage.source", + "type": "Object", + "tags": [], + "label": "source", + "description": [], + "signature": [ + "{ data: string; mimeType: string; }" + ], + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", + "deprecated": false, + "trackAdoption": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/inference-common", + "id": "def-common.MessageContentText", + "type": "Interface", + "tags": [], + "label": "MessageContentText", + "description": [], + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "@kbn/inference-common", + "id": "def-common.MessageContentText.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "\"text\"" + ], + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "@kbn/inference-common", + "id": "def-common.MessageContentText.text", + "type": "string", + "tags": [], + "label": "text", + "description": [], + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", + "deprecated": false, + "trackAdoption": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "@kbn/inference-common", "id": "def-common.OutputOptions", @@ -2892,6 +2973,37 @@ "trackAdoption": false, "initialIsOpen": false }, + { + "parentPluginId": "@kbn/inference-common", + "id": "def-common.MessageContent", + "type": "Type", + "tags": [], + "label": "MessageContent", + "description": [], + "signature": [ + "string | (", + { + "pluginId": "@kbn/inference-common", + "scope": "common", + "docId": "kibKbnInferenceCommonPluginApi", + "section": "def-common.MessageContentImage", + "text": "MessageContentImage" + }, + " | ", + { + "pluginId": "@kbn/inference-common", + "scope": "common", + "docId": "kibKbnInferenceCommonPluginApi", + "section": "def-common.MessageContentText", + "text": "MessageContentText" + }, + ")[]" + ], + "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", + "deprecated": false, + "trackAdoption": false, + "initialIsOpen": false + }, { "parentPluginId": "@kbn/inference-common", "id": "def-common.MessageOf", @@ -3401,7 +3513,15 @@ "section": "def-common.MessageRole", "text": "MessageRole" }, - ".User> & { content: string; }" + ".User> & { content: ", + { + "pluginId": "@kbn/inference-common", + "scope": "common", + "docId": "kibKbnInferenceCommonPluginApi", + "section": "def-common.MessageContent", + "text": "MessageContent" + }, + "; }" ], "path": "x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts", "deprecated": false, diff --git a/api_docs/kbn_inference_common.mdx b/api_docs/kbn_inference_common.mdx index 21e4bd54c48db..5c59bc7b1a0d8 100644 --- a/api_docs/kbn_inference_common.mdx +++ b/api_docs/kbn_inference_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-inference-common title: "@kbn/inference-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/inference-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/inference-common'] --- import kbnInferenceCommonObj from './kbn_inference_common.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/appex-ai-infra](https://github.com/orgs/elastic/teams/appex-ai | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 150 | 0 | 46 | 4 | +| 157 | 0 | 53 | 4 | ## Common diff --git a/api_docs/kbn_inference_endpoint_ui_common.mdx b/api_docs/kbn_inference_endpoint_ui_common.mdx index 9e954d3637fc5..c1172b2246dc4 100644 --- a/api_docs/kbn_inference_endpoint_ui_common.mdx +++ b/api_docs/kbn_inference_endpoint_ui_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-inference-endpoint-ui-common title: "@kbn/inference-endpoint-ui-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/inference-endpoint-ui-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/inference-endpoint-ui-common'] --- import kbnInferenceEndpointUiCommonObj from './kbn_inference_endpoint_ui_common.devdocs.json'; diff --git a/api_docs/kbn_inference_integration_flyout.mdx b/api_docs/kbn_inference_integration_flyout.mdx index 05a0d69949e2f..ae44f7d7c41de 100644 --- a/api_docs/kbn_inference_integration_flyout.mdx +++ b/api_docs/kbn_inference_integration_flyout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-inference_integration_flyout title: "@kbn/inference_integration_flyout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/inference_integration_flyout plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/inference_integration_flyout'] --- import kbnInferenceIntegrationFlyoutObj from './kbn_inference_integration_flyout.devdocs.json'; diff --git a/api_docs/kbn_infra_forge.mdx b/api_docs/kbn_infra_forge.mdx index 1241284949d32..2d42799b28641 100644 --- a/api_docs/kbn_infra_forge.mdx +++ b/api_docs/kbn_infra_forge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-infra-forge title: "@kbn/infra-forge" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/infra-forge plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/infra-forge'] --- import kbnInfraForgeObj from './kbn_infra_forge.devdocs.json'; diff --git a/api_docs/kbn_interpreter.mdx b/api_docs/kbn_interpreter.mdx index cd53b56ab4393..b02952c0e11d3 100644 --- a/api_docs/kbn_interpreter.mdx +++ b/api_docs/kbn_interpreter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-interpreter title: "@kbn/interpreter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/interpreter plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/interpreter'] --- import kbnInterpreterObj from './kbn_interpreter.devdocs.json'; diff --git a/api_docs/kbn_investigation_shared.mdx b/api_docs/kbn_investigation_shared.mdx index d068413aa207e..48f1b9b9e4c66 100644 --- a/api_docs/kbn_investigation_shared.mdx +++ b/api_docs/kbn_investigation_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-investigation-shared title: "@kbn/investigation-shared" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/investigation-shared plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/investigation-shared'] --- import kbnInvestigationSharedObj from './kbn_investigation_shared.devdocs.json'; diff --git a/api_docs/kbn_io_ts_utils.mdx b/api_docs/kbn_io_ts_utils.mdx index 8ee6fe2b4bac8..bb66dda96bc15 100644 --- a/api_docs/kbn_io_ts_utils.mdx +++ b/api_docs/kbn_io_ts_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-io-ts-utils title: "@kbn/io-ts-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/io-ts-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/io-ts-utils'] --- import kbnIoTsUtilsObj from './kbn_io_ts_utils.devdocs.json'; diff --git a/api_docs/kbn_ipynb.mdx b/api_docs/kbn_ipynb.mdx index af6e384dd1177..d6395669e7afe 100644 --- a/api_docs/kbn_ipynb.mdx +++ b/api_docs/kbn_ipynb.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ipynb title: "@kbn/ipynb" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ipynb plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ipynb'] --- import kbnIpynbObj from './kbn_ipynb.devdocs.json'; diff --git a/api_docs/kbn_item_buffer.mdx b/api_docs/kbn_item_buffer.mdx index b239e0e84bde0..f5931092cf524 100644 --- a/api_docs/kbn_item_buffer.mdx +++ b/api_docs/kbn_item_buffer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-item-buffer title: "@kbn/item-buffer" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/item-buffer plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/item-buffer'] --- import kbnItemBufferObj from './kbn_item_buffer.devdocs.json'; diff --git a/api_docs/kbn_jest_serializers.mdx b/api_docs/kbn_jest_serializers.mdx index d3f4a5efcded8..761c53ba304d2 100644 --- a/api_docs/kbn_jest_serializers.mdx +++ b/api_docs/kbn_jest_serializers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-jest-serializers title: "@kbn/jest-serializers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/jest-serializers plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/jest-serializers'] --- import kbnJestSerializersObj from './kbn_jest_serializers.devdocs.json'; diff --git a/api_docs/kbn_journeys.mdx b/api_docs/kbn_journeys.mdx index e2d63c741dbfb..e90cf19964acf 100644 --- a/api_docs/kbn_journeys.mdx +++ b/api_docs/kbn_journeys.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-journeys title: "@kbn/journeys" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/journeys plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/journeys'] --- import kbnJourneysObj from './kbn_journeys.devdocs.json'; diff --git a/api_docs/kbn_json_ast.mdx b/api_docs/kbn_json_ast.mdx index 4b762d53b457e..2459f1cf5e90d 100644 --- a/api_docs/kbn_json_ast.mdx +++ b/api_docs/kbn_json_ast.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-json-ast title: "@kbn/json-ast" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/json-ast plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/json-ast'] --- import kbnJsonAstObj from './kbn_json_ast.devdocs.json'; diff --git a/api_docs/kbn_json_schemas.mdx b/api_docs/kbn_json_schemas.mdx index 9e7613cc8812d..7c8bb312c7fdd 100644 --- a/api_docs/kbn_json_schemas.mdx +++ b/api_docs/kbn_json_schemas.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-json-schemas title: "@kbn/json-schemas" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/json-schemas plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/json-schemas'] --- import kbnJsonSchemasObj from './kbn_json_schemas.devdocs.json'; diff --git a/api_docs/kbn_kibana_manifest_schema.mdx b/api_docs/kbn_kibana_manifest_schema.mdx index b98b9d312a18e..1f81f37655141 100644 --- a/api_docs/kbn_kibana_manifest_schema.mdx +++ b/api_docs/kbn_kibana_manifest_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-kibana-manifest-schema title: "@kbn/kibana-manifest-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/kibana-manifest-schema plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/kibana-manifest-schema'] --- import kbnKibanaManifestSchemaObj from './kbn_kibana_manifest_schema.devdocs.json'; diff --git a/api_docs/kbn_language_documentation.mdx b/api_docs/kbn_language_documentation.mdx index 031a266d0ff5a..20aeb1f934214 100644 --- a/api_docs/kbn_language_documentation.mdx +++ b/api_docs/kbn_language_documentation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-language-documentation title: "@kbn/language-documentation" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/language-documentation plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/language-documentation'] --- import kbnLanguageDocumentationObj from './kbn_language_documentation.devdocs.json'; diff --git a/api_docs/kbn_lens_embeddable_utils.mdx b/api_docs/kbn_lens_embeddable_utils.mdx index 43f0e09582501..5605b89c6811c 100644 --- a/api_docs/kbn_lens_embeddable_utils.mdx +++ b/api_docs/kbn_lens_embeddable_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-lens-embeddable-utils title: "@kbn/lens-embeddable-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/lens-embeddable-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/lens-embeddable-utils'] --- import kbnLensEmbeddableUtilsObj from './kbn_lens_embeddable_utils.devdocs.json'; diff --git a/api_docs/kbn_lens_formula_docs.mdx b/api_docs/kbn_lens_formula_docs.mdx index cc4b95ea98fa0..c7c75f1673411 100644 --- a/api_docs/kbn_lens_formula_docs.mdx +++ b/api_docs/kbn_lens_formula_docs.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-lens-formula-docs title: "@kbn/lens-formula-docs" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/lens-formula-docs plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/lens-formula-docs'] --- import kbnLensFormulaDocsObj from './kbn_lens_formula_docs.devdocs.json'; diff --git a/api_docs/kbn_logging.mdx b/api_docs/kbn_logging.mdx index 915b58297359e..bac1cc8b06207 100644 --- a/api_docs/kbn_logging.mdx +++ b/api_docs/kbn_logging.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-logging title: "@kbn/logging" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/logging plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/logging'] --- import kbnLoggingObj from './kbn_logging.devdocs.json'; diff --git a/api_docs/kbn_logging_mocks.mdx b/api_docs/kbn_logging_mocks.mdx index e59f8d4cc98b8..b5a845e87d4a6 100644 --- a/api_docs/kbn_logging_mocks.mdx +++ b/api_docs/kbn_logging_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-logging-mocks title: "@kbn/logging-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/logging-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/logging-mocks'] --- import kbnLoggingMocksObj from './kbn_logging_mocks.devdocs.json'; diff --git a/api_docs/kbn_managed_content_badge.mdx b/api_docs/kbn_managed_content_badge.mdx index 47c158ff6060e..e297d668e2664 100644 --- a/api_docs/kbn_managed_content_badge.mdx +++ b/api_docs/kbn_managed_content_badge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-managed-content-badge title: "@kbn/managed-content-badge" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/managed-content-badge plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/managed-content-badge'] --- import kbnManagedContentBadgeObj from './kbn_managed_content_badge.devdocs.json'; diff --git a/api_docs/kbn_managed_vscode_config.mdx b/api_docs/kbn_managed_vscode_config.mdx index 50608c27d98c3..876bfe3aeb03f 100644 --- a/api_docs/kbn_managed_vscode_config.mdx +++ b/api_docs/kbn_managed_vscode_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-managed-vscode-config title: "@kbn/managed-vscode-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/managed-vscode-config plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/managed-vscode-config'] --- import kbnManagedVscodeConfigObj from './kbn_managed_vscode_config.devdocs.json'; diff --git a/api_docs/kbn_management_cards_navigation.mdx b/api_docs/kbn_management_cards_navigation.mdx index ef1abb25325c3..0d5f84865d45d 100644 --- a/api_docs/kbn_management_cards_navigation.mdx +++ b/api_docs/kbn_management_cards_navigation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-cards-navigation title: "@kbn/management-cards-navigation" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-cards-navigation plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-cards-navigation'] --- import kbnManagementCardsNavigationObj from './kbn_management_cards_navigation.devdocs.json'; diff --git a/api_docs/kbn_management_settings_application.mdx b/api_docs/kbn_management_settings_application.mdx index 6e7e23c60682c..553738058fa92 100644 --- a/api_docs/kbn_management_settings_application.mdx +++ b/api_docs/kbn_management_settings_application.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-application title: "@kbn/management-settings-application" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-application plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-application'] --- import kbnManagementSettingsApplicationObj from './kbn_management_settings_application.devdocs.json'; diff --git a/api_docs/kbn_management_settings_components_field_category.mdx b/api_docs/kbn_management_settings_components_field_category.mdx index 73c24508ac801..91a619b901922 100644 --- a/api_docs/kbn_management_settings_components_field_category.mdx +++ b/api_docs/kbn_management_settings_components_field_category.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-components-field-category title: "@kbn/management-settings-components-field-category" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-components-field-category plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-components-field-category'] --- import kbnManagementSettingsComponentsFieldCategoryObj from './kbn_management_settings_components_field_category.devdocs.json'; diff --git a/api_docs/kbn_management_settings_components_field_input.devdocs.json b/api_docs/kbn_management_settings_components_field_input.devdocs.json index e83e48ae834a2..4013920a21dbd 100644 --- a/api_docs/kbn_management_settings_components_field_input.devdocs.json +++ b/api_docs/kbn_management_settings_components_field_input.devdocs.json @@ -22,13 +22,7 @@ "text": "FieldInputProps" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", "> & React.RefAttributes<", { "pluginId": "@kbn/management-settings-types", @@ -105,13 +99,7 @@ "description": [], "signature": [ "{ client: ", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", "; }" ], "path": "src/platform/packages/shared/kbn-management/settings/components/field_input/types.ts", diff --git a/api_docs/kbn_management_settings_components_field_input.mdx b/api_docs/kbn_management_settings_components_field_input.mdx index b1e4d0615abcd..dad0d1cba0e08 100644 --- a/api_docs/kbn_management_settings_components_field_input.mdx +++ b/api_docs/kbn_management_settings_components_field_input.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-components-field-input title: "@kbn/management-settings-components-field-input" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-components-field-input plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-components-field-input'] --- import kbnManagementSettingsComponentsFieldInputObj from './kbn_management_settings_components_field_input.devdocs.json'; diff --git a/api_docs/kbn_management_settings_components_field_row.devdocs.json b/api_docs/kbn_management_settings_components_field_row.devdocs.json index 6ff70616fe621..ba29cf5b2f833 100644 --- a/api_docs/kbn_management_settings_components_field_row.devdocs.json +++ b/api_docs/kbn_management_settings_components_field_row.devdocs.json @@ -180,13 +180,7 @@ ], "signature": [ "{ id: string; type: ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", "; defaultValue?: string | number | boolean | (string | number)[] | null | undefined; name: string; groupId: string; displayName: string; isCustom: boolean; isOverridden: boolean; ariaAttributes: { ariaLabel: string; ariaDescribedBy?: string | undefined; }; savedValue?: string | number | boolean | (string | number)[] | null | undefined; defaultValueDisplay: string; isDefaultValue: boolean; unsavedFieldId: string; }" ], "path": "src/platform/packages/shared/kbn-management/settings/components/field_row/field_row.tsx", @@ -225,13 +219,7 @@ "text": "UnsavedFieldChange" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", "> | undefined) => void" ], "path": "src/platform/packages/shared/kbn-management/settings/components/field_row/field_row.tsx", @@ -327,13 +315,7 @@ "text": "UnsavedFieldChange" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", "> | undefined" ], "path": "src/platform/packages/shared/kbn-management/settings/components/field_row/field_row.tsx", diff --git a/api_docs/kbn_management_settings_components_field_row.mdx b/api_docs/kbn_management_settings_components_field_row.mdx index 4f862291d592c..fc56da78fa5ce 100644 --- a/api_docs/kbn_management_settings_components_field_row.mdx +++ b/api_docs/kbn_management_settings_components_field_row.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-components-field-row title: "@kbn/management-settings-components-field-row" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-components-field-row plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-components-field-row'] --- import kbnManagementSettingsComponentsFieldRowObj from './kbn_management_settings_components_field_row.devdocs.json'; diff --git a/api_docs/kbn_management_settings_components_form.mdx b/api_docs/kbn_management_settings_components_form.mdx index 8b77475623df1..c902bc9f4bb6c 100644 --- a/api_docs/kbn_management_settings_components_form.mdx +++ b/api_docs/kbn_management_settings_components_form.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-components-form title: "@kbn/management-settings-components-form" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-components-form plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-components-form'] --- import kbnManagementSettingsComponentsFormObj from './kbn_management_settings_components_form.devdocs.json'; diff --git a/api_docs/kbn_management_settings_field_definition.devdocs.json b/api_docs/kbn_management_settings_field_definition.devdocs.json index 3d35ba9357328..6b6006fdec94e 100644 --- a/api_docs/kbn_management_settings_field_definition.devdocs.json +++ b/api_docs/kbn_management_settings_field_definition.devdocs.json @@ -14,13 +14,7 @@ ], "signature": [ "(parameters: GetDefinitionParams) => ", { "pluginId": "@kbn/management-settings-types", @@ -83,13 +77,7 @@ "text": "UiSettingMetadata" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>>, client: SettingsClient) => ", { "pluginId": "@kbn/management-settings-types", @@ -99,13 +87,7 @@ "text": "FieldDefinition" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>[]" ], "path": "src/platform/packages/shared/kbn-management/settings/field_definition/get_definitions.ts", @@ -131,13 +113,7 @@ "text": "UiSettingMetadata" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>>" ], "path": "src/platform/packages/shared/kbn-management/settings/field_definition/get_definitions.ts", diff --git a/api_docs/kbn_management_settings_field_definition.mdx b/api_docs/kbn_management_settings_field_definition.mdx index f455353575f07..ec1ee29168602 100644 --- a/api_docs/kbn_management_settings_field_definition.mdx +++ b/api_docs/kbn_management_settings_field_definition.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-field-definition title: "@kbn/management-settings-field-definition" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-field-definition plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-field-definition'] --- import kbnManagementSettingsFieldDefinitionObj from './kbn_management_settings_field_definition.devdocs.json'; diff --git a/api_docs/kbn_management_settings_ids.mdx b/api_docs/kbn_management_settings_ids.mdx index 34159e5cef5a4..cea1b2d8172ae 100644 --- a/api_docs/kbn_management_settings_ids.mdx +++ b/api_docs/kbn_management_settings_ids.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-ids title: "@kbn/management-settings-ids" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-ids plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-ids'] --- import kbnManagementSettingsIdsObj from './kbn_management_settings_ids.devdocs.json'; diff --git a/api_docs/kbn_management_settings_section_registry.mdx b/api_docs/kbn_management_settings_section_registry.mdx index 84f686b8b6aa7..b7112284aae63 100644 --- a/api_docs/kbn_management_settings_section_registry.mdx +++ b/api_docs/kbn_management_settings_section_registry.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-section-registry title: "@kbn/management-settings-section-registry" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-section-registry plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-section-registry'] --- import kbnManagementSettingsSectionRegistryObj from './kbn_management_settings_section_registry.devdocs.json'; diff --git a/api_docs/kbn_management_settings_types.devdocs.json b/api_docs/kbn_management_settings_types.devdocs.json index f14f1bd1b4935..169e6e40c4196 100644 --- a/api_docs/kbn_management_settings_types.devdocs.json +++ b/api_docs/kbn_management_settings_types.devdocs.json @@ -32,13 +32,7 @@ "text": "FieldDefinition" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>[]; }" ], "path": "src/platform/packages/shared/kbn-management/settings/types/category.ts", @@ -172,13 +166,7 @@ "\nDeprecation information for the field" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.DeprecationSettings", - "text": "DeprecationSettings" - }, + "DeprecationSettings", " | undefined" ], "path": "src/platform/packages/shared/kbn-management/settings/types/field_definition.ts", @@ -536,13 +524,7 @@ "text": "FieldDefinition" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>[]; categoryCounts: ", { "pluginId": "@kbn/management-settings-types", @@ -1719,21 +1701,9 @@ "\nCreating this type based on {@link UiSettingsClientCommon} and exporting for ease." ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.PublicUiSettingsParams", - "text": "PublicUiSettingsParams" - }, + "PublicUiSettingsParams", " & ", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UserProvidedValues", - "text": "UserProvidedValues" - }, + "UserProvidedValues", "" ], "path": "src/platform/packages/shared/kbn-management/settings/types/metadata.ts", @@ -1847,13 +1817,7 @@ "text": "UnsavedFieldChange" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ">; }" ], "path": "src/platform/packages/shared/kbn-management/settings/types/unsaved_change.ts", diff --git a/api_docs/kbn_management_settings_types.mdx b/api_docs/kbn_management_settings_types.mdx index 666cb4ad5c44a..d9a8feea0c7ff 100644 --- a/api_docs/kbn_management_settings_types.mdx +++ b/api_docs/kbn_management_settings_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-types title: "@kbn/management-settings-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-types'] --- import kbnManagementSettingsTypesObj from './kbn_management_settings_types.devdocs.json'; diff --git a/api_docs/kbn_management_settings_utilities.devdocs.json b/api_docs/kbn_management_settings_utilities.devdocs.json index 853ca2c66ab74..0ac4a7b2c116e 100644 --- a/api_docs/kbn_management_settings_utilities.devdocs.json +++ b/api_docs/kbn_management_settings_utilities.devdocs.json @@ -20,13 +20,7 @@ "text": "FieldDefinition" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>[]) => ", { "pluginId": "@kbn/management-settings-types", @@ -56,13 +50,7 @@ "text": "FieldDefinition" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>[]" ], "path": "src/platform/packages/shared/kbn-management/settings/utilities/category/categorize_fields.ts", @@ -93,13 +81,7 @@ "text": "FieldDefinition" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>[]) => ", { "pluginId": "@kbn/management-settings-types", @@ -131,13 +113,7 @@ "text": "FieldDefinition" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>[]" ], "path": "src/platform/packages/shared/kbn-management/settings/utilities/category/get_category_counts.ts", @@ -797,13 +773,7 @@ ], "signature": [ "(field: Pick<", { "pluginId": "@kbn/management-settings-types", @@ -969,13 +939,7 @@ "text": "UiSettingMetadata" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>, userValue?: ", { "pluginId": "@kbn/management-settings-types", @@ -1008,13 +972,7 @@ "text": "UiSettingMetadata" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>" ], "path": "src/platform/packages/shared/kbn-management/settings/utilities/setting/is_default_value.ts", @@ -1070,13 +1028,7 @@ "text": "UiSettingMetadata" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>>" ], "path": "src/platform/packages/shared/kbn-management/settings/utilities/setting/normalize_settings.ts", @@ -1117,13 +1069,7 @@ ], "signature": [ "(params: ", { "pluginId": "@kbn/management-settings-utilities", diff --git a/api_docs/kbn_management_settings_utilities.mdx b/api_docs/kbn_management_settings_utilities.mdx index eba5a864e24f5..07c305422d3c8 100644 --- a/api_docs/kbn_management_settings_utilities.mdx +++ b/api_docs/kbn_management_settings_utilities.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-settings-utilities title: "@kbn/management-settings-utilities" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-settings-utilities plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-settings-utilities'] --- import kbnManagementSettingsUtilitiesObj from './kbn_management_settings_utilities.devdocs.json'; diff --git a/api_docs/kbn_management_storybook_config.mdx b/api_docs/kbn_management_storybook_config.mdx index 9e9ed50080a27..030ddfe58457d 100644 --- a/api_docs/kbn_management_storybook_config.mdx +++ b/api_docs/kbn_management_storybook_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-management-storybook-config title: "@kbn/management-storybook-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/management-storybook-config plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/management-storybook-config'] --- import kbnManagementStorybookConfigObj from './kbn_management_storybook_config.devdocs.json'; diff --git a/api_docs/kbn_manifest.mdx b/api_docs/kbn_manifest.mdx index 2302e01dd4862..f9b5b713414f1 100644 --- a/api_docs/kbn_manifest.mdx +++ b/api_docs/kbn_manifest.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-manifest title: "@kbn/manifest" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/manifest plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/manifest'] --- import kbnManifestObj from './kbn_manifest.devdocs.json'; diff --git a/api_docs/kbn_mapbox_gl.mdx b/api_docs/kbn_mapbox_gl.mdx index c7690e3d8b8ca..dca328288d162 100644 --- a/api_docs/kbn_mapbox_gl.mdx +++ b/api_docs/kbn_mapbox_gl.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-mapbox-gl title: "@kbn/mapbox-gl" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/mapbox-gl plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/mapbox-gl'] --- import kbnMapboxGlObj from './kbn_mapbox_gl.devdocs.json'; diff --git a/api_docs/kbn_maps_vector_tile_utils.mdx b/api_docs/kbn_maps_vector_tile_utils.mdx index e8bc405b1b7c9..5e8cfebc4daa5 100644 --- a/api_docs/kbn_maps_vector_tile_utils.mdx +++ b/api_docs/kbn_maps_vector_tile_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-maps-vector-tile-utils title: "@kbn/maps-vector-tile-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/maps-vector-tile-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/maps-vector-tile-utils'] --- import kbnMapsVectorTileUtilsObj from './kbn_maps_vector_tile_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_agg_utils.mdx b/api_docs/kbn_ml_agg_utils.mdx index 0d10a4ca39d94..ba4047656ceee 100644 --- a/api_docs/kbn_ml_agg_utils.mdx +++ b/api_docs/kbn_ml_agg_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-agg-utils title: "@kbn/ml-agg-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-agg-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-agg-utils'] --- import kbnMlAggUtilsObj from './kbn_ml_agg_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_anomaly_utils.mdx b/api_docs/kbn_ml_anomaly_utils.mdx index ecfdac21e1107..e9cf58e041299 100644 --- a/api_docs/kbn_ml_anomaly_utils.mdx +++ b/api_docs/kbn_ml_anomaly_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-anomaly-utils title: "@kbn/ml-anomaly-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-anomaly-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-anomaly-utils'] --- import kbnMlAnomalyUtilsObj from './kbn_ml_anomaly_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_cancellable_search.mdx b/api_docs/kbn_ml_cancellable_search.mdx index 0c58f616c466a..92c88dfffcc0c 100644 --- a/api_docs/kbn_ml_cancellable_search.mdx +++ b/api_docs/kbn_ml_cancellable_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-cancellable-search title: "@kbn/ml-cancellable-search" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-cancellable-search plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-cancellable-search'] --- import kbnMlCancellableSearchObj from './kbn_ml_cancellable_search.devdocs.json'; diff --git a/api_docs/kbn_ml_category_validator.mdx b/api_docs/kbn_ml_category_validator.mdx index f93c869407d1e..14254a45901a5 100644 --- a/api_docs/kbn_ml_category_validator.mdx +++ b/api_docs/kbn_ml_category_validator.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-category-validator title: "@kbn/ml-category-validator" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-category-validator plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-category-validator'] --- import kbnMlCategoryValidatorObj from './kbn_ml_category_validator.devdocs.json'; diff --git a/api_docs/kbn_ml_chi2test.mdx b/api_docs/kbn_ml_chi2test.mdx index 0ad6342e52a42..dfe3532059371 100644 --- a/api_docs/kbn_ml_chi2test.mdx +++ b/api_docs/kbn_ml_chi2test.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-chi2test title: "@kbn/ml-chi2test" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-chi2test plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-chi2test'] --- import kbnMlChi2testObj from './kbn_ml_chi2test.devdocs.json'; diff --git a/api_docs/kbn_ml_data_frame_analytics_utils.mdx b/api_docs/kbn_ml_data_frame_analytics_utils.mdx index 3b7a8d96e616e..1c1a26a0e202c 100644 --- a/api_docs/kbn_ml_data_frame_analytics_utils.mdx +++ b/api_docs/kbn_ml_data_frame_analytics_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-data-frame-analytics-utils title: "@kbn/ml-data-frame-analytics-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-data-frame-analytics-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-data-frame-analytics-utils'] --- import kbnMlDataFrameAnalyticsUtilsObj from './kbn_ml_data_frame_analytics_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_data_grid.mdx b/api_docs/kbn_ml_data_grid.mdx index 7cdc48b73cef6..2563673d02308 100644 --- a/api_docs/kbn_ml_data_grid.mdx +++ b/api_docs/kbn_ml_data_grid.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-data-grid title: "@kbn/ml-data-grid" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-data-grid plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-data-grid'] --- import kbnMlDataGridObj from './kbn_ml_data_grid.devdocs.json'; diff --git a/api_docs/kbn_ml_date_picker.devdocs.json b/api_docs/kbn_ml_date_picker.devdocs.json index e8dc2c3f3af9f..dd3e0343f41dd 100644 --- a/api_docs/kbn_ml_date_picker.devdocs.json +++ b/api_docs/kbn_ml_date_picker.devdocs.json @@ -479,6 +479,22 @@ "deprecated": false, "trackAdoption": false }, + { + "parentPluginId": "@kbn/ml-date-picker", + "id": "def-public.DatePickerDependencies.userProfile", + "type": "Object", + "tags": [], + "label": "userProfile", + "description": [ + "\nKibana Security User Profile Service" + ], + "signature": [ + "UserProfileService" + ], + "path": "x-pack/platform/packages/private/ml/date_picker/src/hooks/use_date_picker_context.tsx", + "deprecated": false, + "trackAdoption": false + }, { "parentPluginId": "@kbn/ml-date-picker", "id": "def-public.DatePickerDependencies.theme", @@ -505,13 +521,7 @@ "\nKibana UI advanced settings" ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "x-pack/platform/packages/private/ml/date_picker/src/hooks/use_date_picker_context.tsx", "deprecated": false, diff --git a/api_docs/kbn_ml_date_picker.mdx b/api_docs/kbn_ml_date_picker.mdx index c5d5c86199a98..73a217976c9b0 100644 --- a/api_docs/kbn_ml_date_picker.mdx +++ b/api_docs/kbn_ml_date_picker.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-date-picker title: "@kbn/ml-date-picker" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-date-picker plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-date-picker'] --- import kbnMlDatePickerObj from './kbn_ml_date_picker.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) for questi | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 50 | 0 | 0 | 0 | +| 51 | 0 | 0 | 0 | ## Client diff --git a/api_docs/kbn_ml_date_utils.mdx b/api_docs/kbn_ml_date_utils.mdx index b15fd0477f417..3f0d80b891dc1 100644 --- a/api_docs/kbn_ml_date_utils.mdx +++ b/api_docs/kbn_ml_date_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-date-utils title: "@kbn/ml-date-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-date-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-date-utils'] --- import kbnMlDateUtilsObj from './kbn_ml_date_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_error_utils.mdx b/api_docs/kbn_ml_error_utils.mdx index 8bd3d3aa35b63..bc13401293469 100644 --- a/api_docs/kbn_ml_error_utils.mdx +++ b/api_docs/kbn_ml_error_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-error-utils title: "@kbn/ml-error-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-error-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-error-utils'] --- import kbnMlErrorUtilsObj from './kbn_ml_error_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_field_stats_flyout.mdx b/api_docs/kbn_ml_field_stats_flyout.mdx index 6da10167e6c17..1a8fcb31364b6 100644 --- a/api_docs/kbn_ml_field_stats_flyout.mdx +++ b/api_docs/kbn_ml_field_stats_flyout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-field-stats-flyout title: "@kbn/ml-field-stats-flyout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-field-stats-flyout plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-field-stats-flyout'] --- import kbnMlFieldStatsFlyoutObj from './kbn_ml_field_stats_flyout.devdocs.json'; diff --git a/api_docs/kbn_ml_in_memory_table.mdx b/api_docs/kbn_ml_in_memory_table.mdx index 3edcadd401d47..75a79dbfa2fdd 100644 --- a/api_docs/kbn_ml_in_memory_table.mdx +++ b/api_docs/kbn_ml_in_memory_table.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-in-memory-table title: "@kbn/ml-in-memory-table" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-in-memory-table plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-in-memory-table'] --- import kbnMlInMemoryTableObj from './kbn_ml_in_memory_table.devdocs.json'; diff --git a/api_docs/kbn_ml_is_defined.mdx b/api_docs/kbn_ml_is_defined.mdx index 1ff1cf713bf26..6035b54fc5918 100644 --- a/api_docs/kbn_ml_is_defined.mdx +++ b/api_docs/kbn_ml_is_defined.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-is-defined title: "@kbn/ml-is-defined" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-is-defined plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-is-defined'] --- import kbnMlIsDefinedObj from './kbn_ml_is_defined.devdocs.json'; diff --git a/api_docs/kbn_ml_is_populated_object.mdx b/api_docs/kbn_ml_is_populated_object.mdx index df0111f369593..d0f03aae06f14 100644 --- a/api_docs/kbn_ml_is_populated_object.mdx +++ b/api_docs/kbn_ml_is_populated_object.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-is-populated-object title: "@kbn/ml-is-populated-object" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-is-populated-object plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-is-populated-object'] --- import kbnMlIsPopulatedObjectObj from './kbn_ml_is_populated_object.devdocs.json'; diff --git a/api_docs/kbn_ml_local_storage.mdx b/api_docs/kbn_ml_local_storage.mdx index cd91c47a7e72e..a840d18958205 100644 --- a/api_docs/kbn_ml_local_storage.mdx +++ b/api_docs/kbn_ml_local_storage.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-local-storage title: "@kbn/ml-local-storage" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-local-storage plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-local-storage'] --- import kbnMlLocalStorageObj from './kbn_ml_local_storage.devdocs.json'; diff --git a/api_docs/kbn_ml_nested_property.mdx b/api_docs/kbn_ml_nested_property.mdx index 873704a0f37ff..b6e25b0ef5ab6 100644 --- a/api_docs/kbn_ml_nested_property.mdx +++ b/api_docs/kbn_ml_nested_property.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-nested-property title: "@kbn/ml-nested-property" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-nested-property plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-nested-property'] --- import kbnMlNestedPropertyObj from './kbn_ml_nested_property.devdocs.json'; diff --git a/api_docs/kbn_ml_number_utils.mdx b/api_docs/kbn_ml_number_utils.mdx index 7c8a791c8dddb..4549fa6e9b679 100644 --- a/api_docs/kbn_ml_number_utils.mdx +++ b/api_docs/kbn_ml_number_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-number-utils title: "@kbn/ml-number-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-number-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-number-utils'] --- import kbnMlNumberUtilsObj from './kbn_ml_number_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_parse_interval.mdx b/api_docs/kbn_ml_parse_interval.mdx index acb6a61c91c45..5d8684158b9f6 100644 --- a/api_docs/kbn_ml_parse_interval.mdx +++ b/api_docs/kbn_ml_parse_interval.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-parse-interval title: "@kbn/ml-parse-interval" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-parse-interval plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-parse-interval'] --- import kbnMlParseIntervalObj from './kbn_ml_parse_interval.devdocs.json'; diff --git a/api_docs/kbn_ml_query_utils.mdx b/api_docs/kbn_ml_query_utils.mdx index 50a7a91040119..5957e829b09d2 100644 --- a/api_docs/kbn_ml_query_utils.mdx +++ b/api_docs/kbn_ml_query_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-query-utils title: "@kbn/ml-query-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-query-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-query-utils'] --- import kbnMlQueryUtilsObj from './kbn_ml_query_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_random_sampler_utils.mdx b/api_docs/kbn_ml_random_sampler_utils.mdx index 583585595c2dd..6b2a5962e0692 100644 --- a/api_docs/kbn_ml_random_sampler_utils.mdx +++ b/api_docs/kbn_ml_random_sampler_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-random-sampler-utils title: "@kbn/ml-random-sampler-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-random-sampler-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-random-sampler-utils'] --- import kbnMlRandomSamplerUtilsObj from './kbn_ml_random_sampler_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_route_utils.mdx b/api_docs/kbn_ml_route_utils.mdx index 7dc09c57c9489..a902b953fc5fd 100644 --- a/api_docs/kbn_ml_route_utils.mdx +++ b/api_docs/kbn_ml_route_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-route-utils title: "@kbn/ml-route-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-route-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-route-utils'] --- import kbnMlRouteUtilsObj from './kbn_ml_route_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_runtime_field_utils.mdx b/api_docs/kbn_ml_runtime_field_utils.mdx index 40f7927b881ee..ceaa9230ea980 100644 --- a/api_docs/kbn_ml_runtime_field_utils.mdx +++ b/api_docs/kbn_ml_runtime_field_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-runtime-field-utils title: "@kbn/ml-runtime-field-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-runtime-field-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-runtime-field-utils'] --- import kbnMlRuntimeFieldUtilsObj from './kbn_ml_runtime_field_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_string_hash.mdx b/api_docs/kbn_ml_string_hash.mdx index ddfd18487ba2a..5e5648210c43c 100644 --- a/api_docs/kbn_ml_string_hash.mdx +++ b/api_docs/kbn_ml_string_hash.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-string-hash title: "@kbn/ml-string-hash" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-string-hash plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-string-hash'] --- import kbnMlStringHashObj from './kbn_ml_string_hash.devdocs.json'; diff --git a/api_docs/kbn_ml_time_buckets.devdocs.json b/api_docs/kbn_ml_time_buckets.devdocs.json index f1a791518dde4..0792f503b9cd3 100644 --- a/api_docs/kbn_ml_time_buckets.devdocs.json +++ b/api_docs/kbn_ml_time_buckets.devdocs.json @@ -468,13 +468,7 @@ ], "signature": [ "(uiSettings: ", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ") => ", { "pluginId": "@kbn/ml-time-buckets", @@ -498,13 +492,7 @@ "The UI settings client instance used to retrieve UI settings." ], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "x-pack/platform/packages/private/ml/time_buckets/use_time_buckets.ts", "deprecated": false, diff --git a/api_docs/kbn_ml_time_buckets.mdx b/api_docs/kbn_ml_time_buckets.mdx index 76288ff0c1895..a675081e24eb8 100644 --- a/api_docs/kbn_ml_time_buckets.mdx +++ b/api_docs/kbn_ml_time_buckets.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-time-buckets title: "@kbn/ml-time-buckets" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-time-buckets plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-time-buckets'] --- import kbnMlTimeBucketsObj from './kbn_ml_time_buckets.devdocs.json'; diff --git a/api_docs/kbn_ml_trained_models_utils.mdx b/api_docs/kbn_ml_trained_models_utils.mdx index 1d598a9f79ab9..e7774e471b6e7 100644 --- a/api_docs/kbn_ml_trained_models_utils.mdx +++ b/api_docs/kbn_ml_trained_models_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-trained-models-utils title: "@kbn/ml-trained-models-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-trained-models-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-trained-models-utils'] --- import kbnMlTrainedModelsUtilsObj from './kbn_ml_trained_models_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_ui_actions.mdx b/api_docs/kbn_ml_ui_actions.mdx index 4280ea6fcf60e..3bc565463628e 100644 --- a/api_docs/kbn_ml_ui_actions.mdx +++ b/api_docs/kbn_ml_ui_actions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-ui-actions title: "@kbn/ml-ui-actions" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-ui-actions plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-ui-actions'] --- import kbnMlUiActionsObj from './kbn_ml_ui_actions.devdocs.json'; diff --git a/api_docs/kbn_ml_url_state.mdx b/api_docs/kbn_ml_url_state.mdx index ceb7605d6abe0..2ea7ed4bc18d2 100644 --- a/api_docs/kbn_ml_url_state.mdx +++ b/api_docs/kbn_ml_url_state.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-url-state title: "@kbn/ml-url-state" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-url-state plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-url-state'] --- import kbnMlUrlStateObj from './kbn_ml_url_state.devdocs.json'; diff --git a/api_docs/kbn_ml_validators.mdx b/api_docs/kbn_ml_validators.mdx index 659ae5c958cd1..5b61cb5cd1bfe 100644 --- a/api_docs/kbn_ml_validators.mdx +++ b/api_docs/kbn_ml_validators.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-validators title: "@kbn/ml-validators" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-validators plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-validators'] --- import kbnMlValidatorsObj from './kbn_ml_validators.devdocs.json'; diff --git a/api_docs/kbn_mock_idp_utils.mdx b/api_docs/kbn_mock_idp_utils.mdx index 7f26717777bb6..05712e6f1ace9 100644 --- a/api_docs/kbn_mock_idp_utils.mdx +++ b/api_docs/kbn_mock_idp_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-mock-idp-utils title: "@kbn/mock-idp-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/mock-idp-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/mock-idp-utils'] --- import kbnMockIdpUtilsObj from './kbn_mock_idp_utils.devdocs.json'; diff --git a/api_docs/kbn_monaco.mdx b/api_docs/kbn_monaco.mdx index a0408623f39a0..022ed964a6266 100644 --- a/api_docs/kbn_monaco.mdx +++ b/api_docs/kbn_monaco.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-monaco title: "@kbn/monaco" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/monaco plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/monaco'] --- import kbnMonacoObj from './kbn_monaco.devdocs.json'; diff --git a/api_docs/kbn_object_versioning.devdocs.json b/api_docs/kbn_object_versioning.devdocs.json index 77d87a2342389..f5887ab5a9f6a 100644 --- a/api_docs/kbn_object_versioning.devdocs.json +++ b/api_docs/kbn_object_versioning.devdocs.json @@ -39,7 +39,7 @@ }, "; }" ], - "path": "packages/kbn-object-versioning/lib/content_management_services_versioning.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -59,7 +59,7 @@ "text": "ServiceDefinitionVersioned" } ], - "path": "packages/kbn-object-versioning/lib/content_management_services_versioning.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -101,7 +101,7 @@ "text": "ServiceTransforms" } ], - "path": "packages/kbn-object-versioning/lib/content_management_services_versioning.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -121,7 +121,7 @@ "text": "ServiceDefinitionVersioned" } ], - "path": "packages/kbn-object-versioning/lib/content_management_services_versioning.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -136,7 +136,7 @@ "signature": [ "number" ], - "path": "packages/kbn-object-versioning/lib/content_management_services_versioning.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -148,7 +148,7 @@ "tags": [], "label": "_compiled", "description": [], - "path": "packages/kbn-object-versioning/lib/content_management_services_versioning.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -169,7 +169,7 @@ "text": "ObjectMigrationDefinition" } ], - "path": "packages/kbn-object-versioning/lib/content_management_services_versioning.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts", "deprecated": false, "trackAdoption": false } @@ -207,7 +207,7 @@ }, " | null; }" ], - "path": "packages/kbn-object-versioning/lib/object_transform.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/object_transform.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -223,7 +223,7 @@ "signature": [ "number" ], - "path": "packages/kbn-object-versioning/lib/object_transform.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/object_transform.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -243,7 +243,7 @@ "tags": [], "label": "ObjectMigrationDefinition", "description": [], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -265,7 +265,7 @@ }, "" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false } @@ -289,7 +289,7 @@ }, "" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -311,7 +311,7 @@ }, "" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -325,7 +325,7 @@ "signature": [ "I" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -340,7 +340,7 @@ "signature": [ "number | \"latest\" | undefined" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -352,7 +352,7 @@ "tags": [], "label": "options", "description": [], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -368,7 +368,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false } @@ -395,7 +395,7 @@ }, "" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -409,7 +409,7 @@ "signature": [ "DownIn" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -424,7 +424,7 @@ "signature": [ "number | \"latest\" | undefined" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -436,7 +436,7 @@ "tags": [], "label": "options", "description": [], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -452,7 +452,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false } @@ -479,7 +479,7 @@ }, " | null" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -493,7 +493,7 @@ "signature": [ "any" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -508,7 +508,7 @@ "signature": [ "number | undefined" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -526,7 +526,7 @@ "tags": [], "label": "ServiceDefinitionVersioned", "description": [], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -547,7 +547,7 @@ "text": "ServicesDefinition" } ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false } @@ -561,7 +561,7 @@ "tags": [], "label": "ServicesDefinition", "description": [], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -591,7 +591,7 @@ }, " | undefined; } | undefined; } | undefined" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -621,7 +621,7 @@ }, " | undefined; } | undefined; } | undefined" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -659,7 +659,7 @@ }, " | undefined; } | undefined; } | undefined" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -697,7 +697,7 @@ }, " | undefined; } | undefined; } | undefined" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -727,7 +727,7 @@ }, " | undefined; } | undefined; } | undefined" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -757,7 +757,7 @@ }, " | undefined; } | undefined; } | undefined" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -779,7 +779,7 @@ }, " | undefined; } | undefined; } | undefined" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false } @@ -793,7 +793,7 @@ "tags": [], "label": "ServiceTransforms", "description": [], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -823,7 +823,7 @@ }, "; }; }" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -853,7 +853,7 @@ }, "; }; }" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -891,7 +891,7 @@ }, "; }; }" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -929,7 +929,7 @@ }, "; }; }" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -959,7 +959,7 @@ }, "; }; }" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -989,7 +989,7 @@ }, "; }; }" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false }, @@ -1011,7 +1011,7 @@ }, "; }; }" ], - "path": "packages/kbn-object-versioning/lib/content_management_types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts", "deprecated": false, "trackAdoption": false } @@ -1035,7 +1035,7 @@ }, "" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1056,7 +1056,7 @@ }, " | undefined" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1077,7 +1077,7 @@ }, " | undefined" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1098,7 +1098,7 @@ }, " | undefined" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false } @@ -1141,7 +1141,7 @@ "text": "ServiceTransforms" } ], - "path": "packages/kbn-object-versioning/lib/content_management_services_versioning.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -1162,7 +1162,7 @@ "text": "ServiceDefinitionVersioned" } ], - "path": "packages/kbn-object-versioning/lib/content_management_services_versioning.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts", "deprecated": false, "trackAdoption": false }, @@ -1173,7 +1173,7 @@ "tags": [], "label": "requestVersion", "description": [], - "path": "packages/kbn-object-versioning/lib/content_management_services_versioning.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts", "deprecated": false, "trackAdoption": false }, @@ -1195,7 +1195,7 @@ }, "; } | undefined" ], - "path": "packages/kbn-object-versioning/lib/content_management_services_versioning.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts", "deprecated": false, "trackAdoption": false } @@ -1212,7 +1212,7 @@ "signature": [ "(input: I) => O" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -1227,7 +1227,7 @@ "signature": [ "I" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false } @@ -1252,7 +1252,7 @@ }, "; }" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1267,7 +1267,7 @@ "signature": [ "number" ], - "path": "packages/kbn-object-versioning/lib/types.ts", + "path": "src/platform/packages/shared/kbn-object-versioning/lib/types.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_object_versioning.mdx b/api_docs/kbn_object_versioning.mdx index af19cae11ff1a..3a4386b4f4cd5 100644 --- a/api_docs/kbn_object_versioning.mdx +++ b/api_docs/kbn_object_versioning.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-object-versioning title: "@kbn/object-versioning" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/object-versioning plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/object-versioning'] --- import kbnObjectVersioningObj from './kbn_object_versioning.devdocs.json'; diff --git a/api_docs/kbn_object_versioning_utils.devdocs.json b/api_docs/kbn_object_versioning_utils.devdocs.json index 1a7dbcf2e88f5..362e7216de23c 100644 --- a/api_docs/kbn_object_versioning_utils.devdocs.json +++ b/api_docs/kbn_object_versioning_utils.devdocs.json @@ -29,7 +29,7 @@ "signature": [ "(version: unknown) => { result: true; value: number; } | { result: false; value: null; }" ], - "path": "packages/kbn-object-versioning-utils/lib/validate_version.ts", + "path": "src/platform/packages/shared/kbn-object-versioning-utils/lib/validate_version.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -43,7 +43,7 @@ "signature": [ "unknown" ], - "path": "packages/kbn-object-versioning-utils/lib/validate_version.ts", + "path": "src/platform/packages/shared/kbn-object-versioning-utils/lib/validate_version.ts", "deprecated": false, "trackAdoption": false, "isRequired": true diff --git a/api_docs/kbn_object_versioning_utils.mdx b/api_docs/kbn_object_versioning_utils.mdx index 41643e02b9668..dff2039550477 100644 --- a/api_docs/kbn_object_versioning_utils.mdx +++ b/api_docs/kbn_object_versioning_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-object-versioning-utils title: "@kbn/object-versioning-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/object-versioning-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/object-versioning-utils'] --- import kbnObjectVersioningUtilsObj from './kbn_object_versioning_utils.devdocs.json'; diff --git a/api_docs/kbn_observability_alert_details.mdx b/api_docs/kbn_observability_alert_details.mdx index 978a596f4b8a8..23f2602a68984 100644 --- a/api_docs/kbn_observability_alert_details.mdx +++ b/api_docs/kbn_observability_alert_details.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-alert-details title: "@kbn/observability-alert-details" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-alert-details plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-alert-details'] --- import kbnObservabilityAlertDetailsObj from './kbn_observability_alert_details.devdocs.json'; diff --git a/api_docs/kbn_observability_alerting_rule_utils.mdx b/api_docs/kbn_observability_alerting_rule_utils.mdx index 457110732d90b..55d514e5b4de4 100644 --- a/api_docs/kbn_observability_alerting_rule_utils.mdx +++ b/api_docs/kbn_observability_alerting_rule_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-alerting-rule-utils title: "@kbn/observability-alerting-rule-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-alerting-rule-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-alerting-rule-utils'] --- import kbnObservabilityAlertingRuleUtilsObj from './kbn_observability_alerting_rule_utils.devdocs.json'; diff --git a/api_docs/kbn_observability_alerting_test_data.mdx b/api_docs/kbn_observability_alerting_test_data.mdx index c8b7855f5071d..4bf2efd6273fa 100644 --- a/api_docs/kbn_observability_alerting_test_data.mdx +++ b/api_docs/kbn_observability_alerting_test_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-alerting-test-data title: "@kbn/observability-alerting-test-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-alerting-test-data plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-alerting-test-data'] --- import kbnObservabilityAlertingTestDataObj from './kbn_observability_alerting_test_data.devdocs.json'; diff --git a/api_docs/kbn_observability_get_padded_alert_time_range_util.mdx b/api_docs/kbn_observability_get_padded_alert_time_range_util.mdx index cad6fd0fd0c59..87138d24802b1 100644 --- a/api_docs/kbn_observability_get_padded_alert_time_range_util.mdx +++ b/api_docs/kbn_observability_get_padded_alert_time_range_util.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-get-padded-alert-time-range-util title: "@kbn/observability-get-padded-alert-time-range-util" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-get-padded-alert-time-range-util plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-get-padded-alert-time-range-util'] --- import kbnObservabilityGetPaddedAlertTimeRangeUtilObj from './kbn_observability_get_padded_alert_time_range_util.devdocs.json'; diff --git a/api_docs/kbn_observability_logs_overview.mdx b/api_docs/kbn_observability_logs_overview.mdx index 0174ecf439f4e..1a05d3a225100 100644 --- a/api_docs/kbn_observability_logs_overview.mdx +++ b/api_docs/kbn_observability_logs_overview.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-logs-overview title: "@kbn/observability-logs-overview" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-logs-overview plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-logs-overview'] --- import kbnObservabilityLogsOverviewObj from './kbn_observability_logs_overview.devdocs.json'; diff --git a/api_docs/kbn_observability_synthetics_test_data.mdx b/api_docs/kbn_observability_synthetics_test_data.mdx index bc9626965dce2..6496093175daf 100644 --- a/api_docs/kbn_observability_synthetics_test_data.mdx +++ b/api_docs/kbn_observability_synthetics_test_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-observability-synthetics-test-data title: "@kbn/observability-synthetics-test-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/observability-synthetics-test-data plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/observability-synthetics-test-data'] --- import kbnObservabilitySyntheticsTestDataObj from './kbn_observability_synthetics_test_data.devdocs.json'; diff --git a/api_docs/kbn_openapi_bundler.mdx b/api_docs/kbn_openapi_bundler.mdx index 630c9e38a1897..2d31868096662 100644 --- a/api_docs/kbn_openapi_bundler.mdx +++ b/api_docs/kbn_openapi_bundler.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-openapi-bundler title: "@kbn/openapi-bundler" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/openapi-bundler plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/openapi-bundler'] --- import kbnOpenapiBundlerObj from './kbn_openapi_bundler.devdocs.json'; diff --git a/api_docs/kbn_openapi_generator.mdx b/api_docs/kbn_openapi_generator.mdx index 0293fe7c153f6..80e95ad706a9a 100644 --- a/api_docs/kbn_openapi_generator.mdx +++ b/api_docs/kbn_openapi_generator.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-openapi-generator title: "@kbn/openapi-generator" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/openapi-generator plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/openapi-generator'] --- import kbnOpenapiGeneratorObj from './kbn_openapi_generator.devdocs.json'; diff --git a/api_docs/kbn_optimizer.devdocs.json b/api_docs/kbn_optimizer.devdocs.json index 3baaaae1a72ba..e01fa13f8351d 100644 --- a/api_docs/kbn_optimizer.devdocs.json +++ b/api_docs/kbn_optimizer.devdocs.json @@ -268,13 +268,7 @@ "label": "themeTags", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.ThemeTags", - "text": "ThemeTags" - } + "ThemeTags" ], "path": "packages/kbn-optimizer/src/optimizer/optimizer_config.ts", "deprecated": false, diff --git a/api_docs/kbn_optimizer.mdx b/api_docs/kbn_optimizer.mdx index af3d4dd2d5d9d..89c26492cf366 100644 --- a/api_docs/kbn_optimizer.mdx +++ b/api_docs/kbn_optimizer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-optimizer title: "@kbn/optimizer" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/optimizer plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/optimizer'] --- import kbnOptimizerObj from './kbn_optimizer.devdocs.json'; diff --git a/api_docs/kbn_optimizer_webpack_helpers.mdx b/api_docs/kbn_optimizer_webpack_helpers.mdx index 499c2efd1adca..e358c477cd71c 100644 --- a/api_docs/kbn_optimizer_webpack_helpers.mdx +++ b/api_docs/kbn_optimizer_webpack_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-optimizer-webpack-helpers title: "@kbn/optimizer-webpack-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/optimizer-webpack-helpers plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/optimizer-webpack-helpers'] --- import kbnOptimizerWebpackHelpersObj from './kbn_optimizer_webpack_helpers.devdocs.json'; diff --git a/api_docs/kbn_osquery_io_ts_types.mdx b/api_docs/kbn_osquery_io_ts_types.mdx index 350efbfa5cab0..2915500480a64 100644 --- a/api_docs/kbn_osquery_io_ts_types.mdx +++ b/api_docs/kbn_osquery_io_ts_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-osquery-io-ts-types title: "@kbn/osquery-io-ts-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/osquery-io-ts-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/osquery-io-ts-types'] --- import kbnOsqueryIoTsTypesObj from './kbn_osquery_io_ts_types.devdocs.json'; diff --git a/api_docs/kbn_palettes.mdx b/api_docs/kbn_palettes.mdx index 759123ea8ce40..bb93a6c3ad6d3 100644 --- a/api_docs/kbn_palettes.mdx +++ b/api_docs/kbn_palettes.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-palettes title: "@kbn/palettes" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/palettes plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/palettes'] --- import kbnPalettesObj from './kbn_palettes.devdocs.json'; diff --git a/api_docs/kbn_panel_loader.mdx b/api_docs/kbn_panel_loader.mdx index 97d68088e05bc..6ac15eb80615d 100644 --- a/api_docs/kbn_panel_loader.mdx +++ b/api_docs/kbn_panel_loader.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-panel-loader title: "@kbn/panel-loader" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/panel-loader plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/panel-loader'] --- import kbnPanelLoaderObj from './kbn_panel_loader.devdocs.json'; diff --git a/api_docs/kbn_performance_testing_dataset_extractor.mdx b/api_docs/kbn_performance_testing_dataset_extractor.mdx index d7eaf786a6502..4e316e6a06904 100644 --- a/api_docs/kbn_performance_testing_dataset_extractor.mdx +++ b/api_docs/kbn_performance_testing_dataset_extractor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-performance-testing-dataset-extractor title: "@kbn/performance-testing-dataset-extractor" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/performance-testing-dataset-extractor plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/performance-testing-dataset-extractor'] --- import kbnPerformanceTestingDatasetExtractorObj from './kbn_performance_testing_dataset_extractor.devdocs.json'; diff --git a/api_docs/kbn_plugin_check.mdx b/api_docs/kbn_plugin_check.mdx index 29a3ab9907e25..70b9264c979f3 100644 --- a/api_docs/kbn_plugin_check.mdx +++ b/api_docs/kbn_plugin_check.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-plugin-check title: "@kbn/plugin-check" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/plugin-check plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-check'] --- import kbnPluginCheckObj from './kbn_plugin_check.devdocs.json'; diff --git a/api_docs/kbn_plugin_generator.mdx b/api_docs/kbn_plugin_generator.mdx index b129a6b917697..06ffbfc8f831d 100644 --- a/api_docs/kbn_plugin_generator.mdx +++ b/api_docs/kbn_plugin_generator.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-plugin-generator title: "@kbn/plugin-generator" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/plugin-generator plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-generator'] --- import kbnPluginGeneratorObj from './kbn_plugin_generator.devdocs.json'; diff --git a/api_docs/kbn_plugin_helpers.mdx b/api_docs/kbn_plugin_helpers.mdx index d0a481b691275..3bc48f8dd3d50 100644 --- a/api_docs/kbn_plugin_helpers.mdx +++ b/api_docs/kbn_plugin_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-plugin-helpers title: "@kbn/plugin-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/plugin-helpers plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-helpers'] --- import kbnPluginHelpersObj from './kbn_plugin_helpers.devdocs.json'; diff --git a/api_docs/kbn_presentation_containers.mdx b/api_docs/kbn_presentation_containers.mdx index 10a4f48ebd925..549a7d28ec555 100644 --- a/api_docs/kbn_presentation_containers.mdx +++ b/api_docs/kbn_presentation_containers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-presentation-containers title: "@kbn/presentation-containers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/presentation-containers plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/presentation-containers'] --- import kbnPresentationContainersObj from './kbn_presentation_containers.devdocs.json'; diff --git a/api_docs/kbn_presentation_publishing.mdx b/api_docs/kbn_presentation_publishing.mdx index 7695a94fa60c2..6ef9465cf9ac9 100644 --- a/api_docs/kbn_presentation_publishing.mdx +++ b/api_docs/kbn_presentation_publishing.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-presentation-publishing title: "@kbn/presentation-publishing" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/presentation-publishing plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/presentation-publishing'] --- import kbnPresentationPublishingObj from './kbn_presentation_publishing.devdocs.json'; diff --git a/api_docs/kbn_product_doc_artifact_builder.mdx b/api_docs/kbn_product_doc_artifact_builder.mdx index 38be6aeac5c49..a324f203d9873 100644 --- a/api_docs/kbn_product_doc_artifact_builder.mdx +++ b/api_docs/kbn_product_doc_artifact_builder.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-product-doc-artifact-builder title: "@kbn/product-doc-artifact-builder" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/product-doc-artifact-builder plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/product-doc-artifact-builder'] --- import kbnProductDocArtifactBuilderObj from './kbn_product_doc_artifact_builder.devdocs.json'; diff --git a/api_docs/kbn_product_doc_common.mdx b/api_docs/kbn_product_doc_common.mdx index 8b8ff6bd26f8a..4d871e59934a2 100644 --- a/api_docs/kbn_product_doc_common.mdx +++ b/api_docs/kbn_product_doc_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-product-doc-common title: "@kbn/product-doc-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/product-doc-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/product-doc-common'] --- import kbnProductDocCommonObj from './kbn_product_doc_common.devdocs.json'; diff --git a/api_docs/kbn_profiling_utils.mdx b/api_docs/kbn_profiling_utils.mdx index efdafb0aaa73c..fbb2e2c33bb91 100644 --- a/api_docs/kbn_profiling_utils.mdx +++ b/api_docs/kbn_profiling_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-profiling-utils title: "@kbn/profiling-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/profiling-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/profiling-utils'] --- import kbnProfilingUtilsObj from './kbn_profiling_utils.devdocs.json'; diff --git a/api_docs/kbn_random_sampling.mdx b/api_docs/kbn_random_sampling.mdx index 0be2ab6d1de50..e876dae253bfa 100644 --- a/api_docs/kbn_random_sampling.mdx +++ b/api_docs/kbn_random_sampling.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-random-sampling title: "@kbn/random-sampling" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/random-sampling plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/random-sampling'] --- import kbnRandomSamplingObj from './kbn_random_sampling.devdocs.json'; diff --git a/api_docs/kbn_react_field.mdx b/api_docs/kbn_react_field.mdx index b5caa88175165..3ead9a371d4e0 100644 --- a/api_docs/kbn_react_field.mdx +++ b/api_docs/kbn_react_field.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-field title: "@kbn/react-field" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-field plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-field'] --- import kbnReactFieldObj from './kbn_react_field.devdocs.json'; diff --git a/api_docs/kbn_react_hooks.mdx b/api_docs/kbn_react_hooks.mdx index fafe1e0bd1775..9cd4299f9849a 100644 --- a/api_docs/kbn_react_hooks.mdx +++ b/api_docs/kbn_react_hooks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-hooks title: "@kbn/react-hooks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-hooks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-hooks'] --- import kbnReactHooksObj from './kbn_react_hooks.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_context_common.mdx b/api_docs/kbn_react_kibana_context_common.mdx index 93b0030b66492..47d0f9d10382c 100644 --- a/api_docs/kbn_react_kibana_context_common.mdx +++ b/api_docs/kbn_react_kibana_context_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-context-common title: "@kbn/react-kibana-context-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-context-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-context-common'] --- import kbnReactKibanaContextCommonObj from './kbn_react_kibana_context_common.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_context_render.mdx b/api_docs/kbn_react_kibana_context_render.mdx index fe61e0d176a38..545e9c8da6690 100644 --- a/api_docs/kbn_react_kibana_context_render.mdx +++ b/api_docs/kbn_react_kibana_context_render.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-context-render title: "@kbn/react-kibana-context-render" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-context-render plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-context-render'] --- import kbnReactKibanaContextRenderObj from './kbn_react_kibana_context_render.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_context_root.mdx b/api_docs/kbn_react_kibana_context_root.mdx index ea4486e40d935..2463ac0be5f8a 100644 --- a/api_docs/kbn_react_kibana_context_root.mdx +++ b/api_docs/kbn_react_kibana_context_root.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-context-root title: "@kbn/react-kibana-context-root" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-context-root plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-context-root'] --- import kbnReactKibanaContextRootObj from './kbn_react_kibana_context_root.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_context_styled.mdx b/api_docs/kbn_react_kibana_context_styled.mdx index 581095dbb8593..56d3c8817c960 100644 --- a/api_docs/kbn_react_kibana_context_styled.mdx +++ b/api_docs/kbn_react_kibana_context_styled.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-context-styled title: "@kbn/react-kibana-context-styled" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-context-styled plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-context-styled'] --- import kbnReactKibanaContextStyledObj from './kbn_react_kibana_context_styled.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_context_theme.mdx b/api_docs/kbn_react_kibana_context_theme.mdx index 383537e880178..cb7eed447253a 100644 --- a/api_docs/kbn_react_kibana_context_theme.mdx +++ b/api_docs/kbn_react_kibana_context_theme.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-context-theme title: "@kbn/react-kibana-context-theme" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-context-theme plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-context-theme'] --- import kbnReactKibanaContextThemeObj from './kbn_react_kibana_context_theme.devdocs.json'; diff --git a/api_docs/kbn_react_kibana_mount.mdx b/api_docs/kbn_react_kibana_mount.mdx index 95b7757f5935f..decdf4ac86082 100644 --- a/api_docs/kbn_react_kibana_mount.mdx +++ b/api_docs/kbn_react_kibana_mount.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-kibana-mount title: "@kbn/react-kibana-mount" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-kibana-mount plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-kibana-mount'] --- import kbnReactKibanaMountObj from './kbn_react_kibana_mount.devdocs.json'; diff --git a/api_docs/kbn_react_mute_legacy_root_warning.mdx b/api_docs/kbn_react_mute_legacy_root_warning.mdx index d237e75f5cb01..06edc1b37762e 100644 --- a/api_docs/kbn_react_mute_legacy_root_warning.mdx +++ b/api_docs/kbn_react_mute_legacy_root_warning.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-mute-legacy-root-warning title: "@kbn/react-mute-legacy-root-warning" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-mute-legacy-root-warning plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-mute-legacy-root-warning'] --- import kbnReactMuteLegacyRootWarningObj from './kbn_react_mute_legacy_root_warning.devdocs.json'; diff --git a/api_docs/kbn_recently_accessed.devdocs.json b/api_docs/kbn_recently_accessed.devdocs.json index 972588291edf7..f6fcb95fb96a1 100644 --- a/api_docs/kbn_recently_accessed.devdocs.json +++ b/api_docs/kbn_recently_accessed.devdocs.json @@ -25,7 +25,7 @@ "tags": [], "label": "RecentlyAccessedService", "description": [], - "path": "packages/kbn-recently-accessed/src/recently_accessed_service.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/recently_accessed_service.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -46,7 +46,7 @@ "text": "RecentlyAccessed" } ], - "path": "packages/kbn-recently-accessed/src/recently_accessed_service.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/recently_accessed_service.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -60,7 +60,7 @@ "signature": [ "StartDeps" ], - "path": "packages/kbn-recently-accessed/src/recently_accessed_service.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/recently_accessed_service.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -83,7 +83,7 @@ "description": [ "\n{@link RecentlyAccessed | APIs} for recently accessed history." ], - "path": "packages/kbn-recently-accessed/src/types.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -99,7 +99,7 @@ "signature": [ "(link: string, label: string, id: string) => void" ], - "path": "packages/kbn-recently-accessed/src/types.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -115,7 +115,7 @@ "signature": [ "string" ], - "path": "packages/kbn-recently-accessed/src/types.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -132,7 +132,7 @@ "signature": [ "string" ], - "path": "packages/kbn-recently-accessed/src/types.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -149,7 +149,7 @@ "signature": [ "string" ], - "path": "packages/kbn-recently-accessed/src/types.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -177,7 +177,7 @@ }, "[]" ], - "path": "packages/kbn-recently-accessed/src/types.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -205,7 +205,7 @@ }, "[]>" ], - "path": "packages/kbn-recently-accessed/src/types.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -221,7 +221,7 @@ "tags": [], "label": "RecentlyAccessedHistoryItem", "description": [], - "path": "packages/kbn-recently-accessed/src/types.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -232,7 +232,7 @@ "tags": [], "label": "link", "description": [], - "path": "packages/kbn-recently-accessed/src/types.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/types.ts", "deprecated": false, "trackAdoption": false }, @@ -243,7 +243,7 @@ "tags": [], "label": "label", "description": [], - "path": "packages/kbn-recently-accessed/src/types.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/types.ts", "deprecated": false, "trackAdoption": false }, @@ -254,7 +254,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-recently-accessed/src/types.ts", + "path": "src/platform/packages/shared/kbn-recently-accessed/src/types.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_recently_accessed.mdx b/api_docs/kbn_recently_accessed.mdx index 33899200da2c2..003767d5013ff 100644 --- a/api_docs/kbn_recently_accessed.mdx +++ b/api_docs/kbn_recently_accessed.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-recently-accessed title: "@kbn/recently-accessed" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/recently-accessed plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/recently-accessed'] --- import kbnRecentlyAccessedObj from './kbn_recently_accessed.devdocs.json'; diff --git a/api_docs/kbn_relocate.mdx b/api_docs/kbn_relocate.mdx index 7d58cbd928d7a..cb4b3489a213d 100644 --- a/api_docs/kbn_relocate.mdx +++ b/api_docs/kbn_relocate.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-relocate title: "@kbn/relocate" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/relocate plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/relocate'] --- import kbnRelocateObj from './kbn_relocate.devdocs.json'; diff --git a/api_docs/kbn_repo_file_maps.mdx b/api_docs/kbn_repo_file_maps.mdx index 9064b4f156e21..ff3f485a57c56 100644 --- a/api_docs/kbn_repo_file_maps.mdx +++ b/api_docs/kbn_repo_file_maps.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-repo-file-maps title: "@kbn/repo-file-maps" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/repo-file-maps plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/repo-file-maps'] --- import kbnRepoFileMapsObj from './kbn_repo_file_maps.devdocs.json'; diff --git a/api_docs/kbn_repo_linter.mdx b/api_docs/kbn_repo_linter.mdx index a63955ae1c6be..4d8a75480a80b 100644 --- a/api_docs/kbn_repo_linter.mdx +++ b/api_docs/kbn_repo_linter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-repo-linter title: "@kbn/repo-linter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/repo-linter plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/repo-linter'] --- import kbnRepoLinterObj from './kbn_repo_linter.devdocs.json'; diff --git a/api_docs/kbn_repo_path.mdx b/api_docs/kbn_repo_path.mdx index 4cd142210453e..82e9317760fa9 100644 --- a/api_docs/kbn_repo_path.mdx +++ b/api_docs/kbn_repo_path.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-repo-path title: "@kbn/repo-path" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/repo-path plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/repo-path'] --- import kbnRepoPathObj from './kbn_repo_path.devdocs.json'; diff --git a/api_docs/kbn_repo_source_classifier.mdx b/api_docs/kbn_repo_source_classifier.mdx index df7f658229642..c919413be1f29 100644 --- a/api_docs/kbn_repo_source_classifier.mdx +++ b/api_docs/kbn_repo_source_classifier.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-repo-source-classifier title: "@kbn/repo-source-classifier" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/repo-source-classifier plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/repo-source-classifier'] --- import kbnRepoSourceClassifierObj from './kbn_repo_source_classifier.devdocs.json'; diff --git a/api_docs/kbn_reporting_common.devdocs.json b/api_docs/kbn_reporting_common.devdocs.json index be3dfff0ff7f3..6da55afca79d3 100644 --- a/api_docs/kbn_reporting_common.devdocs.json +++ b/api_docs/kbn_reporting_common.devdocs.json @@ -44,7 +44,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -58,7 +58,7 @@ "signature": [ "\"authentication_expired_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -69,7 +69,7 @@ "tags": [], "label": "code", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false } @@ -100,7 +100,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -114,7 +114,7 @@ "signature": [ "\"browser_could_not_launch_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -125,7 +125,7 @@ "tags": [], "label": "code", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -139,7 +139,7 @@ "signature": [ "() => string" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -172,7 +172,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -186,7 +186,7 @@ "signature": [ "\"browser_screenshot_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -197,7 +197,7 @@ "tags": [], "label": "code", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false } @@ -228,7 +228,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -242,7 +242,7 @@ "signature": [ "\"browser_unexpectedly_closed_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -253,7 +253,7 @@ "tags": [], "label": "code", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false } @@ -267,7 +267,7 @@ "tags": [], "label": "CancellationToken", "description": [], - "path": "packages/kbn-reporting/common/cancellation_token.ts", + "path": "src/platform/packages/private/kbn-reporting/common/cancellation_token.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -281,7 +281,7 @@ "signature": [ "any" ], - "path": "packages/kbn-reporting/common/cancellation_token.ts", + "path": "src/platform/packages/private/kbn-reporting/common/cancellation_token.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -297,7 +297,7 @@ "signature": [ "(callback: Function) => void" ], - "path": "packages/kbn-reporting/common/cancellation_token.ts", + "path": "src/platform/packages/private/kbn-reporting/common/cancellation_token.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -311,7 +311,7 @@ "signature": [ "Function" ], - "path": "packages/kbn-reporting/common/cancellation_token.ts", + "path": "src/platform/packages/private/kbn-reporting/common/cancellation_token.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -329,7 +329,7 @@ "signature": [ "() => void" ], - "path": "packages/kbn-reporting/common/cancellation_token.ts", + "path": "src/platform/packages/private/kbn-reporting/common/cancellation_token.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -345,7 +345,7 @@ "signature": [ "() => boolean" ], - "path": "packages/kbn-reporting/common/cancellation_token.ts", + "path": "src/platform/packages/private/kbn-reporting/common/cancellation_token.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -380,7 +380,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -394,7 +394,7 @@ "signature": [ "\"disallowed_outgoing_url_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -408,7 +408,7 @@ "signature": [ "\"disallowed_outgoing_url_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false } @@ -441,7 +441,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -455,7 +455,7 @@ "signature": [ "\"invalid_layout_parameters_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -469,7 +469,7 @@ "signature": [ "\"invalid_layout_parameters_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false } @@ -500,7 +500,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -514,7 +514,7 @@ "signature": [ "\"kibana_shutting_down_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -525,7 +525,7 @@ "tags": [], "label": "code", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false } @@ -556,7 +556,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -570,7 +570,7 @@ "signature": [ "\"pdf_worker_out_of_memory_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -581,7 +581,7 @@ "tags": [], "label": "code", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -595,7 +595,7 @@ "signature": [ "() => string" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -628,7 +628,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -642,7 +642,7 @@ "signature": [ "\"queue_timeout_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -653,7 +653,7 @@ "tags": [], "label": "code", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false } @@ -677,7 +677,7 @@ }, " extends Error" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -692,7 +692,7 @@ "description": [ "\nA string that uniquely brands an error type. This is used to power telemetry\nabout reporting failures.\n" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -706,7 +706,7 @@ "signature": [ "any" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -720,7 +720,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -735,7 +735,7 @@ "tags": [], "label": "message", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -749,7 +749,7 @@ "signature": [ "() => string" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -782,7 +782,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -796,7 +796,7 @@ "signature": [ "\"reporting_saved_object_not_found_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -807,7 +807,7 @@ "tags": [], "label": "code", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false } @@ -840,7 +840,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -854,7 +854,7 @@ "signature": [ "\"unknown_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -865,7 +865,7 @@ "tags": [], "label": "code", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false } @@ -898,7 +898,7 @@ "text": "ReportingError" } ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -912,7 +912,7 @@ "signature": [ "\"visual_reporting_soft_disabled_error\"" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -923,7 +923,7 @@ "tags": [], "label": "code", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false }, @@ -937,7 +937,7 @@ "signature": [ "() => string" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -958,7 +958,7 @@ "signature": [ "({ basePath, appPath, spaceId }: Args) => string" ], - "path": "packages/kbn-reporting/common/build_kibana_path.ts", + "path": "src/platform/packages/private/kbn-reporting/common/build_kibana_path.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -972,7 +972,7 @@ "signature": [ "Args" ], - "path": "packages/kbn-reporting/common/build_kibana_path.ts", + "path": "src/platform/packages/private/kbn-reporting/common/build_kibana_path.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -999,7 +999,7 @@ }, ") => number" ], - "path": "packages/kbn-reporting/common/schema_utils.ts", + "path": "src/platform/packages/private/kbn-reporting/common/schema_utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1020,7 +1020,7 @@ "text": "ByteSizeValue" } ], - "path": "packages/kbn-reporting/common/schema_utils.ts", + "path": "src/platform/packages/private/kbn-reporting/common/schema_utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1039,7 +1039,7 @@ "signature": [ "(value: number | moment.Duration) => number" ], - "path": "packages/kbn-reporting/common/schema_utils.ts", + "path": "src/platform/packages/private/kbn-reporting/common/schema_utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1053,7 +1053,7 @@ "signature": [ "number | moment.Duration" ], - "path": "packages/kbn-reporting/common/schema_utils.ts", + "path": "src/platform/packages/private/kbn-reporting/common/schema_utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1072,7 +1072,7 @@ "signature": [ "(value: number | moment.Duration) => moment.Duration" ], - "path": "packages/kbn-reporting/common/schema_utils.ts", + "path": "src/platform/packages/private/kbn-reporting/common/schema_utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1086,7 +1086,7 @@ "signature": [ "number | moment.Duration" ], - "path": "packages/kbn-reporting/common/schema_utils.ts", + "path": "src/platform/packages/private/kbn-reporting/common/schema_utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1104,7 +1104,7 @@ "tags": [], "label": "ReportingError", "description": [], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1120,7 +1120,7 @@ "signature": [ "(() => string) | undefined" ], - "path": "packages/kbn-reporting/common/errors.ts", + "path": "src/platform/packages/private/kbn-reporting/common/errors.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -1138,7 +1138,7 @@ "tags": [], "label": "JOB_STATUS", "description": [], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1155,7 +1155,7 @@ "signature": [ "string[]" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1170,7 +1170,7 @@ "signature": [ "\"kibana-reporting\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1185,7 +1185,7 @@ "signature": [ "\"xpack.reporting.jobCompletionNotifications\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1200,7 +1200,7 @@ "signature": [ "\"basic\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1215,7 +1215,7 @@ "signature": [ "\"standard\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1230,7 +1230,7 @@ "signature": [ "\"enterprise\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1245,7 +1245,7 @@ "signature": [ "\"gold\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1260,7 +1260,7 @@ "signature": [ "\"platinum\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1275,7 +1275,7 @@ "signature": [ "\"trial\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1290,7 +1290,7 @@ "signature": [ "\"reportJobListing\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1305,7 +1305,7 @@ "signature": [ "\"reportJobRow\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1320,7 +1320,7 @@ "signature": [ "\"/app/management/insightsAndAlerting/reporting\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1335,7 +1335,7 @@ "signature": [ "\"/app/reportingRedirect\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1350,7 +1350,7 @@ "signature": [ "\"__REPORTING_REDIRECT_LOCATOR_STORE_KEY__\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1365,7 +1365,7 @@ "signature": [ "\"xpackReporting:customPdfLogo\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1380,7 +1380,7 @@ "signature": [ "\"dateFormat:tz\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1395,7 +1395,7 @@ "signature": [ "\"search:includeFrozen\"" ], - "path": "packages/kbn-reporting/common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1409,7 +1409,7 @@ "tags": [], "label": "INTERNAL_ROUTES", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1420,7 +1420,7 @@ "tags": [], "label": "MIGRATE", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1431,7 +1431,7 @@ "tags": [], "label": "MIGRATE_ILM_POLICY", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false }, @@ -1442,7 +1442,7 @@ "tags": [], "label": "GET_ILM_POLICY_STATUS", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false } @@ -1455,7 +1455,7 @@ "tags": [], "label": "DIAGNOSE", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1466,7 +1466,7 @@ "tags": [], "label": "BROWSER", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false }, @@ -1477,7 +1477,7 @@ "tags": [], "label": "SCREENSHOT", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false } @@ -1490,7 +1490,7 @@ "tags": [], "label": "JOBS", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1501,7 +1501,7 @@ "tags": [], "label": "COUNT", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false }, @@ -1512,7 +1512,7 @@ "tags": [], "label": "LIST", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false }, @@ -1523,7 +1523,7 @@ "tags": [], "label": "INFO_PREFIX", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false }, @@ -1534,7 +1534,7 @@ "tags": [], "label": "DELETE_PREFIX", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false }, @@ -1545,7 +1545,7 @@ "tags": [], "label": "DOWNLOAD_PREFIX", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false } @@ -1558,7 +1558,7 @@ "tags": [], "label": "GENERATE_PREFIX", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false } @@ -1572,7 +1572,7 @@ "tags": [], "label": "PUBLIC_ROUTES", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1585,7 +1585,7 @@ "description": [ "/**\n * Public endpoint for POST URL strings and automated report generation\n * exportTypeId is added to the final path\n */" ], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false }, @@ -1596,7 +1596,7 @@ "tags": [], "label": "JOBS", "description": [], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1609,7 +1609,7 @@ "description": [ "/**\n * Public endpoint used by Watcher and automated report downloads\n * jobId is added to the final path\n */" ], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false }, @@ -1622,7 +1622,7 @@ "description": [ "/**\n * Public endpoint potentially used to delete a report after download in automation\n * jobId is added to the final path\n */" ], - "path": "packages/kbn-reporting/common/routes.ts", + "path": "src/platform/packages/private/kbn-reporting/common/routes.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_reporting_common.mdx b/api_docs/kbn_reporting_common.mdx index 2b5f1d55249e1..bc3ff2cc25800 100644 --- a/api_docs/kbn_reporting_common.mdx +++ b/api_docs/kbn_reporting_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-common title: "@kbn/reporting-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-common'] --- import kbnReportingCommonObj from './kbn_reporting_common.devdocs.json'; diff --git a/api_docs/kbn_reporting_csv_share_panel.devdocs.json b/api_docs/kbn_reporting_csv_share_panel.devdocs.json index 529dd32169094..c750e435d9f63 100644 --- a/api_docs/kbn_reporting_csv_share_panel.devdocs.json +++ b/api_docs/kbn_reporting_csv_share_panel.devdocs.json @@ -35,7 +35,7 @@ }, ">" ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -49,7 +49,7 @@ "signature": [ "\"\"" ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false }, @@ -63,7 +63,7 @@ "signature": [ "\"generateCsvReport\"" ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false }, @@ -77,7 +77,7 @@ "signature": [ "any" ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -91,7 +91,7 @@ "signature": [ "Params" ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -109,7 +109,7 @@ "signature": [ "() => string" ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -125,7 +125,7 @@ "signature": [ "() => string" ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -157,7 +157,7 @@ }, "; columns: string[]; }>" ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -177,7 +177,7 @@ "text": "SavedSearch" } ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -203,7 +203,7 @@ }, ") => Promise" ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -223,7 +223,7 @@ "text": "EmbeddableApiContext" } ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -249,7 +249,7 @@ }, ") => Promise" ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -269,7 +269,7 @@ "text": "EmbeddableApiContext" } ], - "path": "packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", + "path": "src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true diff --git a/api_docs/kbn_reporting_csv_share_panel.mdx b/api_docs/kbn_reporting_csv_share_panel.mdx index a497f3762bd11..92d0d496cc71f 100644 --- a/api_docs/kbn_reporting_csv_share_panel.mdx +++ b/api_docs/kbn_reporting_csv_share_panel.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-csv-share-panel title: "@kbn/reporting-csv-share-panel" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-csv-share-panel plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-csv-share-panel'] --- import kbnReportingCsvSharePanelObj from './kbn_reporting_csv_share_panel.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_csv.devdocs.json b/api_docs/kbn_reporting_export_types_csv.devdocs.json index 2c07f7120ab2c..4a8db420e963f 100644 --- a/api_docs/kbn_reporting_export_types_csv.devdocs.json +++ b/api_docs/kbn_reporting_export_types_csv.devdocs.json @@ -59,7 +59,7 @@ }, ", CsvSearchSourceExportTypeStartDeps>" ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -70,7 +70,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false }, @@ -81,7 +81,7 @@ "tags": [], "label": "name", "description": [], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false }, @@ -92,7 +92,7 @@ "tags": [], "label": "jobType", "description": [], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false }, @@ -106,7 +106,7 @@ "signature": [ "\"base64\"" ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false }, @@ -120,7 +120,7 @@ "signature": [ "\"csv\"" ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false }, @@ -134,7 +134,7 @@ "signature": [ "(\"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\")[]" ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false }, @@ -148,7 +148,7 @@ "signature": [ "any" ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -162,7 +162,7 @@ "signature": [ "[core: ", "CoreSetup", - ", config: Readonly<{ roles?: Readonly<{} & { enabled: boolean; allow: string[]; }> | undefined; encryptionKey?: string | undefined; } & { enabled: boolean; csv: Readonly<{ enablePanelActionDownload?: boolean | undefined; } & { scroll: Readonly<{} & { size: number; duration: string; strategy: \"scroll\" | \"pit\"; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; maxSizeBytes: number | ", + "<{}, unknown>, config: Readonly<{ roles?: Readonly<{} & { enabled: boolean; allow: string[]; }> | undefined; encryptionKey?: string | undefined; } & { enabled: boolean; csv: Readonly<{ enablePanelActionDownload?: boolean | undefined; } & { scroll: Readonly<{} & { size: number; duration: string; strategy: \"scroll\" | \"pit\"; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; maxSizeBytes: number | ", { "pluginId": "@kbn/config-schema", "scope": "common", @@ -190,7 +190,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>; capture: Readonly<{} & { maxAttempts: number; }>; kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; export_types: Readonly<{} & { csv: Readonly<{} & { enabled: boolean; }>; png: Readonly<{} & { enabled: boolean; }>; pdf: Readonly<{} & { enabled: boolean; }>; }>; statefulSettings: Readonly<{} & { enabled: boolean; }>; }>>]" ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -236,7 +236,7 @@ "CsvPagingStrategy", "; }>" ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -256,7 +256,7 @@ "text": "JobParamsCSV" } ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -296,7 +296,7 @@ "TaskRunResult", ">" ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -310,7 +310,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -331,7 +331,7 @@ "text": "TaskPayloadCSV" } ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -346,7 +346,7 @@ "signature": [ "TaskInstanceFields" ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -367,7 +367,7 @@ "text": "CancellationToken" } ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -382,7 +382,7 @@ "signature": [ "Writable" ], - "path": "packages/kbn-reporting/export_types/csv/csv_searchsource.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -444,7 +444,7 @@ "CsvV2ExportTypeStartDeps", ">" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -455,7 +455,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -466,7 +466,7 @@ "tags": [], "label": "name", "description": [], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -477,7 +477,7 @@ "tags": [], "label": "jobType", "description": [], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -491,7 +491,7 @@ "signature": [ "\"base64\"" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -505,7 +505,7 @@ "signature": [ "\"csv\"" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -519,7 +519,7 @@ "signature": [ "(\"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\")[]" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -533,7 +533,7 @@ "signature": [ "any" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -547,7 +547,7 @@ "signature": [ "[core: ", "CoreSetup", - ", config: Readonly<{ roles?: Readonly<{} & { enabled: boolean; allow: string[]; }> | undefined; encryptionKey?: string | undefined; } & { enabled: boolean; csv: Readonly<{ enablePanelActionDownload?: boolean | undefined; } & { scroll: Readonly<{} & { size: number; duration: string; strategy: \"scroll\" | \"pit\"; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; maxSizeBytes: number | ", + "<{}, unknown>, config: Readonly<{ roles?: Readonly<{} & { enabled: boolean; allow: string[]; }> | undefined; encryptionKey?: string | undefined; } & { enabled: boolean; csv: Readonly<{ enablePanelActionDownload?: boolean | undefined; } & { scroll: Readonly<{} & { size: number; duration: string; strategy: \"scroll\" | \"pit\"; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; maxSizeBytes: number | ", { "pluginId": "@kbn/config-schema", "scope": "common", @@ -575,7 +575,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>; capture: Readonly<{} & { maxAttempts: number; }>; kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; export_types: Readonly<{} & { csv: Readonly<{} & { enabled: boolean; }>; png: Readonly<{} & { enabled: boolean; }>; pdf: Readonly<{} & { enabled: boolean; }>; }>; statefulSettings: Readonly<{} & { enabled: boolean; }>; }>>]" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -625,7 +625,7 @@ }, ">[]; }>" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -645,7 +645,7 @@ "text": "JobParamsCsvFromSavedObject" } ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -660,7 +660,7 @@ "signature": [ "ReportingRequestHandlerContext" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -676,7 +676,7 @@ "KibanaRequest", "" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -716,7 +716,7 @@ "TaskRunResult", ">" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -730,7 +730,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -751,7 +751,7 @@ "text": "TaskPayloadCsvFromSavedObject" } ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -766,7 +766,7 @@ "signature": [ "TaskInstanceFields" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -787,7 +787,7 @@ "text": "CancellationToken" } ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -802,7 +802,7 @@ "signature": [ "Writable" ], - "path": "packages/kbn-reporting/export_types/csv/csv_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true diff --git a/api_docs/kbn_reporting_export_types_csv.mdx b/api_docs/kbn_reporting_export_types_csv.mdx index f578b33150611..67426e2443dad 100644 --- a/api_docs/kbn_reporting_export_types_csv.mdx +++ b/api_docs/kbn_reporting_export_types_csv.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-csv title: "@kbn/reporting-export-types-csv" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-csv plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-csv'] --- import kbnReportingExportTypesCsvObj from './kbn_reporting_export_types_csv.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_csv_common.devdocs.json b/api_docs/kbn_reporting_export_types_csv_common.devdocs.json index 2c7b73b831298..659482530a60b 100644 --- a/api_docs/kbn_reporting_export_types_csv_common.devdocs.json +++ b/api_docs/kbn_reporting_export_types_csv_common.devdocs.json @@ -46,7 +46,7 @@ "text": "QueryInspection" } ], - "path": "packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -66,7 +66,7 @@ "text": "ISearchSource" } ], - "path": "packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -81,7 +81,7 @@ "signature": [ "CsvConfigType" ], - "path": "packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -96,7 +96,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -116,7 +116,7 @@ "description": [ "\nType to wrap the untyped object returned when\ngetting the query from SearchSource service" ], - "path": "packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -130,7 +130,7 @@ "signature": [ "SearchRequest" ], - "path": "packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts", "deprecated": false, "trackAdoption": false } @@ -155,7 +155,7 @@ " extends CsvFromSavedObjectBase,", "BasePayloadV2" ], - "path": "packages/kbn-reporting/export_types/csv_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -169,7 +169,7 @@ "signature": [ "\"search\"" ], - "path": "packages/kbn-reporting/export_types/csv_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -183,7 +183,7 @@ "signature": [ "\"scroll\" | \"pit\"" ], - "path": "packages/kbn-reporting/export_types/csv_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts", "deprecated": false, "trackAdoption": false } @@ -203,7 +203,7 @@ "signature": [ "\"csv_searchsource\"" ], - "path": "packages/kbn-reporting/export_types/csv_common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -220,7 +220,7 @@ "signature": [ "\"csv\"" ], - "path": "packages/kbn-reporting/export_types/csv_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts", "deprecated": true, "trackAdoption": false, "references": [ @@ -245,7 +245,7 @@ "signature": [ "\"csv_v2\"" ], - "path": "packages/kbn-reporting/export_types/csv_common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -260,7 +260,7 @@ "signature": [ "\"csv_searchsource\"" ], - "path": "packages/kbn-reporting/export_types/csv_common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -275,7 +275,7 @@ "signature": [ "\"csv_v2\"" ], - "path": "packages/kbn-reporting/export_types/csv_common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -290,7 +290,7 @@ "signature": [ "\"generateCsvReport\"" ], - "path": "packages/kbn-reporting/export_types/csv_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -327,7 +327,7 @@ "CsvPagingStrategy", " | undefined; }" ], - "path": "packages/kbn-reporting/export_types/csv_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -343,7 +343,7 @@ "BaseParamsCSV & ", "BaseParams" ], - "path": "packages/kbn-reporting/export_types/csv_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -362,7 +362,7 @@ "BaseParamsV2", ", \"title\"> & { title?: string | undefined; }" ], - "path": "packages/kbn-reporting/export_types/csv_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -378,7 +378,7 @@ "BaseParamsCSV & ", "BasePayload" ], - "path": "packages/kbn-reporting/export_types/csv_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_reporting_export_types_csv_common.mdx b/api_docs/kbn_reporting_export_types_csv_common.mdx index 0daaeb72da750..07f8217a16646 100644 --- a/api_docs/kbn_reporting_export_types_csv_common.mdx +++ b/api_docs/kbn_reporting_export_types_csv_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-csv-common title: "@kbn/reporting-export-types-csv-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-csv-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-csv-common'] --- import kbnReportingExportTypesCsvCommonObj from './kbn_reporting_export_types_csv_common.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_pdf.devdocs.json b/api_docs/kbn_reporting_export_types_pdf.devdocs.json index 9026319c619f8..7d8f3516792ac 100644 --- a/api_docs/kbn_reporting_export_types_pdf.devdocs.json +++ b/api_docs/kbn_reporting_export_types_pdf.devdocs.json @@ -67,7 +67,7 @@ }, ">" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -78,7 +78,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -89,7 +89,7 @@ "tags": [], "label": "name", "description": [], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -100,7 +100,7 @@ "tags": [], "label": "jobType", "description": [], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -114,7 +114,7 @@ "signature": [ "\"base64\"" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -128,7 +128,7 @@ "signature": [ "\"pdf\"" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -142,7 +142,7 @@ "signature": [ "(\"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\")[]" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -156,7 +156,7 @@ "signature": [ "any" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -170,7 +170,7 @@ "signature": [ "[core: ", "CoreSetup", - ", config: Readonly<{ roles?: Readonly<{} & { enabled: boolean; allow: string[]; }> | undefined; encryptionKey?: string | undefined; } & { enabled: boolean; csv: Readonly<{ enablePanelActionDownload?: boolean | undefined; } & { scroll: Readonly<{} & { size: number; duration: string; strategy: \"scroll\" | \"pit\"; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; maxSizeBytes: number | ", + "<{}, unknown>, config: Readonly<{ roles?: Readonly<{} & { enabled: boolean; allow: string[]; }> | undefined; encryptionKey?: string | undefined; } & { enabled: boolean; csv: Readonly<{ enablePanelActionDownload?: boolean | undefined; } & { scroll: Readonly<{} & { size: number; duration: string; strategy: \"scroll\" | \"pit\"; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; maxSizeBytes: number | ", { "pluginId": "@kbn/config-schema", "scope": "common", @@ -198,7 +198,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>; capture: Readonly<{} & { maxAttempts: number; }>; kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; export_types: Readonly<{} & { csv: Readonly<{} & { enabled: boolean; }>; png: Readonly<{} & { enabled: boolean; }>; pdf: Readonly<{} & { enabled: boolean; }>; }>; statefulSettings: Readonly<{} & { enabled: boolean; }>; }>>]" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -246,7 +246,7 @@ "CsvPagingStrategy", " | undefined; }>" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -266,7 +266,7 @@ "text": "JobParamsPDFV2" } ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -310,7 +310,7 @@ "TaskRunResult", ">" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -324,7 +324,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -345,7 +345,7 @@ "text": "TaskPayloadPDFV2" } ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -360,7 +360,7 @@ "signature": [ "TaskInstanceFields" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -381,7 +381,7 @@ "text": "CancellationToken" } ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -396,7 +396,7 @@ "signature": [ "Writable" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -466,7 +466,7 @@ }, ">" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": true, "trackAdoption": false, "references": [ @@ -487,7 +487,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false }, @@ -498,7 +498,7 @@ "tags": [], "label": "name", "description": [], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false }, @@ -509,7 +509,7 @@ "tags": [], "label": "jobType", "description": [], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false }, @@ -523,7 +523,7 @@ "signature": [ "\"base64\" | undefined" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false }, @@ -537,7 +537,7 @@ "signature": [ "\"pdf\"" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false }, @@ -551,7 +551,7 @@ "signature": [ "(\"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\")[]" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false }, @@ -565,7 +565,7 @@ "signature": [ "any" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -579,7 +579,7 @@ "signature": [ "[core: ", "CoreSetup", - ", config: Readonly<{ roles?: Readonly<{} & { enabled: boolean; allow: string[]; }> | undefined; encryptionKey?: string | undefined; } & { enabled: boolean; csv: Readonly<{ enablePanelActionDownload?: boolean | undefined; } & { scroll: Readonly<{} & { size: number; duration: string; strategy: \"scroll\" | \"pit\"; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; maxSizeBytes: number | ", + "<{}, unknown>, config: Readonly<{ roles?: Readonly<{} & { enabled: boolean; allow: string[]; }> | undefined; encryptionKey?: string | undefined; } & { enabled: boolean; csv: Readonly<{ enablePanelActionDownload?: boolean | undefined; } & { scroll: Readonly<{} & { size: number; duration: string; strategy: \"scroll\" | \"pit\"; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; maxSizeBytes: number | ", { "pluginId": "@kbn/config-schema", "scope": "common", @@ -607,7 +607,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>; capture: Readonly<{} & { maxAttempts: number; }>; kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; export_types: Readonly<{} & { csv: Readonly<{} & { enabled: boolean; }>; png: Readonly<{} & { enabled: boolean; }>; pdf: Readonly<{} & { enabled: boolean; }>; }>; statefulSettings: Readonly<{} & { enabled: boolean; }>; }>>]" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -645,7 +645,7 @@ "CsvPagingStrategy", " | undefined; }>" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -665,7 +665,7 @@ "text": "JobParamsPDFDeprecated" } ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -705,7 +705,7 @@ "TaskRunResult", ">" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -719,7 +719,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -740,7 +740,7 @@ "text": "TaskPayloadPDF" } ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -755,7 +755,7 @@ "signature": [ "TaskInstanceFields" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -776,7 +776,7 @@ "text": "CancellationToken" } ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -791,7 +791,7 @@ "signature": [ "Writable" ], - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts", "deprecated": false, "trackAdoption": false, "isRequired": true diff --git a/api_docs/kbn_reporting_export_types_pdf.mdx b/api_docs/kbn_reporting_export_types_pdf.mdx index 5d558d988548b..c24e611f0fd3a 100644 --- a/api_docs/kbn_reporting_export_types_pdf.mdx +++ b/api_docs/kbn_reporting_export_types_pdf.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-pdf title: "@kbn/reporting-export-types-pdf" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-pdf plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-pdf'] --- import kbnReportingExportTypesPdfObj from './kbn_reporting_export_types_pdf.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_pdf_common.devdocs.json b/api_docs/kbn_reporting_export_types_pdf_common.devdocs.json index 581477c9babfa..71a274827ae3f 100644 --- a/api_docs/kbn_reporting_export_types_pdf_common.devdocs.json +++ b/api_docs/kbn_reporting_export_types_pdf_common.devdocs.json @@ -40,7 +40,7 @@ " extends ", "BasePayload" ], - "path": "packages/kbn-reporting/export_types/pdf_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -64,7 +64,7 @@ "LayoutSelectorDictionary", "> | undefined; zoom?: number | undefined; }" ], - "path": "packages/kbn-reporting/export_types/pdf_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -78,7 +78,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/export_types/pdf_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -92,7 +92,7 @@ "signature": [ "{ relativeUrl: string; }[]" ], - "path": "packages/kbn-reporting/export_types/pdf_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts", "deprecated": false, "trackAdoption": false } @@ -118,7 +118,7 @@ "BasePayload", ",BaseParamsPDFV2" ], - "path": "packages/kbn-reporting/export_types/pdf_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -142,7 +142,7 @@ "LayoutSelectorDictionary", "> | undefined; zoom?: number | undefined; }" ], - "path": "packages/kbn-reporting/export_types/pdf_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -155,7 +155,7 @@ "description": [ "\nThe value of forceNow is injected server-side every time a given report is generated." ], - "path": "packages/kbn-reporting/export_types/pdf_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts", "deprecated": false, "trackAdoption": false } @@ -199,7 +199,7 @@ }, ">[]; }" ], - "path": "packages/kbn-reporting/export_types/pdf_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -217,21 +217,21 @@ "BaseParamsPDF & ", "BaseParams" ], - "path": "packages/kbn-reporting/export_types/pdf_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts", "deprecated": true, "trackAdoption": false, "references": [ { "plugin": "@kbn/reporting-export-types-pdf", - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts" + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts" }, { "plugin": "@kbn/reporting-export-types-pdf", - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts" + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts" }, { "plugin": "@kbn/reporting-export-types-pdf", - "path": "packages/kbn-reporting/export_types/pdf/printable_pdf.ts" + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts" } ], "initialIsOpen": false @@ -247,7 +247,7 @@ "BaseParamsPDFV2 & ", "BaseParams" ], - "path": "packages/kbn-reporting/export_types/pdf_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -262,7 +262,7 @@ "signature": [ "\"printable_pdf\"" ], - "path": "packages/kbn-reporting/export_types/pdf_common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -277,7 +277,7 @@ "signature": [ "\"printable_pdf_v2\"" ], - "path": "packages/kbn-reporting/export_types/pdf_common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -292,7 +292,7 @@ "signature": [ "\"printablePdf\"" ], - "path": "packages/kbn-reporting/export_types/pdf_common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -307,7 +307,7 @@ "signature": [ "\"printablePdfV2\"" ], - "path": "packages/kbn-reporting/export_types/pdf_common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/pdf_common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_reporting_export_types_pdf_common.mdx b/api_docs/kbn_reporting_export_types_pdf_common.mdx index d228fee70c24d..9176d5c626bbc 100644 --- a/api_docs/kbn_reporting_export_types_pdf_common.mdx +++ b/api_docs/kbn_reporting_export_types_pdf_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-pdf-common title: "@kbn/reporting-export-types-pdf-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-pdf-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-pdf-common'] --- import kbnReportingExportTypesPdfCommonObj from './kbn_reporting_export_types_pdf_common.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_png.devdocs.json b/api_docs/kbn_reporting_export_types_png.devdocs.json index 6b5540c67913d..33f5804aa4c66 100644 --- a/api_docs/kbn_reporting_export_types_png.devdocs.json +++ b/api_docs/kbn_reporting_export_types_png.devdocs.json @@ -67,7 +67,7 @@ }, ">" ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -78,7 +78,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -89,7 +89,7 @@ "tags": [], "label": "name", "description": [], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -100,7 +100,7 @@ "tags": [], "label": "jobType", "description": [], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -114,7 +114,7 @@ "signature": [ "\"base64\"" ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -128,7 +128,7 @@ "signature": [ "\"png\"" ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -142,7 +142,7 @@ "signature": [ "(\"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\")[]" ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false }, @@ -156,7 +156,7 @@ "signature": [ "any" ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -170,7 +170,7 @@ "signature": [ "[core: ", "CoreSetup", - ", config: Readonly<{ roles?: Readonly<{} & { enabled: boolean; allow: string[]; }> | undefined; encryptionKey?: string | undefined; } & { enabled: boolean; csv: Readonly<{ enablePanelActionDownload?: boolean | undefined; } & { scroll: Readonly<{} & { size: number; duration: string; strategy: \"scroll\" | \"pit\"; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; maxSizeBytes: number | ", + "<{}, unknown>, config: Readonly<{ roles?: Readonly<{} & { enabled: boolean; allow: string[]; }> | undefined; encryptionKey?: string | undefined; } & { enabled: boolean; csv: Readonly<{ enablePanelActionDownload?: boolean | undefined; } & { scroll: Readonly<{} & { size: number; duration: string; strategy: \"scroll\" | \"pit\"; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; maxSizeBytes: number | ", { "pluginId": "@kbn/config-schema", "scope": "common", @@ -198,7 +198,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>; capture: Readonly<{} & { maxAttempts: number; }>; kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; export_types: Readonly<{} & { csv: Readonly<{} & { enabled: boolean; }>; png: Readonly<{} & { enabled: boolean; }>; pdf: Readonly<{} & { enabled: boolean; }>; }>; statefulSettings: Readonly<{} & { enabled: boolean; }>; }>>]" ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -248,7 +248,7 @@ "CsvPagingStrategy", " | undefined; }>" ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -268,7 +268,7 @@ "text": "JobParamsPNGV2" } ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -312,7 +312,7 @@ "TaskRunResult", ">" ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -326,7 +326,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -347,7 +347,7 @@ "text": "TaskPayloadPNGV2" } ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -362,7 +362,7 @@ "signature": [ "TaskInstanceFields" ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -383,7 +383,7 @@ "text": "CancellationToken" } ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -398,7 +398,7 @@ "signature": [ "Writable" ], - "path": "packages/kbn-reporting/export_types/png/png_v2.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts", "deprecated": false, "trackAdoption": false, "isRequired": true diff --git a/api_docs/kbn_reporting_export_types_png.mdx b/api_docs/kbn_reporting_export_types_png.mdx index dad370935d31b..1dca5703201f9 100644 --- a/api_docs/kbn_reporting_export_types_png.mdx +++ b/api_docs/kbn_reporting_export_types_png.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-png title: "@kbn/reporting-export-types-png" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-png plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-png'] --- import kbnReportingExportTypesPngObj from './kbn_reporting_export_types_png.devdocs.json'; diff --git a/api_docs/kbn_reporting_export_types_png_common.devdocs.json b/api_docs/kbn_reporting_export_types_png_common.devdocs.json index d152ca56dc9b3..7d7906a17b69d 100644 --- a/api_docs/kbn_reporting_export_types_png_common.devdocs.json +++ b/api_docs/kbn_reporting_export_types_png_common.devdocs.json @@ -38,7 +38,7 @@ " extends ", "BaseParams" ], - "path": "packages/kbn-reporting/export_types/png_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -62,7 +62,7 @@ "LayoutSelectorDictionary", "> | undefined; zoom?: number | undefined; }" ], - "path": "packages/kbn-reporting/export_types/png_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -87,7 +87,7 @@ }, ">" ], - "path": "packages/kbn-reporting/export_types/png_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts", "deprecated": false, "trackAdoption": false } @@ -112,7 +112,7 @@ " extends ", "BasePayload" ], - "path": "packages/kbn-reporting/export_types/png_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -136,7 +136,7 @@ "LayoutSelectorDictionary", "> | undefined; zoom?: number | undefined; }" ], - "path": "packages/kbn-reporting/export_types/png_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -147,7 +147,7 @@ "tags": [], "label": "forceNow", "description": [], - "path": "packages/kbn-reporting/export_types/png_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts", "deprecated": false, "trackAdoption": false }, @@ -172,7 +172,7 @@ }, ">[]" ], - "path": "packages/kbn-reporting/export_types/png_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts", "deprecated": false, "trackAdoption": false } @@ -193,7 +193,7 @@ "BaseParamsPNG & ", "BaseParams" ], - "path": "packages/kbn-reporting/export_types/png_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -208,7 +208,7 @@ "signature": [ "\"PNGV2\"" ], - "path": "packages/kbn-reporting/export_types/png_common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png_common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -223,7 +223,7 @@ "signature": [ "\"pngV2\"" ], - "path": "packages/kbn-reporting/export_types/png_common/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png_common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -239,7 +239,7 @@ "BaseParamsPNG & ", "BasePayload" ], - "path": "packages/kbn-reporting/export_types/png_common/index.ts", + "path": "src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_reporting_export_types_png_common.mdx b/api_docs/kbn_reporting_export_types_png_common.mdx index fd95d6cdc20fb..593e1b3aadc3b 100644 --- a/api_docs/kbn_reporting_export_types_png_common.mdx +++ b/api_docs/kbn_reporting_export_types_png_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-export-types-png-common title: "@kbn/reporting-export-types-png-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-export-types-png-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-export-types-png-common'] --- import kbnReportingExportTypesPngCommonObj from './kbn_reporting_export_types_png_common.devdocs.json'; diff --git a/api_docs/kbn_reporting_mocks_server.devdocs.json b/api_docs/kbn_reporting_mocks_server.devdocs.json index 9fd240d87c90e..17841d42026f0 100644 --- a/api_docs/kbn_reporting_mocks_server.devdocs.json +++ b/api_docs/kbn_reporting_mocks_server.devdocs.json @@ -47,7 +47,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>; capture: Readonly<{} & { maxAttempts: number; }>; kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; export_types: Readonly<{} & { csv: Readonly<{} & { enabled: boolean; }>; png: Readonly<{} & { enabled: boolean; }>; pdf: Readonly<{} & { enabled: boolean; }>; }>; statefulSettings: Readonly<{} & { enabled: boolean; }>; }>" ], - "path": "packages/kbn-reporting/mocks_server/index.ts", + "path": "src/platform/packages/private/kbn-reporting/mocks_server/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -70,7 +70,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>; capture: Readonly<{} & { maxAttempts: number; }>; kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; export_types: Readonly<{} & { csv: Readonly<{} & { enabled: boolean; }>; png: Readonly<{} & { enabled: boolean; }>; pdf: Readonly<{} & { enabled: boolean; }>; }>; statefulSettings: Readonly<{} & { enabled: boolean; }>; }>>" ], - "path": "packages/kbn-reporting/mocks_server/index.ts", + "path": "src/platform/packages/private/kbn-reporting/mocks_server/index.ts", "deprecated": false, "trackAdoption": false, "isRequired": true diff --git a/api_docs/kbn_reporting_mocks_server.mdx b/api_docs/kbn_reporting_mocks_server.mdx index 581863bfb187b..ed4a0285c2708 100644 --- a/api_docs/kbn_reporting_mocks_server.mdx +++ b/api_docs/kbn_reporting_mocks_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-mocks-server title: "@kbn/reporting-mocks-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-mocks-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-mocks-server'] --- import kbnReportingMocksServerObj from './kbn_reporting_mocks_server.devdocs.json'; diff --git a/api_docs/kbn_reporting_public.devdocs.json b/api_docs/kbn_reporting_public.devdocs.json index 396122446d0ab..a4f6de156d7fc 100644 --- a/api_docs/kbn_reporting_public.devdocs.json +++ b/api_docs/kbn_reporting_public.devdocs.json @@ -9,7 +9,7 @@ "tags": [], "label": "Job", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -35,7 +35,7 @@ "CsvPagingStrategy", " | undefined; }" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -46,7 +46,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -57,7 +57,7 @@ "tags": [], "label": "index", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -68,7 +68,7 @@ "tags": [], "label": "objectType", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -79,7 +79,7 @@ "tags": [], "label": "title", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -93,7 +93,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -107,7 +107,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -121,7 +121,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -145,7 +145,7 @@ "LayoutSelectorDictionary", "> | undefined; zoom?: number | undefined; } | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -160,7 +160,7 @@ "CsvPagingStrategy", " | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -171,7 +171,7 @@ "tags": [], "label": "version", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -182,7 +182,7 @@ "tags": [], "label": "jobtype", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -196,7 +196,7 @@ "signature": [ "string | false" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -207,7 +207,7 @@ "tags": [], "label": "created_at", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -221,7 +221,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -235,7 +235,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -255,7 +255,7 @@ "text": "JOB_STATUS" } ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -266,7 +266,7 @@ "tags": [], "label": "attempts", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -280,7 +280,7 @@ "signature": [ "number | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -294,7 +294,7 @@ "signature": [ "number | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -308,7 +308,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -322,7 +322,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -336,7 +336,7 @@ "signature": [ "number | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -350,7 +350,7 @@ "signature": [ "string | null | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -364,7 +364,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -378,7 +378,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -393,7 +393,7 @@ "TaskRunMetrics", " | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -407,7 +407,7 @@ "signature": [ "string[] | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -421,7 +421,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -444,7 +444,7 @@ }, ">[] | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -458,7 +458,7 @@ "signature": [ "number | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -472,7 +472,7 @@ "signature": [ "number | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -486,7 +486,7 @@ "signature": [ "any" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -500,7 +500,7 @@ "signature": [ "ReportApiJSON" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -518,7 +518,7 @@ "signature": [ "() => boolean" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -534,7 +534,7 @@ "signature": [ "() => React.JSX.Element | null" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -547,7 +547,7 @@ "tags": [], "label": "prettyStatus", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -558,7 +558,7 @@ "tags": [], "label": "canLinkToKibanaApp", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -569,7 +569,7 @@ "tags": [], "label": "isDownloadReady", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -583,7 +583,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -594,7 +594,7 @@ "tags": [], "label": "prettyTimeout", "description": [], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false }, @@ -610,7 +610,7 @@ "signature": [ "() => string" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -628,7 +628,7 @@ "signature": [ "() => string" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -644,7 +644,7 @@ "signature": [ "() => string | React.JSX.Element" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -660,7 +660,7 @@ "signature": [ "() => string[] | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -676,7 +676,7 @@ "signature": [ "() => string | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -692,7 +692,7 @@ "signature": [ "() => React.JSX.Element | undefined" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -708,7 +708,7 @@ "signature": [ "() => string" ], - "path": "packages/kbn-reporting/public/job.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/job.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -738,7 +738,7 @@ }, " implements IReportingAPI" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -752,7 +752,7 @@ "signature": [ "any" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -766,7 +766,7 @@ "signature": [ "HttpSetup" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -779,15 +779,9 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -802,7 +796,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -828,7 +822,7 @@ }, ") => string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -848,7 +842,7 @@ "text": "Job" } ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -868,7 +862,7 @@ "signature": [ "(jobId: string) => string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -882,7 +876,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -900,7 +894,7 @@ "signature": [ "(jobId: string) => void" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -914,7 +908,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -932,7 +926,7 @@ "signature": [ "(jobId: string) => Promise" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -946,7 +940,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -972,7 +966,7 @@ }, "[]>" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -986,7 +980,7 @@ "signature": [ "number" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1001,7 +995,7 @@ "signature": [ "string[]" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1019,7 +1013,7 @@ "signature": [ "() => Promise" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -1035,7 +1029,7 @@ "signature": [ "(jobId: string) => Promise" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1049,7 +1043,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1075,7 +1069,7 @@ }, ">" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1089,7 +1083,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1115,7 +1109,7 @@ }, "[]>" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1129,7 +1123,7 @@ "signature": [ "string[]" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1151,7 +1145,7 @@ "BaseParams", ") => string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1165,7 +1159,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1180,7 +1174,7 @@ "signature": [ "BaseParams" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1208,7 +1202,7 @@ }, " | undefined>" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1222,7 +1216,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1237,7 +1231,7 @@ "signature": [ "BaseParams" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1267,7 +1261,7 @@ }, " | undefined>" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1281,7 +1275,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1296,7 +1290,7 @@ "signature": [ "BaseParams" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1317,7 +1311,7 @@ "(baseParams: T) => ", "BaseParams" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1331,7 +1325,7 @@ "signature": [ "T" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1349,7 +1343,7 @@ "signature": [ "() => string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -1365,7 +1359,7 @@ "signature": [ "(jobId: string) => string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1379,7 +1373,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1397,7 +1391,7 @@ "signature": [ "() => string" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -1415,7 +1409,7 @@ "DiagnoseResponse", ">" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -1433,7 +1427,7 @@ "DiagnoseResponse", ">" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -1449,7 +1443,7 @@ "signature": [ "() => Promise" ], - "path": "packages/kbn-reporting/public/reporting_api_client.ts", + "path": "src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -1473,7 +1467,7 @@ ") => ", "LicenseCheckResults" ], - "path": "packages/kbn-reporting/public/license_check.ts", + "path": "src/platform/packages/private/kbn-reporting/public/license_check.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1487,7 +1481,7 @@ "signature": [ "LicenseCheck" ], - "path": "packages/kbn-reporting/public/license_check.ts", + "path": "src/platform/packages/private/kbn-reporting/public/license_check.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1516,7 +1510,7 @@ "HttpSetup", "; }>) => React.JSX.Element" ], - "path": "packages/kbn-reporting/public/context.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/context.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -1540,7 +1534,7 @@ "HttpSetup", "; }>" ], - "path": "packages/kbn-reporting/public/context.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/context.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1559,7 +1553,7 @@ "signature": [ "() => { getPendingJobIds: () => string[]; addPendingJobId: (jobId: string) => void; setPendingJobIds: (jobIds: string[]) => void; }" ], - "path": "packages/kbn-reporting/public/job_completion_notifications.ts", + "path": "src/platform/packages/private/kbn-reporting/public/job_completion_notifications.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -1586,7 +1580,7 @@ "IlmPolicyStatusResponse", ", Error>" ], - "path": "packages/kbn-reporting/public/hooks.ts", + "path": "src/platform/packages/private/kbn-reporting/public/hooks.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -1603,7 +1597,7 @@ "signature": [ "() => ContextValue" ], - "path": "packages/kbn-reporting/public/context.tsx", + "path": "src/platform/packages/private/kbn-reporting/public/context.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -1638,7 +1632,7 @@ }, ">" ], - "path": "packages/kbn-reporting/public/index.ts", + "path": "src/platform/packages/private/kbn-reporting/public/index.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -1654,7 +1648,7 @@ "tags": [], "label": "ClientConfigType", "description": [], - "path": "packages/kbn-reporting/public/types.ts", + "path": "src/platform/packages/private/kbn-reporting/public/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1668,7 +1662,7 @@ "signature": [ "{ scroll: { duration: string; size: number; }; }" ], - "path": "packages/kbn-reporting/public/types.ts", + "path": "src/platform/packages/private/kbn-reporting/public/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1682,7 +1676,7 @@ "signature": [ "{ jobsRefresh: { interval: number; intervalErrorMultiplier: number; }; }" ], - "path": "packages/kbn-reporting/public/types.ts", + "path": "src/platform/packages/private/kbn-reporting/public/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1696,7 +1690,7 @@ "signature": [ "{ pdf: { enabled: boolean; }; png: { enabled: boolean; }; csv: { enabled: boolean; }; }" ], - "path": "packages/kbn-reporting/public/types.ts", + "path": "src/platform/packages/private/kbn-reporting/public/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1710,7 +1704,7 @@ "signature": [ "{ enabled: boolean; }" ], - "path": "packages/kbn-reporting/public/types.ts", + "path": "src/platform/packages/private/kbn-reporting/public/types.ts", "deprecated": false, "trackAdoption": false } @@ -1724,7 +1718,7 @@ "tags": [], "label": "KibanaContext", "description": [], - "path": "packages/kbn-reporting/public/index.ts", + "path": "src/platform/packages/private/kbn-reporting/public/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1738,7 +1732,7 @@ "signature": [ "HttpSetup" ], - "path": "packages/kbn-reporting/public/index.ts", + "path": "src/platform/packages/private/kbn-reporting/public/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1752,7 +1746,7 @@ "signature": [ "ApplicationStart" ], - "path": "packages/kbn-reporting/public/index.ts", + "path": "src/platform/packages/private/kbn-reporting/public/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1764,15 +1758,9 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], - "path": "packages/kbn-reporting/public/index.ts", + "path": "src/platform/packages/private/kbn-reporting/public/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1786,7 +1774,7 @@ "signature": [ "DocLinksStart" ], - "path": "packages/kbn-reporting/public/index.ts", + "path": "src/platform/packages/private/kbn-reporting/public/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1806,7 +1794,7 @@ "text": "DataPublicPluginStart" } ], - "path": "packages/kbn-reporting/public/index.ts", + "path": "src/platform/packages/private/kbn-reporting/public/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1846,7 +1834,7 @@ }, ">): void; }" ], - "path": "packages/kbn-reporting/public/index.ts", + "path": "src/platform/packages/private/kbn-reporting/public/index.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_reporting_public.mdx b/api_docs/kbn_reporting_public.mdx index 9f10939ee3aa2..42e1aa668c02c 100644 --- a/api_docs/kbn_reporting_public.mdx +++ b/api_docs/kbn_reporting_public.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-public title: "@kbn/reporting-public" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-public plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-public'] --- import kbnReportingPublicObj from './kbn_reporting_public.devdocs.json'; diff --git a/api_docs/kbn_reporting_server.devdocs.json b/api_docs/kbn_reporting_server.devdocs.json index 4116c115066b7..16e581166b166 100644 --- a/api_docs/kbn_reporting_server.devdocs.json +++ b/api_docs/kbn_reporting_server.devdocs.json @@ -27,7 +27,7 @@ }, "" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -38,7 +38,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -49,7 +49,7 @@ "tags": [], "label": "name", "description": [], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -60,7 +60,7 @@ "tags": [], "label": "jobType", "description": [], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -74,7 +74,7 @@ "signature": [ "\"base64\" | \"csv\" | undefined" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -88,7 +88,7 @@ "signature": [ "\"csv\" | \"png\" | \"pdf\"" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -114,7 +114,7 @@ "KibanaRequest", ") => Promise>" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -129,7 +129,7 @@ "signature": [ "JobParamsType" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -152,7 +152,7 @@ }, " | null>; }" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -167,7 +167,7 @@ "KibanaRequest", "" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false } @@ -197,7 +197,7 @@ "TaskRunResult", ">" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -209,7 +209,7 @@ "tags": [], "label": "jobId", "description": [], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -223,7 +223,7 @@ "signature": [ "TaskPayloadType" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -237,7 +237,7 @@ "signature": [ "{ startedAt: Date | null; retryAt: Date | null; }" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -257,7 +257,7 @@ "text": "CancellationToken" } ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -271,7 +271,7 @@ "signature": [ "Writable" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false } @@ -287,7 +287,7 @@ "signature": [ "(\"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\")[]" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -301,7 +301,7 @@ "signature": [ "SetupDepsType" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -315,7 +315,7 @@ "signature": [ "StartDepsType" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -332,7 +332,7 @@ "RequestHandlerContextBase", ">" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -346,7 +346,7 @@ "signature": [ "any" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -359,9 +359,9 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -384,7 +384,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>; capture: Readonly<{} & { maxAttempts: number; }>; kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; export_types: Readonly<{} & { csv: Readonly<{} & { enabled: boolean; }>; png: Readonly<{} & { enabled: boolean; }>; pdf: Readonly<{} & { enabled: boolean; }>; }>; statefulSettings: Readonly<{} & { enabled: boolean; }>; }>" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -405,7 +405,7 @@ "text": "Logger" } ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -429,7 +429,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>; capture: Readonly<{} & { maxAttempts: number; }>; kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; export_types: Readonly<{} & { csv: Readonly<{} & { enabled: boolean; }>; png: Readonly<{} & { enabled: boolean; }>; pdf: Readonly<{} & { enabled: boolean; }>; }>; statefulSettings: Readonly<{} & { enabled: boolean; }>; }>>" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -447,7 +447,7 @@ "signature": [ "(setupDeps: SetupDepsType) => void" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -461,7 +461,7 @@ "signature": [ "SetupDepsType" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -479,7 +479,7 @@ "signature": [ "(startDeps: StartDepsType) => void" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -493,7 +493,7 @@ "signature": [ "StartDepsType" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -512,15 +512,9 @@ "(savedObjectsClient: ", "SavedObjectsClientContract", ") => ", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -534,7 +528,7 @@ "signature": [ "SavedObjectsClientContract" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -561,16 +555,10 @@ "text": "Logger" }, ") => Promise<", - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ">" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -585,7 +573,7 @@ "KibanaRequest", "" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -606,7 +594,7 @@ "text": "Logger" } ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -636,7 +624,7 @@ "KibanaRequest", "" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -650,7 +638,7 @@ "signature": [ "Headers" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -665,7 +653,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -686,7 +674,7 @@ "text": "Logger" } ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -705,7 +693,7 @@ "() => ", "ReportingServerInfo" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -727,7 +715,7 @@ "(encryptionKey: string | undefined) => ", "Crypto" ], - "path": "packages/kbn-reporting/server/crypto.ts", + "path": "src/platform/packages/private/kbn-reporting/server/crypto.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -741,7 +729,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/server/crypto.ts", + "path": "src/platform/packages/private/kbn-reporting/server/crypto.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -768,7 +756,7 @@ }, ") => Promise>" ], - "path": "packages/kbn-reporting/server/decrypt_job_headers.ts", + "path": "src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -782,7 +770,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/server/decrypt_job_headers.ts", + "path": "src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -797,7 +785,7 @@ "signature": [ "string" ], - "path": "packages/kbn-reporting/server/decrypt_job_headers.ts", + "path": "src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -818,7 +806,7 @@ "text": "Logger" } ], - "path": "packages/kbn-reporting/server/decrypt_job_headers.ts", + "path": "src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -844,7 +832,7 @@ "text": "FieldFormatsStart" } ], - "path": "packages/kbn-reporting/server/services.ts", + "path": "src/platform/packages/private/kbn-reporting/server/services.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -871,7 +859,7 @@ "ReportingServerInfo", ", spaceId: string | undefined, forceNow: string | undefined) => string" ], - "path": "packages/kbn-reporting/server/get_full_redirect_app_url.ts", + "path": "src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -893,7 +881,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>; capture: Readonly<{} & { maxAttempts: number; }>; kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; export_types: Readonly<{} & { csv: Readonly<{} & { enabled: boolean; }>; png: Readonly<{} & { enabled: boolean; }>; pdf: Readonly<{} & { enabled: boolean; }>; }>; statefulSettings: Readonly<{} & { enabled: boolean; }>; }>" ], - "path": "packages/kbn-reporting/server/get_full_redirect_app_url.ts", + "path": "src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -908,7 +896,7 @@ "signature": [ "ReportingServerInfo" ], - "path": "packages/kbn-reporting/server/get_full_redirect_app_url.ts", + "path": "src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -923,7 +911,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/server/get_full_redirect_app_url.ts", + "path": "src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -938,7 +926,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-reporting/server/get_full_redirect_app_url.ts", + "path": "src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -965,7 +953,7 @@ }, ") => void" ], - "path": "packages/kbn-reporting/server/services.ts", + "path": "src/platform/packages/private/kbn-reporting/server/services.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -996,7 +984,7 @@ "tags": [], "label": "BaseExportTypeSetupDeps", "description": [], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1012,7 +1000,7 @@ "KibanaRequest", ", requestSpecificBasePath: string) => void; }" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -1033,7 +1021,7 @@ }, " | undefined" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false } @@ -1047,7 +1035,7 @@ "tags": [], "label": "BaseExportTypeStartDeps", "description": [], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1061,7 +1049,7 @@ "signature": [ "SavedObjectsServiceStart" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -1073,15 +1061,9 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.UiSettingsServiceStart", - "text": "UiSettingsServiceStart" - } + "UiSettingsServiceStart" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -1095,7 +1077,7 @@ "signature": [ "IClusterClient" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false }, @@ -1116,7 +1098,7 @@ }, " | undefined" ], - "path": "packages/kbn-reporting/server/export_type.ts", + "path": "src/platform/packages/private/kbn-reporting/server/export_type.ts", "deprecated": false, "trackAdoption": false } @@ -1130,7 +1112,7 @@ "tags": [], "label": "ReportingServerPluginSetup", "description": [], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1168,7 +1150,7 @@ }, ">) => void" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1205,7 +1187,7 @@ }, ">" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -1223,7 +1205,7 @@ "tags": [], "label": "TimeRangeParams", "description": [], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1237,7 +1219,7 @@ "signature": [ "string | number | Date | null | undefined" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1251,7 +1233,7 @@ "signature": [ "string | number | Date | null | undefined" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false } @@ -1267,7 +1249,7 @@ "tags": [], "label": "EventType", "description": [], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1279,7 +1261,7 @@ "tags": [], "label": "FieldType", "description": [], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1296,7 +1278,7 @@ "signature": [ "\"reportingApi\"" ], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1311,7 +1293,7 @@ "signature": [ "\"reportingApiError\"" ], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1338,7 +1320,7 @@ "KibanaRequest", ") => Promise>" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -1353,7 +1335,7 @@ "signature": [ "JobParamsType" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1376,7 +1358,7 @@ }, " | null>; }" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1391,7 +1373,7 @@ "KibanaRequest", "" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false } @@ -1408,7 +1390,7 @@ "signature": [ "\"reporting\"" ], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1423,7 +1405,7 @@ "signature": [ "\".kibana-reporting\"" ], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1438,7 +1420,7 @@ "signature": [ "\"kibana-reporting@custom\"" ], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1453,7 +1435,7 @@ "signature": [ "\".kibana-reporting*\"" ], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1468,7 +1450,7 @@ "signature": [ "\".reporting-*,.kibana-reporting*\"" ], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1483,7 +1465,7 @@ "signature": [ "\".reporting-*\"" ], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1498,7 +1480,7 @@ "signature": [ "\"reporting\"" ], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1521,7 +1503,7 @@ }, "; useByteOrderMarkEncoding: boolean; maxConcurrentShardRequests: number; }>; readonly capture: Readonly<{} & { maxAttempts: number; }>; readonly kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; readonly queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; readonly poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; readonly export_types: Readonly<{} & { csv: Readonly<{} & { enabled: boolean; }>; png: Readonly<{} & { enabled: boolean; }>; pdf: Readonly<{} & { enabled: boolean; }>; }>; readonly statefulSettings: Readonly<{} & { enabled: boolean; }>; }" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1550,7 +1532,7 @@ "TaskRunResult", ">" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -1562,7 +1544,7 @@ "tags": [], "label": "jobId", "description": [], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1576,7 +1558,7 @@ "signature": [ "TaskPayloadType" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1590,7 +1572,7 @@ "signature": [ "{ startedAt: Date | null; retryAt: Date | null; }" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1610,7 +1592,7 @@ "text": "CancellationToken" } ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false }, @@ -1624,7 +1606,7 @@ "signature": [ "Writable" ], - "path": "packages/kbn-reporting/server/types.ts", + "path": "src/platform/packages/private/kbn-reporting/server/types.ts", "deprecated": false, "trackAdoption": false } @@ -1641,7 +1623,7 @@ "signature": [ "\"7.14.0\"" ], - "path": "packages/kbn-reporting/server/constants.ts", + "path": "src/platform/packages/private/kbn-reporting/server/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2009,7 +1991,7 @@ }, "; }>; }>" ], - "path": "packages/kbn-reporting/server/config_schema.ts", + "path": "src/platform/packages/private/kbn-reporting/server/config_schema.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_reporting_server.mdx b/api_docs/kbn_reporting_server.mdx index a67e8db8b9d0a..82c453ca5dcdc 100644 --- a/api_docs/kbn_reporting_server.mdx +++ b/api_docs/kbn_reporting_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-reporting-server title: "@kbn/reporting-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/reporting-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/reporting-server'] --- import kbnReportingServerObj from './kbn_reporting_server.devdocs.json'; diff --git a/api_docs/kbn_resizable_layout.mdx b/api_docs/kbn_resizable_layout.mdx index bc8b948c44d5e..fc6413b20331d 100644 --- a/api_docs/kbn_resizable_layout.mdx +++ b/api_docs/kbn_resizable_layout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-resizable-layout title: "@kbn/resizable-layout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/resizable-layout plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/resizable-layout'] --- import kbnResizableLayoutObj from './kbn_resizable_layout.devdocs.json'; diff --git a/api_docs/kbn_response_ops_feature_flag_service.mdx b/api_docs/kbn_response_ops_feature_flag_service.mdx index 26c4ceff5a8a9..cecc6b15a759a 100644 --- a/api_docs/kbn_response_ops_feature_flag_service.mdx +++ b/api_docs/kbn_response_ops_feature_flag_service.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-response-ops-feature-flag-service title: "@kbn/response-ops-feature-flag-service" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/response-ops-feature-flag-service plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/response-ops-feature-flag-service'] --- import kbnResponseOpsFeatureFlagServiceObj from './kbn_response_ops_feature_flag_service.devdocs.json'; diff --git a/api_docs/kbn_response_ops_rule_form.devdocs.json b/api_docs/kbn_response_ops_rule_form.devdocs.json index a2d8794847a28..1ff2e0093341f 100644 --- a/api_docs/kbn_response_ops_rule_form.devdocs.json +++ b/api_docs/kbn_response_ops_rule_form.devdocs.json @@ -1352,13 +1352,7 @@ "label": "settings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.SettingsStart", - "text": "SettingsStart" - } + "SettingsStart" ], "path": "packages/response-ops/rule_form/src/types.ts", "deprecated": false, diff --git a/api_docs/kbn_response_ops_rule_form.mdx b/api_docs/kbn_response_ops_rule_form.mdx index 1a4f66c98c10b..7dfbff17145be 100644 --- a/api_docs/kbn_response_ops_rule_form.mdx +++ b/api_docs/kbn_response_ops_rule_form.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-response-ops-rule-form title: "@kbn/response-ops-rule-form" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/response-ops-rule-form plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/response-ops-rule-form'] --- import kbnResponseOpsRuleFormObj from './kbn_response_ops_rule_form.devdocs.json'; diff --git a/api_docs/kbn_response_ops_rule_params.mdx b/api_docs/kbn_response_ops_rule_params.mdx index b42b4b603de28..5404d56a66ca7 100644 --- a/api_docs/kbn_response_ops_rule_params.mdx +++ b/api_docs/kbn_response_ops_rule_params.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-response-ops-rule-params title: "@kbn/response-ops-rule-params" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/response-ops-rule-params plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/response-ops-rule-params'] --- import kbnResponseOpsRuleParamsObj from './kbn_response_ops_rule_params.devdocs.json'; diff --git a/api_docs/kbn_rison.mdx b/api_docs/kbn_rison.mdx index ae98a7d4c7cf0..7bc98caff7a18 100644 --- a/api_docs/kbn_rison.mdx +++ b/api_docs/kbn_rison.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-rison title: "@kbn/rison" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/rison plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/rison'] --- import kbnRisonObj from './kbn_rison.devdocs.json'; diff --git a/api_docs/kbn_rollup.mdx b/api_docs/kbn_rollup.mdx index 5a12d3964308c..ede31394906ed 100644 --- a/api_docs/kbn_rollup.mdx +++ b/api_docs/kbn_rollup.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-rollup title: "@kbn/rollup" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/rollup plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/rollup'] --- import kbnRollupObj from './kbn_rollup.devdocs.json'; diff --git a/api_docs/kbn_router_to_openapispec.mdx b/api_docs/kbn_router_to_openapispec.mdx index f67518503bccb..d956e715439fd 100644 --- a/api_docs/kbn_router_to_openapispec.mdx +++ b/api_docs/kbn_router_to_openapispec.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-router-to-openapispec title: "@kbn/router-to-openapispec" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/router-to-openapispec plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/router-to-openapispec'] --- import kbnRouterToOpenapispecObj from './kbn_router_to_openapispec.devdocs.json'; diff --git a/api_docs/kbn_router_utils.mdx b/api_docs/kbn_router_utils.mdx index 0e9a84516056c..e1ff59c66c9d4 100644 --- a/api_docs/kbn_router_utils.mdx +++ b/api_docs/kbn_router_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-router-utils title: "@kbn/router-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/router-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/router-utils'] --- import kbnRouterUtilsObj from './kbn_router_utils.devdocs.json'; diff --git a/api_docs/kbn_rrule.devdocs.json b/api_docs/kbn_rrule.devdocs.json index 3637654831075..a23407ad0bb04 100644 --- a/api_docs/kbn_rrule.devdocs.json +++ b/api_docs/kbn_rrule.devdocs.json @@ -51,7 +51,7 @@ "label": "options", "description": [], "signature": [ - "Options" + "ConstructorOptions" ], "path": "src/platform/packages/shared/kbn-rrule/rrule.ts", "deprecated": false, @@ -218,7 +218,7 @@ "tags": [], "label": "Frequency", "description": [], - "path": "src/platform/packages/shared/kbn-rrule/rrule.ts", + "path": "src/platform/packages/shared/kbn-rrule/types.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -230,7 +230,7 @@ "tags": [], "label": "Weekday", "description": [], - "path": "src/platform/packages/shared/kbn-rrule/rrule.ts", + "path": "src/platform/packages/shared/kbn-rrule/types.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -239,15 +239,25 @@ "misc": [ { "parentPluginId": "@kbn/rrule", - "id": "def-common.ConstructorOptions", + "id": "def-common.Options", "type": "Type", "tags": [], - "label": "ConstructorOptions", + "label": "Options", "description": [], "signature": [ - "Omit & { byweekday?: (string | number)[] | null | undefined; wkst?: number | \"MO\" | \"TU\" | \"WE\" | \"TH\" | \"FR\" | \"SA\" | \"SU\" | null | undefined; }" + "Omit<", + "IterOptions", + ", \"refDT\"> & { dtstart: Date; freq?: ", + { + "pluginId": "@kbn/rrule", + "scope": "common", + "docId": "kibKbnRrulePluginApi", + "section": "def-common.Frequency", + "text": "Frequency" + }, + " | undefined; interval?: number | undefined; until?: Date | null | undefined; count?: number | undefined; tzid: string; }" ], - "path": "src/platform/packages/shared/kbn-rrule/rrule.ts", + "path": "src/platform/packages/shared/kbn-rrule/types.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -262,7 +272,7 @@ "signature": [ "\"MO\" | \"TU\" | \"WE\" | \"TH\" | \"FR\" | \"SA\" | \"SU\"" ], - "path": "src/platform/packages/shared/kbn-rrule/index.ts", + "path": "src/platform/packages/shared/kbn-rrule/types.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_rrule.mdx b/api_docs/kbn_rrule.mdx index eb6cb327a3033..5fe1aa48409f2 100644 --- a/api_docs/kbn_rrule.mdx +++ b/api_docs/kbn_rrule.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-rrule title: "@kbn/rrule" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/rrule plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/rrule'] --- import kbnRruleObj from './kbn_rrule.devdocs.json'; diff --git a/api_docs/kbn_rule_data_utils.mdx b/api_docs/kbn_rule_data_utils.mdx index f7bb0f72fcd3f..4c1caff0931fd 100644 --- a/api_docs/kbn_rule_data_utils.mdx +++ b/api_docs/kbn_rule_data_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-rule-data-utils title: "@kbn/rule-data-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/rule-data-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/rule-data-utils'] --- import kbnRuleDataUtilsObj from './kbn_rule_data_utils.devdocs.json'; diff --git a/api_docs/kbn_saved_objects_settings.mdx b/api_docs/kbn_saved_objects_settings.mdx index 9643b6acb7755..1e461d456fc69 100644 --- a/api_docs/kbn_saved_objects_settings.mdx +++ b/api_docs/kbn_saved_objects_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-saved-objects-settings title: "@kbn/saved-objects-settings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/saved-objects-settings plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/saved-objects-settings'] --- import kbnSavedObjectsSettingsObj from './kbn_saved_objects_settings.devdocs.json'; diff --git a/api_docs/kbn_saved_search_component.mdx b/api_docs/kbn_saved_search_component.mdx index 901c9793e8c8d..2f8461e0930e7 100644 --- a/api_docs/kbn_saved_search_component.mdx +++ b/api_docs/kbn_saved_search_component.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-saved-search-component title: "@kbn/saved-search-component" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/saved-search-component plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/saved-search-component'] --- import kbnSavedSearchComponentObj from './kbn_saved_search_component.devdocs.json'; diff --git a/api_docs/kbn_scout.mdx b/api_docs/kbn_scout.mdx index 42381cb6b1bfd..6b06ee1f42d44 100644 --- a/api_docs/kbn_scout.mdx +++ b/api_docs/kbn_scout.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-scout title: "@kbn/scout" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/scout plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/scout'] --- import kbnScoutObj from './kbn_scout.devdocs.json'; diff --git a/api_docs/kbn_scout_info.mdx b/api_docs/kbn_scout_info.mdx index 81bfacb771406..66324ce11bf60 100644 --- a/api_docs/kbn_scout_info.mdx +++ b/api_docs/kbn_scout_info.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-scout-info title: "@kbn/scout-info" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/scout-info plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/scout-info'] --- import kbnScoutInfoObj from './kbn_scout_info.devdocs.json'; diff --git a/api_docs/kbn_scout_reporting.mdx b/api_docs/kbn_scout_reporting.mdx index de039e9099bd2..8be276102cba9 100644 --- a/api_docs/kbn_scout_reporting.mdx +++ b/api_docs/kbn_scout_reporting.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-scout-reporting title: "@kbn/scout-reporting" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/scout-reporting plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/scout-reporting'] --- import kbnScoutReportingObj from './kbn_scout_reporting.devdocs.json'; diff --git a/api_docs/kbn_screenshotting_server.devdocs.json b/api_docs/kbn_screenshotting_server.devdocs.json index 0765d90fb39bc..306459ce77084 100644 --- a/api_docs/kbn_screenshotting_server.devdocs.json +++ b/api_docs/kbn_screenshotting_server.devdocs.json @@ -17,7 +17,7 @@ "tags": [], "label": "ChromiumArchivePaths", "description": [], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -31,7 +31,7 @@ "signature": [ "(CustomPackageInfo | CommonPackageInfo)[]" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false }, @@ -42,7 +42,7 @@ "tags": [], "label": "archivesPath", "description": [], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false }, @@ -72,7 +72,7 @@ }, " | undefined" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -86,7 +86,7 @@ "signature": [ "string" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -101,7 +101,7 @@ "signature": [ "string" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -123,7 +123,7 @@ }, "[]" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -149,7 +149,7 @@ }, ") => string" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -169,7 +169,7 @@ "text": "PackageInfo" } ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -187,7 +187,7 @@ "signature": [ "() => string[]" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -211,7 +211,7 @@ }, ") => string" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -231,7 +231,7 @@ "text": "PackageInfo" } ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -257,7 +257,7 @@ }, ", chromiumPath: string) => string" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -277,7 +277,7 @@ "text": "PackageInfo" } ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -292,7 +292,7 @@ "signature": [ "string" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -315,7 +315,7 @@ "signature": [ "({ userDataDir, disableSandbox, windowSize, proxy: proxyConfig, }: LaunchArgs) => string[]" ], - "path": "packages/kbn-screenshotting-server/src/args.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/args.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -329,7 +329,7 @@ "signature": [ "LaunchArgs" ], - "path": "packages/kbn-screenshotting-server/src/args.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/args.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -356,7 +356,7 @@ }, ", config: Readonly<{} & { enabled: boolean; capture: Readonly<{ loadDelay?: number | moment.Duration | undefined; } & { zoom: number; timeouts: Readonly<{} & { renderComplete: number | moment.Duration; openUrl: number | moment.Duration; waitForElements: number | moment.Duration; }>; }>; browser: Readonly<{} & { autoDownload: boolean; chromium: Readonly<{ disableSandbox?: boolean | undefined; } & { proxy: Readonly<{ server?: string | undefined; bypass?: string[] | undefined; } & { enabled: boolean; }>; }>; }>; networkPolicy: Readonly<{} & { enabled: boolean; rules: Readonly<{ host?: string | undefined; protocol?: string | undefined; } & { allow: boolean; }>[]; }>; poolSize: number; }>) => Promise; }>; browser: Readonly<{} & { autoDownload: boolean; chromium: Readonly<{ disableSandbox?: boolean | undefined; } & { proxy: Readonly<{ server?: string | undefined; bypass?: string[] | undefined; } & { enabled: boolean; }>; }>; }>; networkPolicy: Readonly<{} & { enabled: boolean; rules: Readonly<{ host?: string | undefined; protocol?: string | undefined; } & { allow: boolean; }>[]; }>; poolSize: number; }>>" ], - "path": "packages/kbn-screenshotting-server/src/config/create_config.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/config/create_config.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -376,7 +376,7 @@ "text": "Logger" } ], - "path": "packages/kbn-screenshotting-server/src/config/create_config.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/config/create_config.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -391,7 +391,7 @@ "signature": [ "Readonly<{} & { enabled: boolean; capture: Readonly<{ loadDelay?: number | moment.Duration | undefined; } & { zoom: number; timeouts: Readonly<{} & { renderComplete: number | moment.Duration; openUrl: number | moment.Duration; waitForElements: number | moment.Duration; }>; }>; browser: Readonly<{} & { autoDownload: boolean; chromium: Readonly<{ disableSandbox?: boolean | undefined; } & { proxy: Readonly<{ server?: string | undefined; bypass?: string[] | undefined; } & { enabled: boolean; }>; }>; }>; networkPolicy: Readonly<{} & { enabled: boolean; rules: Readonly<{ host?: string | undefined; protocol?: string | undefined; } & { allow: boolean; }>[]; }>; poolSize: number; }>" ], - "path": "packages/kbn-screenshotting-server/src/config/create_config.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/config/create_config.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -412,7 +412,7 @@ "signature": [ "(value: number | moment.Duration) => number" ], - "path": "packages/kbn-screenshotting-server/src/config/index.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/config/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -426,7 +426,7 @@ "signature": [ "number | moment.Duration" ], - "path": "packages/kbn-screenshotting-server/src/config/index.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/config/index.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -452,7 +452,7 @@ "text": "PackageInfo" } ], - "path": "packages/kbn-screenshotting-server/src/get_chromium_package.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/get_chromium_package.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -468,7 +468,7 @@ "tags": [], "label": "PackageInfo", "description": [], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -482,7 +482,7 @@ "signature": [ "\"linux\" | \"darwin\" | \"win32\"" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false }, @@ -496,7 +496,7 @@ "signature": [ "\"x64\" | \"arm64\"" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false }, @@ -507,7 +507,7 @@ "tags": [], "label": "archiveFilename", "description": [], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false }, @@ -518,7 +518,7 @@ "tags": [], "label": "archiveChecksum", "description": [], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false }, @@ -529,7 +529,7 @@ "tags": [], "label": "binaryChecksum", "description": [], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false }, @@ -540,7 +540,7 @@ "tags": [], "label": "binaryRelativePath", "description": [], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false }, @@ -551,7 +551,7 @@ "tags": [], "label": "isPreInstalled", "description": [], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false }, @@ -565,7 +565,7 @@ "signature": [ "\"custom\" | \"common\"" ], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false }, @@ -576,7 +576,7 @@ "tags": [], "label": "revision", "description": [], - "path": "packages/kbn-screenshotting-server/src/paths.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/paths.ts", "deprecated": false, "trackAdoption": false } @@ -596,7 +596,7 @@ "signature": [ "{ readonly enabled: boolean; readonly capture: Readonly<{ loadDelay?: number | moment.Duration | undefined; } & { zoom: number; timeouts: Readonly<{} & { renderComplete: number | moment.Duration; openUrl: number | moment.Duration; waitForElements: number | moment.Duration; }>; }>; readonly browser: Readonly<{} & { autoDownload: boolean; chromium: Readonly<{ disableSandbox?: boolean | undefined; } & { proxy: Readonly<{ server?: string | undefined; bypass?: string[] | undefined; } & { enabled: boolean; }>; }>; }>; readonly networkPolicy: Readonly<{} & { enabled: boolean; rules: Readonly<{ host?: string | undefined; protocol?: string | undefined; } & { allow: boolean; }>[]; }>; readonly poolSize: number; }" ], - "path": "packages/kbn-screenshotting-server/src/config/schema.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/config/schema.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -780,7 +780,7 @@ }, "; }>" ], - "path": "packages/kbn-screenshotting-server/src/config/schema.ts", + "path": "src/platform/packages/private/kbn-screenshotting-server/src/config/schema.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_screenshotting_server.mdx b/api_docs/kbn_screenshotting_server.mdx index 4cb6ae29a7d8d..b0b9a63cd1a54 100644 --- a/api_docs/kbn_screenshotting_server.mdx +++ b/api_docs/kbn_screenshotting_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-screenshotting-server title: "@kbn/screenshotting-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/screenshotting-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/screenshotting-server'] --- import kbnScreenshottingServerObj from './kbn_screenshotting_server.devdocs.json'; diff --git a/api_docs/kbn_search_api_keys_components.mdx b/api_docs/kbn_search_api_keys_components.mdx index 570e719f8f843..e28702a3cbea8 100644 --- a/api_docs/kbn_search_api_keys_components.mdx +++ b/api_docs/kbn_search_api_keys_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-api-keys-components title: "@kbn/search-api-keys-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-api-keys-components plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-api-keys-components'] --- import kbnSearchApiKeysComponentsObj from './kbn_search_api_keys_components.devdocs.json'; diff --git a/api_docs/kbn_search_api_keys_server.mdx b/api_docs/kbn_search_api_keys_server.mdx index 0609e0733dcfa..81ae30724e25e 100644 --- a/api_docs/kbn_search_api_keys_server.mdx +++ b/api_docs/kbn_search_api_keys_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-api-keys-server title: "@kbn/search-api-keys-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-api-keys-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-api-keys-server'] --- import kbnSearchApiKeysServerObj from './kbn_search_api_keys_server.devdocs.json'; diff --git a/api_docs/kbn_search_api_panels.mdx b/api_docs/kbn_search_api_panels.mdx index dcae1b9538604..37ffbd8652fe6 100644 --- a/api_docs/kbn_search_api_panels.mdx +++ b/api_docs/kbn_search_api_panels.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-api-panels title: "@kbn/search-api-panels" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-api-panels plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-api-panels'] --- import kbnSearchApiPanelsObj from './kbn_search_api_panels.devdocs.json'; diff --git a/api_docs/kbn_search_connectors.mdx b/api_docs/kbn_search_connectors.mdx index 55be27114a654..a1e8b12dcbccf 100644 --- a/api_docs/kbn_search_connectors.mdx +++ b/api_docs/kbn_search_connectors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-connectors title: "@kbn/search-connectors" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-connectors plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-connectors'] --- import kbnSearchConnectorsObj from './kbn_search_connectors.devdocs.json'; diff --git a/api_docs/kbn_search_errors.mdx b/api_docs/kbn_search_errors.mdx index 1557bd4242147..2071b38e9d657 100644 --- a/api_docs/kbn_search_errors.mdx +++ b/api_docs/kbn_search_errors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-errors title: "@kbn/search-errors" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-errors plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-errors'] --- import kbnSearchErrorsObj from './kbn_search_errors.devdocs.json'; diff --git a/api_docs/kbn_search_index_documents.mdx b/api_docs/kbn_search_index_documents.mdx index d86888dc4a109..f08dc32ad9b2d 100644 --- a/api_docs/kbn_search_index_documents.mdx +++ b/api_docs/kbn_search_index_documents.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-index-documents title: "@kbn/search-index-documents" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-index-documents plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-index-documents'] --- import kbnSearchIndexDocumentsObj from './kbn_search_index_documents.devdocs.json'; diff --git a/api_docs/kbn_search_response_warnings.mdx b/api_docs/kbn_search_response_warnings.mdx index 4774e9baaf513..75ca2ad42c58a 100644 --- a/api_docs/kbn_search_response_warnings.mdx +++ b/api_docs/kbn_search_response_warnings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-response-warnings title: "@kbn/search-response-warnings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-response-warnings plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-response-warnings'] --- import kbnSearchResponseWarningsObj from './kbn_search_response_warnings.devdocs.json'; diff --git a/api_docs/kbn_search_shared_ui.mdx b/api_docs/kbn_search_shared_ui.mdx index ba500c53f0042..7cb52ab3c57e6 100644 --- a/api_docs/kbn_search_shared_ui.mdx +++ b/api_docs/kbn_search_shared_ui.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-shared-ui title: "@kbn/search-shared-ui" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-shared-ui plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-shared-ui'] --- import kbnSearchSharedUiObj from './kbn_search_shared_ui.devdocs.json'; diff --git a/api_docs/kbn_search_types.mdx b/api_docs/kbn_search_types.mdx index d9fa682066f9d..ba1f7865d9122 100644 --- a/api_docs/kbn_search_types.mdx +++ b/api_docs/kbn_search_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-search-types title: "@kbn/search-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/search-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/search-types'] --- import kbnSearchTypesObj from './kbn_search_types.devdocs.json'; diff --git a/api_docs/kbn_security_api_key_management.mdx b/api_docs/kbn_security_api_key_management.mdx index 60b701d29b128..bc4a8e72ac8d0 100644 --- a/api_docs/kbn_security_api_key_management.mdx +++ b/api_docs/kbn_security_api_key_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-api-key-management title: "@kbn/security-api-key-management" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-api-key-management plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-api-key-management'] --- import kbnSecurityApiKeyManagementObj from './kbn_security_api_key_management.devdocs.json'; diff --git a/api_docs/kbn_security_authorization_core.mdx b/api_docs/kbn_security_authorization_core.mdx index e8f85a3d2feb3..0e8d4bbbb9e68 100644 --- a/api_docs/kbn_security_authorization_core.mdx +++ b/api_docs/kbn_security_authorization_core.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-authorization-core title: "@kbn/security-authorization-core" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-authorization-core plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-authorization-core'] --- import kbnSecurityAuthorizationCoreObj from './kbn_security_authorization_core.devdocs.json'; diff --git a/api_docs/kbn_security_authorization_core_common.mdx b/api_docs/kbn_security_authorization_core_common.mdx index f6f2132d7edac..da5cdfb57bd02 100644 --- a/api_docs/kbn_security_authorization_core_common.mdx +++ b/api_docs/kbn_security_authorization_core_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-authorization-core-common title: "@kbn/security-authorization-core-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-authorization-core-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-authorization-core-common'] --- import kbnSecurityAuthorizationCoreCommonObj from './kbn_security_authorization_core_common.devdocs.json'; diff --git a/api_docs/kbn_security_form_components.mdx b/api_docs/kbn_security_form_components.mdx index 5c080248901f7..7546b00f6d993 100644 --- a/api_docs/kbn_security_form_components.mdx +++ b/api_docs/kbn_security_form_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-form-components title: "@kbn/security-form-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-form-components plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-form-components'] --- import kbnSecurityFormComponentsObj from './kbn_security_form_components.devdocs.json'; diff --git a/api_docs/kbn_security_hardening.mdx b/api_docs/kbn_security_hardening.mdx index 7558349bc8ddb..7a9d27764fd40 100644 --- a/api_docs/kbn_security_hardening.mdx +++ b/api_docs/kbn_security_hardening.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-hardening title: "@kbn/security-hardening" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-hardening plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-hardening'] --- import kbnSecurityHardeningObj from './kbn_security_hardening.devdocs.json'; diff --git a/api_docs/kbn_security_plugin_types_common.mdx b/api_docs/kbn_security_plugin_types_common.mdx index c9ff244423b48..7a1c8bb8d24d2 100644 --- a/api_docs/kbn_security_plugin_types_common.mdx +++ b/api_docs/kbn_security_plugin_types_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-plugin-types-common title: "@kbn/security-plugin-types-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-plugin-types-common plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-plugin-types-common'] --- import kbnSecurityPluginTypesCommonObj from './kbn_security_plugin_types_common.devdocs.json'; diff --git a/api_docs/kbn_security_plugin_types_public.mdx b/api_docs/kbn_security_plugin_types_public.mdx index e304763a51781..bee53ee5d9563 100644 --- a/api_docs/kbn_security_plugin_types_public.mdx +++ b/api_docs/kbn_security_plugin_types_public.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-plugin-types-public title: "@kbn/security-plugin-types-public" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-plugin-types-public plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-plugin-types-public'] --- import kbnSecurityPluginTypesPublicObj from './kbn_security_plugin_types_public.devdocs.json'; diff --git a/api_docs/kbn_security_plugin_types_server.mdx b/api_docs/kbn_security_plugin_types_server.mdx index 3bebcbfdca4ae..21f672465e2a0 100644 --- a/api_docs/kbn_security_plugin_types_server.mdx +++ b/api_docs/kbn_security_plugin_types_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-plugin-types-server title: "@kbn/security-plugin-types-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-plugin-types-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-plugin-types-server'] --- import kbnSecurityPluginTypesServerObj from './kbn_security_plugin_types_server.devdocs.json'; diff --git a/api_docs/kbn_security_role_management_model.mdx b/api_docs/kbn_security_role_management_model.mdx index cfe31b230ec6f..53910d2c260e5 100644 --- a/api_docs/kbn_security_role_management_model.mdx +++ b/api_docs/kbn_security_role_management_model.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-role-management-model title: "@kbn/security-role-management-model" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-role-management-model plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-role-management-model'] --- import kbnSecurityRoleManagementModelObj from './kbn_security_role_management_model.devdocs.json'; diff --git a/api_docs/kbn_security_solution_distribution_bar.mdx b/api_docs/kbn_security_solution_distribution_bar.mdx index 91acc95aa0b0f..15a7f881e4391 100644 --- a/api_docs/kbn_security_solution_distribution_bar.mdx +++ b/api_docs/kbn_security_solution_distribution_bar.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-solution-distribution-bar title: "@kbn/security-solution-distribution-bar" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-solution-distribution-bar plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-solution-distribution-bar'] --- import kbnSecuritySolutionDistributionBarObj from './kbn_security_solution_distribution_bar.devdocs.json'; diff --git a/api_docs/kbn_security_solution_features.mdx b/api_docs/kbn_security_solution_features.mdx index 615116a009043..41d992810a45e 100644 --- a/api_docs/kbn_security_solution_features.mdx +++ b/api_docs/kbn_security_solution_features.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-solution-features title: "@kbn/security-solution-features" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-solution-features plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-solution-features'] --- import kbnSecuritySolutionFeaturesObj from './kbn_security_solution_features.devdocs.json'; diff --git a/api_docs/kbn_security_solution_navigation.mdx b/api_docs/kbn_security_solution_navigation.mdx index 0d09e07ca3dd7..905fe6ae6383f 100644 --- a/api_docs/kbn_security_solution_navigation.mdx +++ b/api_docs/kbn_security_solution_navigation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-solution-navigation title: "@kbn/security-solution-navigation" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-solution-navigation plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-solution-navigation'] --- import kbnSecuritySolutionNavigationObj from './kbn_security_solution_navigation.devdocs.json'; diff --git a/api_docs/kbn_security_solution_side_nav.mdx b/api_docs/kbn_security_solution_side_nav.mdx index 5358a81dc098d..47a2284c2d2e0 100644 --- a/api_docs/kbn_security_solution_side_nav.mdx +++ b/api_docs/kbn_security_solution_side_nav.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-solution-side-nav title: "@kbn/security-solution-side-nav" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-solution-side-nav plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-solution-side-nav'] --- import kbnSecuritySolutionSideNavObj from './kbn_security_solution_side_nav.devdocs.json'; diff --git a/api_docs/kbn_security_solution_storybook_config.mdx b/api_docs/kbn_security_solution_storybook_config.mdx index 79fee5b2550fd..c99404a6ad9eb 100644 --- a/api_docs/kbn_security_solution_storybook_config.mdx +++ b/api_docs/kbn_security_solution_storybook_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-solution-storybook-config title: "@kbn/security-solution-storybook-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-solution-storybook-config plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-solution-storybook-config'] --- import kbnSecuritySolutionStorybookConfigObj from './kbn_security_solution_storybook_config.devdocs.json'; diff --git a/api_docs/kbn_security_ui_components.mdx b/api_docs/kbn_security_ui_components.mdx index 6d90f921efa72..996c0a11ef4cc 100644 --- a/api_docs/kbn_security_ui_components.mdx +++ b/api_docs/kbn_security_ui_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-security-ui-components title: "@kbn/security-ui-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/security-ui-components plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/security-ui-components'] --- import kbnSecurityUiComponentsObj from './kbn_security_ui_components.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_autocomplete.mdx b/api_docs/kbn_securitysolution_autocomplete.mdx index 6c2fee879825a..d2349cbcd31a3 100644 --- a/api_docs/kbn_securitysolution_autocomplete.mdx +++ b/api_docs/kbn_securitysolution_autocomplete.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-autocomplete title: "@kbn/securitysolution-autocomplete" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-autocomplete plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-autocomplete'] --- import kbnSecuritysolutionAutocompleteObj from './kbn_securitysolution_autocomplete.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_data_table.mdx b/api_docs/kbn_securitysolution_data_table.mdx index 123ad7e1d4bfc..0f231783c051d 100644 --- a/api_docs/kbn_securitysolution_data_table.mdx +++ b/api_docs/kbn_securitysolution_data_table.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-data-table title: "@kbn/securitysolution-data-table" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-data-table plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-data-table'] --- import kbnSecuritysolutionDataTableObj from './kbn_securitysolution_data_table.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_ecs.mdx b/api_docs/kbn_securitysolution_ecs.mdx index 7effd93a5b353..72e31f92940e1 100644 --- a/api_docs/kbn_securitysolution_ecs.mdx +++ b/api_docs/kbn_securitysolution_ecs.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-ecs title: "@kbn/securitysolution-ecs" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-ecs plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-ecs'] --- import kbnSecuritysolutionEcsObj from './kbn_securitysolution_ecs.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_es_utils.mdx b/api_docs/kbn_securitysolution_es_utils.mdx index 61979df520c25..b0a7b1862cc6e 100644 --- a/api_docs/kbn_securitysolution_es_utils.mdx +++ b/api_docs/kbn_securitysolution_es_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-es-utils title: "@kbn/securitysolution-es-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-es-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-es-utils'] --- import kbnSecuritysolutionEsUtilsObj from './kbn_securitysolution_es_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_exception_list_components.mdx b/api_docs/kbn_securitysolution_exception_list_components.mdx index 4cd418857509f..f6d6cd13c5464 100644 --- a/api_docs/kbn_securitysolution_exception_list_components.mdx +++ b/api_docs/kbn_securitysolution_exception_list_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-exception-list-components title: "@kbn/securitysolution-exception-list-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-exception-list-components plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-exception-list-components'] --- import kbnSecuritysolutionExceptionListComponentsObj from './kbn_securitysolution_exception_list_components.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_hook_utils.mdx b/api_docs/kbn_securitysolution_hook_utils.mdx index 71eaa27cbc62c..c8be0289959cf 100644 --- a/api_docs/kbn_securitysolution_hook_utils.mdx +++ b/api_docs/kbn_securitysolution_hook_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-hook-utils title: "@kbn/securitysolution-hook-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-hook-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-hook-utils'] --- import kbnSecuritysolutionHookUtilsObj from './kbn_securitysolution_hook_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx b/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx index d71a9af986a76..416de9d4eb027 100644 --- a/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-alerting-types title: "@kbn/securitysolution-io-ts-alerting-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-alerting-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-alerting-types'] --- import kbnSecuritysolutionIoTsAlertingTypesObj from './kbn_securitysolution_io_ts_alerting_types.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_list_types.mdx b/api_docs/kbn_securitysolution_io_ts_list_types.mdx index 38e5aedb027c6..b3122671d5284 100644 --- a/api_docs/kbn_securitysolution_io_ts_list_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_list_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-list-types title: "@kbn/securitysolution-io-ts-list-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-list-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-list-types'] --- import kbnSecuritysolutionIoTsListTypesObj from './kbn_securitysolution_io_ts_list_types.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_types.mdx b/api_docs/kbn_securitysolution_io_ts_types.mdx index fe6d8a6cb0284..08739e5439903 100644 --- a/api_docs/kbn_securitysolution_io_ts_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-types title: "@kbn/securitysolution-io-ts-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-types'] --- import kbnSecuritysolutionIoTsTypesObj from './kbn_securitysolution_io_ts_types.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_utils.mdx b/api_docs/kbn_securitysolution_io_ts_utils.mdx index 0808abe1527a1..81b9a8b1eae4a 100644 --- a/api_docs/kbn_securitysolution_io_ts_utils.mdx +++ b/api_docs/kbn_securitysolution_io_ts_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-utils title: "@kbn/securitysolution-io-ts-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-utils'] --- import kbnSecuritysolutionIoTsUtilsObj from './kbn_securitysolution_io_ts_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_api.mdx b/api_docs/kbn_securitysolution_list_api.mdx index 5d234eaa12e4b..0c81c052f89fd 100644 --- a/api_docs/kbn_securitysolution_list_api.mdx +++ b/api_docs/kbn_securitysolution_list_api.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-api title: "@kbn/securitysolution-list-api" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-api plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-api'] --- import kbnSecuritysolutionListApiObj from './kbn_securitysolution_list_api.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_constants.mdx b/api_docs/kbn_securitysolution_list_constants.mdx index 03a2bd4ef6734..6f19f7872a75e 100644 --- a/api_docs/kbn_securitysolution_list_constants.mdx +++ b/api_docs/kbn_securitysolution_list_constants.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-constants title: "@kbn/securitysolution-list-constants" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-constants plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-constants'] --- import kbnSecuritysolutionListConstantsObj from './kbn_securitysolution_list_constants.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_hooks.mdx b/api_docs/kbn_securitysolution_list_hooks.mdx index b0ec31358b20b..e4e4749863f76 100644 --- a/api_docs/kbn_securitysolution_list_hooks.mdx +++ b/api_docs/kbn_securitysolution_list_hooks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-hooks title: "@kbn/securitysolution-list-hooks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-hooks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-hooks'] --- import kbnSecuritysolutionListHooksObj from './kbn_securitysolution_list_hooks.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_utils.mdx b/api_docs/kbn_securitysolution_list_utils.mdx index 8084d3c568e44..6980c68847a44 100644 --- a/api_docs/kbn_securitysolution_list_utils.mdx +++ b/api_docs/kbn_securitysolution_list_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-utils title: "@kbn/securitysolution-list-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-utils'] --- import kbnSecuritysolutionListUtilsObj from './kbn_securitysolution_list_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_rules.mdx b/api_docs/kbn_securitysolution_rules.mdx index 60ece20180312..4c3f226732f52 100644 --- a/api_docs/kbn_securitysolution_rules.mdx +++ b/api_docs/kbn_securitysolution_rules.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-rules title: "@kbn/securitysolution-rules" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-rules plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-rules'] --- import kbnSecuritysolutionRulesObj from './kbn_securitysolution_rules.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_t_grid.mdx b/api_docs/kbn_securitysolution_t_grid.mdx index 927196229db68..c86d05bbf031e 100644 --- a/api_docs/kbn_securitysolution_t_grid.mdx +++ b/api_docs/kbn_securitysolution_t_grid.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-t-grid title: "@kbn/securitysolution-t-grid" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-t-grid plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-t-grid'] --- import kbnSecuritysolutionTGridObj from './kbn_securitysolution_t_grid.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_utils.mdx b/api_docs/kbn_securitysolution_utils.mdx index 22461358e1ae6..698b262ca8bf5 100644 --- a/api_docs/kbn_securitysolution_utils.mdx +++ b/api_docs/kbn_securitysolution_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-utils title: "@kbn/securitysolution-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-utils'] --- import kbnSecuritysolutionUtilsObj from './kbn_securitysolution_utils.devdocs.json'; diff --git a/api_docs/kbn_server_http_tools.mdx b/api_docs/kbn_server_http_tools.mdx index 26b0c942cb296..e23d73672a4d1 100644 --- a/api_docs/kbn_server_http_tools.mdx +++ b/api_docs/kbn_server_http_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-server-http-tools title: "@kbn/server-http-tools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/server-http-tools plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-http-tools'] --- import kbnServerHttpToolsObj from './kbn_server_http_tools.devdocs.json'; diff --git a/api_docs/kbn_server_route_repository.devdocs.json b/api_docs/kbn_server_route_repository.devdocs.json index 51d0b70d7ecc0..6e07cf839d00d 100644 --- a/api_docs/kbn_server_route_repository.devdocs.json +++ b/api_docs/kbn_server_route_repository.devdocs.json @@ -175,7 +175,7 @@ "signature": [ "({\n core,\n repository,\n logger,\n dependencies,\n}: { core: ", "CoreSetup", - "; repository: Record; repository: Record" + "<{}, unknown>" ], "path": "src/platform/packages/shared/kbn-server-route-repository/src/register_routes.ts", "deprecated": false, @@ -673,7 +673,7 @@ "label": "EndpointOf", "description": [], "signature": [ - "keyof TServerRouteRepository" + "keyof TServerRouteRepository & string" ], "path": "src/platform/packages/shared/kbn-server-route-repository-utils/src/typings.ts", "deprecated": false, diff --git a/api_docs/kbn_server_route_repository.mdx b/api_docs/kbn_server_route_repository.mdx index 078017ea81b3b..33dd026bb8a8c 100644 --- a/api_docs/kbn_server_route_repository.mdx +++ b/api_docs/kbn_server_route_repository.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-server-route-repository title: "@kbn/server-route-repository" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/server-route-repository plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-route-repository'] --- import kbnServerRouteRepositoryObj from './kbn_server_route_repository.devdocs.json'; diff --git a/api_docs/kbn_server_route_repository_client.devdocs.json b/api_docs/kbn_server_route_repository_client.devdocs.json index 67929ef2bed3a..29a219678f29c 100644 --- a/api_docs/kbn_server_route_repository_client.devdocs.json +++ b/api_docs/kbn_server_route_repository_client.devdocs.json @@ -15,7 +15,7 @@ "CoreStart", " | ", "CoreSetup", - ") => ", + "<{}, unknown>) => ", { "pluginId": "@kbn/server-route-repository-utils", "scope": "common", @@ -40,7 +40,7 @@ "CoreStart", " | ", "CoreSetup", - "" + "<{}, unknown>" ], "path": "src/platform/packages/shared/kbn-server-route-repository-client/src/create_repository_client.ts", "deprecated": false, diff --git a/api_docs/kbn_server_route_repository_client.mdx b/api_docs/kbn_server_route_repository_client.mdx index 619a91acc8ffb..945f7068aca48 100644 --- a/api_docs/kbn_server_route_repository_client.mdx +++ b/api_docs/kbn_server_route_repository_client.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-server-route-repository-client title: "@kbn/server-route-repository-client" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/server-route-repository-client plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-route-repository-client'] --- import kbnServerRouteRepositoryClientObj from './kbn_server_route_repository_client.devdocs.json'; diff --git a/api_docs/kbn_server_route_repository_utils.devdocs.json b/api_docs/kbn_server_route_repository_utils.devdocs.json index b8fe10a3f7752..83263172b62d0 100644 --- a/api_docs/kbn_server_route_repository_utils.devdocs.json +++ b/api_docs/kbn_server_route_repository_utils.devdocs.json @@ -486,7 +486,7 @@ "label": "EndpointOf", "description": [], "signature": [ - "keyof TServerRouteRepository" + "keyof TServerRouteRepository & string" ], "path": "src/platform/packages/shared/kbn-server-route-repository-utils/src/typings.ts", "deprecated": false, diff --git a/api_docs/kbn_server_route_repository_utils.mdx b/api_docs/kbn_server_route_repository_utils.mdx index c4ef6718f1f9d..e1f8cb4728307 100644 --- a/api_docs/kbn_server_route_repository_utils.mdx +++ b/api_docs/kbn_server_route_repository_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-server-route-repository-utils title: "@kbn/server-route-repository-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/server-route-repository-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-route-repository-utils'] --- import kbnServerRouteRepositoryUtilsObj from './kbn_server_route_repository_utils.devdocs.json'; diff --git a/api_docs/kbn_serverless_common_settings.mdx b/api_docs/kbn_serverless_common_settings.mdx index 0c306e42c6a37..ca078c09dd4ac 100644 --- a/api_docs/kbn_serverless_common_settings.mdx +++ b/api_docs/kbn_serverless_common_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-common-settings title: "@kbn/serverless-common-settings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-common-settings plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-common-settings'] --- import kbnServerlessCommonSettingsObj from './kbn_serverless_common_settings.devdocs.json'; diff --git a/api_docs/kbn_serverless_observability_settings.mdx b/api_docs/kbn_serverless_observability_settings.mdx index 52bbcf44de617..d74889e4c72c7 100644 --- a/api_docs/kbn_serverless_observability_settings.mdx +++ b/api_docs/kbn_serverless_observability_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-observability-settings title: "@kbn/serverless-observability-settings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-observability-settings plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-observability-settings'] --- import kbnServerlessObservabilitySettingsObj from './kbn_serverless_observability_settings.devdocs.json'; diff --git a/api_docs/kbn_serverless_project_switcher.mdx b/api_docs/kbn_serverless_project_switcher.mdx index 9b1d683834024..ec20cbd28f471 100644 --- a/api_docs/kbn_serverless_project_switcher.mdx +++ b/api_docs/kbn_serverless_project_switcher.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-project-switcher title: "@kbn/serverless-project-switcher" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-project-switcher plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-project-switcher'] --- import kbnServerlessProjectSwitcherObj from './kbn_serverless_project_switcher.devdocs.json'; diff --git a/api_docs/kbn_serverless_search_settings.mdx b/api_docs/kbn_serverless_search_settings.mdx index 5bad82700dfe2..69381f5ad4ed3 100644 --- a/api_docs/kbn_serverless_search_settings.mdx +++ b/api_docs/kbn_serverless_search_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-search-settings title: "@kbn/serverless-search-settings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-search-settings plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-search-settings'] --- import kbnServerlessSearchSettingsObj from './kbn_serverless_search_settings.devdocs.json'; diff --git a/api_docs/kbn_serverless_security_settings.mdx b/api_docs/kbn_serverless_security_settings.mdx index e1248a8ab181c..69f41812d5ac2 100644 --- a/api_docs/kbn_serverless_security_settings.mdx +++ b/api_docs/kbn_serverless_security_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-security-settings title: "@kbn/serverless-security-settings" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-security-settings plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-security-settings'] --- import kbnServerlessSecuritySettingsObj from './kbn_serverless_security_settings.devdocs.json'; diff --git a/api_docs/kbn_serverless_storybook_config.mdx b/api_docs/kbn_serverless_storybook_config.mdx index 0778c7a47a0fc..8fc2333395874 100644 --- a/api_docs/kbn_serverless_storybook_config.mdx +++ b/api_docs/kbn_serverless_storybook_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-serverless-storybook-config title: "@kbn/serverless-storybook-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/serverless-storybook-config plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/serverless-storybook-config'] --- import kbnServerlessStorybookConfigObj from './kbn_serverless_storybook_config.devdocs.json'; diff --git a/api_docs/kbn_shared_svg.mdx b/api_docs/kbn_shared_svg.mdx index e41b14f50e66a..8a011c276f74f 100644 --- a/api_docs/kbn_shared_svg.mdx +++ b/api_docs/kbn_shared_svg.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-svg title: "@kbn/shared-svg" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-svg plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-svg'] --- import kbnSharedSvgObj from './kbn_shared_svg.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_avatar_solution.devdocs.json b/api_docs/kbn_shared_ux_avatar_solution.devdocs.json index 0bddf2dd7defe..4b4d59baf59bd 100644 --- a/api_docs/kbn_shared_ux_avatar_solution.devdocs.json +++ b/api_docs/kbn_shared_ux_avatar_solution.devdocs.json @@ -39,7 +39,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/shared-ux/avatar/solution/src/solution_avatar.tsx", + "path": "src/platform/packages/shared/shared-ux/avatar/solution/src/solution_avatar.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -59,7 +59,7 @@ "text": "KibanaSolutionAvatarProps" } ], - "path": "packages/shared-ux/avatar/solution/src/solution_avatar.tsx", + "path": "src/platform/packages/shared/shared-ux/avatar/solution/src/solution_avatar.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -84,7 +84,7 @@ " | ", "IconTypeProps" ], - "path": "packages/shared-ux/avatar/solution/src/solution_avatar.tsx", + "path": "src/platform/packages/shared/shared-ux/avatar/solution/src/solution_avatar.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_avatar_solution.mdx b/api_docs/kbn_shared_ux_avatar_solution.mdx index 542a1bd5b4ee2..af46687ae2c71 100644 --- a/api_docs/kbn_shared_ux_avatar_solution.mdx +++ b/api_docs/kbn_shared_ux_avatar_solution.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-avatar-solution title: "@kbn/shared-ux-avatar-solution" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-avatar-solution plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-avatar-solution'] --- import kbnSharedUxAvatarSolutionObj from './kbn_shared_ux_avatar_solution.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_button_exit_full_screen.devdocs.json b/api_docs/kbn_shared_ux_button_exit_full_screen.devdocs.json index 40c962e76ac54..f583e9c6cada7 100644 --- a/api_docs/kbn_shared_ux_button_exit_full_screen.devdocs.json +++ b/api_docs/kbn_shared_ux_button_exit_full_screen.devdocs.json @@ -39,7 +39,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/shared-ux/button/exit_full_screen/src/exit_full_screen_button.tsx", + "path": "src/platform/packages/shared/shared-ux/button/exit_full_screen/src/exit_full_screen_button.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -59,7 +59,7 @@ "text": "ExitFullScreenButtonProps" } ], - "path": "packages/shared-ux/button/exit_full_screen/src/exit_full_screen_button.tsx", + "path": "src/platform/packages/shared/shared-ux/button/exit_full_screen/src/exit_full_screen_button.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -82,7 +82,7 @@ "KibanaDependencies", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/button/exit_full_screen/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/button/exit_full_screen/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -98,7 +98,7 @@ "KibanaDependencies", ">" ], - "path": "packages/shared-ux/button/exit_full_screen/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/button/exit_full_screen/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -118,7 +118,7 @@ "description": [ "\nProps for the service-enabled `ExitFullScreenButton` component." ], - "path": "packages/shared-ux/button/exit_full_screen/types.ts", + "path": "src/platform/packages/shared/shared-ux/button/exit_full_screen/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -134,7 +134,7 @@ "signature": [ "(() => void) | undefined" ], - "path": "packages/shared-ux/button/exit_full_screen/types.ts", + "path": "src/platform/packages/shared/shared-ux/button/exit_full_screen/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -152,7 +152,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/shared-ux/button/exit_full_screen/types.ts", + "path": "src/platform/packages/shared/shared-ux/button/exit_full_screen/types.ts", "deprecated": false, "trackAdoption": false } @@ -174,7 +174,7 @@ "signature": [ "KibanaDependencies" ], - "path": "packages/shared-ux/button/exit_full_screen/types.ts", + "path": "src/platform/packages/shared/shared-ux/button/exit_full_screen/types.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_button_exit_full_screen.mdx b/api_docs/kbn_shared_ux_button_exit_full_screen.mdx index cd26697dfb6ab..8f4fe33afa4de 100644 --- a/api_docs/kbn_shared_ux_button_exit_full_screen.mdx +++ b/api_docs/kbn_shared_ux_button_exit_full_screen.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-button-exit-full-screen title: "@kbn/shared-ux-button-exit-full-screen" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-button-exit-full-screen plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-button-exit-full-screen'] --- import kbnSharedUxButtonExitFullScreenObj from './kbn_shared_ux_button_exit_full_screen.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_button_toolbar.devdocs.json b/api_docs/kbn_shared_ux_button_toolbar.devdocs.json index 249f1003dbbf3..ec94e18f655ba 100644 --- a/api_docs/kbn_shared_ux_button_toolbar.devdocs.json +++ b/api_docs/kbn_shared_ux_button_toolbar.devdocs.json @@ -23,7 +23,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -43,7 +43,7 @@ "text": "Props" } ], - "path": "packages/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -72,7 +72,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -92,7 +92,7 @@ "text": "Props" } ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -121,7 +121,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/shared-ux/button_toolbar/src/toolbar/toolbar.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -141,7 +141,7 @@ "text": "Props" } ], - "path": "packages/shared-ux/button_toolbar/src/toolbar/toolbar.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -170,7 +170,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -191,7 +191,7 @@ }, "" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -220,7 +220,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/shared-ux/button_toolbar/src/popover/popover.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -240,7 +240,7 @@ "text": "Props" } ], - "path": "packages/shared-ux/button_toolbar/src/popover/popover.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -260,7 +260,7 @@ "description": [ "\nAn interface representing a single icon button in the `IconButtonGroup`." ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -273,7 +273,7 @@ "description": [ "The accessible button label." ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false }, @@ -289,7 +289,7 @@ "signature": [ "string | React.ComponentType<{}>" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false }, @@ -305,7 +305,7 @@ "signature": [ "() => void" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -323,7 +323,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false }, @@ -339,7 +339,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false }, @@ -355,7 +355,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false }, @@ -371,7 +371,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false }, @@ -387,7 +387,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false } @@ -403,7 +403,7 @@ "description": [ "\nProps for `IconButtonGroup`." ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -416,7 +416,7 @@ "description": [ "Required accessible legend for the whole group" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false }, @@ -439,7 +439,7 @@ }, "[]" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false }, @@ -455,7 +455,7 @@ "signature": [ "\"m\" | \"s\" | \"compressed\" | undefined" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false }, @@ -471,7 +471,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx", "deprecated": false, "trackAdoption": false } @@ -487,7 +487,7 @@ "description": [ "\nProps for a generic toolbar component" ], - "path": "packages/shared-ux/button_toolbar/src/toolbar/toolbar.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -501,7 +501,7 @@ "signature": [ "NamedSlots" ], - "path": "packages/shared-ux/button_toolbar/src/toolbar/toolbar.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx", "deprecated": false, "trackAdoption": false } @@ -523,7 +523,7 @@ "ButtonContentIconSide", "; groupPosition?: ButtonPositions | undefined; hasArrow?: boolean | undefined; }" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -540,7 +540,7 @@ "signature": [ "T extends \"iconButton\" ? ToolbarIconButton : ToolbarStandardButton" ], - "path": "packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -557,7 +557,7 @@ "signature": [ "AllowedButtonProps & Omit & { children: (arg: { closePopover: () => void; }) => React.ReactNode; label: string | number | boolean | React.ReactElement> | Iterable | React.ReactPortal; }" ], - "path": "packages/shared-ux/button_toolbar/src/popover/popover.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -590,7 +590,7 @@ }, ") => React.JSX.Element)" ], - "path": "packages/shared-ux/button_toolbar/src/toolbar/toolbar.tsx", + "path": "src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx", "deprecated": false, "trackAdoption": false, "returnComment": [], diff --git a/api_docs/kbn_shared_ux_button_toolbar.mdx b/api_docs/kbn_shared_ux_button_toolbar.mdx index 95fb5a565b41c..c980891f4cfc3 100644 --- a/api_docs/kbn_shared_ux_button_toolbar.mdx +++ b/api_docs/kbn_shared_ux_button_toolbar.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-button-toolbar title: "@kbn/shared-ux-button-toolbar" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-button-toolbar plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-button-toolbar'] --- import kbnSharedUxButtonToolbarObj from './kbn_shared_ux_button_toolbar.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_card_no_data.devdocs.json b/api_docs/kbn_shared_ux_card_no_data.devdocs.json index c76e26272c96d..ccffc4f96c1c2 100644 --- a/api_docs/kbn_shared_ux_card_no_data.devdocs.json +++ b/api_docs/kbn_shared_ux_card_no_data.devdocs.json @@ -15,7 +15,7 @@ "NoDataCardComponentProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/card/no_data/impl/src/no_data_card.tsx", + "path": "src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -29,7 +29,7 @@ "signature": [ "NoDataCardComponentProps" ], - "path": "packages/shared-ux/card/no_data/impl/src/no_data_card.tsx", + "path": "src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -52,7 +52,7 @@ "NoDataCardKibanaDependencies", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/card/no_data/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/card/no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -68,7 +68,7 @@ "NoDataCardKibanaDependencies", ">" ], - "path": "packages/shared-ux/card/no_data/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/card/no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -91,7 +91,7 @@ "NoDataCardServices", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/card/no_data/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/card/no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -107,7 +107,7 @@ "NoDataCardServices", ">" ], - "path": "packages/shared-ux/card/no_data/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/card/no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -134,7 +134,7 @@ "EuiCardProps", ", \"className\" | \"title\" | \"href\">> & { button?: React.ReactNode; onClick?: React.MouseEventHandler | undefined; description?: React.ReactNode; category?: string | undefined; canAccessFleet?: boolean | undefined; }" ], - "path": "packages/shared-ux/card/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -153,7 +153,7 @@ " & ", "RedirectAppLinksKibanaDependencies" ], - "path": "packages/shared-ux/card/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -172,7 +172,7 @@ "EuiCardProps", ", \"className\" | \"title\" | \"href\">> & { button?: React.ReactNode; onClick?: React.MouseEventHandler | undefined; description?: React.ReactNode; category?: string | undefined; canAccessFleet?: boolean | undefined; }" ], - "path": "packages/shared-ux/card/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -191,7 +191,7 @@ " & ", "RedirectAppLinksServices" ], - "path": "packages/shared-ux/card/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_card_no_data.mdx b/api_docs/kbn_shared_ux_card_no_data.mdx index 7c71217e7b571..2140c67729faf 100644 --- a/api_docs/kbn_shared_ux_card_no_data.mdx +++ b/api_docs/kbn_shared_ux_card_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-card-no-data title: "@kbn/shared-ux-card-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-card-no-data plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-card-no-data'] --- import kbnSharedUxCardNoDataObj from './kbn_shared_ux_card_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_card_no_data_mocks.devdocs.json b/api_docs/kbn_shared_ux_card_no_data_mocks.devdocs.json index 2f02d73911c2c..0868578160097 100644 --- a/api_docs/kbn_shared_ux_card_no_data_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_card_no_data_mocks.devdocs.json @@ -33,7 +33,7 @@ "NoDataCardServices", ", PropArguments, ServiceArguments>" ], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -44,7 +44,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -55,7 +55,7 @@ "tags": [], "label": "category", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -66,7 +66,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -77,7 +77,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -90,7 +90,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -103,7 +103,7 @@ "tags": [], "label": "title", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -114,7 +114,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -125,7 +125,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -138,7 +138,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -151,7 +151,7 @@ "tags": [], "label": "description", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -162,7 +162,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -173,7 +173,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -186,7 +186,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -199,7 +199,7 @@ "tags": [], "label": "button", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -210,7 +210,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -221,7 +221,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -234,7 +234,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -249,7 +249,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -260,7 +260,7 @@ "tags": [], "label": "canAccessFleet", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -271,7 +271,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -282,7 +282,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -307,7 +307,7 @@ }, "[]" ], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -330,7 +330,7 @@ " | undefined) => ", "NoDataCardComponentProps" ], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -351,7 +351,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -378,7 +378,7 @@ ") => ", "NoDataCardServices" ], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -398,7 +398,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -426,7 +426,7 @@ ">) => ", "NoDataCardKibanaDependencies" ], - "path": "packages/shared-ux/card/no_data/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -442,7 +442,7 @@ "NoDataCardServices", ">" ], - "path": "packages/shared-ux/card/no_data/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -466,7 +466,7 @@ ">) => ", "NoDataCardServices" ], - "path": "packages/shared-ux/card/no_data/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -482,7 +482,7 @@ "NoDataCardServices", ">" ], - "path": "packages/shared-ux/card/no_data/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -507,7 +507,7 @@ "signature": [ "{ title: any; description: any; category: any; button: any; canAccessFleet: any; }" ], - "path": "packages/shared-ux/card/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_card_no_data_mocks.mdx b/api_docs/kbn_shared_ux_card_no_data_mocks.mdx index 32188b3aa2fa0..e9b214db9f92a 100644 --- a/api_docs/kbn_shared_ux_card_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_card_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-card-no-data-mocks title: "@kbn/shared-ux-card-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-card-no-data-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-card-no-data-mocks'] --- import kbnSharedUxCardNoDataMocksObj from './kbn_shared_ux_card_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_chrome_navigation.devdocs.json b/api_docs/kbn_shared_ux_chrome_navigation.devdocs.json index 60e5024fa01e4..27386340766d6 100644 --- a/api_docs/kbn_shared_ux_chrome_navigation.devdocs.json +++ b/api_docs/kbn_shared_ux_chrome_navigation.devdocs.json @@ -21,7 +21,7 @@ }, ">" ], - "path": "packages/shared-ux/chrome/navigation/src/ui/navigation.tsx", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/navigation.tsx", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -77,7 +77,7 @@ }, ">) => React.JSX.Element" ], - "path": "packages/shared-ux/chrome/navigation/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -99,7 +99,7 @@ }, ">" ], - "path": "packages/shared-ux/chrome/navigation/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -128,7 +128,7 @@ }, ">) => React.JSX.Element" ], - "path": "packages/shared-ux/chrome/navigation/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -150,7 +150,7 @@ }, ">" ], - "path": "packages/shared-ux/chrome/navigation/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -170,7 +170,7 @@ "description": [ "\nAn interface containing a collection of Kibana dependencies required to\nrender this component" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -232,7 +232,7 @@ "Observable", "; }; analytics: { reportEvent: (eventType: string, eventData: object) => void; }; }" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false }, @@ -255,7 +255,7 @@ }, "[][]>" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false } @@ -271,7 +271,7 @@ "description": [ "\nA list of services that are consumed by this component." ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -285,7 +285,7 @@ "signature": [ "{ prepend: (url: string) => string; remove: (url: string) => string; }" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false }, @@ -308,7 +308,7 @@ }, "[]>" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false }, @@ -324,7 +324,7 @@ "NavigateToUrlOptions", " | undefined) => Promise" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -376,7 +376,7 @@ }, "[][]>" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false }, @@ -387,7 +387,7 @@ "tags": [], "label": "isSideNavCollapsed", "description": [], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false }, @@ -401,7 +401,7 @@ "signature": [ "EventTracker" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false }, @@ -422,7 +422,7 @@ }, " | null | undefined" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false }, @@ -444,7 +444,7 @@ }, " | null) => void) | undefined" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -465,7 +465,7 @@ }, " | null" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -484,7 +484,7 @@ "Observable", "" ], - "path": "packages/shared-ux/chrome/navigation/src/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts", "deprecated": false, "trackAdoption": false } @@ -498,7 +498,7 @@ "tags": [], "label": "PanelComponentProps", "description": [], - "path": "packages/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -514,7 +514,7 @@ "signature": [ "() => void" ], - "path": "packages/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -540,7 +540,7 @@ }, ", \"id\" | \"children\" | \"path\" | \"sideNavStatus\" | \"deepLink\"> & { title: React.ReactNode; }" ], - "path": "packages/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", "deprecated": false, "trackAdoption": false }, @@ -563,7 +563,7 @@ }, "[][]" ], - "path": "packages/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", "deprecated": false, "trackAdoption": false } @@ -577,7 +577,7 @@ "tags": [], "label": "PanelContent", "description": [], - "path": "packages/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -591,7 +591,7 @@ "signature": [ "string | number | boolean | React.ReactElement> | Iterable | React.ReactPortal | null | undefined" ], - "path": "packages/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", "deprecated": false, "trackAdoption": false }, @@ -613,7 +613,7 @@ }, "> | undefined" ], - "path": "packages/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", "deprecated": false, "trackAdoption": false } @@ -627,7 +627,7 @@ "tags": [], "label": "Props", "description": [], - "path": "packages/shared-ux/chrome/navigation/src/ui/navigation.tsx", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/navigation.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -650,7 +650,7 @@ }, ">" ], - "path": "packages/shared-ux/chrome/navigation/src/ui/navigation.tsx", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/navigation.tsx", "deprecated": false, "trackAdoption": false }, @@ -664,7 +664,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/chrome/navigation/src/ui/navigation.tsx", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/navigation.tsx", "deprecated": false, "trackAdoption": false }, @@ -685,7 +685,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/chrome/navigation/src/ui/navigation.tsx", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/navigation.tsx", "deprecated": false, "trackAdoption": false } @@ -701,7 +701,7 @@ "tags": [], "label": "FieldType", "description": [], - "path": "packages/shared-ux/chrome/navigation/src/analytics/event_tracker.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/analytics/event_tracker.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -725,7 +725,7 @@ "text": "PanelContent" } ], - "path": "packages/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -737,7 +737,7 @@ "tags": [], "label": "nodeId", "description": [], - "path": "packages/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/types.ts", "deprecated": false, "trackAdoption": false } @@ -751,7 +751,7 @@ "tags": [], "label": "EventType", "description": [], - "path": "packages/shared-ux/chrome/navigation/src/analytics/event_tracker.ts", + "path": "src/platform/packages/shared/shared-ux/chrome/navigation/src/analytics/event_tracker.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_chrome_navigation.mdx b/api_docs/kbn_shared_ux_chrome_navigation.mdx index 24c3a42009b4c..14e025b3338de 100644 --- a/api_docs/kbn_shared_ux_chrome_navigation.mdx +++ b/api_docs/kbn_shared_ux_chrome_navigation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-chrome-navigation title: "@kbn/shared-ux-chrome-navigation" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-chrome-navigation plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-chrome-navigation'] --- import kbnSharedUxChromeNavigationObj from './kbn_shared_ux_chrome_navigation.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_error_boundary.devdocs.json b/api_docs/kbn_shared_ux_error_boundary.devdocs.json index a18ef8bb5b9e7..86f284adf335b 100644 --- a/api_docs/kbn_shared_ux_error_boundary.devdocs.json +++ b/api_docs/kbn_shared_ux_error_boundary.devdocs.json @@ -31,7 +31,7 @@ "signature": [ "(props: ErrorBoundaryProps) => React.JSX.Element" ], - "path": "packages/shared-ux/error_boundary/src/ui/error_boundary.tsx", + "path": "src/platform/packages/shared/shared-ux/error_boundary/src/ui/error_boundary.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -47,7 +47,7 @@ "signature": [ "ErrorBoundaryProps" ], - "path": "packages/shared-ux/error_boundary/src/ui/error_boundary.tsx", + "path": "src/platform/packages/shared/shared-ux/error_boundary/src/ui/error_boundary.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -70,7 +70,7 @@ "KibanaErrorBoundaryProviderDeps", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/error_boundary/src/services/error_boundary_services.tsx", + "path": "src/platform/packages/shared/shared-ux/error_boundary/src/services/error_boundary_services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -86,7 +86,7 @@ "KibanaErrorBoundaryProviderDeps", ">" ], - "path": "packages/shared-ux/error_boundary/src/services/error_boundary_services.tsx", + "path": "src/platform/packages/shared/shared-ux/error_boundary/src/services/error_boundary_services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -107,7 +107,7 @@ "signature": [ "({ error }: { error: Error | null; }) => null" ], - "path": "packages/shared-ux/error_boundary/src/ui/throw_if_error.ts", + "path": "src/platform/packages/shared/shared-ux/error_boundary/src/ui/throw_if_error.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -121,7 +121,7 @@ "signature": [ "{ error: Error | null; }" ], - "path": "packages/shared-ux/error_boundary/src/ui/throw_if_error.ts", + "path": "src/platform/packages/shared/shared-ux/error_boundary/src/ui/throw_if_error.ts", "deprecated": false, "trackAdoption": false, "isRequired": true diff --git a/api_docs/kbn_shared_ux_error_boundary.mdx b/api_docs/kbn_shared_ux_error_boundary.mdx index ac5e796db4bba..1a6ea8bc642ab 100644 --- a/api_docs/kbn_shared_ux_error_boundary.mdx +++ b/api_docs/kbn_shared_ux_error_boundary.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-error-boundary title: "@kbn/shared-ux-error-boundary" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-error-boundary plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-error-boundary'] --- import kbnSharedUxErrorBoundaryObj from './kbn_shared_ux_error_boundary.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_context.devdocs.json b/api_docs/kbn_shared_ux_file_context.devdocs.json index 9111933b10457..a15e8ab963942 100644 --- a/api_docs/kbn_shared_ux_file_context.devdocs.json +++ b/api_docs/kbn_shared_ux_file_context.devdocs.json @@ -29,7 +29,7 @@ "signature": [ "({ client, children }: React.PropsWithChildren) => React.JSX.Element" ], - "path": "packages/shared-ux/file/context/src/index.tsx", + "path": "src/platform/packages/shared/shared-ux/file/context/src/index.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -43,7 +43,7 @@ "signature": [ "React.PropsWithChildren" ], - "path": "packages/shared-ux/file/context/src/index.tsx", + "path": "src/platform/packages/shared/shared-ux/file/context/src/index.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -69,7 +69,7 @@ "text": "FilesContextValue" } ], - "path": "packages/shared-ux/file/context/src/index.tsx", + "path": "src/platform/packages/shared/shared-ux/file/context/src/index.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -85,7 +85,7 @@ "tags": [], "label": "FilesContextValue", "description": [], - "path": "packages/shared-ux/file/context/src/index.tsx", + "path": "src/platform/packages/shared/shared-ux/file/context/src/index.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -108,7 +108,7 @@ }, "" ], - "path": "packages/shared-ux/file/context/src/index.tsx", + "path": "src/platform/packages/shared/shared-ux/file/context/src/index.tsx", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_shared_ux_file_context.mdx b/api_docs/kbn_shared_ux_file_context.mdx index 76a3200a0c9f7..0873a5d223a2d 100644 --- a/api_docs/kbn_shared_ux_file_context.mdx +++ b/api_docs/kbn_shared_ux_file_context.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-context title: "@kbn/shared-ux-file-context" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-context plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-context'] --- import kbnSharedUxFileContextObj from './kbn_shared_ux_file_context.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_image.devdocs.json b/api_docs/kbn_shared_ux_file_image.devdocs.json index 3b23cef427de4..6f86be65a8446 100644 --- a/api_docs/kbn_shared_ux_file_image.devdocs.json +++ b/api_docs/kbn_shared_ux_file_image.devdocs.json @@ -41,7 +41,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/shared-ux/file/image/impl/src/image.tsx", + "path": "src/platform/packages/shared/shared-ux/file/image/impl/src/image.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -61,7 +61,7 @@ "text": "Props" } ], - "path": "packages/shared-ux/file/image/impl/src/image.tsx", + "path": "src/platform/packages/shared/shared-ux/file/image/impl/src/image.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -93,7 +93,7 @@ " | undefined; } & ", "EuiImageProps" ], - "path": "packages/shared-ux/file/image/impl/src/image.tsx", + "path": "src/platform/packages/shared/shared-ux/file/image/impl/src/image.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_file_image.mdx b/api_docs/kbn_shared_ux_file_image.mdx index b6365481db75e..e96adfde6119c 100644 --- a/api_docs/kbn_shared_ux_file_image.mdx +++ b/api_docs/kbn_shared_ux_file_image.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-image title: "@kbn/shared-ux-file-image" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-image plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-image'] --- import kbnSharedUxFileImageObj from './kbn_shared_ux_file_image.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_image_mocks.devdocs.json b/api_docs/kbn_shared_ux_file_image_mocks.devdocs.json index 9e9c6b6102249..7336577f49a7c 100644 --- a/api_docs/kbn_shared_ux_file_image_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_file_image_mocks.devdocs.json @@ -29,7 +29,7 @@ "signature": [ "() => Blob" ], - "path": "packages/shared-ux/file/image/mocks/src/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/image/mocks/src/index.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -50,7 +50,7 @@ "signature": [ "\"iVBORw0KGgoAAAANSUhEUgAAA4QAAAH0BAMAAACX3f7gAAAAMFBMVEWUyD/g4+JSUlKtqasXqODvUZim2+P154Zty9I2krMHeaFUtdL+0Qoku7EAAAD////6ku7MAAAUTUlEQVR4XuzRoREAIQwEwO/kyzxJg/QTGSQWm5ndFvbr4VCoEIUoVIhCFKJQIQpRiEKFKEQhChWiEIUoVIhCFKJQIQpRiEKFKEQhChWiEIUoVIhCFKJQIQpRiEKFKEQhChWiEIUoVIhCFKJQIQpRiMIXClGIQoUoRCEKFaIQhShUiEIUolAhClGIQoUoRCEKFaIQhShUiEIUolAhClGIQoUoRCEKFaIQhShUiEIUolAhClGIQoUorEqyVo+ksLKv/D2MwsPO/aRIEQRRGD9D09ROKNADiAy1tc/QDLn2GG7qcq5mE+AZvMBAWhS9EVBoh6dSaY4Dbb2A713hR0RGRP+5zPF7HkxrEcI+oBAByEP4MbaTpBAhvMgsVyFCKMGchhBKMKchhBLMaQihBFMbQlgjchtCOMdz8hkAS8K+oP9+COG3eG5GAPwINcokfQ4hVBvN+RxCqDaa9jmEsIonZyuFcI5IXYYQXiKSliGEKsKcZQihijBpGUKoIkxdhhBe4iUBwIZQRehfhhAe7sqP3I2NInR/DSEcylPux0YRWpchhFNRyq+GEe5lCKEElXeN66jtQANh+TOnRh/1/MACQr2Dyqhhxr+TQriWjTT6qONAA2EtWzlpmHHvpBAOm4SjCM07KYRL6RC6d1IIp21CTTPmnRTCpXQI3TsphEOLUAOp9XYPYW0InkXo3UkhXDuE9p0UwvJXwjncOymEtUX4QYTWawWEa4/Q+jGEUEth+77m/hhCWFoZcxBCuLQJtdk7zzMQrqV0jjPm8wyEQ5fQfJ6BsCl4r80+52MI4TkHIYS1QziH+TwD4VJ6m735PAPhmp8Qwt5xxnwkhXC41XFG+bQnAIQ1wnwkhXDqbvY7jaQEQgj7xxmPf9WDsH+cybhVUIUifJWVEEJt9v9lMSQQLq+vOUHYOM7YE359vOYtq/1NCB92IYRwzEII4U03ewjr4zVfbke47kwIIYQQLr3jjPuRFMLaIXStQgiVvxLOCaoQwmPjOONPCKEQp6SEECqH5mZvTgihUicIX5Djm2sMCIX4L79Mg/D9T6B9CZU6NDZ7/6UCQiGKMFUVQqjUY+fLT95VCKEWxXNCQgiVwxPh/J29O8psIIrCOL6JgRCi3Un5VBh0CVVGBJgNFDDmNfraBQS3r1WRTXQtl7pJJag4ZtBm3ENOOKPffws/xznDZcZISEJBfBwJIQmX5WIA0ZLw8z8T3ko31yFMDYCyHSbUGpFQlT1hrAAI4jgJSVihr51lfsHs8TU3CQtIw4g714Qk3ONXbT0qQhIm/O2jzhB6WoUkfMe5Nj2i94fAJDwAyCM+u92EJIwYbv7UEx7dDiEJC0CDuPM6hCRMAFSIXm8ZElbIVVotw6uAkTAhn3zpT30OIQkL5FvJMrS6ZZaWXiSMUHQnhEa3zD68zey8SHiAorlwGw3hNlgakrCBJiGcmgzhdwiGhiRMANTL8Ghyy7yGU2sjLhJ+QdXD5cuwA5gE6cWGi4QNVN0LgMEQxtBVW2iRMELZxR/3HcAPMffv4sYRxQH8b3DWxBCSG24WXO4hLVwpNSIE8mf4KoOjMs01aVIETP4E4ybk3BiDi3QmlUt3xhC20AquXLG7YXNBycX2WbqvRvNr31vN5HFgjNDuMZ979+Y7K+7hLeEFVyh5kIxOqYTJzbtGufpP74lc37xJxCGs7yQj0Zdw3ZdwjmE4KFB0Gz/ur9J6LDc+MhUUwu8qY5Vy5Pdrx1m1LSnT9HQUjrAby83NyjQXPQjP+hK+wjAcFCh+2iG8EHRABUCK/oSTylalBzGRRno5vpVMTvOPX1vCT//D1w7E5qWpDbDFvTaMIx8hjEIOQzTh+tluPSUKJtn+QqYDCFGpS3BcWWu5AcgqZ037fhS4Nt5LghGEeqQIfNL9O1I9iryj+cy5+nxCWOhVu3jKwxK2mf/bAyFGIXsY8gMF6he+IFafPwtRxw7BWF2YwIxAiFEYchgiUNykeuY0bC0A94d2IbR1QbwreBe2FYGQnApx0l0P2st8ATxyvq9dKzScsBSWmBCrC+uMQYhUSDjpPj9IoGBkwwlh9RmE1bF5pkbrwknFIuxmhBJcwtdI9Xr9bOIiruaCNgv9bYjGiNaFTcUjxAEp47EvP1D4NzTE1RSDuhDe2v4pShf6L7HwEoY96X6tBwpvvCeu5uIQhEtDE0brwqZiEp7N6MPwHjdQ/P3MWK/8fv5FEnxC1Fxb1nhdmHEJX84ohY+TDgoUnGjY7B9uSdX0eOAsVMEBE6sL28pZKzvhjFRzliEChbkuqNvRdL45jNpRLPs8qTjN97/yVCogjmWVaZrnaZpKGaILj1QyKfP847cnpY+wphLCkBsoeHvSTkkQptw9NRPSjl1VwusKpT4U+fwDppTZkC50NbxyJHonGcvMTtjNiNsZGLKfUOj1hLKZWQpzc67ohPrB5NTS+SUMlKq3a/3A86TCR9j5zhishFcUwW+V69A/d2itXwmbmVLYXuARYg7p4hAUof9oSaOM12CEezvH86GBAkU4W5tbl1+wCTGIFqosbhqMUG94QSNcc5sQhvxAgZr33o8e25f/hE9YGzugAWxwQuV3OYnwT9LZjGZIDBT8YThxnIFhodmEuL5xNyPCEQIWtAEIkes1Q36goD27z8Bk5V3yCdFw5gsHJ8QoFFTCu6RAodf3lEDB3s9gKgnn8vMJcQODx0lwQjT85X/hCL/etvxvqiHtCQUr3AOkNAJgilAI/dfIwBqacIKBHooQTfhV8U5phXuEQMHezxzp2c/ULSRC/zXQ3cEJM9yLSnhGeGJ/U3VR7Bn+RQgUvPMZIM3dwGEIywiEyIThunCL8aj4UH/M+xkKJVCwtqT+xQTXcgDhtU5YYzwFJkSoWYUiRKrvik+lGnIDBep5r9i2dL9csglBvtKT/SI8YYtRHIgQqf5xYTKsCZ875Dxvaj0/o1lQwlV4woYQKVi5EE14VdzWD4rhuTdQsFOF3wNbRyqhs+W6eITXmBSBCL9BE6qGqHN/oOCniiMQOV+fDu/C5f/ShUeBCREo/i1260fVkBMoUIMWBnsRfhdGJzTJLxiEa1KqL9R66zJEoBhMiFlnqeZwhJcG1fCEGRqeTHjFbkLd8Ev7X0bwl+hBuPQRrg7ahV18whMGYUdK9Vq9Uwz/cQcK/vGMbyi1XEKnVx0v2hMyBeuzMwKpXi3XQQ0CxWBCCBFyI78LUVWsM9KaQYjyC75AqjcZmkP+GwSKAxB6OQ5HeGkgPIlGKDiEL+mpHmU4bLMHCv4haeP9GQ3ThVms54VtBXk64Rk11etlMESgiEKILSt/FjoIKxGJsGQR3iWner3U5bcFCj7hNYuQ34XwgGtQwoZMSMn2W571e+bOYLXJIIrC72CLuPLHBrpssN0nj+A7aAFRbB7BTTZFJPgE0k1pKVCEIrQgfQY34kYkCXQrf1tCVeioFB3qF3tz/zNO5iwLJdCPO6fn3pkbgLuhUYNAYas7A8KQAeHJ1JvArZIRXsyW6kPkZTN8jkChVeFdE2EncRXybmeVA+G4EcJ61lk9dEPIR6Cw1RMMJrpWU4QLD1cjwqlPKkZrxSIMB47WmoMhAoWOcGRD9iOsH/1+eUKEtWO9kITw0jFc9m68qOwiZKMmBgqHKi9CvQrrtT+LsqJOUNyOSlQRDpshPJ+htcZUbzRqEChMubrcehX+pGc89I0mjCdHpSGc2KmerTWjUYNAYStkOEi5UY0aW882R60qJULe3/IjDI1Svd2o+eoiuJuvCs+MbU78ZJZiYQjX/a01o1GDQGFrz0Zoy0Zo77A4QZyZpqVuCQhtMxygCG0NYhG6tJ0L4ar1dn7GjRetqiCEE6u19o6k7JB/4UO4lQGhZ2+JXbOjbjkIw4E5q2/C0IdwX0RodGdAxEZoM79XDsJFJdVTb/my3tZxFoRn5EAvFBjODeGFlOqpq9/85kLYy4Aw4nAtgDIYFoEwHCipnhqIyT49QhYhl7wQob3WedQtBeG58QzGqffxG2FcsVBHOPYv8FpqLd/HpGLmJDkuBWGtpHrqo98Mt3NUYf33gvvWWnfqvJC69S+I7UIQhnUt1etmuP9/q5C7nMbLkd5Ml0bXloxPnDPCiZLqqYF71jTIgXAFcyNj5MsvG6G6hSAMfSnV62ZY5UCIv7uN0KY4TDOp0BFe6KmeZvhE7JCyze0QEZ5OI2h4IbWwisKfy7CJ6gupnqqcbdKtHAgvUaseL4yaXIdYDMKJ48JMejM8zoGwg1uhPi+MqpdghgUgDIvGMxiXPjjN0MDRkRDybraAkL3W9ryuP1EHU5/BZDHDnZChCmtEOZcXkjhQzAshO6UP0Frzq+cyw9cZqhArupp5IYfB43IQhnUh1Wtm2HNcC5MRjoJykHIYPJrfbW6qL7TWFDPcCRkQwm9EhGEjIcKzVAjrPp7BNBY2WArnKBZeuBAye0leyJg5V4RkiGcwOcwQZIyXTRrCdtC8kG+A5/m+kOrHVK/p81VdC1MK4BARdiJCyQsRUro4Xt0IawEhhNaaZoZHSoubOIpC2IkI+cPKgRAVrSH0FqFuhnshL8Ku7oVcOUXbzrXxgkKq18zwu9Rc48YLHaHuhTBXAaG8d4ZCqlfN8FAoQmGrJBBG6+qJXkiHLgghi1A3w3D7UClCLrTQD9LUCNvG6erZwfZFRohULyiW9KYQ69EkFatQ90JWoYwwkh+rCNOkeq7BqF806q3RKgrxQn4CI2yGfaR2EepmGFU/nd5reyX8/y5UYWIv1BGeJkYososDJxPijnMs0M6UC/UqbDfczd3TEGJWrwkgAHG3cvIYpkCoeKFZcKciwnYShM9SIaQeX4fY8/IYCQg3EC5FL+zoCJnth0kQvkx3kFJ3jjx5guNaP0LjrqbeYKuM5baub4sZSwh5d1QPhlQMim+CKa6VFCcV+ryQheM68omQd7N0hJ8SIyTEzV8+OAgOrfiD9w/m7lg5ahgIAKi6lCRxb03k3je2PsDfAu5z0NDyARR8CB/BN9AwdJnIMyl90XkGOgTjwG3CnndnJc+dts/JytPK9tqWlh75OjEhbe6on5HvnLZZgdCvRPiVauPj522QRAmDNJqQeXdGerq9Jgld7P6FQyaEUCR9r0NC4B7u0l9/6ujT7SZtYpASAr3g3lcJStzJ1RmlLlIQcQ918kuI9zSh07Ij2vHP8nlC+LtxyI/wD+I2mdBDD2MJw8GI2dredYIX2KAB9Mwhdkftm2wIn9zUU7yTqzE9lBPWxFTVotWdmGi5r9MehIS/RsFUqmQV0qRPY7xSiYh4GaYmkrBcTOSiPv658GS3rOC4NNa0jHAaIZpMCGeAn0qlIuIeVgtqPf9xGrBCTOABhIfMMMb2xKwL4wF9PyUjDNTSUr6w3WkJoTjzqJ5HyuVpTawLWvTtvLIoTTiBUMetiuhe5q0z7QHSW0N9bL8/gns1CzCEty/ar5p/dq2Z29vlQZhyeVqitQ6qyswBADRh+H+Y+x40jhDCpAiSBoF3xHRhrLWtcSCACLE9BDR2JsJviDANcRr50CQhiODgCQlrPCHi4AkD3dD9aQmhOHOp1FqINQ/Q0YR7KeEtqYfnUcL9nicscyKE4sxbpdZC3CcT+vWykKgDlLGEU26EX+C2EMerCELPp+GWIJTNpANOfFqGy/WBJuQP7+H0hJ8owosQEWVaFgJrehaSxbg6gpBPw+H01ZktRagSz4ZyQv4XXC3Pwg0x1OSEocyQ0K9KOMUT8mk46L2YECuAEU5rntDXmRDi4gwOHWW4jyHkTjdQ8XkjJBzoGV9OGKY6O8LHJcIPISpaZl5jCX+Q64pe1xLCQXMXXjwhNsyH8DtHGG0oz0J+85Dnm8jMccMTEjuOFAJCzJ9O6NcvzsjvKrj/Dg4zVxVZwlCILKxZYHSN8CgZQgh7tHdWCwjDioSXqxMGjxcjdMY2kvtL4U5a1qLKqLNa0shoKi3ooa3R4DzHS4h3qYT0hmeHQnBrXxMA5JKUzlQgwUXRV38hjbFd4KM3MMB0EMbV/ODFGVPZ5myvAt/9Zu8OUhoGAigM21WXVQTrpswZikcSRJChRyju3ARv4654jUIv0WxioJTnsgUtFTtvMgP/f4WPlOQxdA77WgLCOrudPzzOgwydI4zGceZASKUTLgYkhHDmHWf8hBDuUxCGAQkh7L37mp8Qws4/zlwtZQzCNgPhQsYglHlf8z+FEDauw0+HgpxBGO3jzJWsQbj3Hn7yE0LY2/e1kaxB2Na+r0Go6scZCKN7nAlKEITOoXtzZpyROQh78zgzkjkIW/vhJ3MQqvEefgpyB2H0jjOyB2FvJZzIHoSddZwJsgehVsZxZqwMQTgzEk6UIQh7476mHEEo3742UZYgjLZxRnmCcOciXCpPELamfW2sTEGoePFnYcu2Nixhf+kLqfTFMDMooRJcb7DlzMyghLME195thxSEsEtx08/U+TIKoetQ96eOujn594f+IOzT3Jg2vR4KEEIluOjHG4Seg/lBxQRh++9lxh+Evu+KhQoKwrb2hxBC7Wp/CCFUya+jEDrG7o3yBaFlonlXcUHY1f4uA6F2tX/VQ6im9p9RCDt2mQIJLYZrlRqEuv+TYFCxQaiX2mcZCBVrF4RQsXZBCBVrF4RQz6cB11UIQqi7U4IfQVUEodrm10fwVbUEodQ1PwCfVFMQSt3b6gjwuz06pgEABgEApmES9yBlwTUke9BA0lpo3lpD4TiR31v6p3CgEIUKUYhCFCpEIQpRqBCFKEShQhSiEIUKUYhCFCpEIQpRqBCFKEShQhSiEIUKUYhCFCpEIQpRqBCFKEShQhSiEIUKUYhCFCpEIQpRqBCFKEShQhSiEIUKUYhCFCpEIQpRqBCFKEShQhSiEIUKUYhCFCpEIQpRqBCFKEShQhSiEIUKUYhCFCpEIQpRqBCFKEShQhSikAYWVezJjtqBOgAAAABJRU5ErkJggg==\"" ], - "path": "packages/shared-ux/file/image/mocks/src/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/image/mocks/src/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_file_image_mocks.mdx b/api_docs/kbn_shared_ux_file_image_mocks.mdx index afbc3a81361cd..3dc4ed0eb7c4f 100644 --- a/api_docs/kbn_shared_ux_file_image_mocks.mdx +++ b/api_docs/kbn_shared_ux_file_image_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-image-mocks title: "@kbn/shared-ux-file-image-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-image-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-image-mocks'] --- import kbnSharedUxFileImageMocksObj from './kbn_shared_ux_file_image_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_mocks.devdocs.json b/api_docs/kbn_shared_ux_file_mocks.devdocs.json index 1a16eeed01e56..8dc7da5c863e5 100644 --- a/api_docs/kbn_shared_ux_file_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_file_mocks.devdocs.json @@ -45,7 +45,7 @@ }, ">" ], - "path": "packages/shared-ux/file/mocks/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/mocks/index.ts", "deprecated": false, "trackAdoption": false, "children": [], diff --git a/api_docs/kbn_shared_ux_file_mocks.mdx b/api_docs/kbn_shared_ux_file_mocks.mdx index 706289001b209..068e675be378d 100644 --- a/api_docs/kbn_shared_ux_file_mocks.mdx +++ b/api_docs/kbn_shared_ux_file_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-mocks title: "@kbn/shared-ux-file-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-mocks'] --- import kbnSharedUxFileMocksObj from './kbn_shared_ux_file_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_picker.devdocs.json b/api_docs/kbn_shared_ux_file_picker.devdocs.json index f60003a33ad09..9e3b27fd37c7c 100644 --- a/api_docs/kbn_shared_ux_file_picker.devdocs.json +++ b/api_docs/kbn_shared_ux_file_picker.devdocs.json @@ -21,7 +21,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/shared-ux/file/file_picker/impl/src/index.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/index.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -42,7 +42,7 @@ }, "" ], - "path": "packages/shared-ux/file/file_picker/impl/src/index.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/index.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -70,7 +70,7 @@ }, "" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -86,7 +86,7 @@ "signature": [ "Kind" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false }, @@ -110,7 +110,7 @@ }, ") => boolean) | undefined" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -131,7 +131,7 @@ }, "" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -151,7 +151,7 @@ "signature": [ "() => void" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -177,7 +177,7 @@ }, "[]) => void" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -198,7 +198,7 @@ }, "[]" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -226,7 +226,7 @@ }, "[]) => void) | undefined" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -247,7 +247,7 @@ }, "[]" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -267,7 +267,7 @@ "signature": [ "unknown" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false }, @@ -283,7 +283,7 @@ "signature": [ "number | undefined" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false }, @@ -301,7 +301,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/shared-ux/file/file_picker/impl/src/file_picker.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_shared_ux_file_picker.mdx b/api_docs/kbn_shared_ux_file_picker.mdx index 37e8cbbd038fd..6cca3cc90ee12 100644 --- a/api_docs/kbn_shared_ux_file_picker.mdx +++ b/api_docs/kbn_shared_ux_file_picker.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-picker title: "@kbn/shared-ux-file-picker" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-picker plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-picker'] --- import kbnSharedUxFilePickerObj from './kbn_shared_ux_file_picker.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_types.devdocs.json b/api_docs/kbn_shared_ux_file_types.devdocs.json index 72aeca552caee..10d10431ea5b5 100644 --- a/api_docs/kbn_shared_ux_file_types.devdocs.json +++ b/api_docs/kbn_shared_ux_file_types.devdocs.json @@ -27,7 +27,7 @@ "tags": [], "label": "Abortable", "description": [], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -41,7 +41,7 @@ "signature": [ "AbortSignal | undefined" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false } @@ -65,7 +65,7 @@ }, "" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -105,7 +105,7 @@ }, "[]; total: number; }>" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -136,7 +136,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -164,7 +164,7 @@ }, ") => Promise<{ succeeded: string[]; failed?: [id: string, reason: string][] | undefined; }>" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -187,7 +187,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -223,7 +223,7 @@ }, "; }>" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -246,7 +246,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -274,7 +274,7 @@ }, ") => Promise<{ ok: true; }>" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -297,7 +297,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -333,7 +333,7 @@ }, "; }>" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -356,7 +356,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -400,7 +400,7 @@ }, "[]; total: number; }>" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -431,7 +431,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -467,7 +467,7 @@ }, "; }>" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -490,7 +490,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -518,7 +518,7 @@ }, ") => Promise<{ ok: true; size: number; }>" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -541,7 +541,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -569,7 +569,7 @@ }, ") => Promise" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -592,7 +592,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -620,7 +620,7 @@ }, ", \"id\" | \"fileKind\">) => string" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -644,7 +644,7 @@ }, ", \"id\" | \"fileKind\">" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -682,7 +682,7 @@ }, ">" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -705,7 +705,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -733,7 +733,7 @@ }, ") => Promise<{ ok: true; }>" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -756,7 +756,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -792,7 +792,7 @@ }, "; }>" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -815,7 +815,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -859,7 +859,7 @@ }, "[]; }>" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -890,7 +890,7 @@ "text": "Abortable" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -917,7 +917,7 @@ "text": "FileKindBase" } ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -933,7 +933,7 @@ "signature": [ "string" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -953,7 +953,7 @@ "description": [ "\nSet of metadata captured for every image uploaded via the file services'\npublic components." ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -969,7 +969,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -982,7 +982,7 @@ "description": [ "\nWidth, in px, of the original image" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -995,7 +995,7 @@ "description": [ "\nHeight, in px, of the original image" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false } @@ -1021,7 +1021,7 @@ }, "" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1034,7 +1034,7 @@ "description": [ "\nUnique file ID." ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1047,7 +1047,7 @@ "description": [ "\nISO string of when this file was created" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1060,7 +1060,7 @@ "description": [ "\nISO string of when the file was updated" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1075,7 +1075,7 @@ "description": [ "\nFile name.\n" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1091,7 +1091,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1107,7 +1107,7 @@ "signature": [ "number | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1125,7 +1125,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1141,7 +1141,7 @@ "signature": [ "Meta | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1157,7 +1157,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1172,7 +1172,7 @@ "description": [ "\nA unique kind that governs various aspects of the file. A consumer of the\nfiles service must register a file kind and link their files to a specific\nkind.\n" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1188,7 +1188,7 @@ "signature": [ "\"AWAITING_UPLOAD\" | \"UPLOADING\" | \"READY\" | \"UPLOAD_ERROR\" | \"DELETED\"" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1204,7 +1204,7 @@ "signature": [ "{ name?: string | undefined; id?: string | undefined; } | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1220,7 +1220,7 @@ "signature": [ "{ [hashName: string]: string | undefined; md5?: string | undefined; sha1?: string | undefined; sha256?: string | undefined; sha384?: string | undefined; sha512?: string | undefined; ssdeep?: string | undefined; tlsh?: string | undefined; } | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false } @@ -1234,7 +1234,7 @@ "tags": [], "label": "FileKindBase", "description": [], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1247,7 +1247,7 @@ "description": [ "\nUnique file kind ID" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1265,7 +1265,7 @@ "signature": [ "string[] | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false } @@ -1296,7 +1296,7 @@ "text": "FileKindBase" } ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1314,7 +1314,7 @@ "signature": [ "number | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false }, @@ -1330,7 +1330,7 @@ "signature": [ "{ list?: { enabled: boolean; } | undefined; delete?: { enabled: boolean; reason?: string | undefined; } | undefined; } | undefined" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false } @@ -1346,7 +1346,7 @@ "description": [ "\nAttributes of a file that represent a serialised version of the file." ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1359,7 +1359,7 @@ "description": [ "\nUnique ID share instance" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false }, @@ -1372,7 +1372,7 @@ "description": [ "\nISO timestamp the share was created" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false }, @@ -1385,7 +1385,7 @@ "description": [ "\nUnix timestamp (in milliseconds) of when this share expires" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false }, @@ -1401,7 +1401,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false }, @@ -1414,7 +1414,7 @@ "description": [ "\nThe ID of the file this share is linked to" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false } @@ -1428,7 +1428,7 @@ "tags": [], "label": "Pagination", "description": [], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1442,7 +1442,7 @@ "signature": [ "number | undefined" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false }, @@ -1456,7 +1456,7 @@ "signature": [ "number | undefined" ], - "path": "packages/shared-ux/file/types/base_file_client.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/base_file_client.ts", "deprecated": false, "trackAdoption": false } @@ -1494,7 +1494,7 @@ }, " | undefined; }" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1511,7 +1511,7 @@ "signature": [ "\"none\" | \"br\" | \"gzip\" | \"deflate\"" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1544,7 +1544,7 @@ }, " & { FileKind: string; Meta?: Meta | undefined; }" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1561,7 +1561,7 @@ "signature": [ "{ created: string; token: string; name?: string | undefined; valid_until: number; }" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1587,7 +1587,7 @@ }, " & { token: string; }" ], - "path": "packages/shared-ux/file/types/sharing.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/sharing.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -1602,7 +1602,7 @@ "signature": [ "\"AWAITING_UPLOAD\" | \"UPLOADING\" | \"READY\" | \"UPLOAD_ERROR\" | \"DELETED\"" ], - "path": "packages/shared-ux/file/types/index.ts", + "path": "src/platform/packages/shared/shared-ux/file/types/index.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_file_types.mdx b/api_docs/kbn_shared_ux_file_types.mdx index 265b1bcf2f459..38d00717fd580 100644 --- a/api_docs/kbn_shared_ux_file_types.mdx +++ b/api_docs/kbn_shared_ux_file_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-types title: "@kbn/shared-ux-file-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-types'] --- import kbnSharedUxFileTypesObj from './kbn_shared_ux_file_types.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_upload.devdocs.json b/api_docs/kbn_shared_ux_file_upload.devdocs.json index 131c7f36c33a9..41e2654a77df5 100644 --- a/api_docs/kbn_shared_ux_file_upload.devdocs.json +++ b/api_docs/kbn_shared_ux_file_upload.devdocs.json @@ -21,7 +21,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/shared-ux/file/file_upload/impl/src/index.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_upload/impl/src/index.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -41,7 +41,7 @@ "text": "FileUploadProps" } ], - "path": "packages/shared-ux/file/file_upload/impl/src/index.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_upload/impl/src/index.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -69,7 +69,7 @@ }, "" ], - "path": "packages/shared-ux/file/file_upload/impl/src/upload_state.ts", + "path": "src/platform/packages/shared/shared-ux/file/file_upload/impl/src/upload_state.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -80,7 +80,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/shared-ux/file/file_upload/impl/src/upload_state.ts", + "path": "src/platform/packages/shared/shared-ux/file/file_upload/impl/src/upload_state.ts", "deprecated": false, "trackAdoption": false }, @@ -91,7 +91,7 @@ "tags": [], "label": "kind", "description": [], - "path": "packages/shared-ux/file/file_upload/impl/src/upload_state.ts", + "path": "src/platform/packages/shared/shared-ux/file/file_upload/impl/src/upload_state.ts", "deprecated": false, "trackAdoption": false }, @@ -112,7 +112,7 @@ }, "" ], - "path": "packages/shared-ux/file/file_upload/impl/src/upload_state.ts", + "path": "src/platform/packages/shared/shared-ux/file/file_upload/impl/src/upload_state.ts", "deprecated": false, "trackAdoption": false } @@ -133,7 +133,7 @@ "Props", " & { lazyLoadFallback?: React.ReactNode; }" ], - "path": "packages/shared-ux/file/file_upload/impl/src/index.tsx", + "path": "src/platform/packages/shared/shared-ux/file/file_upload/impl/src/index.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_file_upload.mdx b/api_docs/kbn_shared_ux_file_upload.mdx index 4e78bab294ba0..bec2ebdb6bee2 100644 --- a/api_docs/kbn_shared_ux_file_upload.mdx +++ b/api_docs/kbn_shared_ux_file_upload.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-upload title: "@kbn/shared-ux-file-upload" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-upload plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-upload'] --- import kbnSharedUxFileUploadObj from './kbn_shared_ux_file_upload.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_file_util.devdocs.json b/api_docs/kbn_shared_ux_file_util.devdocs.json index bf89b1d3e11a3..c501cba7a7f89 100644 --- a/api_docs/kbn_shared_ux_file_util.devdocs.json +++ b/api_docs/kbn_shared_ux_file_util.devdocs.json @@ -31,7 +31,7 @@ "signature": [ "(width: number, height: number) => { width: number; height: number; }" ], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -45,7 +45,7 @@ "signature": [ "number" ], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -60,7 +60,7 @@ "signature": [ "number" ], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -79,7 +79,7 @@ "signature": [ "({\n width,\n height,\n hash,\n}: { width: number; height: number; hash: string; }) => string" ], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -90,7 +90,7 @@ "tags": [], "label": "{\n width,\n height,\n hash,\n}", "description": [], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -101,7 +101,7 @@ "tags": [], "label": "width", "description": [], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false }, @@ -112,7 +112,7 @@ "tags": [], "label": "height", "description": [], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false }, @@ -123,7 +123,7 @@ "tags": [], "label": "hash", "description": [], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false } @@ -153,7 +153,7 @@ }, " | undefined>" ], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -167,7 +167,7 @@ "signature": [ "Blob | File" ], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -186,7 +186,7 @@ "signature": [ "(file: { type?: string | undefined; }) => boolean" ], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -197,7 +197,7 @@ "tags": [], "label": "file", "description": [], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -211,7 +211,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false } @@ -233,7 +233,7 @@ "BehaviorSubject", ") => T" ], - "path": "packages/shared-ux/file/util/src/use_behavior_subject.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/use_behavior_subject.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -248,7 +248,7 @@ "BehaviorSubject", "" ], - "path": "packages/shared-ux/file/util/src/use_behavior_subject.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/use_behavior_subject.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -279,7 +279,7 @@ }, " | undefined>" ], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -294,7 +294,7 @@ "signature": [ "Blob | File" ], - "path": "packages/shared-ux/file/util/src/image_metadata.ts", + "path": "src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_shared_ux_file_util.mdx b/api_docs/kbn_shared_ux_file_util.mdx index 27645d7b759cd..f0f28935446d6 100644 --- a/api_docs/kbn_shared_ux_file_util.mdx +++ b/api_docs/kbn_shared_ux_file_util.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-file-util title: "@kbn/shared-ux-file-util" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-file-util plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-file-util'] --- import kbnSharedUxFileUtilObj from './kbn_shared_ux_file_util.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_link_redirect_app.devdocs.json b/api_docs/kbn_shared_ux_link_redirect_app.devdocs.json index f2ff63febaf62..d0cddf86fb3e5 100644 --- a/api_docs/kbn_shared_ux_link_redirect_app.devdocs.json +++ b/api_docs/kbn_shared_ux_link_redirect_app.devdocs.json @@ -17,7 +17,7 @@ "RedirectAppLinksComponentProps", ", \"navigateToUrl\">) => React.JSX.Element" ], - "path": "packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.container.tsx", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.container.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -33,7 +33,7 @@ "RedirectAppLinksComponentProps", ", \"navigateToUrl\">" ], - "path": "packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.container.tsx", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.container.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -56,7 +56,7 @@ "RedirectAppLinksComponentProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.component.tsx", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.component.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -70,7 +70,7 @@ "signature": [ "RedirectAppLinksComponentProps" ], - "path": "packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.component.tsx", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.component.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -93,7 +93,7 @@ "RedirectAppLinksProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -107,7 +107,7 @@ "signature": [ "RedirectAppLinksProps" ], - "path": "packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -130,7 +130,7 @@ "RedirectAppLinksKibanaDependencies", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/link/redirect_app/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -146,7 +146,7 @@ "RedirectAppLinksKibanaDependencies", ">" ], - "path": "packages/shared-ux/link/redirect_app/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -169,7 +169,7 @@ "RedirectAppLinksServices", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/link/redirect_app/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -185,7 +185,7 @@ "RedirectAppLinksServices", ">" ], - "path": "packages/shared-ux/link/redirect_app/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -205,7 +205,7 @@ "description": [ "\nKibana-specific contextual services to be adapted for this component." ], - "path": "packages/shared-ux/link/redirect_app/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -223,7 +223,7 @@ "NavigateToUrl", "; }; }" ], - "path": "packages/shared-ux/link/redirect_app/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/types/index.d.ts", "deprecated": false, "trackAdoption": false } @@ -239,7 +239,7 @@ "description": [ "\nContextual services for this component." ], - "path": "packages/shared-ux/link/redirect_app/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -253,7 +253,7 @@ "signature": [ "(url: string) => void | Promise" ], - "path": "packages/shared-ux/link/redirect_app/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/types/index.d.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -265,7 +265,7 @@ "tags": [], "label": "url", "description": [], - "path": "packages/shared-ux/link/redirect_app/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/types/index.d.ts", "deprecated": false, "trackAdoption": false } @@ -281,7 +281,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/link/redirect_app/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/types/index.d.ts", "deprecated": false, "trackAdoption": false } @@ -307,7 +307,7 @@ "RedirectAppLinksServices", ") & React.ClassAttributes & React.HTMLAttributes" ], - "path": "packages/shared-ux/link/redirect_app/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_link_redirect_app.mdx b/api_docs/kbn_shared_ux_link_redirect_app.mdx index 4dc8352f8121d..52e2881aca073 100644 --- a/api_docs/kbn_shared_ux_link_redirect_app.mdx +++ b/api_docs/kbn_shared_ux_link_redirect_app.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-link-redirect-app title: "@kbn/shared-ux-link-redirect-app" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-link-redirect-app plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-link-redirect-app'] --- import kbnSharedUxLinkRedirectAppObj from './kbn_shared_ux_link_redirect_app.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_link_redirect_app_mocks.devdocs.json b/api_docs/kbn_shared_ux_link_redirect_app_mocks.devdocs.json index 3506fc8c049f8..e6afa0e36a086 100644 --- a/api_docs/kbn_shared_ux_link_redirect_app_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_link_redirect_app_mocks.devdocs.json @@ -45,7 +45,7 @@ "RedirectAppLinksProps", ", {}, {}, {}>" ], - "path": "packages/shared-ux/link/redirect_app/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -56,7 +56,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/link/redirect_app/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [] @@ -68,7 +68,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/link/redirect_app/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [] @@ -83,7 +83,7 @@ "signature": [ "never[]" ], - "path": "packages/shared-ux/link/redirect_app/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -99,7 +99,7 @@ "HandlerFunction", "; currentAppId: string; }" ], - "path": "packages/shared-ux/link/redirect_app/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -117,7 +117,7 @@ "HandlerFunction", "; currentAppId: string; }" ], - "path": "packages/shared-ux/link/redirect_app/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -139,7 +139,7 @@ "(params?: Partial | undefined) => ", "RedirectAppLinksKibanaDependencies" ], - "path": "packages/shared-ux/link/redirect_app/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -153,7 +153,7 @@ "signature": [ "Partial | undefined" ], - "path": "packages/shared-ux/link/redirect_app/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -175,7 +175,7 @@ "(params?: Partial | undefined) => ", "RedirectAppLinksServices" ], - "path": "packages/shared-ux/link/redirect_app/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -189,7 +189,7 @@ "signature": [ "Partial | undefined" ], - "path": "packages/shared-ux/link/redirect_app/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "isRequired": false diff --git a/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx b/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx index 0b960915f5d27..22175dece2016 100644 --- a/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx +++ b/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-link-redirect-app-mocks title: "@kbn/shared-ux-link-redirect-app-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-link-redirect-app-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-link-redirect-app-mocks'] --- import kbnSharedUxLinkRedirectAppMocksObj from './kbn_shared_ux_link_redirect_app_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_markdown.devdocs.json b/api_docs/kbn_shared_ux_markdown.devdocs.json index 5fd9725ab3274..fd884486612d4 100644 --- a/api_docs/kbn_shared_ux_markdown.devdocs.json +++ b/api_docs/kbn_shared_ux_markdown.devdocs.json @@ -31,7 +31,7 @@ "MarkdownProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/markdown/impl/markdown.tsx", + "path": "src/platform/packages/shared/shared-ux/markdown/impl/markdown.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -45,7 +45,7 @@ "signature": [ "MarkdownProps" ], - "path": "packages/shared-ux/markdown/impl/markdown.tsx", + "path": "src/platform/packages/shared/shared-ux/markdown/impl/markdown.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true diff --git a/api_docs/kbn_shared_ux_markdown.mdx b/api_docs/kbn_shared_ux_markdown.mdx index 01439eb7cd519..0e32e7881bb8b 100644 --- a/api_docs/kbn_shared_ux_markdown.mdx +++ b/api_docs/kbn_shared_ux_markdown.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-markdown title: "@kbn/shared-ux-markdown" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-markdown plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-markdown'] --- import kbnSharedUxMarkdownObj from './kbn_shared_ux_markdown.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_markdown_mocks.devdocs.json b/api_docs/kbn_shared_ux_markdown_mocks.devdocs.json index 4523a5280635f..5ecb5877de55f 100644 --- a/api_docs/kbn_shared_ux_markdown_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_markdown_mocks.devdocs.json @@ -47,7 +47,7 @@ "MarkdownProps", ", {}, PropArguments, {}>" ], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -58,7 +58,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -69,7 +69,7 @@ "tags": [], "label": "readOnly", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -80,7 +80,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -91,7 +91,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -104,7 +104,7 @@ "tags": [], "label": "openLinksInNewTab", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -115,7 +115,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -126,7 +126,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -139,7 +139,7 @@ "tags": [], "label": "placeholder", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -150,7 +150,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -161,7 +161,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -174,7 +174,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -187,7 +187,7 @@ "tags": [], "label": "markdownContent", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -198,7 +198,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -209,7 +209,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -222,7 +222,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -235,7 +235,7 @@ "tags": [], "label": "ariaLabelContent", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -246,7 +246,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -257,7 +257,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -270,7 +270,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -283,7 +283,7 @@ "tags": [], "label": "height", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -294,7 +294,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -305,7 +305,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -316,7 +316,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -327,7 +327,7 @@ "tags": [], "label": "label", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -341,7 +341,7 @@ "signature": [ "(string | number)[]" ], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -356,7 +356,7 @@ "tags": [], "label": "enableTooltipSupport", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -367,7 +367,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -378,7 +378,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -391,7 +391,7 @@ "tags": [], "label": "validateLinks", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -402,7 +402,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -413,7 +413,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -426,7 +426,7 @@ "tags": [], "label": "enableSoftLineBreaks", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -437,7 +437,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -448,7 +448,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -463,7 +463,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [] @@ -478,7 +478,7 @@ "signature": [ "never[]" ], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -501,7 +501,7 @@ " | undefined) => ", "MarkdownProps" ], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -522,7 +522,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -541,7 +541,7 @@ "() => ", "MarkdownProps" ], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -565,7 +565,7 @@ "signature": [ "{ placeholder: any; height: any; readOnly: any; ariaLabelContent: any; markdownContent: any; openLinksInNewTab: any; }" ], - "path": "packages/shared-ux/markdown/mocks/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_markdown_mocks.mdx b/api_docs/kbn_shared_ux_markdown_mocks.mdx index 1326b71307694..41e1c10de87aa 100644 --- a/api_docs/kbn_shared_ux_markdown_mocks.mdx +++ b/api_docs/kbn_shared_ux_markdown_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-markdown-mocks title: "@kbn/shared-ux-markdown-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-markdown-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-markdown-mocks'] --- import kbnSharedUxMarkdownMocksObj from './kbn_shared_ux_markdown_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_analytics_no_data.devdocs.json b/api_docs/kbn_shared_ux_page_analytics_no_data.devdocs.json index 8ac12b7498124..15ab468f9565b 100644 --- a/api_docs/kbn_shared_ux_page_analytics_no_data.devdocs.json +++ b/api_docs/kbn_shared_ux_page_analytics_no_data.devdocs.json @@ -17,7 +17,7 @@ "AnalyticsNoDataPageProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.tsx", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -31,7 +31,7 @@ "signature": [ "AnalyticsNoDataPageProps" ], - "path": "packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.tsx", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -52,7 +52,7 @@ "signature": [ "({ onDataViewCreated, allowAdHocDataView, showPlainSpinner, onTryESQL, onESQLNavigationComplete, ...services }: AnalyticsNoDataPageProps) => React.JSX.Element" ], - "path": "packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.tsx", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -66,7 +66,7 @@ "signature": [ "AnalyticsNoDataPageProps" ], - "path": "packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.tsx", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -89,7 +89,7 @@ "AnalyticsNoDataPageKibanaDependencies", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/page/analytics_no_data/impl/src/services.tsx", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -105,7 +105,7 @@ "AnalyticsNoDataPageKibanaDependencies", ">" ], - "path": "packages/shared-ux/page/analytics_no_data/impl/src/services.tsx", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -128,7 +128,7 @@ "AnalyticsNoDataPageServices", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/page/analytics_no_data/impl/src/services.tsx", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -144,7 +144,7 @@ "AnalyticsNoDataPageServices", ">" ], - "path": "packages/shared-ux/page/analytics_no_data/impl/src/services.tsx", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -167,7 +167,7 @@ "HasApiKeysResponse", ">" ], - "path": "packages/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -178,7 +178,7 @@ "tags": [], "label": "{\n get,\n}", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -192,7 +192,7 @@ "signature": [ "(path: string) => Promise" ], - "path": "packages/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.ts", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -204,7 +204,7 @@ "tags": [], "label": "path", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/types/index.d.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false } @@ -227,7 +227,7 @@ "description": [ "\nProps for the `AnalyticsNoDataPage` component." ], - "path": "packages/shared-ux/page/analytics_no_data/types/index.d.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -243,7 +243,7 @@ "signature": [ "(dataView: unknown) => void" ], - "path": "packages/shared-ux/page/analytics_no_data/types/index.d.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -257,7 +257,7 @@ "signature": [ "unknown" ], - "path": "packages/shared-ux/page/analytics_no_data/types/index.d.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -277,7 +277,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/shared-ux/page/analytics_no_data/types/index.d.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -293,7 +293,7 @@ "signature": [ "(() => void) | undefined" ], - "path": "packages/shared-ux/page/analytics_no_data/types/index.d.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -311,7 +311,7 @@ "signature": [ "(() => void) | undefined" ], - "path": "packages/shared-ux/page/analytics_no_data/types/index.d.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -343,7 +343,7 @@ " & ", "RedirectAppLinksKibanaDependencies" ], - "path": "packages/shared-ux/page/analytics_no_data/types/index.d.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -368,7 +368,7 @@ " & ", "NoDataViewsPromptServices" ], - "path": "packages/shared-ux/page/analytics_no_data/types/index.d.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_page_analytics_no_data.mdx b/api_docs/kbn_shared_ux_page_analytics_no_data.mdx index 7c21d60a8f907..f27bb023c9300 100644 --- a/api_docs/kbn_shared_ux_page_analytics_no_data.mdx +++ b/api_docs/kbn_shared_ux_page_analytics_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-analytics-no-data title: "@kbn/shared-ux-page-analytics-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-analytics-no-data plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-analytics-no-data'] --- import kbnSharedUxPageAnalyticsNoDataObj from './kbn_shared_ux_page_analytics_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.devdocs.json b/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.devdocs.json index 5617a5d0dcab5..bdeea42d2dc26 100644 --- a/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.devdocs.json @@ -47,7 +47,7 @@ "AnalyticsNoDataPageServices", ", {}, ServiceArguments>" ], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -58,7 +58,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -71,7 +71,7 @@ "description": [ "// requires hasESData to be toggled to true" ], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -82,7 +82,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -93,7 +93,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -108,7 +108,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -119,7 +119,7 @@ "tags": [], "label": "kibanaGuideDocLink", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -130,7 +130,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -141,7 +141,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -154,7 +154,7 @@ "tags": [], "label": "customBranding", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -165,7 +165,7 @@ "tags": [], "label": "hasCustomBranding$", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -176,7 +176,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -187,7 +187,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -214,7 +214,7 @@ }, "[]" ], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -237,7 +237,7 @@ ") => ", "AnalyticsNoDataPageServices" ], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -257,7 +257,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -287,7 +287,7 @@ "HandlerFunction", " | undefined; }" ], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -307,7 +307,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -331,7 +331,7 @@ "() => ", "AnalyticsNoDataPageServices" ], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/jest.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -349,7 +349,7 @@ "() => ", "AnalyticsNoDataPageServices" ], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/jest.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -400,7 +400,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx b/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx index 7770c259c20ff..176d8ca2f05b9 100644 --- a/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-analytics-no-data-mocks title: "@kbn/shared-ux-page-analytics-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-analytics-no-data-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-analytics-no-data-mocks'] --- import kbnSharedUxPageAnalyticsNoDataMocksObj from './kbn_shared_ux_page_analytics_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_no_data.devdocs.json b/api_docs/kbn_shared_ux_page_kibana_no_data.devdocs.json index 95ba7f33a2c46..d0bc5d6a1ffb8 100644 --- a/api_docs/kbn_shared_ux_page_kibana_no_data.devdocs.json +++ b/api_docs/kbn_shared_ux_page_kibana_no_data.devdocs.json @@ -17,7 +17,7 @@ "KibanaNoDataPageProps", ") => React.JSX.Element | null" ], - "path": "packages/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.tsx", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -31,7 +31,7 @@ "signature": [ "KibanaNoDataPageProps" ], - "path": "packages/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.tsx", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -54,7 +54,7 @@ "KibanaNoDataPageKibanaDependencies", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/page/kibana_no_data/impl/src/services.tsx", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -70,7 +70,7 @@ "KibanaNoDataPageKibanaDependencies", ">" ], - "path": "packages/shared-ux/page/kibana_no_data/impl/src/services.tsx", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -93,7 +93,7 @@ "KibanaNoDataPageServices", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/page/kibana_no_data/impl/src/services.tsx", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -109,7 +109,7 @@ "KibanaNoDataPageServices", ">" ], - "path": "packages/shared-ux/page/kibana_no_data/impl/src/services.tsx", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -140,7 +140,7 @@ " & ", "RedirectAppLinksKibanaDependencies" ], - "path": "packages/shared-ux/page/kibana_no_data/types/index.d.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -163,7 +163,7 @@ " & ", "NoDataViewsPromptServices" ], - "path": "packages/shared-ux/page/kibana_no_data/types/index.d.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_page_kibana_no_data.mdx b/api_docs/kbn_shared_ux_page_kibana_no_data.mdx index ee3dbc715d17c..336ee4d12936f 100644 --- a/api_docs/kbn_shared_ux_page_kibana_no_data.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-no-data title: "@kbn/shared-ux-page-kibana-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-no-data plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-no-data'] --- import kbnSharedUxPageKibanaNoDataObj from './kbn_shared_ux_page_kibana_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.devdocs.json b/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.devdocs.json index 070d896e54691..e69fde06fb3d0 100644 --- a/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.devdocs.json @@ -47,7 +47,7 @@ "KibanaNoDataPageServices", ", PropArguments, ServiceArguments>" ], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -58,7 +58,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -69,7 +69,7 @@ "tags": [], "label": "solution", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -80,7 +80,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -91,7 +91,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -104,7 +104,7 @@ "tags": [], "label": "logo", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -115,7 +115,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -126,7 +126,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -142,7 +142,7 @@ "signature": [ "(string | undefined)[]" ], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -156,7 +156,7 @@ "signature": [ "undefined" ], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -171,7 +171,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -182,7 +182,7 @@ "tags": [], "label": "hasESData", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -193,7 +193,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -204,7 +204,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -217,7 +217,7 @@ "tags": [], "label": "hasUserDataView", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -228,7 +228,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -239,7 +239,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -273,7 +273,7 @@ }, ")[]" ], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -297,7 +297,7 @@ "HandlerFunction", "; }" ], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -317,7 +317,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -344,7 +344,7 @@ ") => ", "KibanaNoDataPageServices" ], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -364,7 +364,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -390,7 +390,7 @@ "(params?: Partial | undefined) => ", "KibanaNoDataPageServices" ], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/jest.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -404,7 +404,7 @@ "signature": [ "Partial | undefined" ], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/jest.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -449,7 +449,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx b/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx index 23f5f50121135..68f50819dc368 100644 --- a/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-no-data-mocks title: "@kbn/shared-ux-page-kibana-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-no-data-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-no-data-mocks'] --- import kbnSharedUxPageKibanaNoDataMocksObj from './kbn_shared_ux_page_kibana_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_template.devdocs.json b/api_docs/kbn_shared_ux_page_kibana_template.devdocs.json index 34245292dce46..0e9290d527d72 100644 --- a/api_docs/kbn_shared_ux_page_kibana_template.devdocs.json +++ b/api_docs/kbn_shared_ux_page_kibana_template.devdocs.json @@ -27,7 +27,7 @@ "_EuiPageEmptyPromptProps", ">; }" ], - "path": "packages/shared-ux/page/kibana_template/impl/src/page_template.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/page_template.tsx", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -77,7 +77,7 @@ "NoDataCardKibanaDependencies", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/page/kibana_template/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -93,7 +93,7 @@ "NoDataCardKibanaDependencies", ">" ], - "path": "packages/shared-ux/page/kibana_template/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -116,7 +116,7 @@ "NoDataCardServices", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/page/kibana_template/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -132,7 +132,7 @@ "NoDataCardServices", ">" ], - "path": "packages/shared-ux/page/kibana_template/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -157,7 +157,7 @@ " & ", "RedirectAppLinksKibanaDependencies" ], - "path": "packages/shared-ux/page/kibana_template/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -199,7 +199,7 @@ "EuiPageSidebarProps", " | undefined; }" ], - "path": "packages/shared-ux/page/kibana_template/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -216,7 +216,7 @@ " & ", "RedirectAppLinksServices" ], - "path": "packages/shared-ux/page/kibana_template/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -231,7 +231,7 @@ "signature": [ "NoDataPageProps" ], - "path": "packages/shared-ux/page/no_data_config/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_page_kibana_template.mdx b/api_docs/kbn_shared_ux_page_kibana_template.mdx index 297f500e03c62..f0844f3d3b5b0 100644 --- a/api_docs/kbn_shared_ux_page_kibana_template.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_template.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-template title: "@kbn/shared-ux-page-kibana-template" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-template plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-template'] --- import kbnSharedUxPageKibanaTemplateObj from './kbn_shared_ux_page_kibana_template.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_template_mocks.devdocs.json b/api_docs/kbn_shared_ux_page_kibana_template_mocks.devdocs.json index 349de815053ac..cbc5d29156920 100644 --- a/api_docs/kbn_shared_ux_page_kibana_template_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_page_kibana_template_mocks.devdocs.json @@ -31,7 +31,7 @@ "NoDataCardServices", ", PropArguments, {}>" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -42,7 +42,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -56,7 +56,7 @@ "signature": [ "any" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", "deprecated": false, "trackAdoption": false }, @@ -70,7 +70,7 @@ "signature": [ "any" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", "deprecated": false, "trackAdoption": false } @@ -83,7 +83,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", "deprecated": false, "trackAdoption": false, "children": [] @@ -105,7 +105,7 @@ }, "[]" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", "deprecated": false, "trackAdoption": false }, @@ -128,7 +128,7 @@ " | undefined) => ", "KibanaPageTemplateProps" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -149,7 +149,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -176,7 +176,7 @@ ") => ", "NoDataCardServices" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -196,7 +196,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -238,7 +238,7 @@ "NoDataConfigArguments", ", {}>" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -249,7 +249,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -263,7 +263,7 @@ "signature": [ "any" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", "deprecated": false, "trackAdoption": false } @@ -276,7 +276,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", "deprecated": false, "trackAdoption": false, "children": [] @@ -298,7 +298,7 @@ }, "[]" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", "deprecated": false, "trackAdoption": false }, @@ -321,7 +321,7 @@ " | undefined) => ", "KibanaPageTemplateProps" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -342,7 +342,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -369,7 +369,7 @@ ") => ", "NoDataCardServices" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -389,7 +389,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -431,7 +431,7 @@ "SolutionNavArguments", ", {}>" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -442,7 +442,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -456,7 +456,7 @@ "signature": [ "any" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", "deprecated": false, "trackAdoption": false } @@ -469,7 +469,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", "deprecated": false, "trackAdoption": false, "children": [] @@ -491,7 +491,7 @@ }, "[]" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", "deprecated": false, "trackAdoption": false }, @@ -514,7 +514,7 @@ " | undefined) => ", "KibanaPageTemplateProps" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -535,7 +535,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -562,7 +562,7 @@ ") => ", "NoDataCardServices" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -582,7 +582,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -622,7 +622,7 @@ "NoDataCardServices", ", PropArguments, {}>" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -633,7 +633,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -647,7 +647,7 @@ "signature": [ "any" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", "deprecated": false, "trackAdoption": false } @@ -660,7 +660,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", "deprecated": false, "trackAdoption": false, "children": [] @@ -675,7 +675,7 @@ "signature": [ "never[]" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", "deprecated": false, "trackAdoption": false }, @@ -698,7 +698,7 @@ " | undefined) => ", "KibanaPageTemplateProps" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -719,7 +719,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -746,7 +746,7 @@ ") => ", "NoDataCardServices" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -766,7 +766,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -790,7 +790,7 @@ "() => ", "NoDataCardKibanaDependencies" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -808,7 +808,7 @@ "() => ", "NoDataCardServices" ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -859,7 +859,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -906,7 +906,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -953,7 +953,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -998,7 +998,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", + "path": "src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx b/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx index 849288d35d48c..1a58509f3ff56 100644 --- a/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-template-mocks title: "@kbn/shared-ux-page-kibana-template-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-template-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-template-mocks'] --- import kbnSharedUxPageKibanaTemplateMocksObj from './kbn_shared_ux_page_kibana_template_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data.devdocs.json b/api_docs/kbn_shared_ux_page_no_data.devdocs.json index 4e4cec3565a0d..9b6d43c7c1cbc 100644 --- a/api_docs/kbn_shared_ux_page_no_data.devdocs.json +++ b/api_docs/kbn_shared_ux_page_no_data.devdocs.json @@ -15,7 +15,7 @@ "NoDataPageProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/page/no_data/impl/src/no_data_page.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data/impl/src/no_data_page.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -29,7 +29,7 @@ "signature": [ "NoDataPageProps" ], - "path": "packages/shared-ux/page/no_data/impl/src/no_data_page.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data/impl/src/no_data_page.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -52,7 +52,7 @@ "NoDataCardKibanaDependencies", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/page/no_data/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -68,7 +68,7 @@ "NoDataCardKibanaDependencies", ">" ], - "path": "packages/shared-ux/page/no_data/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -91,7 +91,7 @@ "NoDataCardServices", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/page/no_data/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -107,7 +107,7 @@ "NoDataCardServices", ">" ], - "path": "packages/shared-ux/page/no_data/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -132,7 +132,7 @@ ",", "ActionCardProps" ], - "path": "packages/shared-ux/page/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -145,7 +145,7 @@ "description": [ "\nSingle name for the current solution, used to auto-generate the title, logo, description, and button label" ], - "path": "packages/shared-ux/page/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -161,7 +161,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/page/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -177,7 +177,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/page/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -193,7 +193,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/page/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -209,7 +209,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/page/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false } @@ -233,7 +233,7 @@ " & ", "RedirectAppLinksKibanaDependencies" ], - "path": "packages/shared-ux/page/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -252,7 +252,7 @@ " & ", "RedirectAppLinksServices" ], - "path": "packages/shared-ux/page/no_data/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_page_no_data.mdx b/api_docs/kbn_shared_ux_page_no_data.mdx index 8e6d18b55fd13..e4fbbced66915 100644 --- a/api_docs/kbn_shared_ux_page_no_data.mdx +++ b/api_docs/kbn_shared_ux_page_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data title: "@kbn/shared-ux-page-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data'] --- import kbnSharedUxPageNoDataObj from './kbn_shared_ux_page_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data_config.devdocs.json b/api_docs/kbn_shared_ux_page_no_data_config.devdocs.json index e40c0c7eaf9d2..97a09336048c8 100644 --- a/api_docs/kbn_shared_ux_page_no_data_config.devdocs.json +++ b/api_docs/kbn_shared_ux_page_no_data_config.devdocs.json @@ -15,7 +15,7 @@ "NoDataConfigPageProps", ") => React.JSX.Element | null" ], - "path": "packages/shared-ux/page/no_data_config/impl/src/no_data_config_page.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/no_data_config_page.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -29,7 +29,7 @@ "signature": [ "NoDataConfigPageProps" ], - "path": "packages/shared-ux/page/no_data_config/impl/src/no_data_config_page.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/no_data_config_page.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -52,7 +52,7 @@ "NoDataCardKibanaDependencies", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/page/no_data_config/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -68,7 +68,7 @@ "NoDataCardKibanaDependencies", ">" ], - "path": "packages/shared-ux/page/no_data_config/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -91,7 +91,7 @@ "NoDataCardServices", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/page/no_data_config/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -107,7 +107,7 @@ "NoDataCardServices", ">" ], - "path": "packages/shared-ux/page/no_data_config/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -128,7 +128,7 @@ "NoDataConfigPageProps", ">): React.JSX.Element; displayName: string; }" ], - "path": "packages/shared-ux/page/no_data_config/impl/src/no_data_config_page.tsx", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/no_data_config_page.tsx", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -153,7 +153,7 @@ }, "; }" ], - "path": "packages/shared-ux/page/solution_nav/src/with_solution_nav.tsx", + "path": "src/platform/packages/shared/shared-ux/page/solution_nav/src/with_solution_nav.tsx", "deprecated": false, "trackAdoption": false } @@ -176,7 +176,7 @@ " & ", "RedirectAppLinksKibanaDependencies" ], - "path": "packages/shared-ux/page/no_data_config/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -208,7 +208,7 @@ "EuiPageSidebarProps", " | undefined; }" ], - "path": "packages/shared-ux/page/no_data_config/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -225,7 +225,7 @@ " & ", "RedirectAppLinksServices" ], - "path": "packages/shared-ux/page/no_data_config/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/types/index.d.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_page_no_data_config.mdx b/api_docs/kbn_shared_ux_page_no_data_config.mdx index df2335a8bcc52..5511a7f37b50a 100644 --- a/api_docs/kbn_shared_ux_page_no_data_config.mdx +++ b/api_docs/kbn_shared_ux_page_no_data_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data-config title: "@kbn/shared-ux-page-no-data-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data-config plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data-config'] --- import kbnSharedUxPageNoDataConfigObj from './kbn_shared_ux_page_no_data_config.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data_config_mocks.devdocs.json b/api_docs/kbn_shared_ux_page_no_data_config_mocks.devdocs.json index 5fa02aff2e042..5b58d4649c7ba 100644 --- a/api_docs/kbn_shared_ux_page_no_data_config_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_page_no_data_config_mocks.devdocs.json @@ -47,7 +47,7 @@ "NoDataCardServices", ", PropArguments, {}>" ], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -58,7 +58,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -69,7 +69,7 @@ "tags": [], "label": "solution", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -80,7 +80,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -91,7 +91,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -104,7 +104,7 @@ "tags": [], "label": "logo", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -115,7 +115,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -126,7 +126,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -142,7 +142,7 @@ "signature": [ "(string | undefined)[]" ], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -156,7 +156,7 @@ "signature": [ "undefined" ], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -169,7 +169,7 @@ "tags": [], "label": "docsLink", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -180,7 +180,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -191,7 +191,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -204,7 +204,7 @@ "tags": [], "label": "pageTitle", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -215,7 +215,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -226,7 +226,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -241,7 +241,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [] @@ -263,7 +263,7 @@ }, "[]" ], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -286,7 +286,7 @@ " | undefined) => ", "NoDataConfigPageProps" ], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -307,7 +307,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -334,7 +334,7 @@ ") => ", "NoDataCardServices" ], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -354,7 +354,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -378,7 +378,7 @@ "() => ", "NoDataCardServices" ], - "path": "packages/shared-ux/page/no_data_config/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -421,7 +421,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/no_data_config/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx b/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx index 9d2d989f71944..068c48a3b01a0 100644 --- a/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data-config-mocks title: "@kbn/shared-ux-page-no-data-config-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data-config-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data-config-mocks'] --- import kbnSharedUxPageNoDataConfigMocksObj from './kbn_shared_ux_page_no_data_config_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data_mocks.devdocs.json b/api_docs/kbn_shared_ux_page_no_data_mocks.devdocs.json index 354ec2e94a597..b46b450b895fa 100644 --- a/api_docs/kbn_shared_ux_page_no_data_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_page_no_data_mocks.devdocs.json @@ -47,7 +47,7 @@ "NoDataCardServices", ", PropArguments, {}>" ], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -58,7 +58,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -69,7 +69,7 @@ "tags": [], "label": "solution", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -80,7 +80,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -91,7 +91,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -104,7 +104,7 @@ "tags": [], "label": "logo", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -115,7 +115,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -126,7 +126,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -142,7 +142,7 @@ "signature": [ "(string | undefined)[]" ], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -156,7 +156,7 @@ "signature": [ "undefined" ], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -169,7 +169,7 @@ "tags": [], "label": "docsLink", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -180,7 +180,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -191,7 +191,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -204,7 +204,7 @@ "tags": [], "label": "pageTitle", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -215,7 +215,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -226,7 +226,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -241,7 +241,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [] @@ -263,7 +263,7 @@ }, "[]" ], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -286,7 +286,7 @@ " | undefined) => ", "NoDataPageProps" ], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -307,7 +307,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -334,7 +334,7 @@ ") => ", "NoDataCardServices" ], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -354,7 +354,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -382,7 +382,7 @@ ">) => ", "NoDataCardKibanaDependencies" ], - "path": "packages/shared-ux/page/no_data/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -398,7 +398,7 @@ "NoDataCardServices", ">" ], - "path": "packages/shared-ux/page/no_data/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -420,7 +420,7 @@ ">) => ", "NoDataCardServices" ], - "path": "packages/shared-ux/page/no_data/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -436,7 +436,7 @@ "NoDataCardServices", ">" ], - "path": "packages/shared-ux/page/no_data/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -473,7 +473,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/page/no_data/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_page_no_data_mocks.mdx b/api_docs/kbn_shared_ux_page_no_data_mocks.mdx index ef658086a1b1e..f1d3baa16e384 100644 --- a/api_docs/kbn_shared_ux_page_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data-mocks title: "@kbn/shared-ux-page-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data-mocks'] --- import kbnSharedUxPageNoDataMocksObj from './kbn_shared_ux_page_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_solution_nav.devdocs.json b/api_docs/kbn_shared_ux_page_solution_nav.devdocs.json index 71f4748d80c36..5e0f591f175eb 100644 --- a/api_docs/kbn_shared_ux_page_solution_nav.devdocs.json +++ b/api_docs/kbn_shared_ux_page_solution_nav.devdocs.json @@ -39,7 +39,7 @@ }, ") => React.JSX.Element" ], - "path": "packages/shared-ux/page/solution_nav/src/solution_nav.tsx", + "path": "src/platform/packages/shared/shared-ux/page/solution_nav/src/solution_nav.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -59,7 +59,7 @@ "text": "SolutionNavProps" } ], - "path": "packages/shared-ux/page/solution_nav/src/solution_nav.tsx", + "path": "src/platform/packages/shared/shared-ux/page/solution_nav/src/solution_nav.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -80,7 +80,7 @@ "TemplateProps", ">(WrappedComponent: React.ComponentType

) => { (props: Props

): React.JSX.Element; displayName: string; }" ], - "path": "packages/shared-ux/page/solution_nav/src/with_solution_nav.tsx", + "path": "src/platform/packages/shared/shared-ux/page/solution_nav/src/with_solution_nav.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -94,7 +94,7 @@ "signature": [ "React.ComponentType

" ], - "path": "packages/shared-ux/page/solution_nav/src/with_solution_nav.tsx", + "path": "src/platform/packages/shared/shared-ux/page/solution_nav/src/with_solution_nav.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -125,7 +125,7 @@ "EuiSideNavItemType", "<{}>[] | undefined; children?: React.ReactNode; closeFlyoutButtonPosition?: \"inside\" | \"outside\" | undefined; isOpenOnDesktop?: boolean | undefined; onCollapse?: (() => void) | undefined; canBeCollapsed?: boolean | undefined; }" ], - "path": "packages/shared-ux/page/solution_nav/src/solution_nav.tsx", + "path": "src/platform/packages/shared/shared-ux/page/solution_nav/src/solution_nav.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_page_solution_nav.mdx b/api_docs/kbn_shared_ux_page_solution_nav.mdx index 5b611f18c255b..54479eccee69d 100644 --- a/api_docs/kbn_shared_ux_page_solution_nav.mdx +++ b/api_docs/kbn_shared_ux_page_solution_nav.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-solution-nav title: "@kbn/shared-ux-page-solution-nav" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-solution-nav plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-solution-nav'] --- import kbnSharedUxPageSolutionNavObj from './kbn_shared_ux_page_solution_nav.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_prompt_no_data_views.devdocs.json b/api_docs/kbn_shared_ux_prompt_no_data_views.devdocs.json index ed875e1cf5201..2ab4e1262c56c 100644 --- a/api_docs/kbn_shared_ux_prompt_no_data_views.devdocs.json +++ b/api_docs/kbn_shared_ux_prompt_no_data_views.devdocs.json @@ -13,7 +13,7 @@ "signature": [ "() => React.JSX.Element" ], - "path": "packages/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.tsx", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -34,7 +34,7 @@ "NoDataViewsPromptProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.tsx", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/impl/src/no_data_views.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -48,7 +48,7 @@ "signature": [ "NoDataViewsPromptProps" ], - "path": "packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.tsx", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/impl/src/no_data_views.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -71,7 +71,7 @@ "NoDataViewsPromptComponentProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.tsx", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -85,7 +85,7 @@ "signature": [ "NoDataViewsPromptComponentProps" ], - "path": "packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.tsx", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -108,7 +108,7 @@ "NoDataViewsPromptKibanaDependencies", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/prompt/no_data_views/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -124,7 +124,7 @@ "NoDataViewsPromptKibanaDependencies", ">" ], - "path": "packages/shared-ux/prompt/no_data_views/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -147,7 +147,7 @@ "NoDataViewsPromptServices", ">) => React.JSX.Element" ], - "path": "packages/shared-ux/prompt/no_data_views/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -163,7 +163,7 @@ "NoDataViewsPromptServices", ">" ], - "path": "packages/shared-ux/prompt/no_data_views/impl/src/services.tsx", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/impl/src/services.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -184,7 +184,7 @@ "UseOnTryEsqlParams", ") => (() => void) | undefined" ], - "path": "packages/shared-ux/prompt/no_data_views/impl/src/hooks/use_on_try_esql.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/impl/src/hooks/use_on_try_esql.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -198,7 +198,7 @@ "signature": [ "UseOnTryEsqlParams" ], - "path": "packages/shared-ux/prompt/no_data_views/impl/src/hooks/use_on_try_esql.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/impl/src/hooks/use_on_try_esql.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -216,7 +216,7 @@ "tags": [], "label": "NoDataViewsPromptComponentProps", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -229,7 +229,7 @@ "description": [ "True if the user has permission to create a data view, false otherwise." ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -245,7 +245,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -262,7 +262,7 @@ "PanelColor", " | undefined" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -278,7 +278,7 @@ "signature": [ "(() => void) | undefined" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -296,7 +296,7 @@ "signature": [ "(() => void) | undefined" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -314,7 +314,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false } @@ -330,7 +330,7 @@ "description": [ "\nKibana-specific service types." ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -346,7 +346,7 @@ "NavigateToAppFn", "; }; }" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -362,7 +362,7 @@ "DataViewEditorOptions", ") => () => void; }" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -378,7 +378,7 @@ "ILocatorClient", "; }; } | undefined" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false } @@ -392,7 +392,7 @@ "tags": [], "label": "NoDataViewsPromptProps", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -408,7 +408,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -424,7 +424,7 @@ "signature": [ "(dataView: unknown) => void" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -438,7 +438,7 @@ "signature": [ "unknown" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -458,7 +458,7 @@ "signature": [ "(() => void) | undefined" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -476,7 +476,7 @@ "signature": [ "(() => void) | undefined" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -494,7 +494,7 @@ "signature": [ "any" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false } @@ -510,7 +510,7 @@ "description": [ "\nAbstract external services for this component." ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -523,7 +523,7 @@ "description": [ "True if the user has permission to create a new Data View, false otherwise." ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -541,7 +541,7 @@ "DataViewEditorOptions", ") => () => void" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -555,7 +555,7 @@ "signature": [ "DataViewEditorOptions" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -572,7 +572,7 @@ "description": [ "A link to information about Data Views in Kibana" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -588,7 +588,7 @@ "signature": [ "(() => void) | undefined" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false }, @@ -601,7 +601,7 @@ "description": [ "A link to the documentation for ES|QL" ], - "path": "packages/shared-ux/prompt/no_data_views/types/index.d.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_shared_ux_prompt_no_data_views.mdx b/api_docs/kbn_shared_ux_prompt_no_data_views.mdx index 6078a8711dd0e..837e655f977f9 100644 --- a/api_docs/kbn_shared_ux_prompt_no_data_views.mdx +++ b/api_docs/kbn_shared_ux_prompt_no_data_views.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-prompt-no-data-views title: "@kbn/shared-ux-prompt-no-data-views" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-prompt-no-data-views plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-prompt-no-data-views'] --- import kbnSharedUxPromptNoDataViewsObj from './kbn_shared_ux_prompt_no_data_views.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.devdocs.json b/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.devdocs.json index 74155681879fe..5f2a692d8146f 100644 --- a/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.devdocs.json @@ -31,7 +31,7 @@ "NoDataViewsPromptServices", ", {}, ServiceArguments>" ], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -42,7 +42,7 @@ "tags": [], "label": "propArguments", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [] @@ -54,7 +54,7 @@ "tags": [], "label": "serviceArguments", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -65,7 +65,7 @@ "tags": [], "label": "canCreateNewDataView", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -76,7 +76,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -87,7 +87,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -100,7 +100,7 @@ "tags": [], "label": "dataViewsDocLink", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -114,7 +114,7 @@ "signature": [ "(string | undefined)[]" ], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -125,7 +125,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -136,7 +136,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -149,7 +149,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -162,7 +162,7 @@ "tags": [], "label": "canTryEsql", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -173,7 +173,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -184,7 +184,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -197,7 +197,7 @@ "tags": [], "label": "esqlDocLink", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -211,7 +211,7 @@ "signature": [ "(string | undefined)[]" ], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -222,7 +222,7 @@ "tags": [], "label": "control", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -233,7 +233,7 @@ "tags": [], "label": "type", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -246,7 +246,7 @@ "tags": [], "label": "defaultValue", "description": [], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false } @@ -264,7 +264,7 @@ "signature": [ "never[]" ], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false }, @@ -280,7 +280,7 @@ "HandlerFunction", "; }" ], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -305,7 +305,7 @@ ") => ", "NoDataViewsPromptServices" ], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -325,7 +325,7 @@ "text": "Params" } ], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -353,7 +353,7 @@ ">) => ", "NoDataViewsPromptServices" ], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -369,7 +369,7 @@ "NoDataViewsPromptServices", ">" ], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/jest.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/jest.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -392,7 +392,7 @@ "signature": [ "{ canCreateNewDataView: any; dataViewsDocLink: any; esqlDocLink: any; canTryEsql: any; }" ], - "path": "packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", + "path": "src/platform/packages/shared/shared-ux/prompt/no_data_views/mocks/src/storybook.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx b/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx index 3d70dbcbb9bb7..9b57a3ec26197 100644 --- a/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx +++ b/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-prompt-no-data-views-mocks title: "@kbn/shared-ux-prompt-no-data-views-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-prompt-no-data-views-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-prompt-no-data-views-mocks'] --- import kbnSharedUxPromptNoDataViewsMocksObj from './kbn_shared_ux_prompt_no_data_views_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_prompt_not_found.devdocs.json b/api_docs/kbn_shared_ux_prompt_not_found.devdocs.json index 5daa3985a6fe4..39e27b80e2377 100644 --- a/api_docs/kbn_shared_ux_prompt_not_found.devdocs.json +++ b/api_docs/kbn_shared_ux_prompt_not_found.devdocs.json @@ -31,7 +31,7 @@ "signature": [ "({ actions, title, body }: NotFoundProps) => React.JSX.Element" ], - "path": "packages/shared-ux/prompt/not_found/src/not_found_prompt.tsx", + "path": "src/platform/packages/shared/shared-ux/prompt/not_found/src/not_found_prompt.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -45,7 +45,7 @@ "signature": [ "NotFoundProps" ], - "path": "packages/shared-ux/prompt/not_found/src/not_found_prompt.tsx", + "path": "src/platform/packages/shared/shared-ux/prompt/not_found/src/not_found_prompt.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true diff --git a/api_docs/kbn_shared_ux_prompt_not_found.mdx b/api_docs/kbn_shared_ux_prompt_not_found.mdx index cf233a90a7ae6..a2414b5d0559e 100644 --- a/api_docs/kbn_shared_ux_prompt_not_found.mdx +++ b/api_docs/kbn_shared_ux_prompt_not_found.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-prompt-not-found title: "@kbn/shared-ux-prompt-not-found" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-prompt-not-found plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-prompt-not-found'] --- import kbnSharedUxPromptNotFoundObj from './kbn_shared_ux_prompt_not_found.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_router.devdocs.json b/api_docs/kbn_shared_ux_router.devdocs.json index 3fca78561f638..2c315d52fd3ab 100644 --- a/api_docs/kbn_shared_ux_router.devdocs.json +++ b/api_docs/kbn_shared_ux_router.devdocs.json @@ -31,7 +31,7 @@ "BrowserRouterProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/router/impl/router.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/router.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -45,7 +45,7 @@ "signature": [ "BrowserRouterProps" ], - "path": "packages/shared-ux/router/impl/router.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/router.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -66,7 +66,7 @@ "HashRouterProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/router/impl/router.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/router.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -80,7 +80,7 @@ "signature": [ "HashRouterProps" ], - "path": "packages/shared-ux/router/impl/router.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/router.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -101,7 +101,7 @@ "MemoryRouterProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/router/impl/router.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/router.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -115,7 +115,7 @@ "signature": [ "MemoryRouterProps" ], - "path": "packages/shared-ux/router/impl/router.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/router.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -138,7 +138,7 @@ "RouteProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/router/impl/route.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/route.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -153,7 +153,7 @@ "RouteProps", "" ], - "path": "packages/shared-ux/router/impl/route.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/route.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -174,7 +174,7 @@ "RouterProps", ") => React.JSX.Element" ], - "path": "packages/shared-ux/router/impl/router.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/router.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -188,7 +188,7 @@ "signature": [ "RouterProps" ], - "path": "packages/shared-ux/router/impl/router.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/router.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -207,7 +207,7 @@ "signature": [ "({ legacySwitch, enableExecutionContextTracking, children, }: { legacySwitch?: boolean | undefined; enableExecutionContextTracking?: boolean | undefined; children: React.ReactNode; }) => React.JSX.Element" ], - "path": "packages/shared-ux/router/impl/routes.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/routes.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -218,7 +218,7 @@ "tags": [], "label": "{\n legacySwitch = true,\n enableExecutionContextTracking = false,\n children,\n}", "description": [], - "path": "packages/shared-ux/router/impl/routes.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/routes.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -232,7 +232,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/shared-ux/router/impl/routes.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/routes.tsx", "deprecated": false, "trackAdoption": false }, @@ -246,7 +246,7 @@ "signature": [ "boolean | undefined" ], - "path": "packages/shared-ux/router/impl/routes.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/routes.tsx", "deprecated": false, "trackAdoption": false }, @@ -260,7 +260,7 @@ "signature": [ "string | number | boolean | React.ReactElement> | Iterable | React.ReactPortal | null | undefined" ], - "path": "packages/shared-ux/router/impl/routes.tsx", + "path": "src/platform/packages/shared/shared-ux/router/impl/routes.tsx", "deprecated": false, "trackAdoption": false } @@ -289,7 +289,7 @@ "SharedUXExecutionContextSetup", ">>>" ], - "path": "packages/shared-ux/router/impl/services.ts", + "path": "src/platform/packages/shared/shared-ux/router/impl/services.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_router.mdx b/api_docs/kbn_shared_ux_router.mdx index 5c9c412ee83f1..ff74a3e4a2177 100644 --- a/api_docs/kbn_shared_ux_router.mdx +++ b/api_docs/kbn_shared_ux_router.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-router title: "@kbn/shared-ux-router" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-router plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-router'] --- import kbnSharedUxRouterObj from './kbn_shared_ux_router.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_router_mocks.devdocs.json b/api_docs/kbn_shared_ux_router_mocks.devdocs.json index db66a62441697..18844634917dc 100644 --- a/api_docs/kbn_shared_ux_router_mocks.devdocs.json +++ b/api_docs/kbn_shared_ux_router_mocks.devdocs.json @@ -29,7 +29,7 @@ "signature": [ "() => string" ], - "path": "packages/shared-ux/router/mocks/index.ts", + "path": "src/platform/packages/shared/shared-ux/router/mocks/index.ts", "deprecated": false, "trackAdoption": false, "children": [], diff --git a/api_docs/kbn_shared_ux_router_mocks.mdx b/api_docs/kbn_shared_ux_router_mocks.mdx index 066abaee28151..18720f83289d5 100644 --- a/api_docs/kbn_shared_ux_router_mocks.mdx +++ b/api_docs/kbn_shared_ux_router_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-router-mocks title: "@kbn/shared-ux-router-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-router-mocks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-router-mocks'] --- import kbnSharedUxRouterMocksObj from './kbn_shared_ux_router_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_storybook_config.devdocs.json b/api_docs/kbn_shared_ux_storybook_config.devdocs.json index 181e3865aa529..79e6431fdf47f 100644 --- a/api_docs/kbn_shared_ux_storybook_config.devdocs.json +++ b/api_docs/kbn_shared_ux_storybook_config.devdocs.json @@ -34,7 +34,7 @@ "signature": [ "\"Shared UX Storybook\"" ], - "path": "packages/shared-ux/storybook/config/constants.ts", + "path": "src/platform/packages/private/shared-ux/storybook/config/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -51,7 +51,7 @@ "signature": [ "\"https://github.com/elastic/kibana/tree/main/packages/shared_ux\"" ], - "path": "packages/shared-ux/storybook/config/constants.ts", + "path": "src/platform/packages/private/shared-ux/storybook/config/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_storybook_config.mdx b/api_docs/kbn_shared_ux_storybook_config.mdx index 69292e802c58c..40dfbf552de03 100644 --- a/api_docs/kbn_shared_ux_storybook_config.mdx +++ b/api_docs/kbn_shared_ux_storybook_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-storybook-config title: "@kbn/shared-ux-storybook-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-storybook-config plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-storybook-config'] --- import kbnSharedUxStorybookConfigObj from './kbn_shared_ux_storybook_config.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_storybook_mock.devdocs.json b/api_docs/kbn_shared_ux_storybook_mock.devdocs.json index 4736b2493fd6e..1e929bc469059 100644 --- a/api_docs/kbn_shared_ux_storybook_mock.devdocs.json +++ b/api_docs/kbn_shared_ux_storybook_mock.devdocs.json @@ -37,7 +37,7 @@ }, "" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -55,7 +55,7 @@ "InputType", "; }" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false }, @@ -73,7 +73,7 @@ "InputType", "; }" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false }, @@ -98,7 +98,7 @@ "Args", ", Partial, {}, {}>[]" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false }, @@ -116,7 +116,7 @@ "ArgTypes", "" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -140,7 +140,7 @@ "Args", ">>" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -166,7 +166,7 @@ "Args", ">>" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "children": [], @@ -192,7 +192,7 @@ }, " | undefined) => any" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -206,7 +206,7 @@ "signature": [ "keyof PropArguments | keyof ServiceArguments" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -228,7 +228,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -256,7 +256,7 @@ }, " | undefined) => Props" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -277,7 +277,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -305,7 +305,7 @@ }, " | undefined) => Services" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -326,7 +326,7 @@ }, " | undefined" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -354,7 +354,7 @@ "signature": [ "{ [P in keyof PropArguments | keyof ServiceArguments]: any; }" ], - "path": "packages/shared-ux/storybook/mock/src/mocks.ts", + "path": "src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_storybook_mock.mdx b/api_docs/kbn_shared_ux_storybook_mock.mdx index fdc5553e81a42..d2e8397611a71 100644 --- a/api_docs/kbn_shared_ux_storybook_mock.mdx +++ b/api_docs/kbn_shared_ux_storybook_mock.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-storybook-mock title: "@kbn/shared-ux-storybook-mock" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-storybook-mock plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-storybook-mock'] --- import kbnSharedUxStorybookMockObj from './kbn_shared_ux_storybook_mock.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_tabbed_modal.devdocs.json b/api_docs/kbn_shared_ux_tabbed_modal.devdocs.json index 420990f6614fe..120fc21c7d555 100644 --- a/api_docs/kbn_shared_ux_tabbed_modal.devdocs.json +++ b/api_docs/kbn_shared_ux_tabbed_modal.devdocs.json @@ -33,7 +33,7 @@ "ITabbedModalInner", ") => React.JSX.Element" ], - "path": "packages/shared-ux/modal/tabbed/src/tabbed_modal.tsx", + "path": "src/platform/packages/shared/shared-ux/modal/tabbed/src/tabbed_modal.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -50,7 +50,7 @@ ", \"children\"> & ", "ITabbedModalInner" ], - "path": "packages/shared-ux/modal/tabbed/src/tabbed_modal.tsx", + "path": "src/platform/packages/shared/shared-ux/modal/tabbed/src/tabbed_modal.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -82,7 +82,7 @@ "ITabDeclaration", "" ], - "path": "packages/shared-ux/modal/tabbed/src/tabbed_modal.tsx", + "path": "src/platform/packages/shared/shared-ux/modal/tabbed/src/tabbed_modal.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -96,7 +96,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/modal/tabbed/src/tabbed_modal.tsx", + "path": "src/platform/packages/shared/shared-ux/modal/tabbed/src/tabbed_modal.tsx", "deprecated": false, "trackAdoption": false }, @@ -110,7 +110,7 @@ "signature": [ "string | undefined" ], - "path": "packages/shared-ux/modal/tabbed/src/tabbed_modal.tsx", + "path": "src/platform/packages/shared/shared-ux/modal/tabbed/src/tabbed_modal.tsx", "deprecated": false, "trackAdoption": false }, @@ -126,7 +126,7 @@ "IDispatchFunction", "; }) => React.ReactElement>" ], - "path": "packages/shared-ux/modal/tabbed/src/tabbed_modal.tsx", + "path": "src/platform/packages/shared/shared-ux/modal/tabbed/src/tabbed_modal.tsx", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -143,7 +143,7 @@ "IDispatchFunction", "; }" ], - "path": "packages/shared-ux/modal/tabbed/src/tabbed_modal.tsx", + "path": "src/platform/packages/shared/shared-ux/modal/tabbed/src/tabbed_modal.tsx", "deprecated": false, "trackAdoption": false } @@ -159,7 +159,7 @@ "signature": [ "IModalTabActionBtn | undefined" ], - "path": "packages/shared-ux/modal/tabbed/src/tabbed_modal.tsx", + "path": "src/platform/packages/shared/shared-ux/modal/tabbed/src/tabbed_modal.tsx", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_shared_ux_tabbed_modal.mdx b/api_docs/kbn_shared_ux_tabbed_modal.mdx index a75e4f13fe270..72c25ffbb2554 100644 --- a/api_docs/kbn_shared_ux_tabbed_modal.mdx +++ b/api_docs/kbn_shared_ux_tabbed_modal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-tabbed-modal title: "@kbn/shared-ux-tabbed-modal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-tabbed-modal plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-tabbed-modal'] --- import kbnSharedUxTabbedModalObj from './kbn_shared_ux_tabbed_modal.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_table_persist.devdocs.json b/api_docs/kbn_shared_ux_table_persist.devdocs.json index 1abcdffc47de4..788f6d44826d6 100644 --- a/api_docs/kbn_shared_ux_table_persist.devdocs.json +++ b/api_docs/kbn_shared_ux_table_persist.devdocs.json @@ -39,7 +39,7 @@ "CriteriaWithPagination", ") => void; }" ], - "path": "packages/shared-ux/table_persist/src/use_table_persist.ts", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/use_table_persist.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -56,7 +56,7 @@ "PropertySort", "; }" ], - "path": "packages/shared-ux/table_persist/src/use_table_persist.ts", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/use_table_persist.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -79,7 +79,7 @@ "CriteriaWithPagination", ") => void; }" ], - "path": "packages/shared-ux/table_persist/src/use_table_persist.ts", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/use_table_persist.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -94,7 +94,7 @@ "EuiTablePersistProps", " & { initialSort?: undefined; }" ], - "path": "packages/shared-ux/table_persist/src/use_table_persist.ts", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/use_table_persist.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -119,7 +119,7 @@ "CriteriaWithPagination", ") => void; }" ], - "path": "packages/shared-ux/table_persist/src/use_table_persist.ts", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/use_table_persist.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -134,7 +134,7 @@ "EuiTablePersistProps", "" ], - "path": "packages/shared-ux/table_persist/src/use_table_persist.ts", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/use_table_persist.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -159,7 +159,7 @@ "CriteriaWithPagination", ") => void; }" ], - "path": "packages/shared-ux/table_persist/src/use_table_persist.ts", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/use_table_persist.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -174,7 +174,7 @@ "EuiTablePersistProps", "" ], - "path": "packages/shared-ux/table_persist/src/use_table_persist.ts", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/use_table_persist.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -219,7 +219,7 @@ }, ">>" ], - "path": "packages/shared-ux/table_persist/src/table_persist_hoc.tsx", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/table_persist_hoc.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -241,7 +241,7 @@ }, ", any>" ], - "path": "packages/shared-ux/table_persist/src/table_persist_hoc.tsx", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/table_persist_hoc.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -266,7 +266,7 @@ }, "; }" ], - "path": "packages/shared-ux/table_persist/src/table_persist_hoc.tsx", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/table_persist_hoc.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -294,7 +294,7 @@ }, "" ], - "path": "packages/shared-ux/table_persist/src/table_persist_hoc.tsx", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/table_persist_hoc.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -312,7 +312,7 @@ "PropertySort", "; }; pageSize: number; }" ], - "path": "packages/shared-ux/table_persist/src/table_persist_hoc.tsx", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/table_persist_hoc.tsx", "deprecated": false, "trackAdoption": false } @@ -332,7 +332,7 @@ "signature": [ "number[]" ], - "path": "packages/shared-ux/table_persist/src/constants.ts", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -349,7 +349,7 @@ "EuiTablePersistProps", "" ], - "path": "packages/shared-ux/table_persist/src/table_persist_hoc.tsx", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/table_persist_hoc.tsx", "deprecated": false, "trackAdoption": false, "returnComment": [], @@ -364,7 +364,7 @@ "signature": [ "{ [P in Exclude]: P[P]; }" ], - "path": "packages/shared-ux/table_persist/src/table_persist_hoc.tsx", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/table_persist_hoc.tsx", "deprecated": false, "trackAdoption": false } @@ -383,7 +383,7 @@ "EuiTablePersistProps", "> | undefined; }" ], - "path": "packages/shared-ux/table_persist/src/table_persist_hoc.tsx", + "path": "src/platform/packages/shared/shared-ux/table_persist/src/table_persist_hoc.tsx", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/kbn_shared_ux_table_persist.mdx b/api_docs/kbn_shared_ux_table_persist.mdx index 2963445fda157..b4162f4f0f519 100644 --- a/api_docs/kbn_shared_ux_table_persist.mdx +++ b/api_docs/kbn_shared_ux_table_persist.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-table-persist title: "@kbn/shared-ux-table-persist" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-table-persist plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-table-persist'] --- import kbnSharedUxTablePersistObj from './kbn_shared_ux_table_persist.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_utility.devdocs.json b/api_docs/kbn_shared_ux_utility.devdocs.json index 712774ac927f0..6ec521190519c 100644 --- a/api_docs/kbn_shared_ux_utility.devdocs.json +++ b/api_docs/kbn_shared_ux_utility.devdocs.json @@ -39,7 +39,7 @@ }, ") => React.ForwardRefExoticComponent> & React.RefAttributes>" ], - "path": "packages/kbn-shared-ux-utility/src/dynamic/dynamic.tsx", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/dynamic.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -53,7 +53,7 @@ "signature": [ "Loader" ], - "path": "packages/kbn-shared-ux-utility/src/dynamic/dynamic.tsx", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/dynamic.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -74,7 +74,7 @@ "text": "DynamicOptions" } ], - "path": "packages/kbn-shared-ux-utility/src/dynamic/dynamic.tsx", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/dynamic.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -95,7 +95,7 @@ "signature": [ "() => React.JSX.Element" ], - "path": "packages/kbn-shared-ux-utility/src/fallback.tsx", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/fallback.tsx", "deprecated": false, "trackAdoption": false, "children": [], @@ -114,7 +114,7 @@ "signature": [ "(element: HTMLElement | null | undefined, container?: HTMLElement | undefined) => HTMLAnchorElement | undefined" ], - "path": "packages/kbn-shared-ux-utility/src/utils.ts", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -128,7 +128,7 @@ "signature": [ "HTMLElement | null | undefined" ], - "path": "packages/kbn-shared-ux-utility/src/utils.ts", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -143,7 +143,7 @@ "signature": [ "HTMLElement | undefined" ], - "path": "packages/kbn-shared-ux-utility/src/utils.ts", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -164,7 +164,7 @@ "signature": [ "(event: React.MouseEvent) => boolean" ], - "path": "packages/kbn-shared-ux-utility/src/utils.ts", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/utils.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -178,7 +178,7 @@ "signature": [ "React.MouseEvent" ], - "path": "packages/kbn-shared-ux-utility/src/utils.ts", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/utils.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -207,7 +207,7 @@ }, "> & React.RefAttributes>" ], - "path": "packages/kbn-shared-ux-utility/src/with_suspense.tsx", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/with_suspense.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -223,7 +223,7 @@ "signature": [ "React.ComponentType

" ], - "path": "packages/kbn-shared-ux-utility/src/with_suspense.tsx", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/with_suspense.tsx", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -240,7 +240,7 @@ "signature": [ "React.ReactElement> | null" ], - "path": "packages/kbn-shared-ux-utility/src/with_suspense.tsx", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/with_suspense.tsx", "deprecated": false, "trackAdoption": false, "isRequired": false @@ -260,7 +260,7 @@ "description": [ "\nOptions for the lazy loaded component" ], - "path": "packages/kbn-shared-ux-utility/src/dynamic/dynamic.tsx", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/dynamic.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -274,7 +274,7 @@ "signature": [ "string | number | boolean | React.ReactElement> | Iterable | React.ReactPortal | null | undefined" ], - "path": "packages/kbn-shared-ux-utility/src/dynamic/dynamic.tsx", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/dynamic.tsx", "deprecated": false, "trackAdoption": false } @@ -290,7 +290,7 @@ "description": [ "\nOptional services that the Suspense wrapper can use" ], - "path": "packages/kbn-shared-ux-utility/src/with_suspense.tsx", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/with_suspense.tsx", "deprecated": false, "trackAdoption": false, "children": [ @@ -307,7 +307,7 @@ "AnalyticsServiceStart", " | undefined" ], - "path": "packages/kbn-shared-ux-utility/src/with_suspense.tsx", + "path": "src/platform/packages/shared/kbn-shared-ux-utility/src/with_suspense.tsx", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_shared_ux_utility.mdx b/api_docs/kbn_shared_ux_utility.mdx index d7578ff32cde7..fde9a2c13fcdc 100644 --- a/api_docs/kbn_shared_ux_utility.mdx +++ b/api_docs/kbn_shared_ux_utility.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-utility title: "@kbn/shared-ux-utility" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-utility plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-utility'] --- import kbnSharedUxUtilityObj from './kbn_shared_ux_utility.devdocs.json'; diff --git a/api_docs/kbn_slo_schema.mdx b/api_docs/kbn_slo_schema.mdx index afee50e721108..3c53631b0acb6 100644 --- a/api_docs/kbn_slo_schema.mdx +++ b/api_docs/kbn_slo_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-slo-schema title: "@kbn/slo-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/slo-schema plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/slo-schema'] --- import kbnSloSchemaObj from './kbn_slo_schema.devdocs.json'; diff --git a/api_docs/kbn_some_dev_log.mdx b/api_docs/kbn_some_dev_log.mdx index 8066cd6ebf22a..d5374f08d40c0 100644 --- a/api_docs/kbn_some_dev_log.mdx +++ b/api_docs/kbn_some_dev_log.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-some-dev-log title: "@kbn/some-dev-log" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/some-dev-log plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/some-dev-log'] --- import kbnSomeDevLogObj from './kbn_some_dev_log.devdocs.json'; diff --git a/api_docs/kbn_sort_predicates.mdx b/api_docs/kbn_sort_predicates.mdx index 452f1caeff9dd..ed93aca1393da 100644 --- a/api_docs/kbn_sort_predicates.mdx +++ b/api_docs/kbn_sort_predicates.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-sort-predicates title: "@kbn/sort-predicates" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/sort-predicates plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/sort-predicates'] --- import kbnSortPredicatesObj from './kbn_sort_predicates.devdocs.json'; diff --git a/api_docs/kbn_sse_utils.mdx b/api_docs/kbn_sse_utils.mdx index 18bc791d5e308..4d39056145c09 100644 --- a/api_docs/kbn_sse_utils.mdx +++ b/api_docs/kbn_sse_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-sse-utils title: "@kbn/sse-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/sse-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/sse-utils'] --- import kbnSseUtilsObj from './kbn_sse_utils.devdocs.json'; diff --git a/api_docs/kbn_sse_utils_client.mdx b/api_docs/kbn_sse_utils_client.mdx index e6830a8ade6b3..e1a45009f3dc2 100644 --- a/api_docs/kbn_sse_utils_client.mdx +++ b/api_docs/kbn_sse_utils_client.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-sse-utils-client title: "@kbn/sse-utils-client" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/sse-utils-client plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/sse-utils-client'] --- import kbnSseUtilsClientObj from './kbn_sse_utils_client.devdocs.json'; diff --git a/api_docs/kbn_sse_utils_server.mdx b/api_docs/kbn_sse_utils_server.mdx index 1c18fc9e4037e..15e1454cb6c0c 100644 --- a/api_docs/kbn_sse_utils_server.mdx +++ b/api_docs/kbn_sse_utils_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-sse-utils-server title: "@kbn/sse-utils-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/sse-utils-server plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/sse-utils-server'] --- import kbnSseUtilsServerObj from './kbn_sse_utils_server.devdocs.json'; diff --git a/api_docs/kbn_std.mdx b/api_docs/kbn_std.mdx index b10ac22036c0e..f8f1b05e8a669 100644 --- a/api_docs/kbn_std.mdx +++ b/api_docs/kbn_std.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-std title: "@kbn/std" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/std plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/std'] --- import kbnStdObj from './kbn_std.devdocs.json'; diff --git a/api_docs/kbn_stdio_dev_helpers.mdx b/api_docs/kbn_stdio_dev_helpers.mdx index 7bf4df86edb6e..dc56534f9cd36 100644 --- a/api_docs/kbn_stdio_dev_helpers.mdx +++ b/api_docs/kbn_stdio_dev_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-stdio-dev-helpers title: "@kbn/stdio-dev-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/stdio-dev-helpers plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/stdio-dev-helpers'] --- import kbnStdioDevHelpersObj from './kbn_stdio_dev_helpers.devdocs.json'; diff --git a/api_docs/kbn_storybook.mdx b/api_docs/kbn_storybook.mdx index 5908e7658de7c..e91ac684f525d 100644 --- a/api_docs/kbn_storybook.mdx +++ b/api_docs/kbn_storybook.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-storybook title: "@kbn/storybook" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/storybook plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/storybook'] --- import kbnStorybookObj from './kbn_storybook.devdocs.json'; diff --git a/api_docs/kbn_streams_schema.devdocs.json b/api_docs/kbn_streams_schema.devdocs.json index 377cd97e90f64..af8a52426910f 100644 --- a/api_docs/kbn_streams_schema.devdocs.json +++ b/api_docs/kbn_streams_schema.devdocs.json @@ -208,7 +208,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -224,7 +224,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }) => boolean" + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }) => boolean" ], "path": "x-pack/packages/kbn-streams-schema/src/helpers/type_guards.ts", "deprecated": false, @@ -254,7 +254,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -270,7 +270,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" ], "path": "x-pack/packages/kbn-streams-schema/src/helpers/type_guards.ts", "deprecated": false, @@ -551,7 +551,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -567,7 +567,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }) => boolean" + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }) => boolean" ], "path": "x-pack/packages/kbn-streams-schema/src/helpers/type_guards.ts", "deprecated": false, @@ -597,7 +597,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -613,7 +613,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" ], "path": "x-pack/packages/kbn-streams-schema/src/helpers/type_guards.ts", "deprecated": false, @@ -907,7 +907,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" + "; }[]; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" ], "path": "x-pack/packages/kbn-streams-schema/src/models/read_streams/ingest_read_stream.ts", "deprecated": false, @@ -969,7 +969,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" ], "path": "x-pack/packages/kbn-streams-schema/src/models/streams/ingest_stream.ts", "deprecated": false, @@ -1015,7 +1015,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -1031,7 +1031,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }" + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }" ], "path": "x-pack/packages/kbn-streams-schema/src/apis/list_streams_response.ts", "deprecated": false, @@ -1085,7 +1085,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -1101,7 +1101,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" + "; }[]; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" ], "path": "x-pack/packages/kbn-streams-schema/src/models/read_streams/read_stream.ts", "deprecated": false, @@ -1132,7 +1132,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -1148,7 +1148,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }" + "; }[]; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }" ], "path": "x-pack/packages/kbn-streams-schema/src/apis/read_streams_response.ts", "deprecated": false, @@ -1249,7 +1249,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -1265,7 +1265,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" ], "path": "x-pack/packages/kbn-streams-schema/src/models/streams/stream.ts", "deprecated": false, @@ -1311,7 +1311,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" + "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" ], "path": "x-pack/packages/kbn-streams-schema/src/models/read_streams/wired_read_stream.ts", "deprecated": false, @@ -1373,7 +1373,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }" ], "path": "x-pack/packages/kbn-streams-schema/src/models/streams/wired_stream.ts", "deprecated": false, @@ -1669,7 +1669,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }>; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -1685,7 +1685,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", + "; }[]; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -1701,7 +1701,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; }>" + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; }>" ], "path": "x-pack/packages/kbn-streams-schema/src/models/read_streams/ingest_read_stream.ts", "deprecated": false, @@ -1987,7 +1987,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }>; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2003,7 +2003,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2019,7 +2019,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }>" + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }>" ], "path": "x-pack/packages/kbn-streams-schema/src/models/streams/ingest_stream.ts", "deprecated": false, @@ -2177,7 +2177,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }>; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2193,7 +2193,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2209,7 +2209,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }>, Zod.ZodObject<{ name: Zod.ZodString; elasticsearch_assets: Zod.ZodOptional; id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }>, \"many\">>; stream: Zod.ZodObject<{ ingest: Zod.ZodObject<{ processing: Zod.ZodDefault, Zod.ZodObject<{ name: Zod.ZodString; elasticsearch_assets: Zod.ZodOptional; id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }>, \"many\">>; stream: Zod.ZodObject<{ ingest: Zod.ZodObject<{ processing: Zod.ZodDefault; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2353,7 +2353,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2369,7 +2369,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }>]>, \"many\">; }, \"strip\", Zod.ZodTypeAny, { streams: ({ name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }>]>, \"many\">; }, \"strip\", Zod.ZodTypeAny, { streams: ({ name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2385,7 +2385,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2401,7 +2401,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }, { streams: ({ name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }, { streams: ({ name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2417,7 +2417,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing?: { name: string; condition?: ", + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2433,7 +2433,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }>" + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }>" ], "path": "x-pack/packages/kbn-streams-schema/src/apis/list_streams_response.ts", "deprecated": false, @@ -2638,7 +2638,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }>; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2654,7 +2654,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2670,7 +2670,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; }>, Zod.ZodObject; id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }>, \"many\">>; stream: Zod.ZodObject<{ ingest: Zod.ZodObject<{ processing: Zod.ZodDefault | undefined; }>, Zod.ZodObject; id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }>, \"many\">>; stream: Zod.ZodObject<{ ingest: Zod.ZodObject<{ processing: Zod.ZodDefault; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2814,7 +2814,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", + "; }[]; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2830,7 +2830,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; }>]>" + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; }>]>" ], "path": "x-pack/packages/kbn-streams-schema/src/models/read_streams/read_stream.ts", "deprecated": false, @@ -2973,7 +2973,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }>; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -2989,7 +2989,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -3005,7 +3005,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; }>, Zod.ZodObject; id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }>, \"many\">>; stream: Zod.ZodObject<{ ingest: Zod.ZodObject<{ processing: Zod.ZodDefault | undefined; }>, Zod.ZodObject; id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }>, \"many\">>; stream: Zod.ZodObject<{ ingest: Zod.ZodObject<{ processing: Zod.ZodDefault; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -3149,7 +3149,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", + "; }[]; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -3165,7 +3165,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; }>]>, \"many\">; }, \"strip\", Zod.ZodTypeAny, { streams: ({ name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; }>]>, \"many\">; }, \"strip\", Zod.ZodTypeAny, { streams: ({ name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -3181,7 +3181,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -3197,7 +3197,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }, { streams: ({ name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", + "; }[]; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }, { streams: ({ name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -3213,7 +3213,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; } | { name: string; stream: { ingest: { routing?: { name: string; condition?: ", + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; } | { name: string; stream: { ingest: { routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -3229,7 +3229,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; })[]; }>" + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; })[]; }>" ], "path": "x-pack/packages/kbn-streams-schema/src/apis/read_streams_response.ts", "deprecated": false, @@ -3690,7 +3690,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }>; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -3706,7 +3706,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -3722,7 +3722,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }>, Zod.ZodObject<{ name: Zod.ZodString; elasticsearch_assets: Zod.ZodOptional; id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }>, \"many\">>; stream: Zod.ZodObject<{ ingest: Zod.ZodObject<{ processing: Zod.ZodDefault, Zod.ZodObject<{ name: Zod.ZodString; elasticsearch_assets: Zod.ZodOptional; id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }, { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }>, \"many\">>; stream: Zod.ZodObject<{ ingest: Zod.ZodObject<{ processing: Zod.ZodDefault; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -3866,7 +3866,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -3882,7 +3882,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }>]>" + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }>]>" ], "path": "x-pack/packages/kbn-streams-schema/src/models/streams/stream.ts", "deprecated": false, @@ -4040,7 +4040,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }>; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, { inherited_fields: Zod.ZodDefault; format: Zod.ZodOptional; }, { from: Zod.ZodString; }>, \"strip\", Zod.ZodTypeAny, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }, { type: \"boolean\" | \"ip\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"match_only_text\"; from: string; format?: string | undefined; }>>>; }>, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -4056,7 +4056,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -4072,7 +4072,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; }>" + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; inherited_fields?: Record | undefined; }>" ], "path": "x-pack/packages/kbn-streams-schema/src/models/read_streams/wired_read_stream.ts", "deprecated": false, @@ -4358,7 +4358,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }>; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[] | undefined; }; }>; dashboards: Zod.ZodOptional>; }, \"strict\", Zod.ZodTypeAny, { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -4374,7 +4374,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, { name: string; stream: { ingest: { wired: { fields?: Record | undefined; }; routing?: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -4390,7 +4390,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[] | undefined; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }>" + "; }[] | undefined; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }>" ], "path": "x-pack/packages/kbn-streams-schema/src/models/streams/wired_stream.ts", "deprecated": false, diff --git a/api_docs/kbn_streams_schema.mdx b/api_docs/kbn_streams_schema.mdx index 2fc92e847a6a2..b2a50fe4f4553 100644 --- a/api_docs/kbn_streams_schema.mdx +++ b/api_docs/kbn_streams_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-streams-schema title: "@kbn/streams-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/streams-schema plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/streams-schema'] --- import kbnStreamsSchemaObj from './kbn_streams_schema.devdocs.json'; diff --git a/api_docs/kbn_synthetics_e2e.mdx b/api_docs/kbn_synthetics_e2e.mdx index 93204235393ec..39a9639743701 100644 --- a/api_docs/kbn_synthetics_e2e.mdx +++ b/api_docs/kbn_synthetics_e2e.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-synthetics-e2e title: "@kbn/synthetics-e2e" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/synthetics-e2e plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/synthetics-e2e'] --- import kbnSyntheticsE2eObj from './kbn_synthetics_e2e.devdocs.json'; diff --git a/api_docs/kbn_synthetics_private_location.mdx b/api_docs/kbn_synthetics_private_location.mdx index 9a8899ad9a629..edcd519894f87 100644 --- a/api_docs/kbn_synthetics_private_location.mdx +++ b/api_docs/kbn_synthetics_private_location.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-synthetics-private-location title: "@kbn/synthetics-private-location" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/synthetics-private-location plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/synthetics-private-location'] --- import kbnSyntheticsPrivateLocationObj from './kbn_synthetics_private_location.devdocs.json'; diff --git a/api_docs/kbn_telemetry_tools.mdx b/api_docs/kbn_telemetry_tools.mdx index 96bf23181429c..ea477f7de10ce 100644 --- a/api_docs/kbn_telemetry_tools.mdx +++ b/api_docs/kbn_telemetry_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-telemetry-tools title: "@kbn/telemetry-tools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/telemetry-tools plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/telemetry-tools'] --- import kbnTelemetryToolsObj from './kbn_telemetry_tools.devdocs.json'; diff --git a/api_docs/kbn_test.mdx b/api_docs/kbn_test.mdx index 1a10bc594a245..f16618a1488f5 100644 --- a/api_docs/kbn_test.mdx +++ b/api_docs/kbn_test.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-test title: "@kbn/test" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/test plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test'] --- import kbnTestObj from './kbn_test.devdocs.json'; diff --git a/api_docs/kbn_test_eui_helpers.mdx b/api_docs/kbn_test_eui_helpers.mdx index c93dd01e7caae..1f27514d6ad1c 100644 --- a/api_docs/kbn_test_eui_helpers.mdx +++ b/api_docs/kbn_test_eui_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-test-eui-helpers title: "@kbn/test-eui-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/test-eui-helpers plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test-eui-helpers'] --- import kbnTestEuiHelpersObj from './kbn_test_eui_helpers.devdocs.json'; diff --git a/api_docs/kbn_test_jest_helpers.mdx b/api_docs/kbn_test_jest_helpers.mdx index 26a84fd9afa6f..10dc1730b1306 100644 --- a/api_docs/kbn_test_jest_helpers.mdx +++ b/api_docs/kbn_test_jest_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-test-jest-helpers title: "@kbn/test-jest-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/test-jest-helpers plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test-jest-helpers'] --- import kbnTestJestHelpersObj from './kbn_test_jest_helpers.devdocs.json'; diff --git a/api_docs/kbn_test_subj_selector.mdx b/api_docs/kbn_test_subj_selector.mdx index c5169292fed8a..9353c64da2e72 100644 --- a/api_docs/kbn_test_subj_selector.mdx +++ b/api_docs/kbn_test_subj_selector.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-test-subj-selector title: "@kbn/test-subj-selector" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/test-subj-selector plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test-subj-selector'] --- import kbnTestSubjSelectorObj from './kbn_test_subj_selector.devdocs.json'; diff --git a/api_docs/kbn_timerange.mdx b/api_docs/kbn_timerange.mdx index 7978535cd258a..241415b4a5b7a 100644 --- a/api_docs/kbn_timerange.mdx +++ b/api_docs/kbn_timerange.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-timerange title: "@kbn/timerange" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/timerange plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/timerange'] --- import kbnTimerangeObj from './kbn_timerange.devdocs.json'; diff --git a/api_docs/kbn_tooling_log.mdx b/api_docs/kbn_tooling_log.mdx index 068b58bb93cd0..8d5e7f2a0c835 100644 --- a/api_docs/kbn_tooling_log.mdx +++ b/api_docs/kbn_tooling_log.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-tooling-log title: "@kbn/tooling-log" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/tooling-log plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/tooling-log'] --- import kbnToolingLogObj from './kbn_tooling_log.devdocs.json'; diff --git a/api_docs/kbn_transpose_utils.mdx b/api_docs/kbn_transpose_utils.mdx index b9effb589df1d..c0009a8f7ecf1 100644 --- a/api_docs/kbn_transpose_utils.mdx +++ b/api_docs/kbn_transpose_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-transpose-utils title: "@kbn/transpose-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/transpose-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/transpose-utils'] --- import kbnTransposeUtilsObj from './kbn_transpose_utils.devdocs.json'; diff --git a/api_docs/kbn_triggers_actions_ui_types.mdx b/api_docs/kbn_triggers_actions_ui_types.mdx index a9d08b4c58ed5..fa88c169373b7 100644 --- a/api_docs/kbn_triggers_actions_ui_types.mdx +++ b/api_docs/kbn_triggers_actions_ui_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-triggers-actions-ui-types title: "@kbn/triggers-actions-ui-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/triggers-actions-ui-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/triggers-actions-ui-types'] --- import kbnTriggersActionsUiTypesObj from './kbn_triggers_actions_ui_types.devdocs.json'; diff --git a/api_docs/kbn_try_in_console.mdx b/api_docs/kbn_try_in_console.mdx index 6e3236d0210c4..357df8bd2148a 100644 --- a/api_docs/kbn_try_in_console.mdx +++ b/api_docs/kbn_try_in_console.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-try-in-console title: "@kbn/try-in-console" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/try-in-console plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/try-in-console'] --- import kbnTryInConsoleObj from './kbn_try_in_console.devdocs.json'; diff --git a/api_docs/kbn_ts_projects.mdx b/api_docs/kbn_ts_projects.mdx index 1baa740064804..461f17de23294 100644 --- a/api_docs/kbn_ts_projects.mdx +++ b/api_docs/kbn_ts_projects.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ts-projects title: "@kbn/ts-projects" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ts-projects plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ts-projects'] --- import kbnTsProjectsObj from './kbn_ts_projects.devdocs.json'; diff --git a/api_docs/kbn_typed_react_router_config.mdx b/api_docs/kbn_typed_react_router_config.mdx index bebcb191bebfa..cd5a5093942cd 100644 --- a/api_docs/kbn_typed_react_router_config.mdx +++ b/api_docs/kbn_typed_react_router_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-typed-react-router-config title: "@kbn/typed-react-router-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/typed-react-router-config plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/typed-react-router-config'] --- import kbnTypedReactRouterConfigObj from './kbn_typed_react_router_config.devdocs.json'; diff --git a/api_docs/kbn_ui_actions_browser.devdocs.json b/api_docs/kbn_ui_actions_browser.devdocs.json index b79226d21a95c..2f23dbf6a89d3 100644 --- a/api_docs/kbn_ui_actions_browser.devdocs.json +++ b/api_docs/kbn_ui_actions_browser.devdocs.json @@ -39,7 +39,7 @@ }, "" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -52,7 +52,7 @@ "description": [ "\nID that uniquely identifies this object." ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false }, @@ -65,7 +65,7 @@ "description": [ "\nDetermines the display order in relation to other items. Higher numbers are\ndisplayed first." ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false }, @@ -81,7 +81,7 @@ "signature": [ "React.FC<{ context: Context; }> | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false }, @@ -97,7 +97,7 @@ "signature": [ "(context: Context) => string | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -111,7 +111,7 @@ "signature": [ "Context" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -131,7 +131,7 @@ "signature": [ "(context: Context) => string" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -145,7 +145,7 @@ "signature": [ "Context" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -165,7 +165,7 @@ "signature": [ "((context: Context) => string) | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -179,7 +179,7 @@ "signature": [ "Context" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -199,7 +199,7 @@ "signature": [ "((context: Context) => Promise) | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -213,7 +213,7 @@ "signature": [ "Context" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -233,7 +233,7 @@ "signature": [ "(context: Context) => Promise" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -247,7 +247,7 @@ "signature": [ "Context" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -274,7 +274,7 @@ }, " | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false } @@ -306,7 +306,7 @@ }, ", \"order\" | \"getIconType\" | \"getDisplayName\" | \"getDisplayNameTooltip\">>" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -317,7 +317,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false } @@ -333,7 +333,7 @@ "description": [ "\nThis is a convenience interface used to register a *trigger*.\n\n`Trigger` specifies a named anchor to which `Action` can be attached. When\n`Trigger` is being *called* it creates a `Context` object and passes it to\nthe `execute` method of an `Action`.\n\nMore than one action can be attached to a single trigger, in which case when\ntrigger is *called* it first displays a context menu for user to pick a\nsingle action to execute." ], - "path": "packages/kbn-ui-actions-browser/src/triggers/trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -346,7 +346,7 @@ "description": [ "\nUnique name of the trigger as identified in `ui_actions` plugin trigger registry." ], - "path": "packages/kbn-ui-actions-browser/src/triggers/trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -362,7 +362,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -378,7 +378,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts", "deprecated": false, "trackAdoption": false } @@ -405,7 +405,7 @@ }, "[]" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -420,7 +420,7 @@ "signature": [ "\"ROW_CLICK_TRIGGER\"" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -451,7 +451,7 @@ }, "; columns?: string[] | undefined; }; }" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -466,7 +466,7 @@ "signature": [ "\"VISUALIZE_FIELD_TRIGGER\"" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -481,7 +481,7 @@ "signature": [ "\"VISUALIZE_GEO_FIELD_TRIGGER\"" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -495,7 +495,7 @@ "tags": [], "label": "defaultTrigger", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/default_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/default_trigger.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -506,7 +506,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/default_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/default_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -517,7 +517,7 @@ "tags": [], "label": "title", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/default_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/default_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -528,7 +528,7 @@ "tags": [], "label": "description", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/default_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/default_trigger.ts", "deprecated": false, "trackAdoption": false } @@ -542,7 +542,7 @@ "tags": [], "label": "rowClickTrigger", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -553,7 +553,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -564,7 +564,7 @@ "tags": [], "label": "title", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -575,7 +575,7 @@ "tags": [], "label": "description", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false } @@ -589,7 +589,7 @@ "tags": [], "label": "visualizeFieldTrigger", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -600,7 +600,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -611,7 +611,7 @@ "tags": [], "label": "title", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -622,7 +622,7 @@ "tags": [], "label": "description", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", "deprecated": false, "trackAdoption": false } @@ -636,7 +636,7 @@ "tags": [], "label": "visualizeGeoFieldTrigger", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -647,7 +647,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -658,7 +658,7 @@ "tags": [], "label": "title", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -669,7 +669,7 @@ "tags": [], "label": "description", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/kbn_ui_actions_browser.mdx b/api_docs/kbn_ui_actions_browser.mdx index 7b61991d47a87..407ed50c5ad19 100644 --- a/api_docs/kbn_ui_actions_browser.mdx +++ b/api_docs/kbn_ui_actions_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ui-actions-browser title: "@kbn/ui-actions-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ui-actions-browser plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ui-actions-browser'] --- import kbnUiActionsBrowserObj from './kbn_ui_actions_browser.devdocs.json'; diff --git a/api_docs/kbn_ui_shared_deps_src.mdx b/api_docs/kbn_ui_shared_deps_src.mdx index 0490e0bfd26c4..4ef15536d6778 100644 --- a/api_docs/kbn_ui_shared_deps_src.mdx +++ b/api_docs/kbn_ui_shared_deps_src.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ui-shared-deps-src title: "@kbn/ui-shared-deps-src" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ui-shared-deps-src plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ui-shared-deps-src'] --- import kbnUiSharedDepsSrcObj from './kbn_ui_shared_deps_src.devdocs.json'; diff --git a/api_docs/kbn_ui_theme.mdx b/api_docs/kbn_ui_theme.mdx index 8702c78f970f5..44dee7f2a5c2b 100644 --- a/api_docs/kbn_ui_theme.mdx +++ b/api_docs/kbn_ui_theme.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ui-theme title: "@kbn/ui-theme" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ui-theme plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ui-theme'] --- import kbnUiThemeObj from './kbn_ui_theme.devdocs.json'; diff --git a/api_docs/kbn_unified_data_table.devdocs.json b/api_docs/kbn_unified_data_table.devdocs.json index e6fa8f404f5a7..4788f0d93ceb4 100644 --- a/api_docs/kbn_unified_data_table.devdocs.json +++ b/api_docs/kbn_unified_data_table.devdocs.json @@ -2079,13 +2079,7 @@ "text": "FieldFormatsStart" }, "; uiSettings: ", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", "; dataViewFieldEditor?: ", { "pluginId": "dataViewFieldEditor", diff --git a/api_docs/kbn_unified_data_table.mdx b/api_docs/kbn_unified_data_table.mdx index cdf0dbf4c4863..7917971019f7d 100644 --- a/api_docs/kbn_unified_data_table.mdx +++ b/api_docs/kbn_unified_data_table.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-unified-data-table title: "@kbn/unified-data-table" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/unified-data-table plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/unified-data-table'] --- import kbnUnifiedDataTableObj from './kbn_unified_data_table.devdocs.json'; diff --git a/api_docs/kbn_unified_doc_viewer.mdx b/api_docs/kbn_unified_doc_viewer.mdx index 95d189f264581..628c2c0e10c95 100644 --- a/api_docs/kbn_unified_doc_viewer.mdx +++ b/api_docs/kbn_unified_doc_viewer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-unified-doc-viewer title: "@kbn/unified-doc-viewer" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/unified-doc-viewer plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/unified-doc-viewer'] --- import kbnUnifiedDocViewerObj from './kbn_unified_doc_viewer.devdocs.json'; diff --git a/api_docs/kbn_unified_field_list.devdocs.json b/api_docs/kbn_unified_field_list.devdocs.json index 7522989684f73..f03f4a27c6716 100644 --- a/api_docs/kbn_unified_field_list.devdocs.json +++ b/api_docs/kbn_unified_field_list.devdocs.json @@ -4286,13 +4286,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_stats.tsx", "deprecated": false, diff --git a/api_docs/kbn_unified_field_list.mdx b/api_docs/kbn_unified_field_list.mdx index 7a899428d6395..a45ac48112c1d 100644 --- a/api_docs/kbn_unified_field_list.mdx +++ b/api_docs/kbn_unified_field_list.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-unified-field-list title: "@kbn/unified-field-list" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/unified-field-list plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/unified-field-list'] --- import kbnUnifiedFieldListObj from './kbn_unified_field_list.devdocs.json'; diff --git a/api_docs/kbn_unsaved_changes_badge.mdx b/api_docs/kbn_unsaved_changes_badge.mdx index b1b00a0166805..3f5446a003627 100644 --- a/api_docs/kbn_unsaved_changes_badge.mdx +++ b/api_docs/kbn_unsaved_changes_badge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-unsaved-changes-badge title: "@kbn/unsaved-changes-badge" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/unsaved-changes-badge plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/unsaved-changes-badge'] --- import kbnUnsavedChangesBadgeObj from './kbn_unsaved_changes_badge.devdocs.json'; diff --git a/api_docs/kbn_unsaved_changes_prompt.mdx b/api_docs/kbn_unsaved_changes_prompt.mdx index 5c4b083640637..5f9dd782a0bc9 100644 --- a/api_docs/kbn_unsaved_changes_prompt.mdx +++ b/api_docs/kbn_unsaved_changes_prompt.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-unsaved-changes-prompt title: "@kbn/unsaved-changes-prompt" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/unsaved-changes-prompt plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/unsaved-changes-prompt'] --- import kbnUnsavedChangesPromptObj from './kbn_unsaved_changes_prompt.devdocs.json'; diff --git a/api_docs/kbn_use_tracked_promise.mdx b/api_docs/kbn_use_tracked_promise.mdx index 21e89a46d2860..4d5942ee2a158 100644 --- a/api_docs/kbn_use_tracked_promise.mdx +++ b/api_docs/kbn_use_tracked_promise.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-use-tracked-promise title: "@kbn/use-tracked-promise" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/use-tracked-promise plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/use-tracked-promise'] --- import kbnUseTrackedPromiseObj from './kbn_use_tracked_promise.devdocs.json'; diff --git a/api_docs/kbn_user_profile_components.mdx b/api_docs/kbn_user_profile_components.mdx index 763ebb4a795bd..5b3de9ba0a685 100644 --- a/api_docs/kbn_user_profile_components.mdx +++ b/api_docs/kbn_user_profile_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-user-profile-components title: "@kbn/user-profile-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/user-profile-components plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/user-profile-components'] --- import kbnUserProfileComponentsObj from './kbn_user_profile_components.devdocs.json'; diff --git a/api_docs/kbn_utility_types.mdx b/api_docs/kbn_utility_types.mdx index 13c9e2826f0b6..bed951e2509b9 100644 --- a/api_docs/kbn_utility_types.mdx +++ b/api_docs/kbn_utility_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-utility-types title: "@kbn/utility-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/utility-types plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utility-types'] --- import kbnUtilityTypesObj from './kbn_utility_types.devdocs.json'; diff --git a/api_docs/kbn_utility_types_jest.mdx b/api_docs/kbn_utility_types_jest.mdx index bc431e932044e..be2b881743c07 100644 --- a/api_docs/kbn_utility_types_jest.mdx +++ b/api_docs/kbn_utility_types_jest.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-utility-types-jest title: "@kbn/utility-types-jest" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/utility-types-jest plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utility-types-jest'] --- import kbnUtilityTypesJestObj from './kbn_utility_types_jest.devdocs.json'; diff --git a/api_docs/kbn_utils.mdx b/api_docs/kbn_utils.mdx index 97b366ed08214..d43f64985c2f4 100644 --- a/api_docs/kbn_utils.mdx +++ b/api_docs/kbn_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-utils title: "@kbn/utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utils'] --- import kbnUtilsObj from './kbn_utils.devdocs.json'; diff --git a/api_docs/kbn_visualization_ui_components.devdocs.json b/api_docs/kbn_visualization_ui_components.devdocs.json index b6846b2161f1c..83a1ff38bc56f 100644 --- a/api_docs/kbn_visualization_ui_components.devdocs.json +++ b/api_docs/kbn_visualization_ui_components.devdocs.json @@ -2233,13 +2233,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "packages/kbn-visualization-ui-components/components/query_input/query_input.tsx", "deprecated": false, diff --git a/api_docs/kbn_visualization_ui_components.mdx b/api_docs/kbn_visualization_ui_components.mdx index 38b31fdfa1749..485f8db42cb92 100644 --- a/api_docs/kbn_visualization_ui_components.mdx +++ b/api_docs/kbn_visualization_ui_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-visualization-ui-components title: "@kbn/visualization-ui-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/visualization-ui-components plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/visualization-ui-components'] --- import kbnVisualizationUiComponentsObj from './kbn_visualization_ui_components.devdocs.json'; diff --git a/api_docs/kbn_visualization_utils.devdocs.json b/api_docs/kbn_visualization_utils.devdocs.json index 1fcf87000c773..4d5890bd61124 100644 --- a/api_docs/kbn_visualization_utils.devdocs.json +++ b/api_docs/kbn_visualization_utils.devdocs.json @@ -237,13 +237,7 @@ ], "signature": [ "(uiSettings: ", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ") => string" ], "path": "packages/kbn-visualization-utils/src/get_timezone.ts", @@ -258,13 +252,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "packages/kbn-visualization-utils/src/get_timezone.ts", "deprecated": false, diff --git a/api_docs/kbn_visualization_utils.mdx b/api_docs/kbn_visualization_utils.mdx index d34d276dbdc89..c1e957f98a6de 100644 --- a/api_docs/kbn_visualization_utils.mdx +++ b/api_docs/kbn_visualization_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-visualization-utils title: "@kbn/visualization-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/visualization-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/visualization-utils'] --- import kbnVisualizationUtilsObj from './kbn_visualization_utils.devdocs.json'; diff --git a/api_docs/kbn_xstate_utils.mdx b/api_docs/kbn_xstate_utils.mdx index 5abb8b82150b9..22bf879c8dc08 100644 --- a/api_docs/kbn_xstate_utils.mdx +++ b/api_docs/kbn_xstate_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-xstate-utils title: "@kbn/xstate-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/xstate-utils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/xstate-utils'] --- import kbnXstateUtilsObj from './kbn_xstate_utils.devdocs.json'; diff --git a/api_docs/kbn_yarn_lock_validator.mdx b/api_docs/kbn_yarn_lock_validator.mdx index 7656d7393c561..9625bd13c8966 100644 --- a/api_docs/kbn_yarn_lock_validator.mdx +++ b/api_docs/kbn_yarn_lock_validator.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-yarn-lock-validator title: "@kbn/yarn-lock-validator" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/yarn-lock-validator plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/yarn-lock-validator'] --- import kbnYarnLockValidatorObj from './kbn_yarn_lock_validator.devdocs.json'; diff --git a/api_docs/kbn_zod.mdx b/api_docs/kbn_zod.mdx index ba93b792dbcaa..a9e2c3b6799ee 100644 --- a/api_docs/kbn_zod.mdx +++ b/api_docs/kbn_zod.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-zod title: "@kbn/zod" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/zod plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/zod'] --- import kbnZodObj from './kbn_zod.devdocs.json'; diff --git a/api_docs/kbn_zod_helpers.mdx b/api_docs/kbn_zod_helpers.mdx index 6d71890f7310a..9cb961fecca86 100644 --- a/api_docs/kbn_zod_helpers.mdx +++ b/api_docs/kbn_zod_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-zod-helpers title: "@kbn/zod-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/zod-helpers plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/zod-helpers'] --- import kbnZodHelpersObj from './kbn_zod_helpers.devdocs.json'; diff --git a/api_docs/kibana_overview.mdx b/api_docs/kibana_overview.mdx index b8717d700b6de..3f8b58690fa86 100644 --- a/api_docs/kibana_overview.mdx +++ b/api_docs/kibana_overview.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kibanaOverview title: "kibanaOverview" image: https://source.unsplash.com/400x175/?github description: API docs for the kibanaOverview plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaOverview'] --- import kibanaOverviewObj from './kibana_overview.devdocs.json'; diff --git a/api_docs/kibana_react.devdocs.json b/api_docs/kibana_react.devdocs.json index 65e40ffeaf9fc..e7be2fe6d7065 100644 --- a/api_docs/kibana_react.devdocs.json +++ b/api_docs/kibana_react.devdocs.json @@ -2409,13 +2409,7 @@ "text": "ChromeStart" }, " | undefined; customBranding?: ", - { - "pluginId": "@kbn/core-custom-branding-browser", - "scope": "public", - "docId": "kibKbnCoreCustomBrandingBrowserPluginApi", - "section": "def-public.CustomBrandingStart", - "text": "CustomBrandingStart" - }, + "CustomBrandingStart", " | undefined; docLinks?: ", "DocLinksStart", " | undefined; executionContext?: ", @@ -2433,21 +2427,9 @@ " | undefined; overlays?: ", "OverlayStart", " | undefined; uiSettings?: ", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", " | undefined; settings?: ", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.SettingsStart", - "text": "SettingsStart" - }, + "SettingsStart", " | undefined; fatalErrors?: ", "FatalErrorsSetup", " | undefined; deprecations?: ", diff --git a/api_docs/kibana_react.mdx b/api_docs/kibana_react.mdx index 91c9bc1593dc7..1aeaaee69012d 100644 --- a/api_docs/kibana_react.mdx +++ b/api_docs/kibana_react.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kibanaReact title: "kibanaReact" image: https://source.unsplash.com/400x175/?github description: API docs for the kibanaReact plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaReact'] --- import kibanaReactObj from './kibana_react.devdocs.json'; diff --git a/api_docs/kibana_utils.mdx b/api_docs/kibana_utils.mdx index 9a93745fc1a95..6a49b63bb9ef6 100644 --- a/api_docs/kibana_utils.mdx +++ b/api_docs/kibana_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kibanaUtils title: "kibanaUtils" image: https://source.unsplash.com/400x175/?github description: API docs for the kibanaUtils plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaUtils'] --- import kibanaUtilsObj from './kibana_utils.devdocs.json'; diff --git a/api_docs/kubernetes_security.mdx b/api_docs/kubernetes_security.mdx index b8a942509c6df..52bfcd11cd6bf 100644 --- a/api_docs/kubernetes_security.mdx +++ b/api_docs/kubernetes_security.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kubernetesSecurity title: "kubernetesSecurity" image: https://source.unsplash.com/400x175/?github description: API docs for the kubernetesSecurity plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kubernetesSecurity'] --- import kubernetesSecurityObj from './kubernetes_security.devdocs.json'; diff --git a/api_docs/lens.mdx b/api_docs/lens.mdx index e35d7617f9431..0c74ee7d22018 100644 --- a/api_docs/lens.mdx +++ b/api_docs/lens.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/lens title: "lens" image: https://source.unsplash.com/400x175/?github description: API docs for the lens plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'lens'] --- import lensObj from './lens.devdocs.json'; diff --git a/api_docs/license_api_guard.mdx b/api_docs/license_api_guard.mdx index 6a07b64496d5d..d943d29cee685 100644 --- a/api_docs/license_api_guard.mdx +++ b/api_docs/license_api_guard.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/licenseApiGuard title: "licenseApiGuard" image: https://source.unsplash.com/400x175/?github description: API docs for the licenseApiGuard plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licenseApiGuard'] --- import licenseApiGuardObj from './license_api_guard.devdocs.json'; diff --git a/api_docs/license_management.mdx b/api_docs/license_management.mdx index f6d09efdb7825..c68f720bc97d6 100644 --- a/api_docs/license_management.mdx +++ b/api_docs/license_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/licenseManagement title: "licenseManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the licenseManagement plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licenseManagement'] --- import licenseManagementObj from './license_management.devdocs.json'; diff --git a/api_docs/licensing.mdx b/api_docs/licensing.mdx index 01f1ece0c1df8..9e5fad6a8654f 100644 --- a/api_docs/licensing.mdx +++ b/api_docs/licensing.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/licensing title: "licensing" image: https://source.unsplash.com/400x175/?github description: API docs for the licensing plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licensing'] --- import licensingObj from './licensing.devdocs.json'; diff --git a/api_docs/links.mdx b/api_docs/links.mdx index ad94a0e659b06..a08b54e5b8645 100644 --- a/api_docs/links.mdx +++ b/api_docs/links.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/links title: "links" image: https://source.unsplash.com/400x175/?github description: API docs for the links plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'links'] --- import linksObj from './links.devdocs.json'; diff --git a/api_docs/lists.mdx b/api_docs/lists.mdx index d58d9f3eacd23..fbfd807625d25 100644 --- a/api_docs/lists.mdx +++ b/api_docs/lists.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/lists title: "lists" image: https://source.unsplash.com/400x175/?github description: API docs for the lists plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'lists'] --- import listsObj from './lists.devdocs.json'; diff --git a/api_docs/llm_tasks.mdx b/api_docs/llm_tasks.mdx index 07363b9ebbdf1..01ba5874752f7 100644 --- a/api_docs/llm_tasks.mdx +++ b/api_docs/llm_tasks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/llmTasks title: "llmTasks" image: https://source.unsplash.com/400x175/?github description: API docs for the llmTasks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'llmTasks'] --- import llmTasksObj from './llm_tasks.devdocs.json'; diff --git a/api_docs/logs_data_access.mdx b/api_docs/logs_data_access.mdx index c3f347f9ae9c3..214ab9133c9dc 100644 --- a/api_docs/logs_data_access.mdx +++ b/api_docs/logs_data_access.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/logsDataAccess title: "logsDataAccess" image: https://source.unsplash.com/400x175/?github description: API docs for the logsDataAccess plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'logsDataAccess'] --- import logsDataAccessObj from './logs_data_access.devdocs.json'; diff --git a/api_docs/logs_explorer.mdx b/api_docs/logs_explorer.mdx index adf83fe3fe848..d9d3be277b657 100644 --- a/api_docs/logs_explorer.mdx +++ b/api_docs/logs_explorer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/logsExplorer title: "logsExplorer" image: https://source.unsplash.com/400x175/?github description: API docs for the logsExplorer plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'logsExplorer'] --- import logsExplorerObj from './logs_explorer.devdocs.json'; diff --git a/api_docs/logs_shared.mdx b/api_docs/logs_shared.mdx index ff96d0695039f..19ef5845b3079 100644 --- a/api_docs/logs_shared.mdx +++ b/api_docs/logs_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/logsShared title: "logsShared" image: https://source.unsplash.com/400x175/?github description: API docs for the logsShared plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'logsShared'] --- import logsSharedObj from './logs_shared.devdocs.json'; diff --git a/api_docs/management.mdx b/api_docs/management.mdx index 49499625c5470..5785c9d770f86 100644 --- a/api_docs/management.mdx +++ b/api_docs/management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/management title: "management" image: https://source.unsplash.com/400x175/?github description: API docs for the management plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'management'] --- import managementObj from './management.devdocs.json'; diff --git a/api_docs/maps.mdx b/api_docs/maps.mdx index 00cb9dbbdc06e..e34f9213489c6 100644 --- a/api_docs/maps.mdx +++ b/api_docs/maps.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/maps title: "maps" image: https://source.unsplash.com/400x175/?github description: API docs for the maps plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'maps'] --- import mapsObj from './maps.devdocs.json'; diff --git a/api_docs/maps_ems.mdx b/api_docs/maps_ems.mdx index 7d4585cde447d..789c5408a1bf3 100644 --- a/api_docs/maps_ems.mdx +++ b/api_docs/maps_ems.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/mapsEms title: "mapsEms" image: https://source.unsplash.com/400x175/?github description: API docs for the mapsEms plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'mapsEms'] --- import mapsEmsObj from './maps_ems.devdocs.json'; diff --git a/api_docs/metrics_data_access.mdx b/api_docs/metrics_data_access.mdx index 94d97191bb62f..645794e36de99 100644 --- a/api_docs/metrics_data_access.mdx +++ b/api_docs/metrics_data_access.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/metricsDataAccess title: "metricsDataAccess" image: https://source.unsplash.com/400x175/?github description: API docs for the metricsDataAccess plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'metricsDataAccess'] --- import metricsDataAccessObj from './metrics_data_access.devdocs.json'; diff --git a/api_docs/ml.devdocs.json b/api_docs/ml.devdocs.json index 7751376a6e9b3..f7ea49f6f4da7 100644 --- a/api_docs/ml.devdocs.json +++ b/api_docs/ml.devdocs.json @@ -1581,7 +1581,7 @@ "MlSavedObjectType", ", ids: string[]): Promise<", "SavedObjectResult", - ">; syncSavedObjects(simulate?: boolean): Promise<", + ">; syncSavedObjects(simulate?: boolean, addToAllSpaces?: boolean | undefined): Promise<", "SyncSavedObjectResponse", ">; initSavedObjects(simulate?: boolean): Promise<", "InitializeSavedObjectResponse", @@ -1593,6 +1593,10 @@ "MlSavedObjectType", ", ids: string[]): Promise<", "CanDeleteMLSpaceAwareItemsResponse", + ">; canSyncToAllSpaces(mlSavedObjectType?: ", + "MlSavedObjectType", + " | undefined): Promise<", + "CanSyncToAllSpacesResponse", ">; trainedModelsSpaces(): Promise<", "TrainedModelsSpacesResponse", ">; updateModelsSpaces(modelIds: string[], spacesToAdd: string[], spacesToRemove: string[]): Promise<", diff --git a/api_docs/ml.mdx b/api_docs/ml.mdx index 5d55dedb23368..e30ffc2f4c953 100644 --- a/api_docs/ml.mdx +++ b/api_docs/ml.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ml title: "ml" image: https://source.unsplash.com/400x175/?github description: API docs for the ml plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ml'] --- import mlObj from './ml.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) for questi | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 149 | 3 | 64 | 104 | +| 149 | 3 | 64 | 105 | ## Client diff --git a/api_docs/mock_idp_plugin.mdx b/api_docs/mock_idp_plugin.mdx index 219c5fb2c9bbe..d1deeb45b6de8 100644 --- a/api_docs/mock_idp_plugin.mdx +++ b/api_docs/mock_idp_plugin.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/mockIdpPlugin title: "mockIdpPlugin" image: https://source.unsplash.com/400x175/?github description: API docs for the mockIdpPlugin plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'mockIdpPlugin'] --- import mockIdpPluginObj from './mock_idp_plugin.devdocs.json'; diff --git a/api_docs/monitoring.mdx b/api_docs/monitoring.mdx index 44cc33113ed8c..4a7c4466a84d5 100644 --- a/api_docs/monitoring.mdx +++ b/api_docs/monitoring.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/monitoring title: "monitoring" image: https://source.unsplash.com/400x175/?github description: API docs for the monitoring plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'monitoring'] --- import monitoringObj from './monitoring.devdocs.json'; diff --git a/api_docs/monitoring_collection.mdx b/api_docs/monitoring_collection.mdx index caca0626d1fb3..887c3906c9861 100644 --- a/api_docs/monitoring_collection.mdx +++ b/api_docs/monitoring_collection.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/monitoringCollection title: "monitoringCollection" image: https://source.unsplash.com/400x175/?github description: API docs for the monitoringCollection plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'monitoringCollection'] --- import monitoringCollectionObj from './monitoring_collection.devdocs.json'; diff --git a/api_docs/navigation.devdocs.json b/api_docs/navigation.devdocs.json index 9de67b4252aa4..c61a711e89e4f 100644 --- a/api_docs/navigation.devdocs.json +++ b/api_docs/navigation.devdocs.json @@ -88,7 +88,7 @@ "signature": [ "(core: ", "CoreSetup", - ", deps: ", + "<{}, unknown>, deps: ", "NavigationPublicSetupDependencies", ") => ", { @@ -112,7 +112,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], "path": "src/platform/plugins/shared/navigation/public/plugin.tsx", "deprecated": false, diff --git a/api_docs/navigation.mdx b/api_docs/navigation.mdx index b940fb22d298a..e7f8f47bcc547 100644 --- a/api_docs/navigation.mdx +++ b/api_docs/navigation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/navigation title: "navigation" image: https://source.unsplash.com/400x175/?github description: API docs for the navigation plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'navigation'] --- import navigationObj from './navigation.devdocs.json'; diff --git a/api_docs/newsfeed.mdx b/api_docs/newsfeed.mdx index a783d58693eb6..f5c34a70b7560 100644 --- a/api_docs/newsfeed.mdx +++ b/api_docs/newsfeed.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/newsfeed title: "newsfeed" image: https://source.unsplash.com/400x175/?github description: API docs for the newsfeed plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'newsfeed'] --- import newsfeedObj from './newsfeed.devdocs.json'; diff --git a/api_docs/no_data_page.mdx b/api_docs/no_data_page.mdx index 93abd6f54923f..f0828fddf7b4b 100644 --- a/api_docs/no_data_page.mdx +++ b/api_docs/no_data_page.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/noDataPage title: "noDataPage" image: https://source.unsplash.com/400x175/?github description: API docs for the noDataPage plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'noDataPage'] --- import noDataPageObj from './no_data_page.devdocs.json'; diff --git a/api_docs/notifications.mdx b/api_docs/notifications.mdx index d1787b9a2fdd2..02a5cb3fed6ba 100644 --- a/api_docs/notifications.mdx +++ b/api_docs/notifications.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/notifications title: "notifications" image: https://source.unsplash.com/400x175/?github description: API docs for the notifications plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'notifications'] --- import notificationsObj from './notifications.devdocs.json'; diff --git a/api_docs/observability.devdocs.json b/api_docs/observability.devdocs.json index f9aa144441a20..d7c9d499eeebc 100644 --- a/api_docs/observability.devdocs.json +++ b/api_docs/observability.devdocs.json @@ -3621,13 +3621,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "x-pack/solutions/observability/plugins/observability/public/plugin.ts", "deprecated": false, diff --git a/api_docs/observability.mdx b/api_docs/observability.mdx index 70f49f7d965ec..45db7d6705a71 100644 --- a/api_docs/observability.mdx +++ b/api_docs/observability.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observability title: "observability" image: https://source.unsplash.com/400x175/?github description: API docs for the observability plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observability'] --- import observabilityObj from './observability.devdocs.json'; diff --git a/api_docs/observability_a_i_assistant.devdocs.json b/api_docs/observability_a_i_assistant.devdocs.json index 688e8462db95a..d74510180665d 100644 --- a/api_docs/observability_a_i_assistant.devdocs.json +++ b/api_docs/observability_a_i_assistant.devdocs.json @@ -98,53 +98,6 @@ } ], "functions": [ - { - "parentPluginId": "observabilityAIAssistant", - "id": "def-public.AssistantAvatar", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "AssistantAvatar", - "description": [], - "signature": [ - "({ size = 's', css, className }: ", - "AssistantAvatarProps", - ") => React.JSX.Element" - ], - "path": "x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/assistant_avatar.tsx", - "deprecated": true, - "trackAdoption": false, - "references": [ - { - "plugin": "observabilityAIAssistantApp", - "path": "x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx" - }, - { - "plugin": "observabilityAIAssistantApp", - "path": "x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx" - } - ], - "children": [ - { - "parentPluginId": "observabilityAIAssistant", - "id": "def-public.AssistantAvatar.$1", - "type": "Object", - "tags": [], - "label": "{ size = 's', css, className }", - "description": [], - "signature": [ - "AssistantAvatarProps" - ], - "path": "x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/assistant_avatar.tsx", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - }, { "parentPluginId": "observabilityAIAssistant", "id": "def-public.ChatItemControls", @@ -7876,13 +7829,7 @@ "label": "uiSettingsClient", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-server", - "scope": "server", - "docId": "kibKbnCoreUiSettingsServerPluginApi", - "section": "def-server.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/index.ts", "deprecated": false, diff --git a/api_docs/observability_a_i_assistant.mdx b/api_docs/observability_a_i_assistant.mdx index 8aae4a9c0a7d3..e5700328e2398 100644 --- a/api_docs/observability_a_i_assistant.mdx +++ b/api_docs/observability_a_i_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityAIAssistant title: "observabilityAIAssistant" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityAIAssistant plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityAIAssistant'] --- import observabilityAIAssistantObj from './observability_a_i_assistant.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/obs-ai-assistant](https://github.com/orgs/elastic/teams/obs-ai | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 381 | 1 | 379 | 30 | +| 379 | 1 | 377 | 29 | ## Client diff --git a/api_docs/observability_a_i_assistant_app.mdx b/api_docs/observability_a_i_assistant_app.mdx index 1d0f7ba3a70d2..02c4e96bb2c11 100644 --- a/api_docs/observability_a_i_assistant_app.mdx +++ b/api_docs/observability_a_i_assistant_app.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityAIAssistantApp title: "observabilityAIAssistantApp" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityAIAssistantApp plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityAIAssistantApp'] --- import observabilityAIAssistantAppObj from './observability_a_i_assistant_app.devdocs.json'; diff --git a/api_docs/observability_ai_assistant_management.mdx b/api_docs/observability_ai_assistant_management.mdx index 5be602694fd32..960c67c64c4f6 100644 --- a/api_docs/observability_ai_assistant_management.mdx +++ b/api_docs/observability_ai_assistant_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityAiAssistantManagement title: "observabilityAiAssistantManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityAiAssistantManagement plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityAiAssistantManagement'] --- import observabilityAiAssistantManagementObj from './observability_ai_assistant_management.devdocs.json'; diff --git a/api_docs/observability_logs_explorer.mdx b/api_docs/observability_logs_explorer.mdx index a0754c8eb8993..fa2d9fe6c524b 100644 --- a/api_docs/observability_logs_explorer.mdx +++ b/api_docs/observability_logs_explorer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityLogsExplorer title: "observabilityLogsExplorer" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityLogsExplorer plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityLogsExplorer'] --- import observabilityLogsExplorerObj from './observability_logs_explorer.devdocs.json'; diff --git a/api_docs/observability_onboarding.mdx b/api_docs/observability_onboarding.mdx index 579266f7e2e95..5a1d69e4433fd 100644 --- a/api_docs/observability_onboarding.mdx +++ b/api_docs/observability_onboarding.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityOnboarding title: "observabilityOnboarding" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityOnboarding plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityOnboarding'] --- import observabilityOnboardingObj from './observability_onboarding.devdocs.json'; diff --git a/api_docs/observability_shared.devdocs.json b/api_docs/observability_shared.devdocs.json index 9d931bbc72799..3eaf47ee802c7 100644 --- a/api_docs/observability_shared.devdocs.json +++ b/api_docs/observability_shared.devdocs.json @@ -19,7 +19,7 @@ }, " implements ", "Plugin", - "" + "" ], "path": "x-pack/solutions/observability/plugins/observability_shared/public/plugin.ts", "deprecated": false, @@ -51,7 +51,7 @@ "signature": [ "(coreSetup: ", "CoreSetup", - ", pluginsSetup: ", + "<{}, unknown>, pluginsSetup: ", "ObservabilitySharedSetup", ") => { registerProfilingComponent: (key: string, component: React.FC) => void; locators: ObservabilitySharedLocators; navigation: { registerSections: (sections$: ", "Observable", @@ -78,7 +78,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], "path": "x-pack/solutions/observability/plugins/observability_shared/public/plugin.ts", "deprecated": false, @@ -1759,13 +1759,7 @@ "text": "FieldDefinition" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ", string | number | boolean | (string | number)[] | null | undefined>>; unsavedChanges: Record>; handleFieldChange: ", { "pluginId": "@kbn/management-settings-types", @@ -1791,13 +1779,7 @@ "text": "OnFieldChangeFn" }, "<", - { - "pluginId": "@kbn/core-ui-settings-common", - "scope": "common", - "docId": "kibKbnCoreUiSettingsCommonPluginApi", - "section": "def-common.UiSettingsType", - "text": "UiSettingsType" - }, + "UiSettingsType", ">; saveAll: () => Promise; isSaving: boolean; cleanUnsavedChanges: () => void; saveSingleSetting: (id: string, change: string | number | boolean | (string | number)[] | null | undefined) => Promise; }" ], "path": "x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_editable_settings.tsx", diff --git a/api_docs/observability_shared.mdx b/api_docs/observability_shared.mdx index 45a9dc417abef..18025bfee4715 100644 --- a/api_docs/observability_shared.mdx +++ b/api_docs/observability_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observabilityShared title: "observabilityShared" image: https://source.unsplash.com/400x175/?github description: API docs for the observabilityShared plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observabilityShared'] --- import observabilitySharedObj from './observability_shared.devdocs.json'; diff --git a/api_docs/osquery.mdx b/api_docs/osquery.mdx index 9985389a94efa..4695e6d0ea701 100644 --- a/api_docs/osquery.mdx +++ b/api_docs/osquery.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/osquery title: "osquery" image: https://source.unsplash.com/400x175/?github description: API docs for the osquery plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'osquery'] --- import osqueryObj from './osquery.devdocs.json'; diff --git a/api_docs/painless_lab.mdx b/api_docs/painless_lab.mdx index a7d3dd8475719..40f69c85720ad 100644 --- a/api_docs/painless_lab.mdx +++ b/api_docs/painless_lab.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/painlessLab title: "painlessLab" image: https://source.unsplash.com/400x175/?github description: API docs for the painlessLab plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'painlessLab'] --- import painlessLabObj from './painless_lab.devdocs.json'; diff --git a/api_docs/plugin_directory.mdx b/api_docs/plugin_directory.mdx index cc4aa06040dac..2e0ab49aa0235 100644 --- a/api_docs/plugin_directory.mdx +++ b/api_docs/plugin_directory.mdx @@ -7,7 +7,7 @@ id: kibDevDocsPluginDirectory slug: /kibana-dev-docs/api-meta/plugin-api-directory title: Directory description: Directory of public APIs available through plugins or packages. -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- @@ -15,13 +15,13 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | Count | Plugins or Packages with a
public API | Number of teams | |--------------|----------|------------------------| -| 910 | 774 | 43 | +| 909 | 773 | 43 | ### Public API health stats | API Count | Any Count | Missing comments | Missing exports | |--------------|----------|-----------------|--------| -| 54864 | 253 | 41236 | 2632 | +| 54876 | 253 | 41243 | 2661 | ## Plugin Directory @@ -30,7 +30,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-ops) | - | 331 | 0 | 325 | 37 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 2 | 0 | 2 | 0 | | | [@elastic/obs-ai-assistant](https://github.com/orgs/elastic/teams/obs-ai-assistant) | - | 4 | 0 | 4 | 1 | -| | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | AIOps plugin maintained by ML team. | 72 | 0 | 8 | 2 | +| | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | AIOps plugin maintained by ML team. | 73 | 0 | 8 | 2 | | | [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-ops) | - | 874 | 1 | 841 | 50 | | | [@elastic/obs-ux-infra_services-team](https://github.com/orgs/elastic/teams/obs-ux-infra_services-team) | The user interface for Elastic APM | 29 | 0 | 29 | 119 | | | [@elastic/obs-ux-infra_services-team](https://github.com/orgs/elastic/teams/obs-ux-infra_services-team) | - | 93 | 0 | 93 | 3 | @@ -70,7 +70,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/kibana-data-discovery](https://github.com/orgs/elastic/teams/kibana-data-discovery) | A stateful layer to register shared features and provide an access point to discover without a direct dependency | 26 | 0 | 23 | 2 | | | [@elastic/security-threat-hunting-explore](https://github.com/orgs/elastic/teams/security-threat-hunting-explore) | APIs used to assess the quality of data in Elasticsearch indexes | 2 | 0 | 0 | 0 | | | [@elastic/security-generative-ai](https://github.com/orgs/elastic/teams/security-generative-ai) | Server APIs for the Elastic AI Assistant | 55 | 0 | 40 | 2 | -| | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds embeddables service to Kibana | 179 | 0 | 152 | 2 | +| | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds embeddables service to Kibana | 172 | 0 | 145 | 2 | | | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Extends embeddable plugin with more functionality | 15 | 0 | 15 | 2 | | | [@elastic/kibana-security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides encryption and decryption utilities for saved objects containing sensitive information. | 54 | 0 | 47 | 1 | | | [@elastic/search-kibana](https://github.com/orgs/elastic/teams/search-kibana) | Adds dashboards for discovering and managing Enterprise Search products. | 5 | 0 | 5 | 0 | @@ -104,7 +104,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | The file upload plugin contains components and services for uploading a file, analyzing its data, and then importing the data into an Elasticsearch index. Supported file types include CSV, TSV, newline-delimited JSON and GeoJSON. | 89 | 0 | 89 | 8 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | File upload, download, sharing, and serving over HTTP implementation in Kibana. | 240 | 0 | 24 | 9 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | Simple UI for managing files in Kibana | 3 | 0 | 3 | 0 | -| | [@elastic/fleet](https://github.com/orgs/elastic/teams/fleet) | - | 1435 | 5 | 1309 | 82 | +| | [@elastic/fleet](https://github.com/orgs/elastic/teams/fleet) | - | 1436 | 5 | 1309 | 82 | | ftrApis | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 0 | 0 | 0 | 0 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 72 | 0 | 14 | 5 | | globalSearchBar | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 0 | 0 | 0 | 0 | @@ -146,7 +146,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | - | 213 | 0 | 207 | 28 | | | [@elastic/kibana-presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | - | 60 | 0 | 60 | 0 | | | [@elastic/obs-ux-infra_services-team](https://github.com/orgs/elastic/teams/obs-ux-infra_services-team) | Exposes utilities for accessing metrics data | 135 | 6 | 135 | 5 | -| | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | This plugin provides access to the machine learning features provided by Elastic. | 149 | 3 | 64 | 104 | +| | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | This plugin provides access to the machine learning features provided by Elastic. | 149 | 3 | 64 | 105 | | | [@elastic/kibana-security](https://github.com/orgs/elastic/teams/kibana-security) | - | 2 | 0 | 2 | 0 | | | [@elastic/stack-monitoring](https://github.com/orgs/elastic/teams/stack-monitoring) | - | 15 | 3 | 13 | 1 | | | [@elastic/stack-monitoring](https://github.com/orgs/elastic/teams/stack-monitoring) | - | 9 | 0 | 9 | 0 | @@ -155,7 +155,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 3 | 0 | 3 | 0 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 2 | 0 | 2 | 1 | | | [@elastic/obs-ux-management-team](https://github.com/orgs/elastic/teams/obs-ux-management-team) | - | 697 | 2 | 689 | 23 | -| | [@elastic/obs-ai-assistant](https://github.com/orgs/elastic/teams/obs-ai-assistant) | - | 381 | 1 | 379 | 30 | +| | [@elastic/obs-ai-assistant](https://github.com/orgs/elastic/teams/obs-ai-assistant) | - | 379 | 1 | 377 | 29 | | | [@elastic/obs-ai-assistant](https://github.com/orgs/elastic/teams/obs-ai-assistant) | - | 8 | 0 | 7 | 0 | | | [@elastic/obs-ai-assistant](https://github.com/orgs/elastic/teams/obs-ai-assistant) | - | 2 | 0 | 2 | 0 | | | [@elastic/obs-ux-logs-team](https://github.com/orgs/elastic/teams/obs-ux-logs-team) | This plugin exposes and registers observability log consumption features. | 3 | 0 | 3 | 0 | @@ -198,17 +198,17 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | The core Serverless plugin, providing APIs to Serverless Project plugins. | 25 | 0 | 24 | 0 | | | [@elastic/obs-ux-management-team](https://github.com/orgs/elastic/teams/obs-ux-management-team) | Serverless customizations for observability. | 6 | 0 | 6 | 0 | | | [@elastic/search-kibana](https://github.com/orgs/elastic/teams/search-kibana) | Serverless customizations for search. | 7 | 0 | 7 | 0 | -| | [@elastic/kibana-cloud-security-posture](https://github.com/orgs/elastic/teams/kibana-cloud-security-posture) | - | 134 | 0 | 134 | 8 | +| | [@elastic/kibana-cloud-security-posture](https://github.com/orgs/elastic/teams/kibana-cloud-security-posture) | - | 144 | 0 | 141 | 8 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | Adds URL Service and sharing capabilities to Kibana | 136 | 0 | 73 | 16 | | | [@elastic/obs-ux-management-team](https://github.com/orgs/elastic/teams/obs-ux-management-team) | - | 54 | 0 | 54 | 2 | | | [@elastic/kibana-management](https://github.com/orgs/elastic/teams/kibana-management) | - | 22 | 1 | 22 | 1 | | | [@elastic/kibana-security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides the Spaces feature, which allows saved objects to be organized into meaningful categories. | 269 | 0 | 73 | 1 | | | [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-ops) | - | 25 | 0 | 25 | 3 | | | [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-ops) | - | 10 | 0 | 10 | 0 | -| | [@elastic/streams-program-team](https://github.com/orgs/elastic/teams/streams-program-team) | A manager for Streams | 9 | 0 | 9 | 2 | +| | [@elastic/streams-program-team](https://github.com/orgs/elastic/teams/streams-program-team) | A manager for Streams | 13 | 0 | 13 | 8 | | | [@elastic/streams-program-team](https://github.com/orgs/elastic/teams/streams-program-team) | - | 8 | 0 | 8 | 0 | | synthetics | [@elastic/obs-ux-management-team](https://github.com/orgs/elastic/teams/obs-ux-management-team) | This plugin visualizes data from Synthetics and Heartbeat, and integrates with other Observability solutions. | 0 | 0 | 0 | 0 | -| | [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-ops) | - | 105 | 0 | 62 | 6 | +| | [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-ops) | - | 104 | 0 | 61 | 7 | | | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 45 | 0 | 1 | 0 | | | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 31 | 0 | 26 | 6 | | telemetryCollectionXpack | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 0 | 0 | 0 | 0 | @@ -336,7 +336,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 4 | 0 | 4 | 0 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 6 | 0 | 1 | 0 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 11 | 0 | 11 | 0 | -| | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 6 | 0 | 6 | 1 | +| | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 6 | 0 | 6 | 0 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 4 | 0 | 4 | 0 | | | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 9 | 0 | 3 | 0 | | | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 6 | 0 | 6 | 0 | @@ -468,12 +468,12 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 7 | 0 | 2 | 0 | | | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 1 | 0 | 1 | 0 | | | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 9 | 0 | 9 | 0 | -| | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 33 | 2 | 20 | 1 | -| | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 11 | 1 | 11 | 3 | +| | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 33 | 2 | 20 | 0 | +| | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 11 | 1 | 11 | 0 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 8 | 0 | 8 | 0 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 48 | 0 | 20 | 0 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 42 | 1 | 24 | 0 | -| | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 20 | 1 | 19 | 3 | +| | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 20 | 1 | 19 | 0 | | | [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) | - | 6 | 0 | 6 | 0 | | | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 167 | 0 | 156 | 0 | | | [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) | - | 8 | 0 | 8 | 0 | @@ -562,7 +562,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/security-threat-hunting](https://github.com/orgs/elastic/teams/security-threat-hunting) | - | 85 | 0 | 80 | 2 | | | [@elastic/kibana-management](https://github.com/orgs/elastic/teams/kibana-management) | - | 75 | 0 | 73 | 0 | | | [@elastic/kibana-management](https://github.com/orgs/elastic/teams/kibana-management) | - | 126 | 3 | 126 | 0 | -| | [@elastic/appex-ai-infra](https://github.com/orgs/elastic/teams/appex-ai-infra) | - | 150 | 0 | 46 | 4 | +| | [@elastic/appex-ai-infra](https://github.com/orgs/elastic/teams/appex-ai-infra) | - | 157 | 0 | 53 | 4 | | | [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-ops) | - | 33 | 0 | 33 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 7 | 1 | 7 | 1 | | | [@elastic/obs-ux-management-team](https://github.com/orgs/elastic/teams/obs-ux-management-team) | - | 9 | 0 | 9 | 0 | @@ -605,14 +605,13 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 12 | 0 | 0 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 152 | 1 | 0 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 141 | 0 | 6 | 0 | -| | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 50 | 0 | 0 | 0 | +| | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 51 | 0 | 0 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 11 | 0 | 0 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 36 | 4 | 8 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 29 | 0 | 3 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 12 | 0 | 1 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 2 | 0 | 0 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 3 | 0 | 2 | 0 | -| | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 2 | 0 | 1 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 5 | 0 | 3 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 8 | 2 | 8 | 0 | | | [@elastic/ml-ui](https://github.com/orgs/elastic/teams/ml-ui) | - | 3 | 0 | 0 | 0 | diff --git a/api_docs/presentation_panel.mdx b/api_docs/presentation_panel.mdx index 2f657643dbfcf..2c108c1b4e9f0 100644 --- a/api_docs/presentation_panel.mdx +++ b/api_docs/presentation_panel.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/presentationPanel title: "presentationPanel" image: https://source.unsplash.com/400x175/?github description: API docs for the presentationPanel plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'presentationPanel'] --- import presentationPanelObj from './presentation_panel.devdocs.json'; diff --git a/api_docs/presentation_util.mdx b/api_docs/presentation_util.mdx index 48084f4dd0f2c..ae392c12458bd 100644 --- a/api_docs/presentation_util.mdx +++ b/api_docs/presentation_util.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/presentationUtil title: "presentationUtil" image: https://source.unsplash.com/400x175/?github description: API docs for the presentationUtil plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'presentationUtil'] --- import presentationUtilObj from './presentation_util.devdocs.json'; diff --git a/api_docs/product_doc_base.mdx b/api_docs/product_doc_base.mdx index 0bffb6ab13c7d..13d38c0109e03 100644 --- a/api_docs/product_doc_base.mdx +++ b/api_docs/product_doc_base.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/productDocBase title: "productDocBase" image: https://source.unsplash.com/400x175/?github description: API docs for the productDocBase plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'productDocBase'] --- import productDocBaseObj from './product_doc_base.devdocs.json'; diff --git a/api_docs/profiling.mdx b/api_docs/profiling.mdx index 70b590e58d96b..cad51db95fe65 100644 --- a/api_docs/profiling.mdx +++ b/api_docs/profiling.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/profiling title: "profiling" image: https://source.unsplash.com/400x175/?github description: API docs for the profiling plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'profiling'] --- import profilingObj from './profiling.devdocs.json'; diff --git a/api_docs/profiling_data_access.mdx b/api_docs/profiling_data_access.mdx index 65c810b91524f..580514280e66e 100644 --- a/api_docs/profiling_data_access.mdx +++ b/api_docs/profiling_data_access.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/profilingDataAccess title: "profilingDataAccess" image: https://source.unsplash.com/400x175/?github description: API docs for the profilingDataAccess plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'profilingDataAccess'] --- import profilingDataAccessObj from './profiling_data_access.devdocs.json'; diff --git a/api_docs/remote_clusters.mdx b/api_docs/remote_clusters.mdx index 1ef36f2cbc696..321838c63e907 100644 --- a/api_docs/remote_clusters.mdx +++ b/api_docs/remote_clusters.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/remoteClusters title: "remoteClusters" image: https://source.unsplash.com/400x175/?github description: API docs for the remoteClusters plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'remoteClusters'] --- import remoteClustersObj from './remote_clusters.devdocs.json'; diff --git a/api_docs/reporting.mdx b/api_docs/reporting.mdx index 6299a7b1535f5..5f783923a0851 100644 --- a/api_docs/reporting.mdx +++ b/api_docs/reporting.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/reporting title: "reporting" image: https://source.unsplash.com/400x175/?github description: API docs for the reporting plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'reporting'] --- import reportingObj from './reporting.devdocs.json'; diff --git a/api_docs/rollup.mdx b/api_docs/rollup.mdx index be3a06c726099..040f7695b167c 100644 --- a/api_docs/rollup.mdx +++ b/api_docs/rollup.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/rollup title: "rollup" image: https://source.unsplash.com/400x175/?github description: API docs for the rollup plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'rollup'] --- import rollupObj from './rollup.devdocs.json'; diff --git a/api_docs/rule_registry.mdx b/api_docs/rule_registry.mdx index d3848504986c8..9fdcb82392974 100644 --- a/api_docs/rule_registry.mdx +++ b/api_docs/rule_registry.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ruleRegistry title: "ruleRegistry" image: https://source.unsplash.com/400x175/?github description: API docs for the ruleRegistry plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ruleRegistry'] --- import ruleRegistryObj from './rule_registry.devdocs.json'; diff --git a/api_docs/runtime_fields.mdx b/api_docs/runtime_fields.mdx index 39957ba113fa3..ba78cea45cfd7 100644 --- a/api_docs/runtime_fields.mdx +++ b/api_docs/runtime_fields.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/runtimeFields title: "runtimeFields" image: https://source.unsplash.com/400x175/?github description: API docs for the runtimeFields plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'runtimeFields'] --- import runtimeFieldsObj from './runtime_fields.devdocs.json'; diff --git a/api_docs/saved_objects.mdx b/api_docs/saved_objects.mdx index 976768d78012f..4e2b771377271 100644 --- a/api_docs/saved_objects.mdx +++ b/api_docs/saved_objects.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjects title: "savedObjects" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjects plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjects'] --- import savedObjectsObj from './saved_objects.devdocs.json'; diff --git a/api_docs/saved_objects_finder.devdocs.json b/api_docs/saved_objects_finder.devdocs.json index 0b7b7304d73bd..3dc5bf2648f26 100644 --- a/api_docs/saved_objects_finder.devdocs.json +++ b/api_docs/saved_objects_finder.devdocs.json @@ -20,13 +20,7 @@ "text": "ContentClient" }, ", uiSettings: ", - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - }, + "IUiSettingsClient", ", savedObjectsTagging?: ", { "pluginId": "savedObjectsTaggingOss", @@ -88,13 +82,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/platform/plugins/shared/saved_objects_finder/public/finder/index.tsx", "deprecated": false, diff --git a/api_docs/saved_objects_finder.mdx b/api_docs/saved_objects_finder.mdx index 774f6c281c3ae..a75ef1faaa377 100644 --- a/api_docs/saved_objects_finder.mdx +++ b/api_docs/saved_objects_finder.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsFinder title: "savedObjectsFinder" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsFinder plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsFinder'] --- import savedObjectsFinderObj from './saved_objects_finder.devdocs.json'; diff --git a/api_docs/saved_objects_management.mdx b/api_docs/saved_objects_management.mdx index 5f948c6746efc..f50101f58c80f 100644 --- a/api_docs/saved_objects_management.mdx +++ b/api_docs/saved_objects_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsManagement title: "savedObjectsManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsManagement plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsManagement'] --- import savedObjectsManagementObj from './saved_objects_management.devdocs.json'; diff --git a/api_docs/saved_objects_tagging.devdocs.json b/api_docs/saved_objects_tagging.devdocs.json index 922c012533ebe..f45a6cb72bdd9 100644 --- a/api_docs/saved_objects_tagging.devdocs.json +++ b/api_docs/saved_objects_tagging.devdocs.json @@ -23,7 +23,7 @@ "text": "SavedObjectsTaggingApi" } ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/public/types.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/public/types.ts", "deprecated": false, "trackAdoption": false, "lifecycle": "start", @@ -41,7 +41,7 @@ "tags": [], "label": "CreateTagAssignmentServiceOptions", "description": [], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -55,7 +55,7 @@ "signature": [ "SavedObjectsClientContract" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/types.ts", "deprecated": false, "trackAdoption": false } @@ -69,7 +69,7 @@ "tags": [], "label": "CreateTagClientOptions", "description": [], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -83,7 +83,7 @@ "signature": [ "SavedObjectsClientContract" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/types.ts", "deprecated": false, "trackAdoption": false } @@ -109,7 +109,7 @@ "UpdateTagAssignmentsOptions", ") => Promise; }" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/assignment_service.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -123,7 +123,7 @@ "tags": [], "label": "SavedObjectTaggingStart", "description": [], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -154,7 +154,7 @@ "text": "ITagsClient" } ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -174,7 +174,7 @@ "text": "CreateTagClientOptions" } ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -209,7 +209,7 @@ "text": "IAssignmentService" } ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/types.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -229,7 +229,7 @@ "text": "CreateTagAssignmentServiceOptions" } ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/types.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -264,7 +264,7 @@ "text": "TagsCapabilities" } ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -278,7 +278,7 @@ "signature": [ "Capabilities" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -297,7 +297,7 @@ "signature": [ "(color: string) => string | undefined" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -311,7 +311,7 @@ "signature": [ "string" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -330,7 +330,7 @@ "signature": [ "(description: string) => string | undefined" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -344,7 +344,7 @@ "signature": [ "string" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -363,7 +363,7 @@ "signature": [ "(name: string) => string | undefined" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -377,7 +377,7 @@ "signature": [ "string" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -397,7 +397,7 @@ "description": [ "\nRepresent the UI capabilities for the `savedObjectsTagging` section of `Capabilities`" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -408,7 +408,7 @@ "tags": [], "label": "view", "description": [], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.ts", "deprecated": false, "trackAdoption": false }, @@ -419,7 +419,7 @@ "tags": [], "label": "create", "description": [], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.ts", "deprecated": false, "trackAdoption": false }, @@ -430,7 +430,7 @@ "tags": [], "label": "edit", "description": [], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.ts", "deprecated": false, "trackAdoption": false }, @@ -441,7 +441,7 @@ "tags": [], "label": "delete", "description": [], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.ts", "deprecated": false, "trackAdoption": false }, @@ -452,7 +452,7 @@ "tags": [], "label": "assign", "description": [], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.ts", "deprecated": false, "trackAdoption": false }, @@ -463,7 +463,7 @@ "tags": [], "label": "viewConnections", "description": [], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.ts", "deprecated": false, "trackAdoption": false } @@ -477,7 +477,7 @@ "tags": [], "label": "TagValidation", "description": [], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -488,7 +488,7 @@ "tags": [], "label": "valid", "description": [], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false }, @@ -502,7 +502,7 @@ "signature": [ "string[]" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false }, @@ -516,7 +516,7 @@ "signature": [ "{ id?: string | undefined; name?: string | undefined; color?: string | undefined; description?: string | undefined; managed?: string | undefined; }" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false } @@ -536,7 +536,7 @@ "signature": [ "100" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -553,7 +553,7 @@ "signature": [ "\"savedObjectsTagging\"" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/constants.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -570,7 +570,7 @@ "signature": [ "\"tags\"" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/constants.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -585,7 +585,7 @@ "signature": [ "50" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -600,7 +600,7 @@ "signature": [ "2" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -617,7 +617,7 @@ "signature": [ "\"tag\"" ], - "path": "x-pack/platform/plugins/private/saved_objects_tagging/common/constants.ts", + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/common/constants.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false diff --git a/api_docs/saved_objects_tagging.mdx b/api_docs/saved_objects_tagging.mdx index 7ca0689bc9261..905cd70e6633e 100644 --- a/api_docs/saved_objects_tagging.mdx +++ b/api_docs/saved_objects_tagging.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsTagging title: "savedObjectsTagging" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsTagging plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsTagging'] --- import savedObjectsTaggingObj from './saved_objects_tagging.devdocs.json'; diff --git a/api_docs/saved_objects_tagging_oss.mdx b/api_docs/saved_objects_tagging_oss.mdx index 98800f81d9ad9..0e745b6811e2c 100644 --- a/api_docs/saved_objects_tagging_oss.mdx +++ b/api_docs/saved_objects_tagging_oss.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsTaggingOss title: "savedObjectsTaggingOss" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsTaggingOss plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsTaggingOss'] --- import savedObjectsTaggingOssObj from './saved_objects_tagging_oss.devdocs.json'; diff --git a/api_docs/saved_search.mdx b/api_docs/saved_search.mdx index 8bbbcc7c6e9e0..f8974c675ca8a 100644 --- a/api_docs/saved_search.mdx +++ b/api_docs/saved_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedSearch title: "savedSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the savedSearch plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedSearch'] --- import savedSearchObj from './saved_search.devdocs.json'; diff --git a/api_docs/screenshot_mode.mdx b/api_docs/screenshot_mode.mdx index beb4f77a9a466..39f3f05ce652e 100644 --- a/api_docs/screenshot_mode.mdx +++ b/api_docs/screenshot_mode.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/screenshotMode title: "screenshotMode" image: https://source.unsplash.com/400x175/?github description: API docs for the screenshotMode plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'screenshotMode'] --- import screenshotModeObj from './screenshot_mode.devdocs.json'; diff --git a/api_docs/screenshotting.mdx b/api_docs/screenshotting.mdx index c20d8f7fb520d..c8eb1a56989b3 100644 --- a/api_docs/screenshotting.mdx +++ b/api_docs/screenshotting.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/screenshotting title: "screenshotting" image: https://source.unsplash.com/400x175/?github description: API docs for the screenshotting plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'screenshotting'] --- import screenshottingObj from './screenshotting.devdocs.json'; diff --git a/api_docs/search_assistant.mdx b/api_docs/search_assistant.mdx index c7a9f64b78660..7001c0d13aeef 100644 --- a/api_docs/search_assistant.mdx +++ b/api_docs/search_assistant.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchAssistant title: "searchAssistant" image: https://source.unsplash.com/400x175/?github description: API docs for the searchAssistant plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchAssistant'] --- import searchAssistantObj from './search_assistant.devdocs.json'; diff --git a/api_docs/search_connectors.mdx b/api_docs/search_connectors.mdx index c32ae651cdd6d..c7d60757c3be5 100644 --- a/api_docs/search_connectors.mdx +++ b/api_docs/search_connectors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchConnectors title: "searchConnectors" image: https://source.unsplash.com/400x175/?github description: API docs for the searchConnectors plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchConnectors'] --- import searchConnectorsObj from './search_connectors.devdocs.json'; diff --git a/api_docs/search_homepage.mdx b/api_docs/search_homepage.mdx index ed963f9e2c5b4..fb80722785c8d 100644 --- a/api_docs/search_homepage.mdx +++ b/api_docs/search_homepage.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchHomepage title: "searchHomepage" image: https://source.unsplash.com/400x175/?github description: API docs for the searchHomepage plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchHomepage'] --- import searchHomepageObj from './search_homepage.devdocs.json'; diff --git a/api_docs/search_indices.mdx b/api_docs/search_indices.mdx index 04892cb51272a..e6e07e00e1670 100644 --- a/api_docs/search_indices.mdx +++ b/api_docs/search_indices.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchIndices title: "searchIndices" image: https://source.unsplash.com/400x175/?github description: API docs for the searchIndices plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchIndices'] --- import searchIndicesObj from './search_indices.devdocs.json'; diff --git a/api_docs/search_inference_endpoints.mdx b/api_docs/search_inference_endpoints.mdx index 92451d1b578ce..5469abcda1863 100644 --- a/api_docs/search_inference_endpoints.mdx +++ b/api_docs/search_inference_endpoints.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchInferenceEndpoints title: "searchInferenceEndpoints" image: https://source.unsplash.com/400x175/?github description: API docs for the searchInferenceEndpoints plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchInferenceEndpoints'] --- import searchInferenceEndpointsObj from './search_inference_endpoints.devdocs.json'; diff --git a/api_docs/search_navigation.mdx b/api_docs/search_navigation.mdx index 07818d272280d..cf43c2d54169e 100644 --- a/api_docs/search_navigation.mdx +++ b/api_docs/search_navigation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchNavigation title: "searchNavigation" image: https://source.unsplash.com/400x175/?github description: API docs for the searchNavigation plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchNavigation'] --- import searchNavigationObj from './search_navigation.devdocs.json'; diff --git a/api_docs/search_notebooks.mdx b/api_docs/search_notebooks.mdx index 63696023cec89..c30a95020b220 100644 --- a/api_docs/search_notebooks.mdx +++ b/api_docs/search_notebooks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchNotebooks title: "searchNotebooks" image: https://source.unsplash.com/400x175/?github description: API docs for the searchNotebooks plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchNotebooks'] --- import searchNotebooksObj from './search_notebooks.devdocs.json'; diff --git a/api_docs/search_playground.mdx b/api_docs/search_playground.mdx index f4c296a56e942..842c80ad7971f 100644 --- a/api_docs/search_playground.mdx +++ b/api_docs/search_playground.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchPlayground title: "searchPlayground" image: https://source.unsplash.com/400x175/?github description: API docs for the searchPlayground plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchPlayground'] --- import searchPlaygroundObj from './search_playground.devdocs.json'; diff --git a/api_docs/search_synonyms.mdx b/api_docs/search_synonyms.mdx index 957f8489ec88d..f6a41f2ba9f4a 100644 --- a/api_docs/search_synonyms.mdx +++ b/api_docs/search_synonyms.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/searchSynonyms title: "searchSynonyms" image: https://source.unsplash.com/400x175/?github description: API docs for the searchSynonyms plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'searchSynonyms'] --- import searchSynonymsObj from './search_synonyms.devdocs.json'; diff --git a/api_docs/security.devdocs.json b/api_docs/security.devdocs.json index 34b3eba3ea555..8df6bc8ce6fc8 100644 --- a/api_docs/security.devdocs.json +++ b/api_docs/security.devdocs.json @@ -5918,7 +5918,7 @@ }, { "plugin": "savedObjectsTagging", - "path": "x-pack/platform/plugins/private/saved_objects_tagging/server/request_handler_context.ts" + "path": "x-pack/platform/plugins/shared/saved_objects_tagging/server/request_handler_context.ts" }, { "plugin": "ml", diff --git a/api_docs/security.mdx b/api_docs/security.mdx index 562a132a309af..42fe807402bd9 100644 --- a/api_docs/security.mdx +++ b/api_docs/security.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/security title: "security" image: https://source.unsplash.com/400x175/?github description: API docs for the security plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'security'] --- import securityObj from './security.devdocs.json'; diff --git a/api_docs/security_solution.mdx b/api_docs/security_solution.mdx index 997fc8af90d4b..ca2aaef09d521 100644 --- a/api_docs/security_solution.mdx +++ b/api_docs/security_solution.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/securitySolution title: "securitySolution" image: https://source.unsplash.com/400x175/?github description: API docs for the securitySolution plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'securitySolution'] --- import securitySolutionObj from './security_solution.devdocs.json'; diff --git a/api_docs/security_solution_ess.mdx b/api_docs/security_solution_ess.mdx index 426e12ca2d632..747229d650fa4 100644 --- a/api_docs/security_solution_ess.mdx +++ b/api_docs/security_solution_ess.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/securitySolutionEss title: "securitySolutionEss" image: https://source.unsplash.com/400x175/?github description: API docs for the securitySolutionEss plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'securitySolutionEss'] --- import securitySolutionEssObj from './security_solution_ess.devdocs.json'; diff --git a/api_docs/security_solution_serverless.mdx b/api_docs/security_solution_serverless.mdx index 8a415ed008c9a..82188705a9fa5 100644 --- a/api_docs/security_solution_serverless.mdx +++ b/api_docs/security_solution_serverless.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/securitySolutionServerless title: "securitySolutionServerless" image: https://source.unsplash.com/400x175/?github description: API docs for the securitySolutionServerless plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'securitySolutionServerless'] --- import securitySolutionServerlessObj from './security_solution_serverless.devdocs.json'; diff --git a/api_docs/serverless.mdx b/api_docs/serverless.mdx index 31faf536bae88..8ea5d568a95a8 100644 --- a/api_docs/serverless.mdx +++ b/api_docs/serverless.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/serverless title: "serverless" image: https://source.unsplash.com/400x175/?github description: API docs for the serverless plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'serverless'] --- import serverlessObj from './serverless.devdocs.json'; diff --git a/api_docs/serverless_observability.mdx b/api_docs/serverless_observability.mdx index b0b61a3bb51d6..9cd960125ee2c 100644 --- a/api_docs/serverless_observability.mdx +++ b/api_docs/serverless_observability.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/serverlessObservability title: "serverlessObservability" image: https://source.unsplash.com/400x175/?github description: API docs for the serverlessObservability plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'serverlessObservability'] --- import serverlessObservabilityObj from './serverless_observability.devdocs.json'; diff --git a/api_docs/serverless_search.mdx b/api_docs/serverless_search.mdx index d282635810f07..6155f468d1278 100644 --- a/api_docs/serverless_search.mdx +++ b/api_docs/serverless_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/serverlessSearch title: "serverlessSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the serverlessSearch plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'serverlessSearch'] --- import serverlessSearchObj from './serverless_search.devdocs.json'; diff --git a/api_docs/session_view.devdocs.json b/api_docs/session_view.devdocs.json index 2aa60214d7714..110a0c1506306 100644 --- a/api_docs/session_view.devdocs.json +++ b/api_docs/session_view.devdocs.json @@ -2,7 +2,186 @@ "id": "sessionView", "client": { "classes": [], - "functions": [], + "functions": [ + { + "parentPluginId": "sessionView", + "id": "def-public.DetailPanelAlertTab", + "type": "Function", + "tags": [], + "label": "DetailPanelAlertTab", + "description": [ + "\nHost Panel of session view detail panel." + ], + "signature": [ + "({ alerts, isFetchingAlerts, hasNextPageAlerts, fetchNextPageAlerts, onJumpToEvent, onShowAlertDetails, investigatedAlertId, }: DetailPanelAlertTabDeps) => React.JSX.Element" + ], + "path": "x-pack/solutions/security/plugins/session_view/public/components/detail_panel_alert_tab/index.tsx", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "sessionView", + "id": "def-public.DetailPanelAlertTab.$1", + "type": "Object", + "tags": [], + "label": "{\n alerts,\n isFetchingAlerts,\n hasNextPageAlerts,\n fetchNextPageAlerts,\n onJumpToEvent,\n onShowAlertDetails,\n investigatedAlertId,\n}", + "description": [], + "signature": [ + "DetailPanelAlertTabDeps" + ], + "path": "x-pack/solutions/security/plugins/session_view/public/components/detail_panel_alert_tab/index.tsx", + "deprecated": false, + "trackAdoption": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "sessionView", + "id": "def-public.DetailPanelMetadataTab", + "type": "Function", + "tags": [], + "label": "DetailPanelMetadataTab", + "description": [ + "\nHost Panel of session view detail panel." + ], + "signature": [ + "({ processHost, processContainer, processOrchestrator, processCloud, }: DetailPanelMetadataTabDeps) => React.JSX.Element" + ], + "path": "x-pack/solutions/security/plugins/session_view/public/components/detail_panel_metadata_tab/index.tsx", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "sessionView", + "id": "def-public.DetailPanelMetadataTab.$1", + "type": "Object", + "tags": [], + "label": "{\n processHost,\n processContainer,\n processOrchestrator,\n processCloud,\n}", + "description": [], + "signature": [ + "DetailPanelMetadataTabDeps" + ], + "path": "x-pack/solutions/security/plugins/session_view/public/components/detail_panel_metadata_tab/index.tsx", + "deprecated": false, + "trackAdoption": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "sessionView", + "id": "def-public.DetailPanelProcessTab", + "type": "Function", + "tags": [], + "label": "DetailPanelProcessTab", + "description": [ + "\nDetail panel in the session view." + ], + "signature": [ + "({ selectedProcess, index }: DetailPanelProcessTabDeps) => React.JSX.Element" + ], + "path": "x-pack/solutions/security/plugins/session_view/public/components/detail_panel_process_tab/index.tsx", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "sessionView", + "id": "def-public.DetailPanelProcessTab.$1", + "type": "Object", + "tags": [], + "label": "{ selectedProcess, index }", + "description": [], + "signature": [ + "DetailPanelProcessTabDeps" + ], + "path": "x-pack/solutions/security/plugins/session_view/public/components/detail_panel_process_tab/index.tsx", + "deprecated": false, + "trackAdoption": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "sessionView", + "id": "def-public.useFetchSessionViewAlerts", + "type": "Function", + "tags": [], + "label": "useFetchSessionViewAlerts", + "description": [], + "signature": [ + "(sessionEntityId: string, sessionStartTime: string, investigatedAlertId?: string | undefined) => ", + "UseInfiniteQueryResult", + "<{ events: ", + { + "pluginId": "sessionView", + "scope": "common", + "docId": "kibSessionViewPluginApi", + "section": "def-common.ProcessEvent", + "text": "ProcessEvent" + }, + "[]; cursor: any; total: number | undefined; }, unknown>" + ], + "path": "x-pack/solutions/security/plugins/session_view/public/components/session_view/hooks.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "sessionView", + "id": "def-public.useFetchSessionViewAlerts.$1", + "type": "string", + "tags": [], + "label": "sessionEntityId", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/solutions/security/plugins/session_view/public/components/session_view/hooks.ts", + "deprecated": false, + "trackAdoption": false, + "isRequired": true + }, + { + "parentPluginId": "sessionView", + "id": "def-public.useFetchSessionViewAlerts.$2", + "type": "string", + "tags": [], + "label": "sessionStartTime", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/solutions/security/plugins/session_view/public/components/session_view/hooks.ts", + "deprecated": false, + "trackAdoption": false, + "isRequired": true + }, + { + "parentPluginId": "sessionView", + "id": "def-public.useFetchSessionViewAlerts.$3", + "type": "string", + "tags": [], + "label": "investigatedAlertId", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/solutions/security/plugins/session_view/public/components/session_view/hooks.ts", + "deprecated": false, + "trackAdoption": false, + "isRequired": false + } + ], + "returnComment": [], + "initialIsOpen": false + } + ], "interfaces": [ { "parentPluginId": "sessionView", diff --git a/api_docs/session_view.mdx b/api_docs/session_view.mdx index 84ea144ddbda5..29905c058628e 100644 --- a/api_docs/session_view.mdx +++ b/api_docs/session_view.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/sessionView title: "sessionView" image: https://source.unsplash.com/400x175/?github description: API docs for the sessionView plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'sessionView'] --- import sessionViewObj from './session_view.devdocs.json'; @@ -21,10 +21,13 @@ Contact [@elastic/kibana-cloud-security-posture](https://github.com/orgs/elastic | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 134 | 0 | 134 | 8 | +| 144 | 0 | 141 | 8 | ## Client +### Functions + + ### Interfaces diff --git a/api_docs/share.devdocs.json b/api_docs/share.devdocs.json index 53779c317b689..0f333246199af 100644 --- a/api_docs/share.devdocs.json +++ b/api_docs/share.devdocs.json @@ -903,7 +903,7 @@ "references": [ { "plugin": "@kbn/reporting-public", - "path": "packages/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx" + "path": "src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx" }, { "plugin": "discover", diff --git a/api_docs/share.mdx b/api_docs/share.mdx index 96f5e242c792a..4edca6a42dcbd 100644 --- a/api_docs/share.mdx +++ b/api_docs/share.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/share title: "share" image: https://source.unsplash.com/400x175/?github description: API docs for the share plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'share'] --- import shareObj from './share.devdocs.json'; diff --git a/api_docs/slo.mdx b/api_docs/slo.mdx index 4337e76179a76..707f3b96a9512 100644 --- a/api_docs/slo.mdx +++ b/api_docs/slo.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/slo title: "slo" image: https://source.unsplash.com/400x175/?github description: API docs for the slo plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'slo'] --- import sloObj from './slo.devdocs.json'; diff --git a/api_docs/snapshot_restore.mdx b/api_docs/snapshot_restore.mdx index ac7d52a2dbd91..03b4ef190a653 100644 --- a/api_docs/snapshot_restore.mdx +++ b/api_docs/snapshot_restore.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/snapshotRestore title: "snapshotRestore" image: https://source.unsplash.com/400x175/?github description: API docs for the snapshotRestore plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'snapshotRestore'] --- import snapshotRestoreObj from './snapshot_restore.devdocs.json'; diff --git a/api_docs/spaces.mdx b/api_docs/spaces.mdx index e98eb6f95fd26..658cbeab4b64c 100644 --- a/api_docs/spaces.mdx +++ b/api_docs/spaces.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/spaces title: "spaces" image: https://source.unsplash.com/400x175/?github description: API docs for the spaces plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'spaces'] --- import spacesObj from './spaces.devdocs.json'; diff --git a/api_docs/stack_alerts.mdx b/api_docs/stack_alerts.mdx index e341350f812a6..a21e6b12bf2f9 100644 --- a/api_docs/stack_alerts.mdx +++ b/api_docs/stack_alerts.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/stackAlerts title: "stackAlerts" image: https://source.unsplash.com/400x175/?github description: API docs for the stackAlerts plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'stackAlerts'] --- import stackAlertsObj from './stack_alerts.devdocs.json'; diff --git a/api_docs/stack_connectors.mdx b/api_docs/stack_connectors.mdx index 5dbe56859e041..224c577d1dffc 100644 --- a/api_docs/stack_connectors.mdx +++ b/api_docs/stack_connectors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/stackConnectors title: "stackConnectors" image: https://source.unsplash.com/400x175/?github description: API docs for the stackConnectors plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'stackConnectors'] --- import stackConnectorsObj from './stack_connectors.devdocs.json'; diff --git a/api_docs/streams.devdocs.json b/api_docs/streams.devdocs.json index cb80d68a89201..3c8f332cfdf56 100644 --- a/api_docs/streams.devdocs.json +++ b/api_docs/streams.devdocs.json @@ -141,7 +141,67 @@ }, "; }; }>, ", "StreamsRouteHandlerResources", - ", { documents: unknown[]; }, undefined>; \"POST /api/streams/_disable\": ", + ", { documents: unknown[]; }, undefined>; \"POST /api/streams/{id}/dashboards/_bulk\": ", + { + "pluginId": "@kbn/server-route-repository-utils", + "scope": "common", + "docId": "kibKbnServerRouteRepositoryUtilsPluginApi", + "section": "def-common.ServerRoute", + "text": "ServerRoute" + }, + "<\"POST /api/streams/{id}/dashboards/_bulk\", Zod.ZodObject<{ path: Zod.ZodObject<{ id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; }, { id: string; }>; body: Zod.ZodObject<{ operations: Zod.ZodArray; }, \"strip\", Zod.ZodTypeAny, { index: { id: string; }; }, { index: { id: string; }; }>, Zod.ZodObject<{ delete: Zod.ZodObject<{ id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; }, { id: string; }>; }, \"strip\", Zod.ZodTypeAny, { delete: { id: string; }; }, { delete: { id: string; }; }>]>, \"many\">; }, \"strip\", Zod.ZodTypeAny, { operations: ({ index: { id: string; }; } | { delete: { id: string; }; })[]; }, { operations: ({ index: { id: string; }; } | { delete: { id: string; }; })[]; }>; }, \"strip\", Zod.ZodTypeAny, { path: { id: string; }; body: { operations: ({ index: { id: string; }; } | { delete: { id: string; }; })[]; }; }, { path: { id: string; }; body: { operations: ({ index: { id: string; }; } | { delete: { id: string; }; })[]; }; }>, ", + "StreamsRouteHandlerResources", + ", ", + "BulkUpdateAssetsResponse", + ", undefined>; \"POST /api/streams/{id}/dashboards/_suggestions\": ", + { + "pluginId": "@kbn/server-route-repository-utils", + "scope": "common", + "docId": "kibKbnServerRouteRepositoryUtilsPluginApi", + "section": "def-common.ServerRoute", + "text": "ServerRoute" + }, + "<\"POST /api/streams/{id}/dashboards/_suggestions\", Zod.ZodObject<{ path: Zod.ZodObject<{ id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; }, { id: string; }>; query: Zod.ZodObject<{ query: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { query: string; }, { query: string; }>; body: Zod.ZodObject<{ tags: Zod.ZodOptional>; }, \"strip\", Zod.ZodTypeAny, { tags?: string[] | undefined; }, { tags?: string[] | undefined; }>; }, \"strip\", Zod.ZodTypeAny, { query: { query: string; }; path: { id: string; }; body: { tags?: string[] | undefined; }; }, { query: { query: string; }; path: { id: string; }; body: { tags?: string[] | undefined; }; }>, ", + "StreamsRouteHandlerResources", + ", ", + "SuggestDashboardResponse", + ", undefined>; \"DELETE /api/streams/{id}/dashboards/{dashboardId}\": ", + { + "pluginId": "@kbn/server-route-repository-utils", + "scope": "common", + "docId": "kibKbnServerRouteRepositoryUtilsPluginApi", + "section": "def-common.ServerRoute", + "text": "ServerRoute" + }, + "<\"DELETE /api/streams/{id}/dashboards/{dashboardId}\", Zod.ZodObject<{ path: Zod.ZodObject<{ id: Zod.ZodString; dashboardId: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; dashboardId: string; }, { id: string; dashboardId: string; }>; }, \"strip\", Zod.ZodTypeAny, { path: { id: string; dashboardId: string; }; }, { path: { id: string; dashboardId: string; }; }>, ", + "StreamsRouteHandlerResources", + ", ", + "UnlinkDashboardResponse", + ", undefined>; \"PUT /api/streams/{id}/dashboards/{dashboardId}\": ", + { + "pluginId": "@kbn/server-route-repository-utils", + "scope": "common", + "docId": "kibKbnServerRouteRepositoryUtilsPluginApi", + "section": "def-common.ServerRoute", + "text": "ServerRoute" + }, + "<\"PUT /api/streams/{id}/dashboards/{dashboardId}\", Zod.ZodObject<{ path: Zod.ZodObject<{ id: Zod.ZodString; dashboardId: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; dashboardId: string; }, { id: string; dashboardId: string; }>; }, \"strip\", Zod.ZodTypeAny, { path: { id: string; dashboardId: string; }; }, { path: { id: string; dashboardId: string; }; }>, ", + "StreamsRouteHandlerResources", + ", ", + "LinkDashboardResponse", + ", undefined>; \"GET /api/streams/{id}/dashboards\": ", + { + "pluginId": "@kbn/server-route-repository-utils", + "scope": "common", + "docId": "kibKbnServerRouteRepositoryUtilsPluginApi", + "section": "def-common.ServerRoute", + "text": "ServerRoute" + }, + "<\"GET /api/streams/{id}/dashboards\", Zod.ZodObject<{ path: Zod.ZodObject<{ id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; }, { id: string; }>; }, \"strip\", Zod.ZodTypeAny, { path: { id: string; }; }, { path: { id: string; }; }>, ", + "StreamsRouteHandlerResources", + ", ", + "ListDashboardsResponse", + ", undefined>; \"POST /api/streams/_disable\": ", { "pluginId": "@kbn/server-route-repository-utils", "scope": "common", @@ -193,7 +253,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -209,7 +269,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }, undefined>; \"DELETE /api/streams/{id}\": ", + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }, undefined>; \"DELETE /api/streams/{id}\": ", { "pluginId": "@kbn/server-route-repository-utils", "scope": "common", @@ -575,7 +635,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -591,7 +651,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, undefined>; \"POST /api/streams/{id}/_fork\": ", + "; }[]; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, undefined>; \"POST /api/streams/{id}/_fork\": ", { "pluginId": "@kbn/server-route-repository-utils", "scope": "common", @@ -804,7 +864,67 @@ }, "; }; }>, ", "StreamsRouteHandlerResources", - ", { documents: unknown[]; }, undefined>; \"POST /api/streams/_disable\": ", + ", { documents: unknown[]; }, undefined>; \"POST /api/streams/{id}/dashboards/_bulk\": ", + { + "pluginId": "@kbn/server-route-repository-utils", + "scope": "common", + "docId": "kibKbnServerRouteRepositoryUtilsPluginApi", + "section": "def-common.ServerRoute", + "text": "ServerRoute" + }, + "<\"POST /api/streams/{id}/dashboards/_bulk\", Zod.ZodObject<{ path: Zod.ZodObject<{ id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; }, { id: string; }>; body: Zod.ZodObject<{ operations: Zod.ZodArray; }, \"strip\", Zod.ZodTypeAny, { index: { id: string; }; }, { index: { id: string; }; }>, Zod.ZodObject<{ delete: Zod.ZodObject<{ id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; }, { id: string; }>; }, \"strip\", Zod.ZodTypeAny, { delete: { id: string; }; }, { delete: { id: string; }; }>]>, \"many\">; }, \"strip\", Zod.ZodTypeAny, { operations: ({ index: { id: string; }; } | { delete: { id: string; }; })[]; }, { operations: ({ index: { id: string; }; } | { delete: { id: string; }; })[]; }>; }, \"strip\", Zod.ZodTypeAny, { path: { id: string; }; body: { operations: ({ index: { id: string; }; } | { delete: { id: string; }; })[]; }; }, { path: { id: string; }; body: { operations: ({ index: { id: string; }; } | { delete: { id: string; }; })[]; }; }>, ", + "StreamsRouteHandlerResources", + ", ", + "BulkUpdateAssetsResponse", + ", undefined>; \"POST /api/streams/{id}/dashboards/_suggestions\": ", + { + "pluginId": "@kbn/server-route-repository-utils", + "scope": "common", + "docId": "kibKbnServerRouteRepositoryUtilsPluginApi", + "section": "def-common.ServerRoute", + "text": "ServerRoute" + }, + "<\"POST /api/streams/{id}/dashboards/_suggestions\", Zod.ZodObject<{ path: Zod.ZodObject<{ id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; }, { id: string; }>; query: Zod.ZodObject<{ query: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { query: string; }, { query: string; }>; body: Zod.ZodObject<{ tags: Zod.ZodOptional>; }, \"strip\", Zod.ZodTypeAny, { tags?: string[] | undefined; }, { tags?: string[] | undefined; }>; }, \"strip\", Zod.ZodTypeAny, { query: { query: string; }; path: { id: string; }; body: { tags?: string[] | undefined; }; }, { query: { query: string; }; path: { id: string; }; body: { tags?: string[] | undefined; }; }>, ", + "StreamsRouteHandlerResources", + ", ", + "SuggestDashboardResponse", + ", undefined>; \"DELETE /api/streams/{id}/dashboards/{dashboardId}\": ", + { + "pluginId": "@kbn/server-route-repository-utils", + "scope": "common", + "docId": "kibKbnServerRouteRepositoryUtilsPluginApi", + "section": "def-common.ServerRoute", + "text": "ServerRoute" + }, + "<\"DELETE /api/streams/{id}/dashboards/{dashboardId}\", Zod.ZodObject<{ path: Zod.ZodObject<{ id: Zod.ZodString; dashboardId: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; dashboardId: string; }, { id: string; dashboardId: string; }>; }, \"strip\", Zod.ZodTypeAny, { path: { id: string; dashboardId: string; }; }, { path: { id: string; dashboardId: string; }; }>, ", + "StreamsRouteHandlerResources", + ", ", + "UnlinkDashboardResponse", + ", undefined>; \"PUT /api/streams/{id}/dashboards/{dashboardId}\": ", + { + "pluginId": "@kbn/server-route-repository-utils", + "scope": "common", + "docId": "kibKbnServerRouteRepositoryUtilsPluginApi", + "section": "def-common.ServerRoute", + "text": "ServerRoute" + }, + "<\"PUT /api/streams/{id}/dashboards/{dashboardId}\", Zod.ZodObject<{ path: Zod.ZodObject<{ id: Zod.ZodString; dashboardId: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; dashboardId: string; }, { id: string; dashboardId: string; }>; }, \"strip\", Zod.ZodTypeAny, { path: { id: string; dashboardId: string; }; }, { path: { id: string; dashboardId: string; }; }>, ", + "StreamsRouteHandlerResources", + ", ", + "LinkDashboardResponse", + ", undefined>; \"GET /api/streams/{id}/dashboards\": ", + { + "pluginId": "@kbn/server-route-repository-utils", + "scope": "common", + "docId": "kibKbnServerRouteRepositoryUtilsPluginApi", + "section": "def-common.ServerRoute", + "text": "ServerRoute" + }, + "<\"GET /api/streams/{id}/dashboards\", Zod.ZodObject<{ path: Zod.ZodObject<{ id: Zod.ZodString; }, \"strip\", Zod.ZodTypeAny, { id: string; }, { id: string; }>; }, \"strip\", Zod.ZodTypeAny, { path: { id: string; }; }, { path: { id: string; }; }>, ", + "StreamsRouteHandlerResources", + ", ", + "ListDashboardsResponse", + ", undefined>; \"POST /api/streams/_disable\": ", { "pluginId": "@kbn/server-route-repository-utils", "scope": "common", @@ -856,7 +976,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -872,7 +992,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }, undefined>; \"DELETE /api/streams/{id}\": ", + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; })[]; }, undefined>; \"DELETE /api/streams/{id}\": ", { "pluginId": "@kbn/server-route-repository-utils", "scope": "common", @@ -1238,7 +1358,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -1254,7 +1374,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; inherited_fields: Record; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, undefined>; \"POST /api/streams/{id}/_fork\": ", + "; }[]; }; }; inherited_fields: Record; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }, undefined>; \"POST /api/streams/{id}/_fork\": ", { "pluginId": "@kbn/server-route-repository-utils", "scope": "common", @@ -1373,9 +1493,77 @@ "common": { "classes": [], "functions": [], - "interfaces": [], + "interfaces": [ + { + "parentPluginId": "streams", + "id": "def-common.Asset", + "type": "Interface", + "tags": [], + "label": "Asset", + "description": [], + "signature": [ + { + "pluginId": "streams", + "scope": "common", + "docId": "kibStreamsPluginApi", + "section": "def-common.Asset", + "text": "Asset" + }, + " extends ", + "AssetLink", + "" + ], + "path": "x-pack/solutions/observability/plugins/streams/common/assets.ts", + "deprecated": false, + "trackAdoption": false, + "children": [ + { + "parentPluginId": "streams", + "id": "def-common.Asset.label", + "type": "string", + "tags": [], + "label": "label", + "description": [], + "path": "x-pack/solutions/observability/plugins/streams/common/assets.ts", + "deprecated": false, + "trackAdoption": false + }, + { + "parentPluginId": "streams", + "id": "def-common.Asset.tags", + "type": "Array", + "tags": [], + "label": "tags", + "description": [], + "signature": [ + "string[]" + ], + "path": "x-pack/solutions/observability/plugins/streams/common/assets.ts", + "deprecated": false, + "trackAdoption": false + } + ], + "initialIsOpen": false + } + ], "enums": [], - "misc": [], + "misc": [ + { + "parentPluginId": "streams", + "id": "def-common.AssetType", + "type": "Type", + "tags": [], + "label": "AssetType", + "description": [], + "signature": [ + "\"rule\" | \"slo\" | \"dashboard\"" + ], + "path": "x-pack/solutions/observability/plugins/streams/common/assets.ts", + "deprecated": false, + "trackAdoption": false, + "initialIsOpen": false + } + ], "objects": [] } } \ No newline at end of file diff --git a/api_docs/streams.mdx b/api_docs/streams.mdx index c59e57329ac30..c43d4d6b276f8 100644 --- a/api_docs/streams.mdx +++ b/api_docs/streams.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/streams title: "streams" image: https://source.unsplash.com/400x175/?github description: API docs for the streams plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'streams'] --- import streamsObj from './streams.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/streams-program-team](https://github.com/orgs/elastic/teams/st | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 9 | 0 | 9 | 2 | +| 13 | 0 | 13 | 8 | ## Client @@ -42,3 +42,11 @@ Contact [@elastic/streams-program-team](https://github.com/orgs/elastic/teams/st ### Consts, variables and types +## Common + +### Interfaces + + +### Consts, variables and types + + diff --git a/api_docs/streams_app.devdocs.json b/api_docs/streams_app.devdocs.json index e8d864dd253ec..dbb43e4152a74 100644 --- a/api_docs/streams_app.devdocs.json +++ b/api_docs/streams_app.devdocs.json @@ -128,7 +128,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -144,7 +144,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }; }" + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }; }" ], "path": "x-pack/solutions/observability/plugins/streams_app/common/index.ts", "deprecated": false, @@ -175,7 +175,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; wired: { fields: Record; }; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", + "; }[]; wired: { fields: Record; }; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; } | { name: string; stream: { ingest: { routing: { name: string; condition?: ", { "pluginId": "@kbn/streams-schema", "scope": "common", @@ -191,7 +191,7 @@ "section": "def-common.Condition", "text": "Condition" }, - "; }[]; }; }; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }; }" + "; }[]; }; }; dashboards?: string[] | undefined; elasticsearch_assets?: { id: string; type: \"ingest_pipeline\" | \"data_stream\" | \"index_template\" | \"component_template\"; }[] | undefined; }; }" ], "path": "x-pack/solutions/observability/plugins/streams_app/common/index.ts", "deprecated": false, diff --git a/api_docs/streams_app.mdx b/api_docs/streams_app.mdx index c7401bf1f9fcb..e70c75e481f4c 100644 --- a/api_docs/streams_app.mdx +++ b/api_docs/streams_app.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/streamsApp title: "streamsApp" image: https://source.unsplash.com/400x175/?github description: API docs for the streamsApp plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'streamsApp'] --- import streamsAppObj from './streams_app.devdocs.json'; diff --git a/api_docs/task_manager.devdocs.json b/api_docs/task_manager.devdocs.json index 3ea34acd61e77..6c8d2270f1d50 100644 --- a/api_docs/task_manager.devdocs.json +++ b/api_docs/task_manager.devdocs.json @@ -43,7 +43,11 @@ "section": "def-server.TaskManagerStartContract", "text": "TaskManagerStartContract" }, - ", object, object>" + ", ", + "TaskManagerPluginsSetup", + ", ", + "TaskManagerPluginsStart", + ">" ], "path": "x-pack/platform/plugins/shared/task_manager/server/plugin.ts", "deprecated": false, @@ -109,6 +113,8 @@ "(core: ", "CoreSetup", "<", + "TaskManagerPluginsStart", + ", ", { "pluginId": "taskManager", "scope": "server", @@ -116,15 +122,9 @@ "section": "def-server.TaskManagerStartContract", "text": "TaskManagerStartContract" }, - ", unknown>, plugins: { usageCollection?: ", - { - "pluginId": "usageCollection", - "scope": "server", - "docId": "kibUsageCollectionPluginApi", - "section": "def-server.UsageCollectionSetup", - "text": "UsageCollectionSetup" - }, - " | undefined; }) => ", + ">, plugins: ", + "TaskManagerPluginsSetup", + ") => ", { "pluginId": "taskManager", "scope": "server", @@ -147,6 +147,8 @@ "signature": [ "CoreSetup", "<", + "TaskManagerPluginsStart", + ", ", { "pluginId": "taskManager", "scope": "server", @@ -154,7 +156,7 @@ "section": "def-server.TaskManagerStartContract", "text": "TaskManagerStartContract" }, - ", unknown>" + ">" ], "path": "x-pack/platform/plugins/shared/task_manager/server/plugin.ts", "deprecated": false, @@ -168,32 +170,13 @@ "tags": [], "label": "plugins", "description": [], + "signature": [ + "TaskManagerPluginsSetup" + ], "path": "x-pack/platform/plugins/shared/task_manager/server/plugin.ts", "deprecated": false, "trackAdoption": false, - "children": [ - { - "parentPluginId": "taskManager", - "id": "def-server.TaskManagerPlugin.setup.$2.usageCollection", - "type": "CompoundType", - "tags": [], - "label": "usageCollection", - "description": [], - "signature": [ - { - "pluginId": "usageCollection", - "scope": "server", - "docId": "kibUsageCollectionPluginApi", - "section": "def-server.UsageCollectionSetup", - "text": "UsageCollectionSetup" - }, - " | undefined" - ], - "path": "x-pack/platform/plugins/shared/task_manager/server/plugin.ts", - "deprecated": false, - "trackAdoption": false - } - ] + "isRequired": true } ], "returnComment": [] @@ -209,7 +192,7 @@ "({ savedObjects, elasticsearch, executionContext, docLinks }: ", "CoreStart", ", { cloud }: ", - "TaskManagerPluginStart", + "TaskManagerPluginsStart", ") => ", { "pluginId": "taskManager", @@ -246,7 +229,7 @@ "label": "{ cloud }", "description": [], "signature": [ - "TaskManagerPluginStart" + "TaskManagerPluginsStart" ], "path": "x-pack/platform/plugins/shared/task_manager/server/plugin.ts", "deprecated": false, diff --git a/api_docs/task_manager.mdx b/api_docs/task_manager.mdx index 7585226764495..0898f8a745b56 100644 --- a/api_docs/task_manager.mdx +++ b/api_docs/task_manager.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/taskManager title: "taskManager" image: https://source.unsplash.com/400x175/?github description: API docs for the taskManager plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'taskManager'] --- import taskManagerObj from './task_manager.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-o | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 105 | 0 | 62 | 6 | +| 104 | 0 | 61 | 7 | ## Server diff --git a/api_docs/telemetry.mdx b/api_docs/telemetry.mdx index 62e15ac4e36e5..e440e5c7f8ca7 100644 --- a/api_docs/telemetry.mdx +++ b/api_docs/telemetry.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/telemetry title: "telemetry" image: https://source.unsplash.com/400x175/?github description: API docs for the telemetry plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetry'] --- import telemetryObj from './telemetry.devdocs.json'; diff --git a/api_docs/telemetry_collection_manager.mdx b/api_docs/telemetry_collection_manager.mdx index fede394607060..f2fe7cdce66c5 100644 --- a/api_docs/telemetry_collection_manager.mdx +++ b/api_docs/telemetry_collection_manager.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/telemetryCollectionManager title: "telemetryCollectionManager" image: https://source.unsplash.com/400x175/?github description: API docs for the telemetryCollectionManager plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryCollectionManager'] --- import telemetryCollectionManagerObj from './telemetry_collection_manager.devdocs.json'; diff --git a/api_docs/telemetry_management_section.mdx b/api_docs/telemetry_management_section.mdx index 4e7cdc8ce8f92..e9cf17c3edea0 100644 --- a/api_docs/telemetry_management_section.mdx +++ b/api_docs/telemetry_management_section.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/telemetryManagementSection title: "telemetryManagementSection" image: https://source.unsplash.com/400x175/?github description: API docs for the telemetryManagementSection plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryManagementSection'] --- import telemetryManagementSectionObj from './telemetry_management_section.devdocs.json'; diff --git a/api_docs/threat_intelligence.mdx b/api_docs/threat_intelligence.mdx index be332642e8820..9499cfc341d12 100644 --- a/api_docs/threat_intelligence.mdx +++ b/api_docs/threat_intelligence.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/threatIntelligence title: "threatIntelligence" image: https://source.unsplash.com/400x175/?github description: API docs for the threatIntelligence plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'threatIntelligence'] --- import threatIntelligenceObj from './threat_intelligence.devdocs.json'; diff --git a/api_docs/timelines.mdx b/api_docs/timelines.mdx index ac7f6f0fe4a8c..14ae9389d6a42 100644 --- a/api_docs/timelines.mdx +++ b/api_docs/timelines.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/timelines title: "timelines" image: https://source.unsplash.com/400x175/?github description: API docs for the timelines plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'timelines'] --- import timelinesObj from './timelines.devdocs.json'; diff --git a/api_docs/transform.mdx b/api_docs/transform.mdx index 95c5be62cc6f6..41285b480b0b4 100644 --- a/api_docs/transform.mdx +++ b/api_docs/transform.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/transform title: "transform" image: https://source.unsplash.com/400x175/?github description: API docs for the transform plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'transform'] --- import transformObj from './transform.devdocs.json'; diff --git a/api_docs/triggers_actions_ui.devdocs.json b/api_docs/triggers_actions_ui.devdocs.json index 1d5ecf4621c4e..a5f48a1a02ddf 100644 --- a/api_docs/triggers_actions_ui.devdocs.json +++ b/api_docs/triggers_actions_ui.devdocs.json @@ -98,7 +98,7 @@ "signature": [ "(core: ", "CoreSetup", - ", plugins: PluginsSetup) => ", + "<{}, unknown>, plugins: PluginsSetup) => ", { "pluginId": "triggersActionsUi", "scope": "public", @@ -120,7 +120,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], "path": "x-pack/platform/plugins/shared/triggers_actions_ui/public/plugin.ts", "deprecated": false, diff --git a/api_docs/triggers_actions_ui.mdx b/api_docs/triggers_actions_ui.mdx index 6eee03ba9f2e3..5a9a3893b4f89 100644 --- a/api_docs/triggers_actions_ui.mdx +++ b/api_docs/triggers_actions_ui.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/triggersActionsUi title: "triggersActionsUi" image: https://source.unsplash.com/400x175/?github description: API docs for the triggersActionsUi plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'triggersActionsUi'] --- import triggersActionsUiObj from './triggers_actions_ui.devdocs.json'; diff --git a/api_docs/ui_actions.devdocs.json b/api_docs/ui_actions.devdocs.json index d43513abb3423..b4bc6f5f3e4e3 100644 --- a/api_docs/ui_actions.devdocs.json +++ b/api_docs/ui_actions.devdocs.json @@ -1914,7 +1914,7 @@ }, "" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1927,7 +1927,7 @@ "description": [ "\nID that uniquely identifies this object." ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false }, @@ -1940,7 +1940,7 @@ "description": [ "\nDetermines the display order in relation to other items. Higher numbers are\ndisplayed first." ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false }, @@ -1956,7 +1956,7 @@ "signature": [ "React.FC<{ context: Context; }> | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false }, @@ -1972,7 +1972,7 @@ "signature": [ "(context: Context) => string | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -1986,7 +1986,7 @@ "signature": [ "Context" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -2006,7 +2006,7 @@ "signature": [ "(context: Context) => string" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2020,7 +2020,7 @@ "signature": [ "Context" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -2040,7 +2040,7 @@ "signature": [ "((context: Context) => string) | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2054,7 +2054,7 @@ "signature": [ "Context" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -2074,7 +2074,7 @@ "signature": [ "((context: Context) => Promise) | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2088,7 +2088,7 @@ "signature": [ "Context" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -2108,7 +2108,7 @@ "signature": [ "(context: Context) => Promise" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2122,7 +2122,7 @@ "signature": [ "Context" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "isRequired": true @@ -2149,7 +2149,7 @@ }, " | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false } @@ -2181,7 +2181,7 @@ }, ", \"order\" | \"getIconType\" | \"getDisplayName\" | \"getDisplayNameTooltip\">>" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2192,7 +2192,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false } @@ -2208,7 +2208,7 @@ "description": [ "\nThis is a convenience interface used to register a *trigger*.\n\n`Trigger` specifies a named anchor to which `Action` can be attached. When\n`Trigger` is being *called* it creates a `Context` object and passes it to\nthe `execute` method of an `Action`.\n\nMore than one action can be attached to a single trigger, in which case when\ntrigger is *called* it first displays a context menu for user to pick a\nsingle action to execute." ], - "path": "packages/kbn-ui-actions-browser/src/triggers/trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2221,7 +2221,7 @@ "description": [ "\nUnique name of the trigger as identified in `ui_actions` plugin trigger registry." ], - "path": "packages/kbn-ui-actions-browser/src/triggers/trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -2237,7 +2237,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -2253,7 +2253,7 @@ "signature": [ "string | undefined" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts", "deprecated": false, "trackAdoption": false } @@ -2562,7 +2562,7 @@ "signature": [ "\"ADD_PANEL_TRIGGER\"" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2614,7 +2614,7 @@ }, "[]" ], - "path": "packages/kbn-ui-actions-browser/src/types/presentable.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2629,7 +2629,7 @@ "signature": [ "\"ROW_CLICK_TRIGGER\"" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2660,7 +2660,7 @@ }, "; columns?: string[] | undefined; }; }" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2675,7 +2675,7 @@ "signature": [ "\"VISUALIZE_FIELD_TRIGGER\"" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2690,7 +2690,7 @@ "signature": [ "\"VISUALIZE_GEO_FIELD_TRIGGER\"" ], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", "deprecated": false, "trackAdoption": false, "initialIsOpen": false @@ -2704,7 +2704,7 @@ "tags": [], "label": "addPanelMenuTrigger", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2715,7 +2715,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -2726,7 +2726,7 @@ "tags": [], "label": "title", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -2737,7 +2737,7 @@ "tags": [], "label": "description", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts", "deprecated": false, "trackAdoption": false } @@ -2751,7 +2751,7 @@ "tags": [], "label": "rowClickTrigger", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2762,7 +2762,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -2773,7 +2773,7 @@ "tags": [], "label": "title", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -2784,7 +2784,7 @@ "tags": [], "label": "description", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts", "deprecated": false, "trackAdoption": false } @@ -2798,7 +2798,7 @@ "tags": [], "label": "visualizeFieldTrigger", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2809,7 +2809,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -2820,7 +2820,7 @@ "tags": [], "label": "title", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -2831,7 +2831,7 @@ "tags": [], "label": "description", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts", "deprecated": false, "trackAdoption": false } @@ -2845,7 +2845,7 @@ "tags": [], "label": "visualizeGeoFieldTrigger", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", "deprecated": false, "trackAdoption": false, "children": [ @@ -2856,7 +2856,7 @@ "tags": [], "label": "id", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -2867,7 +2867,7 @@ "tags": [], "label": "title", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", "deprecated": false, "trackAdoption": false }, @@ -2878,7 +2878,7 @@ "tags": [], "label": "description", "description": [], - "path": "packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", + "path": "src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts", "deprecated": false, "trackAdoption": false } diff --git a/api_docs/ui_actions.mdx b/api_docs/ui_actions.mdx index bdaf56c4c87d2..7e815aa046dba 100644 --- a/api_docs/ui_actions.mdx +++ b/api_docs/ui_actions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/uiActions title: "uiActions" image: https://source.unsplash.com/400x175/?github description: API docs for the uiActions plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uiActions'] --- import uiActionsObj from './ui_actions.devdocs.json'; diff --git a/api_docs/ui_actions_enhanced.devdocs.json b/api_docs/ui_actions_enhanced.devdocs.json index 8a4ee0c228a67..5e73279e41871 100644 --- a/api_docs/ui_actions_enhanced.devdocs.json +++ b/api_docs/ui_actions_enhanced.devdocs.json @@ -3842,7 +3842,7 @@ "signature": [ "(_core: ", "CoreSetup", - ", { embeddable }: UiActionsEnhancedServerSetupDependencies) => { registerActionFactory: (definition: ", + "<{}, unknown>, { embeddable }: UiActionsEnhancedServerSetupDependencies) => { registerActionFactory: (definition: ", { "pluginId": "uiActionsEnhanced", "scope": "server", @@ -3873,7 +3873,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], "path": "src/platform/plugins/shared/ui_actions_enhanced/server/plugin.ts", "deprecated": false, diff --git a/api_docs/ui_actions_enhanced.mdx b/api_docs/ui_actions_enhanced.mdx index 1eaa3c7f2ac0e..c34e19b547f0f 100644 --- a/api_docs/ui_actions_enhanced.mdx +++ b/api_docs/ui_actions_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/uiActionsEnhanced title: "uiActionsEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the uiActionsEnhanced plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uiActionsEnhanced'] --- import uiActionsEnhancedObj from './ui_actions_enhanced.devdocs.json'; diff --git a/api_docs/unified_doc_viewer.mdx b/api_docs/unified_doc_viewer.mdx index d4c86bf3436da..591593ef29ffb 100644 --- a/api_docs/unified_doc_viewer.mdx +++ b/api_docs/unified_doc_viewer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/unifiedDocViewer title: "unifiedDocViewer" image: https://source.unsplash.com/400x175/?github description: API docs for the unifiedDocViewer plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'unifiedDocViewer'] --- import unifiedDocViewerObj from './unified_doc_viewer.devdocs.json'; diff --git a/api_docs/unified_histogram.devdocs.json b/api_docs/unified_histogram.devdocs.json index 2ee12fd3a463b..79c0cb8adb031 100644 --- a/api_docs/unified_histogram.devdocs.json +++ b/api_docs/unified_histogram.devdocs.json @@ -933,13 +933,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/platform/plugins/shared/unified_histogram/public/types.ts", "deprecated": false, diff --git a/api_docs/unified_histogram.mdx b/api_docs/unified_histogram.mdx index 0ce4b6930c22d..f43f3324ded2f 100644 --- a/api_docs/unified_histogram.mdx +++ b/api_docs/unified_histogram.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/unifiedHistogram title: "unifiedHistogram" image: https://source.unsplash.com/400x175/?github description: API docs for the unifiedHistogram plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'unifiedHistogram'] --- import unifiedHistogramObj from './unified_histogram.devdocs.json'; diff --git a/api_docs/unified_search.devdocs.json b/api_docs/unified_search.devdocs.json index 281c126e077ab..d74ca9cdf86b6 100644 --- a/api_docs/unified_search.devdocs.json +++ b/api_docs/unified_search.devdocs.json @@ -29,7 +29,7 @@ }, ", core: ", "CoreSetup", - ", id: string, type: string) => ", + "<{}, unknown>, id: string, type: string) => ", { "pluginId": "uiActions", "scope": "public", @@ -102,7 +102,7 @@ "description": [], "signature": [ "CoreSetup", - "" + "<{}, unknown>" ], "path": "src/plugins/unified_search/public/actions/apply_filter_action.ts", "deprecated": false, @@ -1425,13 +1425,7 @@ "label": "uiSettings", "description": [], "signature": [ - { - "pluginId": "@kbn/core-ui-settings-browser", - "scope": "public", - "docId": "kibKbnCoreUiSettingsBrowserPluginApi", - "section": "def-public.IUiSettingsClient", - "text": "IUiSettingsClient" - } + "IUiSettingsClient" ], "path": "src/plugins/unified_search/public/types.ts", "deprecated": false, @@ -2478,7 +2472,19 @@ "section": "def-server.UnifiedSearchServerPluginSetup", "text": "UnifiedSearchServerPluginSetup" }, - ", void, object, object>" + ", ", + { + "pluginId": "unifiedSearch", + "scope": "server", + "docId": "kibUnifiedSearchPluginApi", + "section": "def-server.UnifiedSearchServerPluginStart", + "text": "UnifiedSearchServerPluginStart" + }, + ", ", + "UnifiedSearchServerPluginSetupDependencies", + ", ", + "UnifiedSearchServerPluginStartDependencies", + ">" ], "path": "src/plugins/unified_search/server/plugin.ts", "deprecated": false, @@ -2717,21 +2723,7 @@ } ], "functions": [], - "interfaces": [ - { - "parentPluginId": "unifiedSearch", - "id": "def-server.UnifiedSearchServerPluginStart", - "type": "Interface", - "tags": [], - "label": "UnifiedSearchServerPluginStart", - "description": [], - "path": "src/plugins/unified_search/server/plugin.ts", - "deprecated": false, - "trackAdoption": false, - "children": [], - "initialIsOpen": false - } - ], + "interfaces": [], "enums": [], "misc": [], "objects": [], @@ -2819,6 +2811,20 @@ ], "lifecycle": "setup", "initialIsOpen": true + }, + "start": { + "parentPluginId": "unifiedSearch", + "id": "def-server.UnifiedSearchServerPluginStart", + "type": "Interface", + "tags": [], + "label": "UnifiedSearchServerPluginStart", + "description": [], + "path": "src/plugins/unified_search/server/plugin.ts", + "deprecated": false, + "trackAdoption": false, + "children": [], + "lifecycle": "start", + "initialIsOpen": true } }, "common": { diff --git a/api_docs/unified_search.mdx b/api_docs/unified_search.mdx index 0bbb4d58df4a8..fa582d302764a 100644 --- a/api_docs/unified_search.mdx +++ b/api_docs/unified_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/unifiedSearch title: "unifiedSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the unifiedSearch plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'unifiedSearch'] --- import unifiedSearchObj from './unified_search.devdocs.json'; @@ -45,9 +45,9 @@ Contact [@elastic/kibana-visualizations](https://github.com/orgs/elastic/teams/k ### Setup +### Start + + ### Classes -### Interfaces - - diff --git a/api_docs/unified_search_autocomplete.mdx b/api_docs/unified_search_autocomplete.mdx index 88ff0acd3c9b7..5656a6c1b1d01 100644 --- a/api_docs/unified_search_autocomplete.mdx +++ b/api_docs/unified_search_autocomplete.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/unifiedSearch-autocomplete title: "unifiedSearch.autocomplete" image: https://source.unsplash.com/400x175/?github description: API docs for the unifiedSearch.autocomplete plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'unifiedSearch.autocomplete'] --- import unifiedSearchAutocompleteObj from './unified_search_autocomplete.devdocs.json'; diff --git a/api_docs/uptime.mdx b/api_docs/uptime.mdx index 9e2ef87d1eede..6e06709bd7e49 100644 --- a/api_docs/uptime.mdx +++ b/api_docs/uptime.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/uptime title: "uptime" image: https://source.unsplash.com/400x175/?github description: API docs for the uptime plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uptime'] --- import uptimeObj from './uptime.devdocs.json'; diff --git a/api_docs/url_forwarding.mdx b/api_docs/url_forwarding.mdx index 39f57a6dffd6a..036589bc990ab 100644 --- a/api_docs/url_forwarding.mdx +++ b/api_docs/url_forwarding.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/urlForwarding title: "urlForwarding" image: https://source.unsplash.com/400x175/?github description: API docs for the urlForwarding plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'urlForwarding'] --- import urlForwardingObj from './url_forwarding.devdocs.json'; diff --git a/api_docs/usage_collection.mdx b/api_docs/usage_collection.mdx index bb64afa28bcf7..103e152e38cb6 100644 --- a/api_docs/usage_collection.mdx +++ b/api_docs/usage_collection.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/usageCollection title: "usageCollection" image: https://source.unsplash.com/400x175/?github description: API docs for the usageCollection plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'usageCollection'] --- import usageCollectionObj from './usage_collection.devdocs.json'; diff --git a/api_docs/ux.mdx b/api_docs/ux.mdx index 1f2059605aeaf..61f87ec8bedee 100644 --- a/api_docs/ux.mdx +++ b/api_docs/ux.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ux title: "ux" image: https://source.unsplash.com/400x175/?github description: API docs for the ux plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ux'] --- import uxObj from './ux.devdocs.json'; diff --git a/api_docs/vis_default_editor.mdx b/api_docs/vis_default_editor.mdx index 441e8bdac1bb4..7084742b8e78c 100644 --- a/api_docs/vis_default_editor.mdx +++ b/api_docs/vis_default_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visDefaultEditor title: "visDefaultEditor" image: https://source.unsplash.com/400x175/?github description: API docs for the visDefaultEditor plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visDefaultEditor'] --- import visDefaultEditorObj from './vis_default_editor.devdocs.json'; diff --git a/api_docs/vis_type_gauge.mdx b/api_docs/vis_type_gauge.mdx index f5d55f8ea942f..4fad5b9c2d7d8 100644 --- a/api_docs/vis_type_gauge.mdx +++ b/api_docs/vis_type_gauge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeGauge title: "visTypeGauge" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeGauge plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeGauge'] --- import visTypeGaugeObj from './vis_type_gauge.devdocs.json'; diff --git a/api_docs/vis_type_heatmap.mdx b/api_docs/vis_type_heatmap.mdx index b65ab105fbb49..2447e64d9b2a7 100644 --- a/api_docs/vis_type_heatmap.mdx +++ b/api_docs/vis_type_heatmap.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeHeatmap title: "visTypeHeatmap" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeHeatmap plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeHeatmap'] --- import visTypeHeatmapObj from './vis_type_heatmap.devdocs.json'; diff --git a/api_docs/vis_type_pie.mdx b/api_docs/vis_type_pie.mdx index 479b1c2880eca..d30f679e3410f 100644 --- a/api_docs/vis_type_pie.mdx +++ b/api_docs/vis_type_pie.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypePie title: "visTypePie" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypePie plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypePie'] --- import visTypePieObj from './vis_type_pie.devdocs.json'; diff --git a/api_docs/vis_type_table.mdx b/api_docs/vis_type_table.mdx index 29ff3087734a1..522ae959072d9 100644 --- a/api_docs/vis_type_table.mdx +++ b/api_docs/vis_type_table.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeTable title: "visTypeTable" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeTable plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTable'] --- import visTypeTableObj from './vis_type_table.devdocs.json'; diff --git a/api_docs/vis_type_timelion.mdx b/api_docs/vis_type_timelion.mdx index 356a6ef822b4c..937ce160e3708 100644 --- a/api_docs/vis_type_timelion.mdx +++ b/api_docs/vis_type_timelion.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeTimelion title: "visTypeTimelion" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeTimelion plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTimelion'] --- import visTypeTimelionObj from './vis_type_timelion.devdocs.json'; diff --git a/api_docs/vis_type_timeseries.mdx b/api_docs/vis_type_timeseries.mdx index 42047f0be01a8..5abcb7c4084e9 100644 --- a/api_docs/vis_type_timeseries.mdx +++ b/api_docs/vis_type_timeseries.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeTimeseries title: "visTypeTimeseries" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeTimeseries plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTimeseries'] --- import visTypeTimeseriesObj from './vis_type_timeseries.devdocs.json'; diff --git a/api_docs/vis_type_vega.mdx b/api_docs/vis_type_vega.mdx index 781da67cb54b5..504f09c282aee 100644 --- a/api_docs/vis_type_vega.mdx +++ b/api_docs/vis_type_vega.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeVega title: "visTypeVega" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeVega plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeVega'] --- import visTypeVegaObj from './vis_type_vega.devdocs.json'; diff --git a/api_docs/vis_type_vislib.mdx b/api_docs/vis_type_vislib.mdx index dae613d30ff6d..7cc7bb213f5ab 100644 --- a/api_docs/vis_type_vislib.mdx +++ b/api_docs/vis_type_vislib.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeVislib title: "visTypeVislib" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeVislib plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeVislib'] --- import visTypeVislibObj from './vis_type_vislib.devdocs.json'; diff --git a/api_docs/vis_type_xy.mdx b/api_docs/vis_type_xy.mdx index 53603c2ea29f7..fadac469c9d50 100644 --- a/api_docs/vis_type_xy.mdx +++ b/api_docs/vis_type_xy.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeXy title: "visTypeXy" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeXy plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeXy'] --- import visTypeXyObj from './vis_type_xy.devdocs.json'; diff --git a/api_docs/visualizations.mdx b/api_docs/visualizations.mdx index f5527cd7e6906..7991c4525e2ef 100644 --- a/api_docs/visualizations.mdx +++ b/api_docs/visualizations.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visualizations title: "visualizations" image: https://source.unsplash.com/400x175/?github description: API docs for the visualizations plugin -date: 2025-01-07 +date: 2025-01-08 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visualizations'] --- import visualizationsObj from './visualizations.devdocs.json'; 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/core/patterns-scoped-services.asciidoc b/docs/developer/architecture/core/patterns-scoped-services.asciidoc index 51b6ecba5cdbe..61631f8c73f48 100644 --- a/docs/developer/architecture/core/patterns-scoped-services.asciidoc +++ b/docs/developer/architecture/core/patterns-scoped-services.asciidoc @@ -20,7 +20,7 @@ The {kib-repo}/blob/8.9/src/core/packages/http/server/src/router/request_handler * {kib-repo}/blob/8.9/src/core/packages/saved-objects/api-server/src/saved_objects_client.ts[`context.savedObjects.client`] * {kib-repo}/blob/8.9/src/core/packages/elasticsearch/server/src/client/scoped_cluster_client.ts[`context.elasticsearch.client`] -* {kib-repo}/blob/8.9/packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts[`context.uiSettings.client`] +* {kib-repo}/blob/8.9/src/core/packages/ui-settings/server/src/ui_settings_client.ts[`context.uiSettings.client`] ==== Declare a custom scoped service diff --git a/docs/developer/architecture/core/uisettings-service.asciidoc b/docs/developer/architecture/core/uisettings-service.asciidoc index f70180b72d928..088a8cc7c570f 100644 --- a/docs/developer/architecture/core/uisettings-service.asciidoc +++ b/docs/developer/architecture/core/uisettings-service.asciidoc @@ -38,10 +38,10 @@ uiSettings: [[client-side-usage]] === Client side usage -On the client, the `uiSettings` service is exposed directly from `core` and the {kib-repo}/blob/8.9/packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts[client] +On the client, the `uiSettings` service is exposed directly from `core` and the {kib-repo}/blob/8.9/src/core/packages/ui-settings/server/src/ui_settings_client.ts[client] provides plugins access to the `config` entries stored in {es}. -In the interest of performance, `uiSettings` are cached. Any changes that require cache refreshes should register an instruction to reload the page when settings are configured in Advanced Settings using the `requiresPageReload` {kib-repo}/blob/8.9/packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts[parameter]. +In the interest of performance, `uiSettings` are cached. Any changes that require cache refreshes should register an instruction to reload the page when settings are configured in Advanced Settings using the `requiresPageReload` {kib-repo}/blob/8.9/src/core/packages/ui-settings/common/src/ui_settings.ts[parameter]. [source,typescript] ---- @@ -78,7 +78,7 @@ export class MyPlugin implements Plugin { === Server side usage On the server, `uiSettings` are exposed directly from `core`. -The following example shows how to register a new `custom` setting with a default value of '42'. When registering a new setting, you must provide a schema against which validations are performed on read and write. All the other {kib-repo}/blob/8.9/packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts[parameters] are optional. +The following example shows how to register a new `custom` setting with a default value of '42'. When registering a new setting, you must provide a schema against which validations are performed on read and write. All the other {kib-repo}/blob/8.9/src/core/packages/ui-settings/common/src/ui_settings.ts[parameters] are optional. [source,typescript] ---- diff --git a/docs/developer/architecture/development-visualize-index.asciidoc b/docs/developer/architecture/development-visualize-index.asciidoc index 6f5f9fc742424..7e9556dff6950 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 af970f58432b3..1566070728780 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -32,7 +32,7 @@ as uiSettings within the code. |The aiAssistantManagementSelection plugin manages the Ai Assistant management section. -|{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. @@ -57,7 +57,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. @@ -110,11 +110,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. @@ -122,11 +122,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. @@ -134,7 +134,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. @@ -142,11 +142,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. @@ -184,11 +184,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. @@ -366,11 +366,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. @@ -378,17 +378,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. @@ -396,43 +396,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. @@ -808,7 +808,7 @@ Elastic. |Welcome to the home of the runtime field editor and everything related to runtime fields! -|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/saved_objects_tagging/README.md[savedObjectsTagging] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/saved_objects_tagging/README.md[savedObjectsTagging] |Add tagging capability to saved objects @@ -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/docs/settings-gen/parse-settings.pl b/docs/settings-gen/parse-settings.pl new file mode 100644 index 0000000000000..f70dddccd9b8b --- /dev/null +++ b/docs/settings-gen/parse-settings.pl @@ -0,0 +1,227 @@ +#!/usr/bin/perl + +# This script takes all .yml files in the /source directory and, for each, generates an asciidoc file of the same name. +# Run the script: perl parse-settings.pl + +use strict; +use warnings; +use YAML::Tiny; +use File::Find; +use File::Copy; + +my $file; +# I'm hardcoding these directories just temporarily for testing +my $sourcedir = './source'; +my $asciidocdir = 'source/'; +my $count; + +find(\&iteratefiles, $sourcedir); +print "\n\nProcessed ".$count. " files.\n"; +exit; + +sub iteratefiles { + $file = $_; + # ignore any non-yaml files + if (!($file =~ /\.yml$/)) {return;} + print "\nParsed file: ".$file; + my $testslice = parsefile($file); +return; +} + +sub parsefile { + # Create an output file based on yaml filename + my $outputfile = my $outputfileorig = $file; + $outputfile =~ s/.yml/.asciidoc/g; + # We'll use this to store the contents of the generated asciidoc file + + # Read in the yaml file + my $yaml = YAML::Tiny->read( $file ); + + # Get a reference to the first document + #my $config = $yaml->[0]; + + my $collection = $yaml->[0]->{collection}; + my $product = $yaml->[0]->{product}; + + # This variable is used to capture all the content that will become our output asciidoc file + my $asciidocoutput = "\n".'// '."This is a generated file; please don't update it directly.\n".'//'." Instead, the updatable source for these settings can be found in ".$outputfileorig; + $asciidocoutput .= "\n".'// '."Collection: ".$collection; + $asciidocoutput .= "\n".'// '."Product: ".$product."\n\n"; + + # build the page preamble paragraphs + my $page_description = $yaml->[0]->{page_description}; + if ($page_description) { + # preserve newlines + $page_description =~ s/\n/\n\n/g; + $asciidocoutput .= $page_description; + } + + my $groups = $yaml->[0]{groups}; + for my $group (@$groups) { + + # Grab the group name, description, and other properties + my $group_id = $group->{id}; + my $group_name = $group->{group}; + my $group_description = $group->{description}; + my $group_example = $group->{example}; + + # Add the group info to the asciidoc file contents + $asciidocoutput .= "\n\n"; + if ($group_id) { + $asciidocoutput .= "[float]\n[[".$group_id."]]\n=== ".$group_name."\n\n"; + } + else { + $asciidocoutput .= "[float]\n=== ".$group_name."\n\n"; + } + if ($group_description) { + # preserve newlines + $group_description =~ s/\n/\n\n/g; + $asciidocoutput .= "\n$group_description\n"; + } + + + # Add an example if there is one, like this: include::../examples/example-logging-root-level.asciidoc[] + if ($group_example) { + $asciidocoutput .= "\n\n$group_example\n\n"; + } + + my $settings = $group->{settings}; + for my $setting (@$settings) { + + # Grab the setting name, description, and other properties + my $setting_name = $setting->{setting}; + my $setting_id = $setting->{id}; + my $setting_description = $setting->{description}; + my $setting_note = $setting->{note}; + my $setting_warning = $setting->{warning}; + my $setting_important = $setting->{important}; + my $setting_tip = $setting->{tip}; + my $setting_datatype = $setting->{datatype}; + my $setting_default = $setting->{default}; + my $setting_type = $setting->{type}; + my $setting_options = $setting->{options}; + my $setting_platforms = $setting->{platforms}; + my $setting_example = $setting->{example}; + my $setting_state = $setting->{state}; + my $deprecation_details = $setting->{deprecation_details}; + + # skip settings that are flagged as "hidden" + if (($setting_state) && ($setting_state =~ /hidden/i)) {next;} + + # Get the setting options and option descriptions and build the string + my $options = $setting->{options}; + my $setting_options_string = ""; + if ($options) { + for my $option (@$options) { + my $option_name = $option->{option}; + # if ($option_name) {print "\nOPTION = ".$option_name;} + if ($option_name) {$setting_options_string .= '* `'.$option_name.'`';} + my $option_description = $option->{description}; + # if ($option_description) {print "\nDESCRIPTION = ".$option_description;} + if ($option_description) {$setting_options_string .= ' - '.$option_description;} + $setting_options_string .= "\n"; + } + } + + # check if supported on Cloud (these settings are marked with a Cloud icon) + my $supported_cloud = 0; + for my $platform (@$setting_platforms) { + if ($platform =~ /cloud/) {$supported_cloud = 1;} + } + + # Add the settings info to the asciidoc file contents + $asciidocoutput .= "\n"; + if ($setting_id) { + $asciidocoutput .= "\n".'[['.$setting_id.']]'."\n"; + } + $asciidocoutput .= '`'.$setting_name.'`'; + if ($supported_cloud) { + $asciidocoutput .= ' {ess-icon}'; + } + $asciidocoutput .= "::\n+\n====\n"; + + if ($setting_state) { + # Add a standard disclaimer for technical preview settings + if ($setting_state =~ /technical-preview/i) + { + $asciidocoutput .= "\n\npreview::[]\n\n"; + } + + # Mark deprecated settings and add guidance (such as when it was deprecated) if there is any + elsif ($setting_state =~ /deprecated/i) + { + $asciidocoutput .= "**Deprecated:** "; + if ($deprecation_details) { + $asciidocoutput .= $deprecation_details."\n\n"; + } + } + # known setting_states are 'technical-preview', 'deprecated' and 'hidden'. Anything else is ignored. + else { + print "\nUnknown setting state: ".$setting_state."\n"; + } + } + + #if ($setting_description_string) { + # $asciidocoutput .= $setting_description_string; + #} + if ($setting_description) { + # preserve newlines + $setting_description =~ s/\n/\n\n/g; + $asciidocoutput .= "$setting_description"; + } + + if ($setting_note) { + $asciidocoutput .= "\nNOTE: ".$setting_note."\n"; + } + if ($setting_warning) { + $asciidocoutput .= "\nWARNING: ".$setting_warning."\n"; + } + if ($setting_important) { + $asciidocoutput .= "\nIMPORTANT: ".$setting_important."\n"; + } + if ($setting_tip) { + $asciidocoutput .= "\nTIP: ".$setting_tip."\n"; + } + + # If any of these are defined (setting options, setting default value, settting type...) add those inside a box. + # We put a " +" at the end of each line to to achieve single spacing inside the box. + + if (($setting_options_string) || ($setting_datatype) || ($setting_default) || ($setting_type)) { + if ($setting_datatype) { + $asciidocoutput .= "Data type: ".'`'.$setting_datatype.'`'.' +'."\n"; + } + if ($setting_options_string) { + $asciidocoutput .= "\nOptions:\n\n".$setting_options_string."\n"; + } + if ($setting_default) { + $asciidocoutput .= "Default: ".'`'.$setting_default.'`'.' +'."\n"; + } + if ($setting_type) { + $asciidocoutput .= 'Type: `'.$setting_type.'` +'."\n"; + } + } + + # Add an example if there is one, like this: include::../examples/example-logging-root-level.asciidoc[] + if ($setting_example) { + $asciidocoutput .= "\n\n$setting_example\n\n"; + } + + $asciidocoutput .= "====\n"; + } + } + + # Just in case we need to grab all of the keys, this is how: + # foreach my $key (keys %hash) { ... } + + $asciidocoutput .= "\n\n"; + + # write the contents into the generated asciidoc file + open (WRITE, "> $outputfile") or die("$!"); + print WRITE $asciidocoutput; + close WRITE; + print "\nGenerated file: ".$outputfile; + ++$count; + +return; +} + diff --git a/docs/settings-gen/readme.md b/docs/settings-gen/readme.md new file mode 100644 index 0000000000000..8e7f2d2a8de8f --- /dev/null +++ b/docs/settings-gen/readme.md @@ -0,0 +1,57 @@ +# YAML-based settings documentation + +We're aiming to update the Kibana configuration settings pages to be based off of YAML-formatted source files. The approach has the advantages that: + - The YAML format makes it easier to add new settings and update existing ones. The setting data is separate from almost all formatting, whether Asciidoc or (future) Markdown. + - The HTML files will have a more consistent and user-friendly appearance. + - The YAML format makes it easier for teams to identify missing settings or settings that are lacking details that should be made available in the docs. + +The YAML settings files in the `settings-gen/source` folder are converted to Asciidoc source, located in the same directory, by means of the `parse-settings.pl` Perl script. Please do not update the generated Asciidoc files directly as your changes will be overwritten. Please make any required docs changes in the `-settings.yml` files. + +Following is a schema for all available properties in a YAML settings file. + +## Schema + +``` +product: REQUIRED e.g. Elasticsearch, Kibana, Enterprise Search +collection: REQUIRED e.g. Alerting and action settings in Kibana +page_description: | + OPTIONAL + Multiline string. Can include tables, lists, code examples, etc. + +groups: + - group: REQUIRED e.g. Preconfigured connector settings + id: REQUIRED The ID used for documentation links, e.g., general-alert-action-settings + # description: | + OPTIONAL + Multiline string. Can include tables, lists, code examples, etc. + # example: | + OPTIONAL + Multiline string. + Can include tables, lists, code examples, etc. + + settings: + - setting: REQUIRED e.g. xpack.encryptedSavedObjects.encryptionKey + # id: OPTIONAL ID used for documentation links, e.g., xpack-encryptedsavedobjects-encryptionkey + description: | + REQUIRED + Multiline string. Can include tables, lists, code examples, etc. + # state: OPTIONAL One of deprecated/hidden/tech-preview + # deprecation_details: "" OPTIONAL + # note: "" OPTIONAL + # tip: "" OPTIONAL + # warning: "" OPTIONAL + # important: "" OPTIONAL + # datatype: REQUIRED One of string/bool/int/float/enum. For enum include the supported 'options', below. + # default: OPTIONAL + # options: + # - option: OPTIONAL + # description: "" OPTIONAL + # type: OPTIONAL ONe of static/dynamic + # platforms: OPTIONAL, list each supported platform + # - cloud + # - serverless + # - self-managed + # example: | + OPTIONAL + Multiline string. Can include tables, lists, code examples, etc. +``` diff --git a/docs/settings-gen/source/kibana-alert-action-settings.asciidoc b/docs/settings-gen/source/kibana-alert-action-settings.asciidoc new file mode 100644 index 0000000000000..1a53752f01542 --- /dev/null +++ b/docs/settings-gen/source/kibana-alert-action-settings.asciidoc @@ -0,0 +1,1250 @@ + +// This is a generated file; please don't update it directly. +// Instead, the updatable source for these settings can be found in kibana-alert-action-settings.yml +// Collection: Alerting and action settings in Kibana +// Product: Kibana + +Alerting and actions are enabled by default in {kib}, but require you to configure the following: + +. <>. + +. <>. + +. If you are using an *on-premises* Elastic Stack deployment, <>. + +You can configure the following settings in the `kibana.yml` file. + + + +[float] +[[general-alert-action-settings]] +=== General settings + + +`xpack.encryptedSavedObjects.encryptionKey`:: ++ +==== +A string of 32 or more characters used to encrypt sensitive properties on alerting rules and actions before they're stored in Elasticsearch. Third party credentials — such as the username and password used to connect to an SMTP service — are an example of encrypted properties. + +Kibana offers a <> to help generate this encryption key. + +If not set, Kibana will generate a random key on startup, but all alerting and action functions will be blocked. Generated keys are not allowed for alerting and actions because when a new key is generated on restart, existing encrypted data becomes inaccessible. For the same reason, alerting and actions in high-availability deployments of Kibana will behave unexpectedly if the key isn't the same on all instances of Kibana. + +Although the key can be specified in clear text in `kibana.yml`, it's recommended to store this key securely in the <>. Be sure to back up the encryption key value somewhere safe, as your alerting rules and actions will cease to function due to decryption failures should you lose it. If you want to rotate the encryption key, be sure to follow the instructions on <>. + +Data type: `string` + +==== + + +[float] +[[action-settings]] +=== Action settings + + +`xpack.actions.allowedHosts` {ess-icon}:: ++ +==== +A list of hostnames that Kibana is allowed to connect to when built-in actions are triggered. It defaults to `["*"]`, allowing any host, but keep in mind the potential for SSRF attacks when hosts are not explicitly added to the allowed hosts. An empty list `[]` can be used to block built-in actions from making any external connections. + +Note that hosts associated with built-in actions, such as Slack and PagerDuty, are not automatically added to allowed hosts. If you are not using the default `["*"]` setting, you must ensure that the corresponding endpoints are added to the allowed hosts as well. + +Data type: `string` + +==== + +`xpack.actions.customHostSettings` {ess-icon}:: ++ +==== +A list of custom host settings to override existing global settings. + +Each entry in the list must have a `url` property, to associate a connection type (mail or https), hostname and port with the remaining options in the entry. + +The settings in `xpack.actions.customHostSettings` can be used to override the global option `xpack.actions.ssl.verificationMode` and provide customized TLS settings on a per-server basis. Set `xpack.actions.ssl.verificationMode` to the value to be used by default for all servers, then add an entry in `xpack.actions.customHostSettings` for every server that requires customized settings. + +Data type: `string` + +Default: `an empty list` + + + +In the following example, two custom host settings +are defined. The first provides a custom host setting for mail server +`mail.example.com` using port 465 that supplies server certificate authentication +data from both a file and inline, and requires TLS for the +connection. The second provides a custom host setting for https server +`webhook.example.com` which turns off server certificate authentication, +that will allow Kibana to connect to the server if it's using a self-signed +certificate. The individual properties that can be used in the settings are +documented below. +[source,yaml] +-- +xpack.actions.customHostSettings: + - url: smtp://mail.example.com:465 + ssl: + verificationMode: 'full' + certificateAuthoritiesFiles: [ 'one.crt' ] + certificateAuthoritiesData: | + -----BEGIN CERTIFICATE----- + MIIDTD... + CwUAMD... + ... multiple lines of certificate data ... + -----END CERTIFICATE----- + smtp: + requireTLS: true + - url: https://webhook.example.com + ssl: + verificationMode: 'none' +-- + + +==== + +`xpack.actions.customHostSettings[n].url` {ess-icon}:: ++ +==== +A URL associated with this custom host setting. Should be in the form of `protocol://hostname:port`, where `protocol` is `https` or `smtp`. If the port is not provided, 443 is used for `https` and 25 is used for `smtp`. The `smtp` URLs are used for the Email actions that use this server, and the `https` URLs are used for actions which use `https` to connect to services. + +Entries with `https` URLs can use the `ssl` options, and entries with `smtp` URLs can use both the `ssl` and `smtp` options. + +No other URL values should be part of this URL, including paths, query strings, and authentication information. When an http or smtp request is made as part of running an action, only the protocol, hostname, and port of the URL for that request are used to look up these configuration values. + +Data type: `string` + +==== + +`xpack.actions.customHostSettings[n].smtp.ignoreTLS` {ess-icon}:: ++ +==== +A boolean value indicating that TLS must not be used for this connection. The options `smtp.ignoreTLS` and `smtp.requireTLS` can not both be set to true. + +Data type: `bool` + +Default: `false` + +==== + +`xpack.actions.customHostSettings[n].smtp.requireTLS` {ess-icon}:: ++ +==== +A boolean value indicating that TLS must be used for this connection. The options `smtp.ignoreTLS` and `smtp.requireTLS` can not both be set to true. + +Data type: `bool` + +Default: `false` + +==== + + +[[action-config-custom-host-verification-mode]] +`xpack.actions.customHostSettings[n].ssl.verificationMode` {ess-icon}:: ++ +==== +Controls the verification of the server certificate that Kibana receives when making an outbound SSL/TLS connection to the host server. Valid values are `full`, `certificate`, and `none`. Use `full` to perform hostname verification, `certificate` to skip hostname verification, and `none` to skip verification. Default: `full`. <>. Overrides the general `xpack.actions.ssl.verificationMode` configuration for requests made for this hostname/port. + +Data type: `enum` + + +Options: + +* `full` +* `certificate` +* `none` + +Default: `full` + +==== + +`xpack.actions.customHostSettings[n].ssl.certificateAuthoritiesFiles`:: ++ +==== +A file name or list of file names of PEM-encoded certificate files to use to validate the server. + +Data type: `string` + +==== + +`xpack.actions.customHostSettings[n].ssl.certificateAuthoritiesData` {ess-icon}:: ++ +==== +The contents of one or more PEM-encoded certificate files in multiline format. This configuration can be used for environments where the files cannot be made available. + +Data type: `string` + +==== + + +[[action-config-email-domain-allowlist]] +`xpack.actions.email.domain_allowlist` {ess-icon}:: ++ +==== +A list of allowed email domains which can be used with the email connector. When this setting is not used, all email domains are allowed. When this setting is used, if any email is attempted to be sent that (a) includes an addressee with an email domain that is not in the allowlist, or (b) includes a from address domain that is not in the allowlist, it will fail with a message indicating the email is not allowed. + + +WARNING: This feature is available in Kibana 7.17.4 and 8.3.0 onwards but is not supported in Kibana 8.0, 8.1 or 8.2. As such, this setting should be removed before upgrading from 7.17 to 8.0, 8.1 or 8.2. It is possible to configure the settings in 7.17.4 and then upgrade to 8.3.0 directly. +Data type: `string` + +==== + +`xpack.actions.enableFooterInEmail` {ess-icon}:: ++ +==== +A boolean value indicating that a footer with a relevant link should be added to emails sent as alerting actions. + +Data type: `bool` + +Default: `true` + +==== + +`xpack.actions.enabledActionTypes` {ess-icon}:: ++ +==== +A list of action types that are enabled. It defaults to `["*"]`, enabling all types. The names for built-in Kibana action types are prefixed with a `.` and include: `.email`, `.index`, `.jira`, `.opsgenie`, `.pagerduty`, `.resilient`, `.server-log`, `.servicenow`, .`servicenow-itom`, `.servicenow-sir`, `.slack`, `.swimlane`, `.teams`, `.tines`, `.torq`, `.xmatters`, `.gen-ai`, `.bedrock`, `.gemini`, `.d3security`, and `.webhook`. An empty list `[]` will disable all action types. + +Disabled action types will not appear as an option when creating new connectors, but existing connectors and actions of that type will remain in Kibana and will not function. + + +IMPORTANT: <> are not affected by this setting. +Data type: `string` + +Default: `["*"]` + +==== + +`xpack.actions.microsoftExchangeUrl`:: ++ +==== +The URL for the Microsoft Azure Active Directory endpoint to use for MS Exchange email authentication. + +Data type: `string` + +Default: `https://login.microsoftonline.com` + +==== + +`xpack.actions.microsoftGraphApiUrl`:: ++ +==== +The URL for the Microsoft Graph API endpoint to use for MS Exchange email authentication. + +Data type: `string` + +Default: `https://graph.microsoft.com/v1.0` + +==== + +`xpack.actions.microsoftGraphApiScope`:: ++ +==== +The URL for the Microsoft Graph API scope endpoint to use for MS Exchange email authentication. + +Data type: `string` + +Default: `https://graph.microsoft.com/.default` + +==== + +`xpack.actions.proxyUrl` {ess-icon}:: ++ +==== +Specifies the proxy URL to use, if using a proxy for actions. By default, no proxy is used. + +Proxies may be used to proxy http or https requests through a proxy using the http or https protocol. Kibana only uses proxies in "CONNECT" mode (sometimes referred to as "tunneling" TCP mode, compared to HTTP mode). That is, Kibana will always make requests through a proxy using the HTTP `CONNECT` method. + +If your proxy is using the https protocol (vs the http protocol), the setting `xpack.actions.ssl.proxyVerificationMode: none` will likely be needed, unless your proxy's certificates are signed using a publicly available certificate authority. + +There is currently no support for using basic authentication with a proxy (authentication for the proxy itself, not the URL being requested through the proxy). + +Data type: `string` + + + +To help diagnose problems using a proxy, you can use the `curl` command with options to use your proxy, and log debug information, with the following command, replacing the proxy and target URLs as appropriate. This will force the request to be made to the +proxy in tunneling mode, and display some of the interaction between the client and the proxy. +[source,sh] +-- +curl --verbose --proxytunnel --proxy http://localhost:8080 http://example.com +-- + + +==== + +`xpack.actions.proxyBypassHosts` {ess-icon}:: ++ +==== +Specifies hostnames which should not use the proxy, if using a proxy for actions. The value is an array of hostnames as strings. + +By default, all hosts will use the proxy, but if an action's hostname is in this list, the proxy will not be used. The settings `xpack.actions.proxyBypassHosts` and `xpack.actions.proxyOnlyHosts` cannot be used at the same time. + +Data type: `string` + + + +For example: +[source,yaml] +---- +xpack.actions.proxyBypassHosts: [ "events.pagerduty.com" ] +---- +If applicable, include the subdomain in the hostname + + +==== + +`xpack.actions.proxyOnlyHosts` {ess-icon}:: ++ +==== +Specifies hostnames which should only use the proxy, if using a proxy for actions. The value is an array of hostnames as strings. + +By default, no hosts will use the proxy, but if an action's hostname is in this list, the proxy will be used. The settings `xpack.actions.proxyBypassHosts` and `xpack.actions.proxyOnlyHosts` cannot be used at the same time. + +Data type: `string` + + + +For example: +[source,yaml] +---- +xpack.actions.proxyOnlyHosts: [ "events.pagerduty.com" ] +---- +If applicable, include the subdomain in the hostname + + +==== + +`xpack.actions.proxyHeaders` {ess-icon}:: ++ +==== +Specifies HTTP headers for the proxy, if using a proxy for actions. + +Data type: `string` + +Default: `{}` + +==== + + +[[action-config-proxy-verification-mode]] +`xpack.actions.ssl.proxyVerificationMode` {ess-icon}:: ++ +==== +Controls the verification for the proxy server certificate that Kibana receives when making an outbound SSL/TLS connection to the proxy server. + +Use `full` to perform hostname verification, `certificate` to skip hostname verification, and `none` to skip verification. + +<> + +Data type: `enum` + + +Options: + +* `full` +* `certificate` +* `none` + +Default: `full` + +==== + + +[[action-config-verification-mode]] +`xpack.actions.ssl.verificationMode` {ess-icon}:: ++ +==== +Controls the verification for the server certificate that Elastic Maps Server receives when making an outbound SSL/TLS connection for actions. Valid values are `full`, `certificate`, and `none`. Use `full` to perform hostname verification, `certificate` to skip hostname verification, and `none` to skip verification. + +<> + +This setting can be overridden for specific URLs by using the setting `xpack.actions.customHostSettings[n].ssl.verificationMode` (described above) to a different value. + +Data type: `enum` + + +Options: + +* `full` +* `certificate` +* `none` + +Default: `full` + +==== + +`xpack.actions.maxResponseContentLength` {ess-icon}:: ++ +==== +Specifies the max number of bytes of the http response for requests to external resources. + +Data type: `int` + +Default: `1000000 (1MB)` + +==== + +`xpack.actions.responseTimeout` {ess-icon}:: ++ +==== +Specifies the time allowed for requests to external resources. Requests that take longer are canceled. The time is formatted as a number and a time unit (`ms`, `s`, `m`, `h`, `d`, `w`, `M`, or `Y`). For example, `20m`, `24h`, `7d`, `1w`. Default: `60s`. + +Data type: `string` + +==== + +`xpack.actions.run.maxAttempts` {ess-icon}:: ++ +==== +Specifies the maximum number of times an action can be attempted to run. + +Data type: `int` + + +Options: + +* `minimum 1 and maximum 10` + +==== + +`xpack.actions.run.connectorTypeOverrides` {ess-icon}:: ++ +==== +Overrides the configs under `xpack.actions.run` for the connector type with the given ID. List the connector type identifier and its settings in an array of objects. + +Data type: `string` + + + +For example: +[source,yaml] +-- +xpack.actions.run: + maxAttempts: 1 + connectorTypeOverrides: + - id: '.server-log' + maxAttempts: 5 +-- + + +==== + +`xpack.actions.queued.max` {ess-icon}:: ++ +==== +Specifies the maximum number of actions that can be queued. + +Data type: `int` + +Default: `1000000` + +==== + + +[float] +[[preconfigured-connector-settings]] +=== Preconfigured connector settings + + +These settings vary depending on which type of preconfigured connector you're adding. + + + + +For example: +[source,yaml] +---------------------------------------- +xpack.actions.preconfigured: + my-server-log: + name: preconfigured-server-log-connector-type + actionTypeId: .server-log +---------------------------------------- +For more examples, go to <>. + + + +`xpack.actions.preconfiguredAlertHistoryEsIndex` {ess-icon}:: ++ +==== +Enables a preconfigured alert history Elasticsearch <> connector. + +Data type: `bool` + +Default: `false` + +==== + +`xpack.actions.preconfigured`:: ++ +==== +Specifies configuration details that are specific to the type of preconfigured connector. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..actionTypeId`:: ++ +==== +The type of preconfigured connector. + + +Options: + +* `.email` +* `.index` +* `.opsgenie` +* `.server-log` +* `.resilient` +* `.slack` +* `.webhook` + +==== + +`xpack.actions.preconfigured..config`:: ++ +==== +The configuration details, which are specific to the type of preconfigured connector. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.apiProvider`:: ++ +==== +For a <>, specifies the OpenAI API provider. + +Data type: `enum` + + +Options: + +* `OpenAI` +* `Azure OpenAI` + +==== + +`xpack.actions.preconfigured..config.apiUrl`:: ++ +==== +A configuration URL that varies by connector: + +* For an <>, specifies the {bedrock} request URL. + +* For an <>, specifies the {gemini} request URL. + +* For a <>, specifies the OpenAI request URL. + +* For a <>, specifies the {ibm-r} instance URL. + +* For a <>, specifies the Jira instance URL. + +* For an <>, specifies the {opsgenie} URL. For example, `https://api.opsgenie.com` or `https://api.eu.opsgenie.com`. + +* For a <>, specifies the PagerDuty event URL. Defaults to `https://events.pagerduty.com/v2/enqueue`. + +* For a <>, <>, or <> specifies the ServiceNow instance URL. + +* For a <>, specifies the {swimlane} instance URL. + + +NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts. +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.appId`:: ++ +==== +An application ID that varies by connector: + +* For a <>, specifies a {swimlane} application identifier. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.clientId`:: ++ +==== +A client identifier that varies by connector: + +* For an <>, specifies a GUID format value that corresponds to the client ID, which is a part of OAuth 2.0 client credentials authentication. + +* For a <>, <>, or <> specifies the client identifier assigned to the OAuth application. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.configUrl`:: ++ +==== +For an <> with basic authentication, specifies the request URL for the Elastic Alerts trigger in xMatters. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.createCommentJson`:: ++ +==== +For a <>, specifies a stringified JSON payload with Mustache variables that is sent to the create comment URL to create a case comment. The required variable is `case.description`. + + +NOTE: The JSON is validated after the Mustache variables have been placed when the REST method runs. You should manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.createCommentMethod`:: ++ +==== +For a <>, specifies the REST API HTTP request method to create a case comment in the third-party system. + +Data type: `string` + + +Options: + +* `post` +* `put` +* `patch` + +Default: `put` + +==== + +`xpack.actions.preconfigured..config.createCommentUrl`:: ++ +==== +For a <>, specifies a REST API URL string to create a case comment by ID in the third-party system. + + +NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts. +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.createIncidentJson`:: ++ +==== +For a <>, specifies a stringified JSON payload with Mustache variables that is sent to the create case URL to create a case. Required variables are `case.title` and `case.description`. + + +NOTE: The JSON is validated after the Mustache variables have been placed when the REST method runs. You should manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.createIncidentMethod`:: ++ +==== +For a <>, specifies the REST API HTTP request method to create a case in the third-party system + +Data type: `string` + + +Options: + +* `post` +* `put` +* `patch` + +Default: `post` + +==== + +`xpack.actions.preconfigured..config.createIncidentUrl`:: ++ +==== +For a <>, specifies a REST API URL string to create a case in the third-party system. + + +NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts. +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.createIncidentResponseKey`:: ++ +==== +For a <>, specifies a string from the response body of the create case method that corresponds to the external service identifier. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.defaultModel`:: ++ +==== +The default model to use for requests, which varies by connector: + +* For an <>, current support is for the Anthropic Claude models. Defaults to `anthropic.claude-3-5-sonnet-20240620-v1:0`. + +* For a <>, current support is for the Gemini models. Defaults to `gemini-1.5-pro-002`. + +* For a <>, it is optional and applicable only when `xpack.actions.preconfigured..config.apiProvider` is `OpenAI`. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.executionTimeField`:: ++ +==== +For an <>, a field that indicates when the document was indexed. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.from`:: ++ +==== +For an <>, specifies the from address for all emails sent by the connector. It must be specified in `user@host-name` format. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.getIncidentResponseExternalTitleKey`:: ++ +==== +- "For a <>, specifies a string from the response body of the get case method that corresponds to the external service title." + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.getIncidentUrl`:: ++ +==== +For a <>, specifies a REST API URL string with an external service ID Mustache variable to get the case from the third-party system. + + +NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts. +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.hasAuth`:: ++ +==== +For an <>, <>, or <>, specifies whether a user and password are required inside the secrets configuration. + +Data type: `bool` + +Default: `true` + +==== + +`xpack.actions.preconfigured..config.headers`:: ++ +==== +For a <> or <>, specifies a set of key-value pairs sent as headers with the request. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.host`:: ++ +==== +For an <>, specifies the host name of the service provider. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.index`:: ++ +==== +For an <>, specifies the Elasticsearch index. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.isOAuth`:: ++ +==== +For a <>, <>, or <>, specifies whether to use basic or OAuth authentication. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.jwtKeyId`:: ++ +==== +For a <>, <>, or <>, specifies the key ID assigned to the JWT verifier map of your OAuth application. It is required when `xpack.actions.preconfigured..config.isOAuth` is `true`. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.mappings`:: ++ +==== +For a <>, specifies field mappings. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.mappings.alertIdConfig`:: ++ +==== +For a <>, field mapping for the alert identifier. You must provide `fieldtype`, `id`, `key`, and `name` values. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.mappings.caseIdConfig`:: ++ +==== +For a <>, field mapping for the case identifier. You must provide `fieldtype`, `id`, `key`, and `name` values. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.mappings.caseNameConfig`:: ++ +==== +For a <>, field mapping for the case name. You must provide `fieldtype`, `id`, `key`, and `name` values. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.mappings.commentsConfig`:: ++ +==== +For a <>, field mapping for the case comments. You must provide `fieldtype`, `id`, `key`, and `name` values. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.mappings.descriptionConfig`:: ++ +==== +For a <>, field mapping for the case description. You must provide `fieldtype`, `id`, `key`, and `name` values. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.mappings.ruleNameConfig`:: ++ +==== +For a <>, field mapping for the rule name. You must provide `fieldtype`, `id`, `key`, and `name` values. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.mappings.severityConfig`:: ++ +==== +For a <>, specifies a field mapping for the severity. You must provide `fieldtype`, `id`, `key`, and `name` values. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.method`:: ++ +==== +For a <>, specifies the HTTP request method, either `post` or `put`. Defaults to `post`. + +Data type: `enum` + + +Options: + +* `post` +* `put` + +Default: `post` + +==== + +`xpack.actions.preconfigured..config.orgId`:: ++ +==== +For an <>, specifies the {ibm-r} organization identifier. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.port`:: ++ +==== +For an <>, specifies the port to connect to on the service provider. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.projectKey`:: ++ +==== +For a <>, specifies the Jira project key. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.secure`:: ++ +==== +For an <>, specifies whether the connection will use TLS when connecting to the service provider. If not true, the connection will initially connect over TCP then attempt to switch to TLS via the SMTP STARTTLS command. + +Data type: `bool` + +==== + +`xpack.actions.preconfigured..config.service`:: ++ +==== +For an <>, specifies the name of the email service. For example, `elastic_cloud`, `exchange_server`, `gmail`, `other`, `outlook365`, or `ses`. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.tenantId`:: ++ +==== +For an <>, specifies a GUID format value that corresponds to a tenant ID, which is a part of OAuth 2.0 client credentials authentication. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.updateIncidentJson`:: ++ +==== +For a <>, specifies a stringified JSON payload with Mustache variables that is sent to the update case URL to update a case. Required variables are `case.title` and `case.description`. + + +NOTE: The JSON is validated after the Mustache variables have been placed when the REST method runs. You should manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.updateIncidentMethod`:: ++ +==== +For a <>, specifies the REST API HTTP request method to update the case in the third-party system. + +Data type: `enum` + + +Options: + +* `post` +* `put` +* `patch` + +Default: `put` + +==== + +`xpack.actions.preconfigured..config.updateIncidentUrl`:: ++ +==== +For a <>, specifies the REST API URL to update the case by ID in the third-party system. + + +NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts. +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.url`:: ++ +==== +A configuration URL that varies by connector: + +* For a <>, specifies the D3 Security API request URL. + +* For a <>, specifies the Tines tenant URL. + +* For a <>, specifies the web service request URL. + + +NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure this hostname is added to the allowed hosts. +Data type: `stringm` + +==== + +`xpack.actions.preconfigured..config.userIdentifierValue`:: ++ +==== +For a <>, <>, or <>, specifies the user identifier. It is required when required when `xpack.actions.preconfigured..config.isOAuth` is `true`. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.usesBasic`:: ++ +==== +For an <>, specifies whether it uses HTTP basic authentication. + +Data type: `bool` + +Default: `true` + +==== + +`xpack.actions.preconfigured..config.usesTableApi`:: ++ +==== +For a <> or <>, specifies whether the connector uses the Table API or the Import Set API. If set to `false`, the Elastic application should be installed in ServiceNow. + +Data type: `bool` + +==== + +`xpack.actions.preconfigured..config.viewIncidentUrl`:: ++ +==== +For a <>, specifies a URL string with either the external service ID or external service title Mustache variable to view a case in the external system. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..config.webhookIntegrationUrl`:: ++ +==== +For a <>, specifies the endpoint URL of the Elastic Security integration in Torq. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..name`:: ++ +==== +The name of the preconfigured connector. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets`:: ++ +==== +Sensitive configuration details, such as username, password, and keys, which are specific to the connector type. + + +TIP: Sensitive properties, such as passwords, should be stored in the <>. +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.accessKey`:: ++ +==== +For an <>, specifies the AWS access key for authentication. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.apikey`:: ++ +==== +An API key secret that varies by connector. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.credentialsJson`:: ++ +==== +For an <>, specifies the GCP service account credentials JSON file for authentication. + +* For a <>, specifies the OpenAI or Azure OpenAI API key for authentication. + +* For an <>, specifies the {opsgenie} API authentication key for HTTP basic authentication. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.apiKeyId`:: ++ +==== +For an <>, specifies the authentication key ID for HTTP basic authentication. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.apiKeySecret`:: ++ +==== +For an <>, specifies the authentication key secret for HTTP basic authentication. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.apiToken`:: ++ +==== +For a <> or <>, specifies the API authentication token for HTTP basic authentication. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.clientSecret`:: ++ +==== +A client secret that varies by connector: + +* For an <>, specifies the client secret that you generated for your app in the app registration portal. It is required when the email service is `exchange_server`, which uses OAuth 2.0 client credentials authentication. + +* For a <>, <>, or <>, specifies the client secret assigned to the OAuth application. It is required when `xpack.actions.preconfigured..config.isOAuth` is `true`. + + +NOTE: The client secret must be URL-encoded. +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.email`:: ++ +==== +An email address that varies by connector: + +* For a <>, specifies the account email for HTTP basic authentication. + +* For a <>, specifies the email used to sign in to Tines. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.password`:: ++ +==== +A password secret that varies by connector: + +* For an <>, <>, or <>, specifies a password that is required when `xpack.actions.preconfigured..config.hasAuth` is `true`. + +* For a <>, <>, or <>, specifies a password that is required when `xpack.actions.preconfigured..config.isOAuth` is `false`. + +* For an <>, specifies a password that is required when `xpack.actions.preconfigured..config.usesBasic` is `true`. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.privateKey`:: ++ +==== +For a <>, <>, or <>, specifies the RSA private key. It is required when `xpack.actions.preconfigured..config.isOAuth` is `true`. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.privateKeyPassword`:: ++ +==== +For a <>, <>, or <>, specifies the password for the RSA private key. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.routingKey`:: ++ +==== +For a <>, specifies the 32 character PagerDuty Integration Key for an integration on a service, also referred to as the routing key. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.secret`:: ++ +==== +For an <>, specifies the AWS secret for authentication. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.secretsUrl`:: ++ +==== +For an <> with URL authentication, specifies the request URL for the Elastic Alerts trigger in xMatters with the API key included in the URL. It is used only when `xpack.actions.preconfigured..config.usesBasic` is `false`. + + +NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure this hostname is added to the allowed hosts. +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.token`:: ++ +==== +A token secret that varies by connector: + +* For a <>, specifies the D3 Security token. + +* For a <>, specifies the Slack bot user OAuth token. + +* For a <>, specifies the Tines API token. + +* For a <>, specifies the secret of the webhook authentication header. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.user`:: ++ +==== +A user name secret that varies by connector: + +* For an <>, <>, or <>, specifies a user name that is required when `xpack.actions.preconfigured..config.hasAuth` is `true`. + +* For an <>, specifies a user name that is required when `xpack.actions.preconfigured..config.usesBasic` is `true`. + +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.webhookUrl`:: ++ +==== +A URL that varies by connector: + +* For a <>, specifies the URL of the incoming webhook. + +* For a <>, specifies the Slack webhook URL. + + +NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname is added to the allowed hosts. +Data type: `string` + +==== + +`xpack.actions.preconfigured..secrets.username`:: ++ +==== +For a <>, <>, or <>, specifies a user name that is required when `xpack.actions.preconfigured..config.isOAuth` is `false`. + +Data type: `string` + +==== + + +[float] +[[alert-settings]] +=== Alerting settings + + +`xpack.alerting.cancelAlertsOnRuleTimeout` {ess-icon}:: ++ +==== +Specifies whether to skip writing alerts and scheduling actions if rule processing was cancelled due to a timeout. This setting can be overridden by individual rule types. + +Data type: `bool` + +Default: `true` + +==== + +`xpack.alerting.rules.maxScheduledPerMinute`:: ++ +==== +Specifies the maximum number of rules to run per minute. + +Data type: `int` + +Default: `10000` + +==== + +`xpack.alerting.rules.minimumScheduleInterval.value` {ess-icon}:: ++ +==== +Specifies the minimum schedule interval for rules. This minimum is applied to all rules created or updated after you set this value. The time is formatted as a number and a time unit (`s`, `m`, `h`, or `d`). For example, `20m`, `24h`, `7d`. This duration cannot exceed `1d`. + +Data type: `string` + +Default: `1m` + +==== + +`xpack.alerting.rules.minimumScheduleInterval.enforce` {ess-icon}:: ++ +==== +Specifies the behavior when a new or changed rule has a schedule interval less than the value defined in `xpack.alerting.rules.minimumScheduleInterval.value`. If `false`, rules with schedules less than the interval will be created but warnings will be logged. If `true`, rules with schedules less than the interval cannot be created. + +Data type: `bool` + +Default: `false` + +==== + +`xpack.alerting.rules.run.actions.max` {ess-icon}:: ++ +==== +Specifies the maximum number of actions that a rule can generate each time detection checks run. + +Data type: `int` + +==== + +`xpack.alerting.rules.run.alerts.max` {ess-icon}:: ++ +==== +Specifies the maximum number of alerts that a rule can generate each time detection checks run. + + +WARNING: The exact number of alerts your cluster can safely handle depends on your cluster configuration and workload, however setting a value higher than the default (`1000`) is not recommended or supported. Doing so could strain system resources and lead to performance issues, delays in alert processing, and potential disruptions during high alert activity periods. +Data type: `int` + +Default: `1000` + +==== + +`xpack.alerting.rules.run.timeout` {ess-icon}:: ++ +==== +Specifies the default timeout for tasks associated with all types of rules. The time is formatted as a number and a time unit (`ms`, `s`, `m`, `h`, `d`, `w`, `M`, or `Y`). For example, `20m`, `24h`, `7d`, `1w`. Default: `5m`. + +Data type: `string` + +==== + +`xpack.alerting.rules.run.ruleTypeOverrides` {ess-icon}:: ++ +==== +Overrides the configs under `xpack.alerting.rules.run` for the rule type with the given ID. List the rule identifier and its settings in an array of objects. + +Data type: `string` + + + +For example: +[source,yaml] +-- +xpack.alerting.rules.run: + timeout: '5m' + ruleTypeOverrides: + - id: '.index-threshold' + timeout: '15m' +-- + + +==== + +`xpack.alerting.rules.run.actions.connectorTypeOverrides` {ess-icon}:: ++ +==== +Overrides the configs under `xpack.alerting.rules.run.actions` for the connector type with the given ID. List the connector type identifier and its settings in an array of objects. + +Data type: `string` + + + +For example: +[source,yaml] +-- +xpack.alerting.rules.run: + actions: + max: 10 + connectorTypeOverrides: + - id: '.server-log' + max: 5 +-- + + +==== + + diff --git a/docs/settings-gen/source/kibana-alert-action-settings.yml b/docs/settings-gen/source/kibana-alert-action-settings.yml new file mode 100644 index 0000000000000..effe1d0cce831 --- /dev/null +++ b/docs/settings-gen/source/kibana-alert-action-settings.yml @@ -0,0 +1,2330 @@ +--- +# This file is used to generate "Alert and action settings" page in the product docs + +product: Kibana +collection: Alerting and action settings in Kibana +page_description: | + Alerting and actions are enabled by default in {kib}, but require you to configure the following: + . <>. + . <>. + . If you are using an *on-premises* Elastic Stack deployment, <>. + You can configure the following settings in the `kibana.yml` file. + + +groups: + - group: General settings + id: general-alert-action-settings + # description: | + # - "" + # example: example-group-name.asciidoc + settings: + + - setting: xpack.encryptedSavedObjects.encryptionKey + # id: + description: | + A string of 32 or more characters used to encrypt sensitive properties on alerting rules and actions before they're stored in Elasticsearch. Third party credentials — such as the username and password used to connect to an SMTP service — are an example of encrypted properties. + Kibana offers a <> to help generate this encryption key. + If not set, Kibana will generate a random key on startup, but all alerting and action functions will be blocked. Generated keys are not allowed for alerting and actions because when a new key is generated on restart, existing encrypted data becomes inaccessible. For the same reason, alerting and actions in high-availability deployments of Kibana will behave unexpectedly if the key isn't the same on all instances of Kibana. + + Although the key can be specified in clear text in `kibana.yml`, it's recommended to store this key securely in the <>. Be sure to back up the encryption key value somewhere safe, as your alerting rules and actions will cease to function due to decryption failures should you lose it. If you want to rotate the encryption key, be sure to follow the instructions on <>. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: "string" + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - group: Action settings + id: action-settings + # description: | + # - "" + # example: example-group-name.asciidoc + settings: + + - setting: xpack.actions.allowedHosts + # id: + description: | + A list of hostnames that Kibana is allowed to connect to when built-in actions are triggered. It defaults to `["*"]`, allowing any host, but keep in mind the potential for SSRF attacks when hosts are not explicitly added to the allowed hosts. An empty list `[]` can be used to block built-in actions from making any external connections. + Note that hosts associated with built-in actions, such as Slack and PagerDuty, are not automatically added to allowed hosts. If you are not using the default `["*"]` setting, you must ensure that the corresponding endpoints are added to the allowed hosts as well. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.customHostSettings + # id: + description: | + A list of custom host settings to override existing global settings. + Each entry in the list must have a `url` property, to associate a connection type (mail or https), hostname and port with the remaining options in the entry. + The settings in `xpack.actions.customHostSettings` can be used to override the global option `xpack.actions.ssl.verificationMode` and provide customized TLS settings on a per-server basis. Set `xpack.actions.ssl.verificationMode` to the value to be used by default for all servers, then add an entry in `xpack.actions.customHostSettings` for every server that requires customized settings. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + default: an empty list + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + example: | + In the following example, two custom host settings + are defined. The first provides a custom host setting for mail server + `mail.example.com` using port 465 that supplies server certificate authentication + data from both a file and inline, and requires TLS for the + connection. The second provides a custom host setting for https server + `webhook.example.com` which turns off server certificate authentication, + that will allow Kibana to connect to the server if it's using a self-signed + certificate. The individual properties that can be used in the settings are + documented below. + + [source,yaml] + -- + xpack.actions.customHostSettings: + - url: smtp://mail.example.com:465 + ssl: + verificationMode: 'full' + certificateAuthoritiesFiles: [ 'one.crt' ] + certificateAuthoritiesData: | + -----BEGIN CERTIFICATE----- + MIIDTD... + CwUAMD... + ... multiple lines of certificate data ... + -----END CERTIFICATE----- + smtp: + requireTLS: true + - url: https://webhook.example.com + ssl: + verificationMode: 'none' + -- + + - setting: xpack.actions.customHostSettings[n].url + # id: + description: | + A URL associated with this custom host setting. Should be in the form of `protocol://hostname:port`, where `protocol` is `https` or `smtp`. If the port is not provided, 443 is used for `https` and 25 is used for `smtp`. The `smtp` URLs are used for the Email actions that use this server, and the `https` URLs are used for actions which use `https` to connect to services. + Entries with `https` URLs can use the `ssl` options, and entries with `smtp` URLs can use both the `ssl` and `smtp` options. + No other URL values should be part of this URL, including paths, query strings, and authentication information. When an http or smtp request is made as part of running an action, only the protocol, hostname, and port of the URL for that request are used to look up these configuration values. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.customHostSettings[n].smtp.ignoreTLS + # id: + description: | + A boolean value indicating that TLS must not be used for this connection. The options `smtp.ignoreTLS` and `smtp.requireTLS` can not both be set to true. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: bool + default: false + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.customHostSettings[n].smtp.requireTLS + # id: + description: | + A boolean value indicating that TLS must be used for this connection. The options `smtp.ignoreTLS` and `smtp.requireTLS` can not both be set to true. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: bool + default: false + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.customHostSettings[n].ssl.verificationMode + id: action-config-custom-host-verification-mode + description: | + Controls the verification of the server certificate that Kibana receives when making an outbound SSL/TLS connection to the host server. Valid values are `full`, `certificate`, and `none`. Use `full` to perform hostname verification, `certificate` to skip hostname verification, and `none` to skip verification. Default: `full`. <>. Overrides the general `xpack.actions.ssl.verificationMode` configuration for requests made for this hostname/port. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: enum + default: full + options: + - option: full + - option: certificate + - option: none + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.customHostSettings[n].ssl.certificateAuthoritiesFiles + # id: + description: | + A file name or list of file names of PEM-encoded certificate files to use to validate the server. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.customHostSettings[n].ssl.certificateAuthoritiesData + # id: + description: | + The contents of one or more PEM-encoded certificate files in multiline format. This configuration can be used for environments where the files cannot be made available. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.email.domain_allowlist + id: action-config-email-domain-allowlist + description: | + A list of allowed email domains which can be used with the email connector. When this setting is not used, all email domains are allowed. When this setting is used, if any email is attempted to be sent that (a) includes an addressee with an email domain that is not in the allowlist, or (b) includes a from address domain that is not in the allowlist, it will fail with a message indicating the email is not allowed. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + warning: "This feature is available in Kibana 7.17.4 and 8.3.0 onwards but is not supported in Kibana 8.0, 8.1 or 8.2. As such, this setting should be removed before upgrading from 7.17 to 8.0, 8.1 or 8.2. It is possible to configure the settings in 7.17.4 and then upgrade to 8.3.0 directly." + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.enableFooterInEmail + # id: + description: | + A boolean value indicating that a footer with a relevant link should be added to emails sent as alerting actions. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: bool + default: true + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.enabledActionTypes + # id: + description: | + A list of action types that are enabled. It defaults to `["*"]`, enabling all types. The names for built-in Kibana action types are prefixed with a `.` and include: `.email`, `.index`, `.jira`, `.opsgenie`, `.pagerduty`, `.resilient`, `.server-log`, `.servicenow`, .`servicenow-itom`, `.servicenow-sir`, `.slack`, `.swimlane`, `.teams`, `.tines`, `.torq`, `.xmatters`, `.gen-ai`, `.bedrock`, `.gemini`, `.d3security`, and `.webhook`. An empty list `[]` will disable all action types. + Disabled action types will not appear as an option when creating new connectors, but existing connectors and actions of that type will remain in Kibana and will not function. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + important: "<> are not affected by this setting." + datatype: string + default: ["*"] + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.microsoftExchangeUrl + # id: + description: | + The URL for the Microsoft Azure Active Directory endpoint to use for MS Exchange email authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + default: https://login.microsoftonline.com + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.microsoftGraphApiUrl + # id: + description: | + The URL for the Microsoft Graph API endpoint to use for MS Exchange email authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + default: https://graph.microsoft.com/v1.0 + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.microsoftGraphApiScope + # id: + description: | + The URL for the Microsoft Graph API scope endpoint to use for MS Exchange email authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + default: https://graph.microsoft.com/.default + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.proxyUrl + # id: + description: | + Specifies the proxy URL to use, if using a proxy for actions. By default, no proxy is used. + Proxies may be used to proxy http or https requests through a proxy using the http or https protocol. Kibana only uses proxies in "CONNECT" mode (sometimes referred to as "tunneling" TCP mode, compared to HTTP mode). That is, Kibana will always make requests through a proxy using the HTTP `CONNECT` method. + If your proxy is using the https protocol (vs the http protocol), the setting `xpack.actions.ssl.proxyVerificationMode: none` will likely be needed, unless your proxy's certificates are signed using a publicly available certificate authority. + There is currently no support for using basic authentication with a proxy (authentication for the proxy itself, not the URL being requested through the proxy). + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + example: | + To help diagnose problems using a proxy, you can use the `curl` command with options to use your proxy, and log debug information, with the following command, replacing the proxy and target URLs as appropriate. This will force the request to be made to the + proxy in tunneling mode, and display some of the interaction between the client and the proxy. + + [source,sh] + -- + curl --verbose --proxytunnel --proxy http://localhost:8080 http://example.com + -- + + - setting: xpack.actions.proxyBypassHosts + # id: + description: | + Specifies hostnames which should not use the proxy, if using a proxy for actions. The value is an array of hostnames as strings. + By default, all hosts will use the proxy, but if an action's hostname is in this list, the proxy will not be used. The settings `xpack.actions.proxyBypassHosts` and `xpack.actions.proxyOnlyHosts` cannot be used at the same time. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + example: | + For example: + + [source,yaml] + ---- + xpack.actions.proxyBypassHosts: [ "events.pagerduty.com" ] + ---- + + If applicable, include the subdomain in the hostname + + + - setting: xpack.actions.proxyOnlyHosts + # id: + description: | + Specifies hostnames which should only use the proxy, if using a proxy for actions. The value is an array of hostnames as strings. + By default, no hosts will use the proxy, but if an action's hostname is in this list, the proxy will be used. The settings `xpack.actions.proxyBypassHosts` and `xpack.actions.proxyOnlyHosts` cannot be used at the same time. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + example: | + For example: + + [source,yaml] + ---- + xpack.actions.proxyOnlyHosts: [ "events.pagerduty.com" ] + ---- + + If applicable, include the subdomain in the hostname + + - setting: xpack.actions.proxyHeaders + # id: + description: | + Specifies HTTP headers for the proxy, if using a proxy for actions. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + default: '{}' + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.ssl.proxyVerificationMode + id: action-config-proxy-verification-mode + description: | + Controls the verification for the proxy server certificate that Kibana receives when making an outbound SSL/TLS connection to the proxy server. + Use `full` to perform hostname verification, `certificate` to skip hostname verification, and `none` to skip verification. + <> + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: enum + default: full + options: + - option: full + - option: certificate + - option: none + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.ssl.verificationMode + id: action-config-verification-mode + description: | + Controls the verification for the server certificate that Elastic Maps Server receives when making an outbound SSL/TLS connection for actions. Valid values are `full`, `certificate`, and `none`. Use `full` to perform hostname verification, `certificate` to skip hostname verification, and `none` to skip verification. + <> + This setting can be overridden for specific URLs by using the setting `xpack.actions.customHostSettings[n].ssl.verificationMode` (described above) to a different value. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: enum + default: full + options: + - option: full + - option: certificate + - option: none + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.maxResponseContentLength + # id: + description: | + Specifies the max number of bytes of the http response for requests to external resources. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: int + default: 1000000 (1MB) + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.responseTimeout + # id: + description: | + Specifies the time allowed for requests to external resources. Requests that take longer are canceled. The time is formatted as a number and a time unit (`ms`, `s`, `m`, `h`, `d`, `w`, `M`, or `Y`). For example, `20m`, `24h`, `7d`, `1w`. Default: `60s`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.run.maxAttempts + # id: + description: | + Specifies the maximum number of times an action can be attempted to run. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: int + # default: + options: + - option: minimum 1 and maximum 10 + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.run.connectorTypeOverrides + # id: + description: | + Overrides the configs under `xpack.actions.run` for the connector type with the given ID. List the connector type identifier and its settings in an array of objects. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + example: | + For example: + + [source,yaml] + -- + xpack.actions.run: + maxAttempts: 1 + connectorTypeOverrides: + - id: '.server-log' + maxAttempts: 5 + -- + + - setting: xpack.actions.queued.max + # id: + description: | + Specifies the maximum number of actions that can be queued. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: int + default: 1000000 + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - group: Preconfigured connector settings + id: preconfigured-connector-settings + description: | + These settings vary depending on which type of preconfigured connector you're adding. + example: | + For example: + + [source,yaml] + ---------------------------------------- + xpack.actions.preconfigured: + my-server-log: + name: preconfigured-server-log-connector-type + actionTypeId: .server-log + ---------------------------------------- + + For more examples, go to <>. + + settings: + + - setting: xpack.actions.preconfiguredAlertHistoryEsIndex + # id: + description: | + Enables a preconfigured alert history Elasticsearch <> connector. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: bool + default: false + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.actions.preconfigured + # id: + description: | + Specifies configuration details that are specific to the type of preconfigured connector. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..actionTypeId + # id: + description: | + The type of preconfigured connector. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + # datatype: string/bool/int/float/enum + # default: + options: + - option: .email + - option: .index + - option: .opsgenie + - option: .server-log + - option: .resilient + - option: .slack + - option: .webhook + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config + # id: + description: | + The configuration details, which are specific to the type of preconfigured connector. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.apiProvider + # id: + description: | + For a <>, specifies the OpenAI API provider. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: enum + # default: + options: + - option: OpenAI + - option: Azure OpenAI + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.apiUrl + # id: + description: | + A configuration URL that varies by connector: + * For an <>, specifies the {bedrock} request URL. + * For an <>, specifies the {gemini} request URL. + * For a <>, specifies the OpenAI request URL. + * For a <>, specifies the {ibm-r} instance URL. + * For a <>, specifies the Jira instance URL. + * For an <>, specifies the {opsgenie} URL. For example, `https://api.opsgenie.com` or `https://api.eu.opsgenie.com`. + * For a <>, specifies the PagerDuty event URL. Defaults to `https://events.pagerduty.com/v2/enqueue`. + * For a <>, <>, or <> specifies the ServiceNow instance URL. + * For a <>, specifies the {swimlane} instance URL. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts." + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.appId + # id: + description: | + An application ID that varies by connector: + * For a <>, specifies a {swimlane} application identifier. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.clientId + # id: + description: | + A client identifier that varies by connector: + * For an <>, specifies a GUID format value that corresponds to the client ID, which is a part of OAuth 2.0 client credentials authentication. + * For a <>, <>, or <> specifies the client identifier assigned to the OAuth application. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.configUrl + # id: + description: | + For an <> with basic authentication, specifies the request URL for the Elastic Alerts trigger in xMatters. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.createCommentJson + # id: + description: | + For a <>, specifies a stringified JSON payload with Mustache variables that is sent to the create comment URL to create a case comment. The required variable is `case.description`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "The JSON is validated after the Mustache variables have been placed when the REST method runs. You should manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass." + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.createCommentMethod + # id: + description: | + For a <>, specifies the REST API HTTP request method to create a case comment in the third-party system. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + default: put + options: + - option: post + - option: put + - option: patch + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.createCommentUrl + # id: + description: | + For a <>, specifies a REST API URL string to create a case comment by ID in the third-party system. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts." + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.createIncidentJson + # id: + description: | + For a <>, specifies a stringified JSON payload with Mustache variables that is sent to the create case URL to create a case. Required variables are `case.title` and `case.description`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "The JSON is validated after the Mustache variables have been placed when the REST method runs. You should manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass." + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.createIncidentMethod + # id: + description: | + For a <>, specifies the REST API HTTP request method to create a case in the third-party system + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + default: post + options: + - option: post + - option: put + - option: patch + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.createIncidentUrl + # id: + description: | + For a <>, specifies a REST API URL string to create a case in the third-party system. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts." + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.createIncidentResponseKey + # id: + description: | + For a <>, specifies a string from the response body of the create case method that corresponds to the external service identifier. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.defaultModel + # id: + description: | + The default model to use for requests, which varies by connector: + * For an <>, current support is for the Anthropic Claude models. Defaults to `anthropic.claude-3-5-sonnet-20240620-v1:0`. + * For a <>, current support is for the Gemini models. Defaults to `gemini-1.5-pro-002`. + * For a <>, it is optional and applicable only when `xpack.actions.preconfigured..config.apiProvider` is `OpenAI`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.executionTimeField + # id: + description: | + For an <>, a field that indicates when the document was indexed. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.from + # id: + description: | + For an <>, specifies the from address for all emails sent by the connector. It must be specified in `user@host-name` format. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.getIncidentResponseExternalTitleKey + # id: + description: | + - "For a <>, specifies a string from the response body of the get case method that corresponds to the external service title." + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.getIncidentUrl + # id: + description: | + For a <>, specifies a REST API URL string with an external service ID Mustache variable to get the case from the third-party system. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts. " + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.hasAuth + # id: + description: | + For an <>, <>, or <>, specifies whether a user and password are required inside the secrets configuration. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: bool + default: true + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.headers + # id: + description: | + For a <> or <>, specifies a set of key-value pairs sent as headers with the request. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.host + # id: + description: | + For an <>, specifies the host name of the service provider. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.index + # id: + description: | + For an <>, specifies the Elasticsearch index. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.isOAuth + # id: + description: | + For a <>, <>, or <>, specifies whether to use basic or OAuth authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.jwtKeyId + # id: + description: | + For a <>, <>, or <>, specifies the key ID assigned to the JWT verifier map of your OAuth application. It is required when `xpack.actions.preconfigured..config.isOAuth` is `true`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.mappings + # id: + description: | + For a <>, specifies field mappings. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.mappings.alertIdConfig + # id: + description: | + For a <>, field mapping for the alert identifier. You must provide `fieldtype`, `id`, `key`, and `name` values. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.mappings.caseIdConfig + # id: + description: | + For a <>, field mapping for the case identifier. You must provide `fieldtype`, `id`, `key`, and `name` values. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.mappings.caseNameConfig + # id: + description: | + For a <>, field mapping for the case name. You must provide `fieldtype`, `id`, `key`, and `name` values. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.mappings.commentsConfig + # id: + description: | + For a <>, field mapping for the case comments. You must provide `fieldtype`, `id`, `key`, and `name` values. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.mappings.descriptionConfig + # id: + description: | + For a <>, field mapping for the case description. You must provide `fieldtype`, `id`, `key`, and `name` values. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.mappings.ruleNameConfig + # id: + description: | + For a <>, field mapping for the rule name. You must provide `fieldtype`, `id`, `key`, and `name` values. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.mappings.severityConfig + # id: + description: | + For a <>, specifies a field mapping for the severity. You must provide `fieldtype`, `id`, `key`, and `name` values. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.method + # id: + description: | + For a <>, specifies the HTTP request method, either `post` or `put`. Defaults to `post`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: enum + default: post + options: + - option: post + - option: put + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.orgId + # id: + description: | + For an <>, specifies the {ibm-r} organization identifier. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.port + # id: + description: | + For an <>, specifies the port to connect to on the service provider. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.projectKey + # id: + description: | + For a <>, specifies the Jira project key. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.secure + # id: + description: | + For an <>, specifies whether the connection will use TLS when connecting to the service provider. If not true, the connection will initially connect over TCP then attempt to switch to TLS via the SMTP STARTTLS command. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: bool + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.service + # id: + description: | + For an <>, specifies the name of the email service. For example, `elastic_cloud`, `exchange_server`, `gmail`, `other`, `outlook365`, or `ses`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.tenantId + # id: + description: | + For an <>, specifies a GUID format value that corresponds to a tenant ID, which is a part of OAuth 2.0 client credentials authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.updateIncidentJson + # id: + description: | + For a <>, specifies a stringified JSON payload with Mustache variables that is sent to the update case URL to update a case. Required variables are `case.title` and `case.description`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "The JSON is validated after the Mustache variables have been placed when the REST method runs. You should manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass." + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.updateIncidentMethod + # id: + description: | + For a <>, specifies the REST API HTTP request method to update the case in the third-party system. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: enum + default: put + options: + - option: post + - option: put + - option: patch + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.updateIncidentUrl + # id: + description: | + For a <>, specifies the REST API URL to update the case by ID in the third-party system. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts." + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.url + # id: + description: | + A configuration URL that varies by connector: + * For a <>, specifies the D3 Security API request URL. + * For a <>, specifies the Tines tenant URL. + * For a <>, specifies the web service request URL. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "If you are using the `xpack.actions.allowedHosts` setting, make sure this hostname is added to the allowed hosts." + # tip: "" + # warning: "" + # important: "" + datatype: stringm + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.userIdentifierValue + # id: + description: | + For a <>, <>, or <>, specifies the user identifier. It is required when required when `xpack.actions.preconfigured..config.isOAuth` is `true`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.usesBasic + # id: + description: | + For an <>, specifies whether it uses HTTP basic authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: bool + default: true + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.usesTableApi + # id: + description: | + For a <> or <>, specifies whether the connector uses the Table API or the Import Set API. If set to `false`, the Elastic application should be installed in ServiceNow. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: bool + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.viewIncidentUrl + # id: + description: | + For a <>, specifies a URL string with either the external service ID or external service title Mustache variable to view a case in the external system. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..config.webhookIntegrationUrl + # id: + description: | + For a <>, specifies the endpoint URL of the Elastic Security integration in Torq. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..name + # id: + description: | + The name of the preconfigured connector. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets + # id: + description: | + Sensitive configuration details, such as username, password, and keys, which are specific to the connector type. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + tip: "Sensitive properties, such as passwords, should be stored in the <>." + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.accessKey + # id: + description: | + For an <>, specifies the AWS access key for authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.apikey + # id: + description: | + An API key secret that varies by connector. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.credentialsJson + # id: + description: | + For an <>, specifies the GCP service account credentials JSON file for authentication. + * For a <>, specifies the OpenAI or Azure OpenAI API key for authentication. + * For an <>, specifies the {opsgenie} API authentication key for HTTP basic authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.apiKeyId + # id: + description: | + For an <>, specifies the authentication key ID for HTTP basic authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.apiKeySecret + # id: + description: | + For an <>, specifies the authentication key secret for HTTP basic authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.apiToken + # id: + description: | + For a <> or <>, specifies the API authentication token for HTTP basic authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.clientSecret + # id: + description: | + A client secret that varies by connector: + * For an <>, specifies the client secret that you generated for your app in the app registration portal. It is required when the email service is `exchange_server`, which uses OAuth 2.0 client credentials authentication. + * For a <>, <>, or <>, specifies the client secret assigned to the OAuth application. It is required when `xpack.actions.preconfigured..config.isOAuth` is `true`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "The client secret must be URL-encoded." + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.email + # id: + description: | + An email address that varies by connector: + * For a <>, specifies the account email for HTTP basic authentication. + * For a <>, specifies the email used to sign in to Tines. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.password + # id: + description: | + A password secret that varies by connector: + * For an <>, <>, or <>, specifies a password that is required when `xpack.actions.preconfigured..config.hasAuth` is `true`. + * For a <>, <>, or <>, specifies a password that is required when `xpack.actions.preconfigured..config.isOAuth` is `false`. + * For an <>, specifies a password that is required when `xpack.actions.preconfigured..config.usesBasic` is `true`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.privateKey + # id: + description: | + For a <>, <>, or <>, specifies the RSA private key. It is required when `xpack.actions.preconfigured..config.isOAuth` is `true`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.privateKeyPassword + # id: + description: | + For a <>, <>, or <>, specifies the password for the RSA private key. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.routingKey + # id: + description: | + For a <>, specifies the 32 character PagerDuty Integration Key for an integration on a service, also referred to as the routing key. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.secret + # id: + description: | + For an <>, specifies the AWS secret for authentication. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.secretsUrl + # id: + description: | + For an <> with URL authentication, specifies the request URL for the Elastic Alerts trigger in xMatters with the API key included in the URL. It is used only when `xpack.actions.preconfigured..config.usesBasic` is `false`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "If you are using the `xpack.actions.allowedHosts` setting, make sure this hostname is added to the allowed hosts." + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.token + # id: + description: | + A token secret that varies by connector: + * For a <>, specifies the D3 Security token. + * For a <>, specifies the Slack bot user OAuth token. + * For a <>, specifies the Tines API token. + * For a <>, specifies the secret of the webhook authentication header. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.user + # id: + description: | + A user name secret that varies by connector: + * For an <>, <>, or <>, specifies a user name that is required when `xpack.actions.preconfigured..config.hasAuth` is `true`. + * For an <>, specifies a user name that is required when `xpack.actions.preconfigured..config.usesBasic` is `true`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.webhookUrl + # id: + description: | + A URL that varies by connector: + * For a <>, specifies the URL of the incoming webhook. + * For a <>, specifies the Slack webhook URL. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + note: "If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname is added to the allowed hosts." + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.actions.preconfigured..secrets.username + # id: + description: | + For a <>, <>, or <>, specifies a user name that is required when `xpack.actions.preconfigured..config.isOAuth` is `false`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - group: Alerting settings + id: alert-settings + # description: | + # example: | + settings: + + - setting: xpack.alerting.cancelAlertsOnRuleTimeout + # id: + description: | + Specifies whether to skip writing alerts and scheduling actions if rule processing was cancelled due to a timeout. This setting can be overridden by individual rule types. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: bool + default: true + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.alerting.rules.maxScheduledPerMinute + # id: + description: | + Specifies the maximum number of rules to run per minute. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: int + default: 10000 + # options: + # - option: + # description: "" + # type: static/dynamic + # platforms: + # - cloud/serverless/self-managed + # example: | + + - setting: xpack.alerting.rules.minimumScheduleInterval.value + # id: + description: | + Specifies the minimum schedule interval for rules. This minimum is applied to all rules created or updated after you set this value. The time is formatted as a number and a time unit (`s`, `m`, `h`, or `d`). For example, `20m`, `24h`, `7d`. This duration cannot exceed `1d`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + default: 1m + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.alerting.rules.minimumScheduleInterval.enforce + # id: + description: | + Specifies the behavior when a new or changed rule has a schedule interval less than the value defined in `xpack.alerting.rules.minimumScheduleInterval.value`. If `false`, rules with schedules less than the interval will be created but warnings will be logged. If `true`, rules with schedules less than the interval cannot be created. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: bool + default: false + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.alerting.rules.run.actions.max + # id: + description: | + Specifies the maximum number of actions that a rule can generate each time detection checks run. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: int + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.alerting.rules.run.alerts.max + # id: + description: | + Specifies the maximum number of alerts that a rule can generate each time detection checks run. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + warning: "The exact number of alerts your cluster can safely handle depends on your cluster configuration and workload, however setting a value higher than the default (`1000`) is not recommended or supported. Doing so could strain system resources and lead to performance issues, delays in alert processing, and potential disruptions during high alert activity periods." + # important: "" + datatype: int + default: 1000 + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.alerting.rules.run.timeout + # id: + description: | + Specifies the default timeout for tasks associated with all types of rules. The time is formatted as a number and a time unit (`ms`, `s`, `m`, `h`, `d`, `w`, `M`, or `Y`). For example, `20m`, `24h`, `7d`, `1w`. Default: `5m`. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + # example: | + + - setting: xpack.alerting.rules.run.ruleTypeOverrides + # id: + description: | + Overrides the configs under `xpack.alerting.rules.run` for the rule type with the given ID. List the rule identifier and its settings in an array of objects. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + example: | + For example: + + [source,yaml] + -- + xpack.alerting.rules.run: + timeout: '5m' + ruleTypeOverrides: + - id: '.index-threshold' + timeout: '15m' + -- + + - setting: xpack.alerting.rules.run.actions.connectorTypeOverrides + # id: + description: | + Overrides the configs under `xpack.alerting.rules.run.actions` for the connector type with the given ID. List the connector type identifier and its settings in an array of objects. + # state: deprecated/hidden/tech-preview + # deprecation_details: "" + # note: "" + # tip: "" + # warning: "" + # important: "" + datatype: string + # default: + # options: + # - option: + # description: "" + # type: static/dynamic + platforms: + - cloud + example: | + For example: + + [source,yaml] + -- + xpack.alerting.rules.run: + actions: + max: 10 + connectorTypeOverrides: + - id: '.server-log' + max: 5 + -- diff --git a/docs/settings/alert-action-settings.asciidoc b/docs/settings/alert-action-settings.asciidoc index 6bd7eb1e76345..5ca8a4051cbbf 100644 --- a/docs/settings/alert-action-settings.asciidoc +++ b/docs/settings/alert-action-settings.asciidoc @@ -1,5 +1,5 @@ [[alert-action-settings-kb]] -== Alerting and action settings in {kib} +=== Alerting and action settings in {kib} ++++ Alerting and action settings ++++ @@ -9,624 +9,4 @@ :frontmatter-tags-content-type: [reference] :frontmatter-tags-user-goals: [configure] -Alerting and actions are enabled by default in {kib}, but require you to configure the following: - -. <>. -. <>. -. If you are using an *on-premises* Elastic Stack deployment, <>. - -You can configure the following settings in the `kibana.yml` file. - -[float] -[[general-alert-action-settings]] -=== General settings - -`xpack.encryptedSavedObjects.encryptionKey`:: -A string of 32 or more characters used to encrypt sensitive properties on alerting rules and actions before they're stored in {es}. Third party credentials — such as the username and password used to connect to an SMTP service — are an example of encrypted properties. -+ -{kib} offers a <> to help generate this encryption key. -+ -If not set, {kib} will generate a random key on startup, but all alerting and action functions will be blocked. Generated keys are not allowed for alerting and actions because when a new key is generated on restart, existing encrypted data becomes inaccessible. For the same reason, alerting and actions in high-availability deployments of {kib} will behave unexpectedly if the key isn't the same on all instances of {kib}. -+ -Although the key can be specified in clear text in `kibana.yml`, it's recommended to store this key securely in the <>. -Be sure to back up the encryption key value somewhere safe, as your alerting rules and actions will cease to function due to decryption failures should you lose it. If you want to rotate the encryption key, be sure to follow the instructions on <>. - -[float] -[[action-settings]] -=== Action settings - -`xpack.actions.allowedHosts` {ess-icon}:: -A list of hostnames that {kib} is allowed to connect to when built-in actions are triggered. It defaults to `["*"]`, allowing any host, but keep in mind the potential for SSRF attacks when hosts are not explicitly added to the allowed hosts. An empty list `[]` can be used to block built-in actions from making any external connections. -+ -Note that hosts associated with built-in actions, such as Slack and PagerDuty, are not automatically added to allowed hosts. If you are not using the default `["*"]` setting, you must ensure that the corresponding endpoints are added to the allowed hosts as well. - -`xpack.actions.customHostSettings` {ess-icon}:: -A list of custom host settings to override existing global settings. -Default: an empty list. -+ -Each entry in the list must have a `url` property, to associate a connection -type (mail or https), hostname and port with the remaining options in the -entry. -+ -In the following example, two custom host settings -are defined. The first provides a custom host setting for mail server -`mail.example.com` using port 465 that supplies server certificate authentication -data from both a file and inline, and requires TLS for the -connection. The second provides a custom host setting for https server -`webhook.example.com` which turns off server certificate authentication, -that will allow Kibana to connect to the server if it's using a self-signed -certificate. The individual properties that can be used in the settings are -documented below. -+ -[source,yaml] --- -xpack.actions.customHostSettings: - - url: smtp://mail.example.com:465 - ssl: - verificationMode: 'full' - certificateAuthoritiesFiles: [ 'one.crt' ] - certificateAuthoritiesData: | - -----BEGIN CERTIFICATE----- - MIIDTD... - CwUAMD... - ... multiple lines of certificate data ... - -----END CERTIFICATE----- - smtp: - requireTLS: true - - url: https://webhook.example.com - ssl: - verificationMode: 'none' --- -+ -The settings in `xpack.actions.customHostSettings` can be used to override the -global option `xpack.actions.ssl.verificationMode` and provide customized TLS -settings on a per-server basis. Set `xpack.actions.ssl.verificationMode` to the -value to be used by default for all servers, then add an entry in -`xpack.actions.customHostSettings` for every server that requires customized -settings. - -`xpack.actions.customHostSettings[n].url` {ess-icon}:: -A URL associated with this custom host setting. Should be in the form of -`protocol://hostname:port`, where `protocol` is `https` or `smtp`. If the -port is not provided, 443 is used for `https` and 25 is used for -`smtp`. The `smtp` URLs are used for the Email actions that use this -server, and the `https` URLs are used for actions which use `https` to -connect to services. -+ -Entries with `https` URLs can use the `ssl` options, and entries with `smtp` -URLs can use both the `ssl` and `smtp` options. -+ -No other URL values should be part of this URL, including paths, -query strings, and authentication information. When an http or smtp request -is made as part of running an action, only the protocol, hostname, and -port of the URL for that request are used to look up these configuration -values. - -`xpack.actions.customHostSettings[n].smtp.ignoreTLS` {ess-icon}:: -A boolean value indicating that TLS must not be used for this connection. -The options `smtp.ignoreTLS` and `smtp.requireTLS` can not both be set to true. -Default: `false`. - -`xpack.actions.customHostSettings[n].smtp.requireTLS` {ess-icon}:: -A boolean value indicating that TLS must be used for this connection. -The options `smtp.ignoreTLS` and `smtp.requireTLS` can not both be set to true. -Default: `false`. - -[[action-config-custom-host-verification-mode]] `xpack.actions.customHostSettings[n].ssl.verificationMode` {ess-icon}:: -Controls the verification of the server certificate that {kib} receives when making an outbound SSL/TLS connection to the host server. Valid values are `full`, `certificate`, and `none`. -Use `full` to perform hostname verification, `certificate` to skip hostname verification, and `none` to skip verification. Default: `full`. <>. Overrides the general `xpack.actions.ssl.verificationMode` configuration -for requests made for this hostname/port. - -`xpack.actions.customHostSettings[n].ssl.certificateAuthoritiesFiles`:: -A file name or list of file names of PEM-encoded certificate files to use -to validate the server. - -`xpack.actions.customHostSettings[n].ssl.certificateAuthoritiesData` {ess-icon}:: -The contents of one or more PEM-encoded certificate files in multiline format. -This configuration can be used for environments where the files cannot be made available. - -[[action-config-email-domain-allowlist]] `xpack.actions.email.domain_allowlist` {ess-icon}:: -A list of allowed email domains which can be used with the email connector. When this setting is not used, all email domains are allowed. When this setting is used, if any email is attempted to be sent that (a) includes an addressee with an email domain that is not in the allowlist, or (b) includes a from address domain that is not in the allowlist, it will fail with a message indicating the email is not allowed. -+ -WARNING: This feature is available in {kib} 7.17.4 and 8.3.0 onwards but is not supported in {kib} 8.0, 8.1 or 8.2. As such, this setting should be removed before upgrading from 7.17 to 8.0, 8.1 or 8.2. It is possible to configure the settings in 7.17.4 and then upgrade to 8.3.0 directly. - -`xpack.actions.enableFooterInEmail` {ess-icon}:: -A boolean value indicating that a footer with a relevant link should be added to emails sent as alerting actions. Default: true. - -`xpack.actions.enabledActionTypes` {ess-icon}:: -A list of action types that are enabled. It defaults to `["*"]`, enabling all types. The names for built-in {kib} action types are prefixed with a `.` and include: `.email`, `.index`, `.jira`, `.opsgenie`, `.pagerduty`, `.resilient`, `.server-log`, `.servicenow`, .`servicenow-itom`, `.servicenow-sir`, `.slack`, `.swimlane`, `.teams`, `.thehive`, `.tines`, `.torq`, `.xmatters`, `.gen-ai`, `.bedrock`, `.gemini`, `.d3security`, and `.webhook`. An empty list `[]` will disable all action types. -+ --- -Disabled action types will not appear as an option when creating new connectors, but existing connectors and actions of that type will remain in {kib} and will not function. - -IMPORTANT: <> are not affected by this setting. --- - -`xpack.actions.microsoftExchangeUrl`:: -The URL for the Microsoft Azure Active Directory endpoint to use for MS Exchange email authentication. Default: `https://login.microsoftonline.com`. - -`xpack.actions.microsoftGraphApiUrl`:: -The URL for the Microsoft Graph API endpoint to use for MS Exchange email authentication. Default: `https://graph.microsoft.com/v1.0`. - -`xpack.actions.microsoftGraphApiScope`:: -The URL for the Microsoft Graph API scope endpoint to use for MS Exchange email authentication. Default: `https://graph.microsoft.com/.default`. - -`xpack.actions.proxyUrl` {ess-icon}:: -Specifies the proxy URL to use, if using a proxy for actions. By default, no proxy is used. -+ -Proxies may be used to proxy http or https requests through a proxy using the http or https protocol. Kibana only uses proxies in "CONNECT" mode (sometimes referred to as "tunneling" TCP mode, compared to HTTP mode). That is, Kibana will always make requests through a proxy using the HTTP `CONNECT` method. -+ -If your proxy is using the https protocol (vs the http protocol), the setting `xpack.actions.ssl.proxyVerificationMode: none` will likely be needed, unless your proxy's certificates are signed using a publicly available certificate authority. -+ -There is currently no support for using basic authentication with a proxy (authentication for the proxy itself, not the URL being requested through the proxy). -+ -To help diagnose problems using a proxy, you can use the `curl` command with options to use your proxy, and log debug information, with the following command, replacing the proxy and target URLs as appropriate. This will force the request to be made to the -proxy in tunneling mode, and display some of the interaction between the client and the proxy. -+ -[source,sh] --- -curl --verbose --proxytunnel --proxy http://localhost:8080 http://example.com --- - -`xpack.actions.proxyBypassHosts` {ess-icon}:: -Specifies hostnames which should not use the proxy, if using a proxy for actions. The value is an array of hostnames as strings. Example: -+ -[source,yaml] ----- -# If applicable, include the subdomain in the hostname -xpack.actions.proxyBypassHosts: [ "events.pagerduty.com" ] ----- -+ -By default, all hosts will use the proxy, but if an action's hostname is in this list, the proxy will not be used. The settings `xpack.actions.proxyBypassHosts` and `xpack.actions.proxyOnlyHosts` cannot be used at the same time. - -`xpack.actions.proxyOnlyHosts` {ess-icon}:: -Specifies hostnames which should only use the proxy, if using a proxy for actions. The value is an array of hostnames as strings. Example: -+ -[source,yaml] ----- -# If applicable, include the subdomain in the hostname -xpack.actions.proxyOnlyHosts: [ "events.pagerduty.com" ] ----- -+ -By default, no hosts will use the proxy, but if an action's hostname is in this list, the proxy will be used. The settings `xpack.actions.proxyBypassHosts` and `xpack.actions.proxyOnlyHosts` cannot be used at the same time. - -`xpack.actions.proxyHeaders` {ess-icon}:: -Specifies HTTP headers for the proxy, if using a proxy for actions. Default: {}. - -[[action-config-proxy-verification-mode]]`xpack.actions.ssl.proxyVerificationMode` {ess-icon}:: -Controls the verification for the proxy server certificate that Kibana receives when making an outbound SSL/TLS connection to the proxy server. Valid values are `full`, `certificate`, and `none`. -Use `full` to perform hostname verification, `certificate` to skip hostname verification, and `none` to skip verification. Default: `full`. <>. - -[[action-config-verification-mode]] `xpack.actions.ssl.verificationMode` {ess-icon}:: -Controls the verification for the server certificate that {hosted-ems} receives when making an outbound SSL/TLS connection for actions. Valid values are `full`, `certificate`, and `none`. -Use `full` to perform hostname verification, `certificate` to skip hostname verification, and `none` to skip verification. Default: `full`. <>. -+ -This setting can be overridden for specific URLs by using the setting -`xpack.actions.customHostSettings[n].ssl.verificationMode` (described above) to a different value. - -`xpack.actions.maxResponseContentLength` {ess-icon}:: -Specifies the max number of bytes of the http response for requests to external resources. Default: 1000000 (1MB). - -`xpack.actions.responseTimeout` {ess-icon}:: -Specifies the time allowed for requests to external resources. Requests that take longer are canceled. -The time is formatted as a number and a time unit (`ms`, `s`, `m`, `h`, `d`, `w`, `M`, or `Y`). -For example, `20m`, `24h`, `7d`, `1w`. Default: `60s`. - -`xpack.actions.run.maxAttempts` {ess-icon}:: -Specifies the maximum number of times an action can be attempted to run. Can be minimum 1 and maximum 10. - -`xpack.actions.run.connectorTypeOverrides` {ess-icon}:: -Overrides the configs under `xpack.actions.run` for the connector type with the given ID. List the connector type identifier and its settings in an array of objects. For example: -+ -[source,yaml] --- -xpack.actions.run: - maxAttempts: 1 - connectorTypeOverrides: - - id: '.server-log' - maxAttempts: 5 --- - -`xpack.actions.queued.max` {ess-icon}:: -Specifies the maximum number of actions that can be queued. Default: 1000000 - -[float] -[[preconfigured-connector-settings]] -=== Preconfigured connector settings - -These settings vary depending on which type of preconfigured connector you're adding. -For example: - -[source,yaml] ----------------------------------------- -xpack.actions.preconfigured: - my-server-log: - name: preconfigured-server-log-connector-type - actionTypeId: .server-log ----------------------------------------- - -For more examples, go to <>. - -`xpack.actions.preconfiguredAlertHistoryEsIndex` {ess-icon}:: -Enables a preconfigured alert history {es} <> connector. Default: `false`. - -`xpack.actions.preconfigured`:: -Specifies configuration details that are specific to the type of preconfigured connector. - -`xpack.actions.preconfigured..actionTypeId`:: -The type of preconfigured connector. -For example: `.email`, `.index`, `.opsgenie`, `.server-log`, `.resilient`, `.slack`, and `.webhook`. - -`xpack.actions.preconfigured..config`:: -The configuration details, which are specific to the type of preconfigured connector. - -`xpack.actions.preconfigured..config.apiProvider`:: -For a <>, specifies the OpenAI API provider, either `OpenAI` or `Azure OpenAI`. - -`xpack.actions.preconfigured..config.apiUrl`:: -A configuration URL that varies by connector: -+ --- -* For an <>, specifies the {bedrock} request URL. -* For an <>, specifies the {gemini} request URL. -* For a <>, specifies the OpenAI request URL. -* For a <>, specifies the {ibm-r} instance URL. -* For a <>, specifies the Jira instance URL. -* For an <>, specifies the {opsgenie} URL. For example, `https://api.opsgenie.com` or `https://api.eu.opsgenie.com`. -* For a <>, specifies the PagerDuty event URL. Defaults to `https://events.pagerduty.com/v2/enqueue`. -* For a <>, <>, or <> specifies the ServiceNow instance URL. -* For a <>, specifies the {swimlane} instance URL. -// ifeval::["featureAIConnector"=="true"] -// * For an <>, specifies the Elastic {inference} request. -// endif::[] -NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts. --- - -`xpack.actions.preconfigured..config.appId`:: -An application ID that varies by connector: -+ --- -* For a <>, specifies a {swimlane} application identifier. --- - -`xpack.actions.preconfigured..config.clientId`:: -A client identifier that varies by connector: -+ --- -* For an <>, specifies a GUID format value that corresponds to the client ID, which is a part of OAuth 2.0 client credentials authentication. -* For a <>, <>, or <> specifies the client identifier assigned to the OAuth application. --- - -`xpack.actions.preconfigured..config.configUrl`:: -For an <> with basic authentication, specifies the request URL for the Elastic Alerts trigger in xMatters. - -`xpack.actions.preconfigured..config.createCommentJson`:: -For a <>, specifies a stringified JSON payload with Mustache variables that is sent to the create comment URL to create a case comment. The required variable is `case.description`. -+ -NOTE: The JSON is validated after the Mustache variables have been placed when the REST method runs. You should manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. - -`xpack.actions.preconfigured..config.createCommentMethod`:: -For a <>, specifies the REST API HTTP request method to create a case comment in the third-party system. -For example: `post`, `put`(default), or `patch`. - -`xpack.actions.preconfigured..config.createCommentUrl`:: -For a <>, specifies a REST API URL string to create a case comment by ID in the third-party system. -+ -NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts. - -`xpack.actions.preconfigured..config.createIncidentJson`:: -For a <>, specifies a stringified JSON payload with Mustache variables that is sent to the create case URL to create a case. Required variables are `case.title` and `case.description`. -+ -NOTE: The JSON is validated after the Mustache variables have been placed when the REST method runs. You should manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. - -`xpack.actions.preconfigured..config.createIncidentMethod`:: -For a <>, specifies the REST API HTTP request method to create a case in the third-party system, either `post`(default), `put`, or `patch`. - -`xpack.actions.preconfigured..config.createIncidentUrl`:: -For a <>, specifies a REST API URL string to create a case in the third-party system. -+ -NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts. - -`xpack.actions.preconfigured..config.createIncidentResponseKey`:: -For a <>, specifies a string from the response body of the create case method that corresponds to the external service identifier. - -`xpack.actions.preconfigured..config.defaultModel`:: -The default model to use for requests, which varies by connector: -+ --- -* For an <>, current support is for the Anthropic Claude models. Defaults to `anthropic.claude-3-5-sonnet-20240620-v1:0`. -* For a <>, current support is for the Gemini models. Defaults to `gemini-1.5-pro-002`. -* For a <>, it is optional and applicable only when `xpack.actions.preconfigured..config.apiProvider` is `OpenAI`. --- - -`xpack.actions.preconfigured..config.executionTimeField`:: -For an <>, a field that indicates when the document was indexed. - -`xpack.actions.preconfigured..config.from`:: -For an <>, specifies the from address for all emails sent by the connector. -It must be specified in `user@host-name` format. - -`xpack.actions.preconfigured..config.getIncidentResponseExternalTitleKey`:: -For a <>, specifies a string from the response body of the get case method that corresponds to the external service title. - -`xpack.actions.preconfigured..config.getIncidentUrl`:: -For a <>, specifies a REST API URL string with an external service ID Mustache variable to get the case from the third-party system. -+ -NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts. - -`xpack.actions.preconfigured..config.hasAuth`:: -For an <>, <>, or <>, specifies whether a user and password are required inside the secrets configuration. Defaults to `true`. - -`xpack.actions.preconfigured..config.headers`:: -For a <> or <>, specifies a set of key-value pairs sent as headers with the request. - -`xpack.actions.preconfigured..config.host`:: -For an <>, specifies the host name of the service provider. - -`xpack.actions.preconfigured..config.index`:: -For an <>, specifies the {es} index. - -`xpack.actions.preconfigured..config.isOAuth`:: -For a <>, <>, or <>, specifies whether to use basic or OAuth authentication. - -`xpack.actions.preconfigured..config.jwtKeyId`:: -For a <>, <>, or <>, specifies the key ID assigned to the JWT verifier map of your OAuth application. It is required when `xpack.actions.preconfigured..config.isOAuth` is `true`. - -`xpack.actions.preconfigured..config.mappings`:: -For a <>, specifies field mappings. - -`xpack.actions.preconfigured..config.mappings.alertIdConfig`:: -For a <>, field mapping for the alert identifier. -You must provide `fieldtype`, `id`, `key`, and `name` values. - -`xpack.actions.preconfigured..config.mappings.caseIdConfig`:: -For a <>, field mapping for the case identifier. -You must provide `fieldtype`, `id`, `key`, and `name` values. - -`xpack.actions.preconfigured..config.mappings.caseNameConfig`:: -For a <>, field mapping for the case name. -You must provide `fieldtype`, `id`, `key`, and `name` values. - -`xpack.actions.preconfigured..config.mappings.commentsConfig`:: -For a <>, field mapping for the case comments. -You must provide `fieldtype`, `id`, `key`, and `name` values. - -`xpack.actions.preconfigured..config.mappings.descriptionConfig`:: -For a <>, field mapping for the case description. -You must provide `fieldtype`, `id`, `key`, and `name` values. - -`xpack.actions.preconfigured..config.mappings.ruleNameConfig`:: -For a <>, field mapping for the rule name. -You must provide `fieldtype`, `id`, `key`, and `name` values. - -`xpack.actions.preconfigured..config.mappings.severityConfig`:: -For a <>, specifies a field mapping for the severity. -You must provide `fieldtype`, `id`, `key`, and `name` values. - -`xpack.actions.preconfigured..config.method`:: -For a <>, specifies the HTTP request method, either `post` or `put`. Defaults to `post`. - -`xpack.actions.preconfigured..config.orgId`:: -For an <>, specifies the {ibm-r} organization identifier. - -`xpack.actions.preconfigured..config.port`:: -For an <>, specifies the port to connect to on the service provider. - -`xpack.actions.preconfigured..config.projectKey`:: -For a <>, specifies the Jira project key. - -`xpack.actions.preconfigured..config.secure`:: -For an <>, specifies whether the connection will use TLS when connecting to the service provider. If not true, the connection will initially connect over TCP then attempt to switch to TLS via the SMTP STARTTLS command. - -`xpack.actions.preconfigured..config.service`:: -For an <>, specifies the name of the email service. For example, `elastic_cloud`, `exchange_server`, `gmail`, `other`, `outlook365`, or `ses`. - -`xpack.actions.preconfigured..config.tenantId`:: -For an <>, specifies a GUID format value that corresponds to a tenant ID, which is a part of OAuth 2.0 client credentials authentication. - -`xpack.actions.preconfigured..config.updateIncidentJson`:: -For a <>, specifies a stringified JSON payload with Mustache variables that is sent to the update case URL to update a case. Required variables are `case.title` and `case.description`. -+ -NOTE: The JSON is validated after the Mustache variables have been placed when the REST method runs. You should manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. - -`xpack.actions.preconfigured..config.updateIncidentMethod`:: -For a <>, specifies the REST API HTTP request method to update the case in the third-party system. -For example: `post`, `put`(default), or `patch`. - -`xpack.actions.preconfigured..config.updateIncidentUrl`:: -For a <>, specifies the REST API URL to update the case by ID in the third-party system. -+ -NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname in the URL is added to the allowed hosts. - -`xpack.actions.preconfigured..config.url`:: -A configuration URL that varies by connector: -+ --- -* For a <>, specifies the D3 Security API request URL. -* For a <>, specifies the Tines tenant URL. -* For a <>, specifies the web service request URL. - -NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure this hostname is added to the allowed hosts. --- - -`xpack.actions.preconfigured..config.userIdentifierValue`:: -For a <>, <>, or <>, specifies the user identifier. It is required when required when `xpack.actions.preconfigured..config.isOAuth` is `true`. - -`xpack.actions.preconfigured..config.usesBasic`:: -For an <>, specifies whether it uses HTTP basic authentication. Defaults to `true`. - -`xpack.actions.preconfigured..config.usesTableApi`:: -For a <> or <>, specifies whether the connector uses the Table API or the Import Set API. -If set to `false`, the Elastic application should be installed in ServiceNow. - -`xpack.actions.preconfigured..config.viewIncidentUrl`:: -For a <>, specifies a URL string with either the external service ID or external service title Mustache variable to view a case in the external system. - -`xpack.actions.preconfigured..config.webhookIntegrationUrl`:: -For a <>, specifies the endpoint URL of the Elastic Security integration in Torq. - -`xpack.actions.preconfigured..name`:: -The name of the preconfigured connector. - -`xpack.actions.preconfigured..secrets`:: -Sensitive configuration details, such as username, password, and keys, which are specific to the connector type. -+ -TIP: Sensitive properties, such as passwords, should be stored in the <>. - -`xpack.actions.preconfigured..secrets.accessKey`:: -For an <>, specifies the AWS access key for authentication. - -`xpack.actions.preconfigured..secrets.apikey`:: -An API key secret that varies by connector: - -`xpack.actions.preconfigured..secrets.credentialsJson`:: -For an <>, specifies the GCP service account credentials JSON file for authentication. -+ --- -* For a <>, specifies the OpenAI or Azure OpenAI API key for authentication. -* For an <>, specifies the {opsgenie} API authentication key for HTTP basic authentication. --- - -`xpack.actions.preconfigured..secrets.apiKeyId`:: -For an <>, specifies the authentication key ID for HTTP basic authentication. - -`xpack.actions.preconfigured..secrets.apiKeySecret`:: -For an <>, specifies the authentication key secret for HTTP basic authentication. - -`xpack.actions.preconfigured..secrets.apiToken`:: -For a <> or <>, specifies the API authentication token for HTTP basic authentication. - -`xpack.actions.preconfigured..secrets.clientSecret`:: -A client secret that varies by connector: -+ --- -* For an <>, specifies the client secret that you generated for your app in the app registration portal. It is required when the email service is `exchange_server`, which uses OAuth 2.0 client credentials authentication. -* For a <>, <>, or <>, specifies the client secret assigned to the OAuth application. It is required when `xpack.actions.preconfigured..config.isOAuth` is `true`. - -NOTE: The client secret must be URL-encoded. --- - -`xpack.actions.preconfigured..secrets.email`:: -An email address that varies by connector: -+ --- -* For a <>, specifies the account email for HTTP basic authentication. -* For a <>, specifies the email used to sign in to Tines. --- - -`xpack.actions.preconfigured..secrets.password`:: -A password secret that varies by connector: -+ --- - -* For an <>, <>, or <>, specifies a password that is required when `xpack.actions.preconfigured..config.hasAuth` is `true`. -* For a <>, <>, or <>, specifies a password that is required when `xpack.actions.preconfigured..config.isOAuth` is `false`. -* For an <>, specifies a password that is required when `xpack.actions.preconfigured..config.usesBasic` is `true`. --- - -`xpack.actions.preconfigured..secrets.privateKey`:: -For a <>, <>, or <>, specifies the RSA private key. It is required when `xpack.actions.preconfigured..config.isOAuth` is `true`. - -`xpack.actions.preconfigured..secrets.privateKeyPassword`:: -For a <>, <>, or <>, specifies the password for the RSA private key. - -`xpack.actions.preconfigured..secrets.routingKey`:: -For a <>, specifies the 32 character PagerDuty Integration Key for an integration on a service, also referred to as the routing key. - -`xpack.actions.preconfigured..secrets.secret`:: -For an <>, specifies the AWS secret for authentication. - -`xpack.actions.preconfigured..secrets.secretsUrl`:: -For an <> with URL authentication, specifies the request URL for the Elastic Alerts trigger in xMatters with the API key included in the URL. -It is used only when `xpack.actions.preconfigured..config.usesBasic` is `false`. -+ -NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure this hostname is added to the allowed hosts. - -`xpack.actions.preconfigured..secrets.token`:: -A token secret that varies by connector: -+ --- -* For a <>, specifies the D3 Security token. -* For a <>, specifies the Slack bot user OAuth token. -* For a <>, specifies the Tines API token. -* For a <>, specifies the secret of the webhook authentication header. --- - -`xpack.actions.preconfigured..secrets.user`:: -A user name secret that varies by connector: -+ --- -* For an <>, <>, or <>, specifies a user name that is required when `xpack.actions.preconfigured..config.hasAuth` is `true`. -* For an <>, specifies a user name that is required when `xpack.actions.preconfigured..config.usesBasic` is `true`. --- - -`xpack.actions.preconfigured..secrets.webhookUrl`:: -A URL that varies by connector: -+ --- -* For a <>, specifies the URL of the incoming webhook. -For a <>, specifies the Slack webhook URL. - -NOTE: If you are using the `xpack.actions.allowedHosts` setting, make sure the hostname is added to the allowed hosts. --- - -`xpack.actions.preconfigured..secrets.username`:: -For a <>, <>, or <>, specifies a user name that is required when `xpack.actions.preconfigured..config.isOAuth` is `false`. - -[float] -[[alert-settings]] -=== Alerting settings - -`xpack.alerting.cancelAlertsOnRuleTimeout` {ess-icon}:: -Specifies whether to skip writing alerts and scheduling actions if rule -processing was cancelled due to a timeout. Default: `true`. This setting can be -overridden by individual rule types. - -`xpack.alerting.rules.maxScheduledPerMinute`:: -Specifies the maximum number of rules to run per minute. Default: 10000 - -`xpack.alerting.rules.minimumScheduleInterval.value` {ess-icon}:: -Specifies the minimum schedule interval for rules. This minimum is applied to all rules created or updated after you set this value. -The time is formatted as a number and a time unit (`s`, `m`, `h`, or `d`). -For example, `20m`, `24h`, `7d`. This duration cannot exceed `1d`. Default: `1m`. - -`xpack.alerting.rules.minimumScheduleInterval.enforce` {ess-icon}:: -Specifies the behavior when a new or changed rule has a schedule interval less than the value defined in `xpack.alerting.rules.minimumScheduleInterval.value`. If `false`, rules with schedules less than the interval will be created but warnings will be logged. If `true`, rules with schedules less than the interval cannot be created. Default: `false`. - -`xpack.alerting.rules.run.actions.max` {ess-icon}:: -Specifies the maximum number of actions that a rule can generate each time detection checks run. - -`xpack.alerting.rules.run.alerts.max` {ess-icon}:: -Specifies the maximum number of alerts that a rule can generate each time detection checks run. Default: 1000. -+ -WARNING: The exact number of alerts your cluster can safely handle depends on your cluster configuration and workload, however setting a value higher than the default (`1000`) is not recommended or supported. Doing so could strain system resources and lead to performance issues, delays in alert processing, and potential disruptions during high alert activity periods. - -`xpack.alerting.rules.run.timeout` {ess-icon}:: -Specifies the default timeout for tasks associated with all types of rules. -The time is formatted as a number and a time unit (`ms`, `s`, `m`, `h`, `d`, `w`, `M`, or `Y`). -For example, `20m`, `24h`, `7d`, `1w`. Default: `5m`. - -`xpack.alerting.rules.run.ruleTypeOverrides` {ess-icon}:: -Overrides the configs under `xpack.alerting.rules.run` for the rule type with the given ID. List the rule identifier and its settings in an array of objects. For example: -+ -[source,yaml] --- -xpack.alerting.rules.run: - timeout: '5m' - ruleTypeOverrides: - - id: '.index-threshold' - timeout: '15m' --- - -`xpack.alerting.rules.run.actions.connectorTypeOverrides` {ess-icon}:: -Overrides the configs under `xpack.alerting.rules.run.actions` for the connector type with the given ID. List the connector type identifier and its settings in an array of objects. For example: -+ -[source,yaml] --- -xpack.alerting.rules.run: - actions: - max: 10 - connectorTypeOverrides: - - id: '.server-log' - max: 5 --- +include::../settings-gen/source/kibana-alert-action-settings.asciidoc[] diff --git a/docs/settings/reporting-settings.asciidoc b/docs/settings/reporting-settings.asciidoc index 5dda6bf81954f..27dbb2858e6f0 100644 --- a/docs/settings/reporting-settings.asciidoc +++ b/docs/settings/reporting-settings.asciidoc @@ -250,7 +250,7 @@ The maximum {byte-units}[byte size] of a CSV file before being truncated. This s exports from causing performance and storage issues. Can be specified as a number of bytes. Defaults to `250mb`. `xpack.reporting.csv.scroll.size`:: -Number of documents retrieved from {es} for each scroll iteration during a CSV export. Defaults to `500`. +Number of documents retrieved from {es} for each scroll iteration during a CSV export. The maximum value is `10000`. Defaults to `500`. [NOTE] ============ You may need to lower this setting if the default number of documents creates a strain on network resources. diff --git a/docs/setup/settings.asciidoc b/docs/setup/settings.asciidoc index aba0eb3a6bab5..14c691e17408b 100644 --- a/docs/setup/settings.asciidoc +++ b/docs/setup/settings.asciidoc @@ -653,7 +653,7 @@ Set this value to change the {kib} interface language. Valid locales are: `en`, `zh-CN`, `ja-JP`, `fr-FR`. *Default: `en`* include::{kibana-root}/docs/settings/ai-assistant-settings.asciidoc[] -include::{kibana-root}/docs/settings/alert-action-settings.asciidoc[leveloffset=+1] +include::{kibana-root}/docs/settings/alert-action-settings.asciidoc[] include::{kibana-root}/docs/settings/apm-settings.asciidoc[] include::{kibana-root}/docs/settings/banners-settings.asciidoc[] include::{kibana-root}/docs/settings/cases-settings.asciidoc[leveloffset=+1] diff --git a/examples/eso_model_version_example/server/plugin.ts b/examples/eso_model_version_example/server/plugin.ts index 76a0a22d6dcef..a5109acafaf9e 100644 --- a/examples/eso_model_version_example/server/plugin.ts +++ b/examples/eso_model_version_example/server/plugin.ts @@ -61,7 +61,10 @@ export interface EsoModelVersionExamplePluginsStart { encryptedSavedObjects: EncryptedSavedObjectsPluginStart; } -export class EsoModelVersionExample implements Plugin { +export class EsoModelVersionExample + implements + Plugin +{ public setup( core: CoreSetup, plugins: EsoModelVersionExamplePluginSetup 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/oas_docs/bundle.json b/oas_docs/bundle.json index 067c970ba3da0..8ed34159e403b 100644 --- a/oas_docs/bundle.json +++ b/oas_docs/bundle.json @@ -15715,6 +15715,9 @@ ], "type": "object" }, + "audit_unenrolled_reason": { + "type": "string" + }, "components": { "items": { "additionalProperties": false, @@ -17725,6 +17728,9 @@ ], "type": "object" }, + "audit_unenrolled_reason": { + "type": "string" + }, "components": { "items": { "additionalProperties": false, @@ -18202,6 +18208,9 @@ ], "type": "object" }, + "audit_unenrolled_reason": { + "type": "string" + }, "components": { "items": { "additionalProperties": false, diff --git a/oas_docs/bundle.serverless.json b/oas_docs/bundle.serverless.json index 4a0e3f14391b9..dc9deb7397601 100644 --- a/oas_docs/bundle.serverless.json +++ b/oas_docs/bundle.serverless.json @@ -15715,6 +15715,9 @@ ], "type": "object" }, + "audit_unenrolled_reason": { + "type": "string" + }, "components": { "items": { "additionalProperties": false, @@ -17725,6 +17728,9 @@ ], "type": "object" }, + "audit_unenrolled_reason": { + "type": "string" + }, "components": { "items": { "additionalProperties": false, @@ -18202,6 +18208,9 @@ ], "type": "object" }, + "audit_unenrolled_reason": { + "type": "string" + }, "components": { "items": { "additionalProperties": false, diff --git a/oas_docs/output/kibana.serverless.yaml b/oas_docs/output/kibana.serverless.yaml index 8af2c5522a740..b179232a3f8cf 100644 --- a/oas_docs/output/kibana.serverless.yaml +++ b/oas_docs/output/kibana.serverless.yaml @@ -16084,6 +16084,8 @@ paths: required: - id - version + audit_unenrolled_reason: + type: string components: items: additionalProperties: false @@ -16529,6 +16531,8 @@ paths: required: - id - version + audit_unenrolled_reason: + type: string components: items: additionalProperties: false @@ -16866,6 +16870,8 @@ paths: required: - id - version + audit_unenrolled_reason: + type: string components: items: additionalProperties: false diff --git a/oas_docs/output/kibana.yaml b/oas_docs/output/kibana.yaml index 692e97f6f7e63..834ae63c72dcd 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -18213,6 +18213,8 @@ paths: required: - id - version + audit_unenrolled_reason: + type: string components: items: additionalProperties: false @@ -18655,6 +18657,8 @@ paths: required: - id - version + audit_unenrolled_reason: + type: string components: items: additionalProperties: false @@ -18991,6 +18995,8 @@ paths: required: - id - version + audit_unenrolled_reason: + type: string components: items: additionalProperties: false diff --git a/package.json b/package.json index ac133a6136d77..ee47234524edd 100644 --- a/package.json +++ b/package.json @@ -197,16 +197,16 @@ "@kbn/avc-banner": "link:src/platform/packages/shared/kbn-avc-banner", "@kbn/banners-plugin": "link:x-pack/platform/plugins/private/banners", "@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/charts-theme": "link:packages/kbn-charts-theme", "@kbn/cloud": "link:src/platform/packages/shared/cloud", "@kbn/cloud-chat-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_chat", @@ -223,24 +223,24 @@ "@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", "@kbn/console-plugin": "link:src/platform/plugins/shared/console", - "@kbn/content-management-content-editor": "link:packages/content-management/content_editor", - "@kbn/content-management-content-insights-public": "link:packages/content-management/content_insights/content_insights_public", - "@kbn/content-management-content-insights-server": "link:packages/content-management/content_insights/content_insights_server", + "@kbn/content-management-content-editor": "link:src/platform/packages/shared/content-management/content_editor", + "@kbn/content-management-content-insights-public": "link:src/platform/packages/shared/content-management/content_insights/content_insights_public", + "@kbn/content-management-content-insights-server": "link:src/platform/packages/shared/content-management/content_insights/content_insights_server", "@kbn/content-management-examples-plugin": "link:examples/content_management_examples", - "@kbn/content-management-favorites-common": "link:packages/content-management/favorites/favorites_common", - "@kbn/content-management-favorites-public": "link:packages/content-management/favorites/favorites_public", - "@kbn/content-management-favorites-server": "link:packages/content-management/favorites/favorites_server", + "@kbn/content-management-favorites-common": "link:src/platform/packages/shared/content-management/favorites/favorites_common", + "@kbn/content-management-favorites-public": "link:src/platform/packages/shared/content-management/favorites/favorites_public", + "@kbn/content-management-favorites-server": "link:src/platform/packages/shared/content-management/favorites/favorites_server", "@kbn/content-management-plugin": "link:src/platform/plugins/shared/content_management", - "@kbn/content-management-tabbed-table-list-view": "link:packages/content-management/tabbed_table_list_view", - "@kbn/content-management-table-list-view": "link:packages/content-management/table_list_view", - "@kbn/content-management-table-list-view-common": "link:packages/content-management/table_list_view_common", - "@kbn/content-management-table-list-view-table": "link:packages/content-management/table_list_view_table", - "@kbn/content-management-user-profiles": "link:packages/content-management/user_profiles", + "@kbn/content-management-tabbed-table-list-view": "link:src/platform/packages/shared/content-management/tabbed_table_list_view", + "@kbn/content-management-table-list-view": "link:src/platform/packages/shared/content-management/table_list_view", + "@kbn/content-management-table-list-view-common": "link:src/platform/packages/shared/content-management/table_list_view_common", + "@kbn/content-management-table-list-view-table": "link:src/platform/packages/shared/content-management/table_list_view_table", + "@kbn/content-management-user-profiles": "link:src/platform/packages/shared/content-management/user_profiles", "@kbn/content-management-utils": "link:src/platform/packages/shared/kbn-content-management-utils", "@kbn/controls-example-plugin": "link:examples/controls_example", "@kbn/controls-plugin": "link:src/platform/plugins/shared/controls", @@ -264,15 +264,15 @@ "@kbn/core-capabilities-server": "link:src/core/packages/capabilities/server", "@kbn/core-capabilities-server-internal": "link:src/core/packages/capabilities/server-internal", "@kbn/core-chrome-browser": "link:packages/core/chrome/core-chrome-browser", - "@kbn/core-chrome-browser-internal": "link:packages/core/chrome/core-chrome-browser-internal", + "@kbn/core-chrome-browser-internal": "link:src/core/packages/chrome/browser-internal", "@kbn/core-config-server-internal": "link:src/core/packages/config/server-internal", - "@kbn/core-custom-branding-browser": "link:packages/core/custom-branding/core-custom-branding-browser", - "@kbn/core-custom-branding-browser-internal": "link:packages/core/custom-branding/core-custom-branding-browser-internal", - "@kbn/core-custom-branding-browser-mocks": "link:packages/core/custom-branding/core-custom-branding-browser-mocks", - "@kbn/core-custom-branding-common": "link:packages/core/custom-branding/core-custom-branding-common", - "@kbn/core-custom-branding-server": "link:packages/core/custom-branding/core-custom-branding-server", - "@kbn/core-custom-branding-server-internal": "link:packages/core/custom-branding/core-custom-branding-server-internal", - "@kbn/core-custom-branding-server-mocks": "link:packages/core/custom-branding/core-custom-branding-server-mocks", + "@kbn/core-custom-branding-browser": "link:src/core/packages/custom-branding/browser", + "@kbn/core-custom-branding-browser-internal": "link:src/core/packages/custom-branding/browser-internal", + "@kbn/core-custom-branding-browser-mocks": "link:src/core/packages/custom-branding/browser-mocks", + "@kbn/core-custom-branding-common": "link:src/core/packages/custom-branding/common", + "@kbn/core-custom-branding-server": "link:src/core/packages/custom-branding/server", + "@kbn/core-custom-branding-server-internal": "link:src/core/packages/custom-branding/server-internal", + "@kbn/core-custom-branding-server-mocks": "link:src/core/packages/custom-branding/server-mocks", "@kbn/core-deprecations-browser": "link:src/core/packages/deprecations/browser", "@kbn/core-deprecations-browser-internal": "link:src/core/packages/deprecations/browser-internal", "@kbn/core-deprecations-common": "link:src/core/packages/deprecations/common", @@ -395,11 +395,11 @@ "@kbn/core-test-helpers-test-utils": "link:src/core/packages/test-helpers/test-utils", "@kbn/core-theme-browser": "link:src/core/packages/theme/browser", "@kbn/core-theme-browser-internal": "link:src/core/packages/theme/browser-internal", - "@kbn/core-ui-settings-browser": "link:packages/core/ui-settings/core-ui-settings-browser", - "@kbn/core-ui-settings-browser-internal": "link:packages/core/ui-settings/core-ui-settings-browser-internal", - "@kbn/core-ui-settings-common": "link:packages/core/ui-settings/core-ui-settings-common", - "@kbn/core-ui-settings-server": "link:packages/core/ui-settings/core-ui-settings-server", - "@kbn/core-ui-settings-server-internal": "link:packages/core/ui-settings/core-ui-settings-server-internal", + "@kbn/core-ui-settings-browser": "link:src/core/packages/ui-settings/browser", + "@kbn/core-ui-settings-browser-internal": "link:src/core/packages/ui-settings/browser-internal", + "@kbn/core-ui-settings-common": "link:src/core/packages/ui-settings/common", + "@kbn/core-ui-settings-server": "link:src/core/packages/ui-settings/server", + "@kbn/core-ui-settings-server-internal": "link:src/core/packages/ui-settings/server-internal", "@kbn/core-usage-data-base-server-internal": "link:src/core/packages/usage-data/base-server-internal", "@kbn/core-usage-data-server": "link:src/core/packages/usage-data/server", "@kbn/core-usage-data-server-internal": "link:src/core/packages/usage-data/server-internal", @@ -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", @@ -544,12 +544,12 @@ "@kbn/functional-with-es-ssl-cases-test-plugin": "link:x-pack/test/functional_with_es_ssl/plugins/cases", "@kbn/gen-ai-streaming-response-example-plugin": "link:x-pack/examples/gen_ai_streaming_response_example", "@kbn/generate-console-definitions": "link:packages/kbn-generate-console-definitions", - "@kbn/generate-csv": "link:packages/kbn-generate-csv", + "@kbn/generate-csv": "link:src/platform/packages/private/kbn-generate-csv", "@kbn/global-search-bar-plugin": "link:x-pack/platform/plugins/private/global_search_bar", "@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", @@ -612,9 +612,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", @@ -629,7 +629,7 @@ "@kbn/logs-explorer-plugin": "link:x-pack/solutions/observability/plugins/logs_explorer", "@kbn/logs-shared-plugin": "link:x-pack/platform/plugins/shared/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", @@ -665,7 +665,6 @@ "@kbn/ml-in-memory-table": "link:x-pack/platform/packages/private/ml/in_memory_table", "@kbn/ml-is-defined": "link:x-pack/platform/packages/private/ml/is_defined", "@kbn/ml-is-populated-object": "link:x-pack/platform/packages/private/ml/is_populated_object", - "@kbn/ml-kibana-theme": "link:x-pack/platform/packages/private/ml/kibana_theme", "@kbn/ml-local-storage": "link:x-pack/platform/packages/private/ml/local_storage", "@kbn/ml-nested-property": "link:x-pack/platform/packages/private/ml/nested_property", "@kbn/ml-number-utils": "link:x-pack/platform/packages/private/ml/number_utils", @@ -690,8 +689,8 @@ "@kbn/newsfeed-test-plugin": "link:test/common/plugins/newsfeed", "@kbn/no-data-page-plugin": "link:src/platform/plugins/private/no_data_page", "@kbn/notifications-plugin": "link:x-pack/platform/plugins/shared/notifications", - "@kbn/object-versioning": "link:packages/kbn-object-versioning", - "@kbn/object-versioning-utils": "link:packages/kbn-object-versioning-utils", + "@kbn/object-versioning": "link:src/platform/packages/shared/kbn-object-versioning", + "@kbn/object-versioning-utils": "link:src/platform/packages/shared/kbn-object-versioning-utils", "@kbn/observability-ai-assistant-app-plugin": "link:x-pack/solutions/observability/plugins/observability_ai_assistant_app", "@kbn/observability-ai-assistant-management-plugin": "link:x-pack/solutions/observability/plugins/observability_ai_assistant_management", "@kbn/observability-ai-assistant-plugin": "link:x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant", @@ -732,7 +731,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", @@ -742,23 +741,23 @@ "@kbn/react-kibana-context-theme": "link:packages/react/kibana_context/theme", "@kbn/react-kibana-mount": "link:packages/react/kibana_mount", "@kbn/react-mute-legacy-root-warning": "link:packages/kbn-react-mute-legacy-root-warning", - "@kbn/recently-accessed": "link:packages/kbn-recently-accessed", + "@kbn/recently-accessed": "link:src/platform/packages/shared/kbn-recently-accessed", "@kbn/remote-clusters-plugin": "link:x-pack/platform/plugins/private/remote_clusters", "@kbn/rendering-plugin": "link:test/plugin_functional/plugins/rendering_plugin", "@kbn/repo-info": "link:src/platform/packages/shared/kbn-repo-info", "@kbn/repo-packages": "link:src/platform/packages/private/kbn-repo-packages", - "@kbn/reporting-common": "link:packages/kbn-reporting/common", - "@kbn/reporting-csv-share-panel": "link:packages/kbn-reporting/get_csv_panel_actions", - "@kbn/reporting-export-types-csv": "link:packages/kbn-reporting/export_types/csv", - "@kbn/reporting-export-types-csv-common": "link:packages/kbn-reporting/export_types/csv_common", - "@kbn/reporting-export-types-pdf": "link:packages/kbn-reporting/export_types/pdf", - "@kbn/reporting-export-types-pdf-common": "link:packages/kbn-reporting/export_types/pdf_common", - "@kbn/reporting-export-types-png": "link:packages/kbn-reporting/export_types/png", - "@kbn/reporting-export-types-png-common": "link:packages/kbn-reporting/export_types/png_common", - "@kbn/reporting-mocks-server": "link:packages/kbn-reporting/mocks_server", + "@kbn/reporting-common": "link:src/platform/packages/private/kbn-reporting/common", + "@kbn/reporting-csv-share-panel": "link:src/platform/packages/private/kbn-reporting/get_csv_panel_actions", + "@kbn/reporting-export-types-csv": "link:src/platform/packages/private/kbn-reporting/export_types/csv", + "@kbn/reporting-export-types-csv-common": "link:src/platform/packages/private/kbn-reporting/export_types/csv_common", + "@kbn/reporting-export-types-pdf": "link:src/platform/packages/private/kbn-reporting/export_types/pdf", + "@kbn/reporting-export-types-pdf-common": "link:src/platform/packages/private/kbn-reporting/export_types/pdf_common", + "@kbn/reporting-export-types-png": "link:src/platform/packages/private/kbn-reporting/export_types/png", + "@kbn/reporting-export-types-png-common": "link:src/platform/packages/private/kbn-reporting/export_types/png_common", + "@kbn/reporting-mocks-server": "link:src/platform/packages/private/kbn-reporting/mocks_server", "@kbn/reporting-plugin": "link:x-pack/platform/plugins/private/reporting", - "@kbn/reporting-public": "link:packages/kbn-reporting/public", - "@kbn/reporting-server": "link:packages/kbn-reporting/server", + "@kbn/reporting-public": "link:src/platform/packages/private/kbn-reporting/public", + "@kbn/reporting-server": "link:src/platform/packages/private/kbn-reporting/server", "@kbn/resizable-layout": "link:src/platform/packages/shared/kbn-resizable-layout", "@kbn/resizable-layout-examples-plugin": "link:examples/resizable_layout_examples", "@kbn/resolver-test-plugin": "link:x-pack/test/plugin_functional/plugins/resolver_test", @@ -790,14 +789,14 @@ "@kbn/saved-objects-plugin": "link:src/platform/plugins/shared/saved_objects", "@kbn/saved-objects-settings": "link:packages/kbn-saved-objects-settings", "@kbn/saved-objects-tagging-oss-plugin": "link:src/platform/plugins/shared/saved_objects_tagging_oss", - "@kbn/saved-objects-tagging-plugin": "link:x-pack/platform/plugins/private/saved_objects_tagging", + "@kbn/saved-objects-tagging-plugin": "link:x-pack/platform/plugins/shared/saved_objects_tagging", "@kbn/saved-search-component": "link:packages/kbn-saved-search-component", "@kbn/saved-search-plugin": "link:src/platform/plugins/shared/saved_search", "@kbn/screenshot-mode-example-plugin": "link:examples/screenshot_mode_example", "@kbn/screenshot-mode-plugin": "link:src/platform/plugins/shared/screenshot_mode", "@kbn/screenshotting-example-plugin": "link:x-pack/examples/screenshotting_example", "@kbn/screenshotting-plugin": "link:x-pack/platform/plugins/shared/screenshotting", - "@kbn/screenshotting-server": "link:packages/kbn-screenshotting-server", + "@kbn/screenshotting-server": "link:src/platform/packages/private/kbn-screenshotting-server", "@kbn/search-api-keys-components": "link:x-pack/solutions/search/packages/kbn-search-api-keys-components", "@kbn/search-api-keys-server": "link:x-pack/solutions/search/packages/kbn-search-api-keys-server", "@kbn/search-api-panels": "link:src/platform/packages/shared/kbn-search-api-panels", @@ -932,7 +931,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", @@ -964,18 +963,18 @@ "@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", "@kbn/try-in-console": "link:src/platform/packages/shared/kbn-try-in-console", "@kbn/typed-react-router-config": "link:src/platform/packages/shared/kbn-typed-react-router-config", - "@kbn/ui-actions-browser": "link:packages/kbn-ui-actions-browser", + "@kbn/ui-actions-browser": "link:src/platform/packages/shared/kbn-ui-actions-browser", "@kbn/ui-actions-enhanced-examples-plugin": "link:x-pack/examples/ui_actions_enhanced_examples", "@kbn/ui-actions-enhanced-plugin": "link:src/platform/plugins/shared/ui_actions_enhanced", "@kbn/ui-actions-examples-plugin": "link:examples/ui_action_examples", @@ -992,13 +991,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", @@ -1010,22 +1009,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", @@ -1118,8 +1117,8 @@ "css-box-model": "^1.2.1", "css.escape": "^1.5.1", "cypress-data-session": "^2.8.0", - "cytoscape": "^3.10.0", - "cytoscape-dagre": "^2.2.2", + "cytoscape": "^3.30.4", + "cytoscape-dagre": "^2.5.0", "d3": "3.5.17", "d3-array": "2.12.1", "d3-brush": "^3.0.0", @@ -1570,7 +1569,7 @@ "@types/cli-progress": "^3.11.5", "@types/color": "^3.0.3", "@types/cssstyle": "^2.2.4", - "@types/cytoscape": "^3.14.0", + "@types/cytoscape": "^3.21.8", "@types/d3": "^3.5.43", "@types/d3-array": "^2.12.1", "@types/d3-brush": "^3.0.0", @@ -1592,7 +1591,7 @@ "@types/fetch-mock": "^7.3.1", "@types/file-saver": "^2.0.0", "@types/flot": "^0.0.31", - "@types/fnv-plus": "^1.3.0", + "@types/fnv-plus": "^1.3.2", "@types/geojson": "^7946.0.10", "@types/getos": "^3.0.0", "@types/gulp": "^4.0.6", diff --git a/packages/core/chrome/core-chrome-browser-internal/jest.config.js b/packages/core/chrome/core-chrome-browser-internal/jest.config.js deleted file mode 100644 index 06a23a0ee8b55..0000000000000 --- a/packages/core/chrome/core-chrome-browser-internal/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/core/chrome/core-chrome-browser-internal'], -}; diff --git a/packages/core/custom-branding/core-custom-branding-browser-internal/jest.config.js b/packages/core/custom-branding/core-custom-branding-browser-internal/jest.config.js deleted file mode 100644 index 47b7978afceca..0000000000000 --- a/packages/core/custom-branding/core-custom-branding-browser-internal/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/core/custom-branding/core-custom-branding-browser-internal'], -}; diff --git a/packages/core/custom-branding/core-custom-branding-browser-mocks/jest.config.js b/packages/core/custom-branding/core-custom-branding-browser-mocks/jest.config.js deleted file mode 100644 index a4e6b5245af40..0000000000000 --- a/packages/core/custom-branding/core-custom-branding-browser-mocks/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/core/custom-branding/core-custom-branding-browser-mocks'], -}; diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/jest.config.js b/packages/core/ui-settings/core-ui-settings-browser-internal/jest.config.js deleted file mode 100644 index 0204543fb8a6c..0000000000000 --- a/packages/core/ui-settings/core-ui-settings-browser-internal/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/core/ui-settings/core-ui-settings-browser-internal'], -}; diff --git a/packages/core/ui-settings/core-ui-settings-browser/jest.config.js b/packages/core/ui-settings/core-ui-settings-browser/jest.config.js deleted file mode 100644 index dbe69a6ec8efc..0000000000000 --- a/packages/core/ui-settings/core-ui-settings-browser/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/core/ui-settings/core-ui-settings-browser'], -}; diff --git a/packages/core/ui-settings/core-ui-settings-common/jest.config.js b/packages/core/ui-settings/core-ui-settings-common/jest.config.js deleted file mode 100644 index df213211e2d11..0000000000000 --- a/packages/core/ui-settings/core-ui-settings-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', - rootDir: '../../../..', - roots: ['/packages/core/ui-settings/core-ui-settings-common'], -}; diff --git a/packages/kbn-check-mappings-update-cli/current_fields.json b/packages/kbn-check-mappings-update-cli/current_fields.json index 5f3ec0c8552b1..f14b11d4f6e36 100644 --- a/packages/kbn-check-mappings-update-cli/current_fields.json +++ b/packages/kbn-check-mappings-update-cli/current_fields.json @@ -3,7 +3,9 @@ "actionTypeId", "name" ], - "action_task_params": [], + "action_task_params": [ + "apiKeyId" + ], "ad_hoc_run_params": [ "apiKeyId", "createdAt", @@ -1104,6 +1106,7 @@ "enabled", "ownerId", "partition", + "priority", "retryAt", "runAt", "schedule", diff --git a/packages/kbn-check-mappings-update-cli/current_mappings.json b/packages/kbn-check-mappings-update-cli/current_mappings.json index 64dc6150ab4b0..22a0760ea4d8a 100644 --- a/packages/kbn-check-mappings-update-cli/current_mappings.json +++ b/packages/kbn-check-mappings-update-cli/current_mappings.json @@ -17,7 +17,11 @@ }, "action_task_params": { "dynamic": false, - "properties": {} + "properties": { + "apiKeyId": { + "type": "keyword" + } + } }, "ad_hoc_run_params": { "dynamic": false, @@ -3655,6 +3659,9 @@ "partition": { "type": "integer" }, + "priority": { + "type": "integer" + }, "retryAt": { "type": "date" }, diff --git a/packages/kbn-data-service/jest.config.js b/packages/kbn-data-service/jest.config.js deleted file mode 100644 index 741dc0dbc28d5..0000000000000 --- a/packages/kbn-data-service/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-data-service'], -}; 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-dom-drag-drop/jest.config.js b/packages/kbn-dom-drag-drop/jest.config.js deleted file mode 100644 index 854ac94b02a47..0000000000000 --- a/packages/kbn-dom-drag-drop/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-dom-drag-drop'], -}; diff --git a/packages/kbn-es/src/utils/build_snapshot.ts b/packages/kbn-es/src/utils/build_snapshot.ts index c6ba74c976f71..75b165e490807 100644 --- a/packages/kbn-es/src/utils/build_snapshot.ts +++ b/packages/kbn-es/src/utils/build_snapshot.ts @@ -67,7 +67,12 @@ export async function buildSnapshot({ export function archiveForPlatform(platform: NodeJS.Platform, license: string) { switch (platform) { case 'darwin': - return { format: 'tar', ext: 'tar.gz', task: 'darwin-tar', platform: 'darwin' }; + return { + format: 'tar', + ext: 'tar.gz', + task: os.arch() === 'arm64' ? 'darwin-aarch64-tar' : 'darwin-tar', + platform: 'darwin', + }; case 'win32': return { format: 'zip', ext: 'zip', task: 'windows-zip', platform: 'windows' }; case 'linux': 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-interpreter/jest.config.js b/packages/kbn-interpreter/jest.config.js deleted file mode 100644 index 38ae40dedaa75..0000000000000 --- a/packages/kbn-interpreter/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-interpreter'], -}; 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-managed-content-badge/jest.config.js b/packages/kbn-managed-content-badge/jest.config.js deleted file mode 100644 index 59f8560574997..0000000000000 --- a/packages/kbn-managed-content-badge/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: ['/packages/kbn-managed-content-badge'], -}; diff --git a/packages/kbn-object-versioning-utils/jest.config.js b/packages/kbn-object-versioning-utils/jest.config.js deleted file mode 100644 index 023d501f8398f..0000000000000 --- a/packages/kbn-object-versioning-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-object-versioning-utils'], -}; diff --git a/packages/kbn-object-versioning/jest.config.js b/packages/kbn-object-versioning/jest.config.js deleted file mode 100644 index 0225ef1c7d558..0000000000000 --- a/packages/kbn-object-versioning/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-object-versioning'], -}; diff --git a/packages/kbn-recently-accessed/jest.config.js b/packages/kbn-recently-accessed/jest.config.js deleted file mode 100644 index c0627e470b95e..0000000000000 --- a/packages/kbn-recently-accessed/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-recently-accessed'], -}; diff --git a/packages/kbn-relocate/constants.ts b/packages/kbn-relocate/constants.ts index 8c3bf347de4cb..b96db93cc4606 100644 --- a/packages/kbn-relocate/constants.ts +++ b/packages/kbn-relocate/constants.ts @@ -13,26 +13,7 @@ export const BASE_FOLDER = process.cwd() + '/'; export const BASE_FOLDER_DEPTH = process.cwd().split('/').length; export const KIBANA_FOLDER = process.cwd().split('/').pop()!; export const EXCLUDED_MODULES = ['@kbn/core']; -export const TARGET_FOLDERS: Record = { - 'platform:private': [ - 'src/platform/packages/private/', - 'src/platform/plugins/private/', - 'x-pack/platform/packages/private/', - 'x-pack/platform/plugins/private/', - ], - 'platform:shared': [ - 'src/platform/packages/shared/', - 'src/platform/plugins/shared/', - 'x-pack/platform/packages/shared/', - 'x-pack/platform/plugins/shared/', - ], - 'observability:private': [ - 'x-pack/solutions/observability/packages/', - 'x-pack/solutions/observability/plugins/', - ], - 'search:private': ['x-pack/solutions/search/packages/', 'x-pack/solutions/search/plugins/'], - 'security:private': ['x-pack/solutions/security/packages/', 'x-pack/solutions/security/plugins/'], -}; + export const EXTENSIONS = [ 'eslintignore', 'gitignore', diff --git a/packages/kbn-relocate/index.ts b/packages/kbn-relocate/index.ts index 12f89a29275e6..e2ffdb18adc37 100644 --- a/packages/kbn-relocate/index.ts +++ b/packages/kbn-relocate/index.ts @@ -9,6 +9,7 @@ import { run } from '@kbn/dev-cli-runner'; import { findAndRelocateModules, findAndMoveModule } from './relocate'; +import { listModules } from './list'; const toStringArray = (flag: string | boolean | string[] | undefined): string[] => { if (typeof flag === 'string') { @@ -44,6 +45,8 @@ export const runKbnRelocateCli = () => { if (typeof flags.moveOnly === 'string' && flags.moveOnly.length > 0) { log.info('When using --moveOnly flag, the rest of flags are ignored.'); await findAndMoveModule(flags.moveOnly, log); + } else if (typeof flags.list === 'string' && flags.list.length > 0) { + await listModules(flags.list, log); } else { const { pr, team, path, include, exclude, baseBranch } = flags; await findAndRelocateModules( @@ -64,7 +67,7 @@ export const runKbnRelocateCli = () => { defaultLevel: 'info', }, flags: { - string: ['pr', 'team', 'path', 'include', 'exclude', 'baseBranch', 'moveOnly'], + string: ['pr', 'team', 'path', 'include', 'exclude', 'baseBranch', 'moveOnly', 'list'], help: ` Usage: node scripts/relocate [options] @@ -75,6 +78,9 @@ export const runKbnRelocateCli = () => { --include Include the specified module in the relocation (can specify multiple modules) --exclude Exclude the specified module from the relocation (can use multiple times) --baseBranch Use a branch different than 'main' (e.g. "8.x") + --list "all" List all Kibana modules + --list "uncategorised" List Kibana modules that are lacking 'group' or 'visibility' information + --list "incorrect" List Kibana modules that are not in the correct folder (aka folder does not match group/visibility in the manifest) E.g. relocate all modules owned by Core team and also modules owned by Operations team, excluding 'foo-module-id'. Force push into PR 239847: node scripts/relocate --pr 239847 --team @elastic/kibana-core --team @elastic/kibana-operations --exclude @kbn/foo-module-id diff --git a/packages/kbn-relocate/list.ts b/packages/kbn-relocate/list.ts new file mode 100644 index 0000000000000..ed1c2072429b5 --- /dev/null +++ b/packages/kbn-relocate/list.ts @@ -0,0 +1,140 @@ +/* + * 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". + */ + +import { sortBy } from 'lodash'; +import type { ToolingLog } from '@kbn/tooling-log'; +import { getPackages } from '@kbn/repo-packages'; +import { REPO_ROOT } from '@kbn/repo-info'; +import type { Package } from './types'; +import { BASE_FOLDER, EXCLUDED_MODULES, KIBANA_FOLDER } from './constants'; +import { calculateModuleTargetFolder, isInTargetFolder } from './utils/relocate'; +import { createModuleTable } from './utils/logging'; + +export const listModules = async (listFlag: string, log: ToolingLog) => { + // get all modules + const modules = getPackages(REPO_ROOT); + const devOnly: Package[] = []; + const test: Package[] = []; + const examples: Package[] = []; + const uncategorised: Package[] = []; + const incorrect: Package[] = []; + const correct: Package[] = []; + + // find modules selected by user filters + sortBy(modules, 'directory') + // explicit exclusions + .filter(({ id }) => !EXCLUDED_MODULES.includes(id)) + .forEach((module) => { + if (module.isDevOnly()) { + devOnly.push(module); + return; + } + + if ( + module.directory.includes(`/${KIBANA_FOLDER}/test/`) || + module.directory.includes(`/${KIBANA_FOLDER}/x-pack/test/`) + ) { + test.push(module); + return; + } + + if ( + module.directory.includes(`/${KIBANA_FOLDER}/examples/`) || + module.directory.includes(`/${KIBANA_FOLDER}/x-pack/examples/`) + ) { + examples.push(module); + return; + } + + if (!module.group || module.group === 'common' || !module.visibility) { + // log.warning(`The module ${module.id} does not specify 'group' or 'visibility'. Skipping`); + uncategorised.push(module); + return; + } + + if (!isInTargetFolder(module)) { + incorrect.push(module); + // log.warning(dedent`The module ${module.id} is not in the correct folder: + // - ${module.directory} + // - ${calculateModuleTargetFolder(module)}`); + + return; + } + correct.push(module); + }); + + if (listFlag === 'all') { + log.info( + createModuleTable( + [ + [`${correct.length} modules are placed in a 'sustainable' folder`], + [`${devOnly.length} modules are devOnly: true (use --list devOnly)`], + [`${test.length} modules are in /test/ and /x-pack/test/ folders (use --list test)`], + [ + `${examples.length} modules are in /examples/ and /x-pack/examples/ folders (use --list examples)`, + ], + [`${incorrect.length} modules are not in the correct folder (use --list incorrect)`], + [`${uncategorised.length} modules are not categorised (use --list uncategorised)`], + ], + ['Summary'] + ).toString() + ); + } else if (listFlag === 'devOnly') { + log.info( + createModuleTable( + devOnly.map((module) => [module.id, module.directory.replace(BASE_FOLDER, '')]), + ['Id', 'Current folder'] + ).toString() + ); + log.info(`TOTAL: ${devOnly.length} modules`); + } else if (listFlag === 'test') { + log.info( + createModuleTable( + test.map((module) => [module.id, module.directory.replace(BASE_FOLDER, '')]), + ['Id', 'Current folder'] + ).toString() + ); + log.info(`TOTAL: ${test.length} modules`); + } else if (listFlag === 'examples') { + log.info( + createModuleTable( + examples.map((module) => [module.id, module.directory.replace(BASE_FOLDER, '')]), + ['Id', 'Current folder'] + ).toString() + ); + log.info(`TOTAL: ${examples.length} modules`); + } else if (listFlag === 'incorrect') { + log.info( + createModuleTable( + sortBy( + incorrect.map((module) => [ + module.id, + module.manifest.owner.join(', '), + module.directory.replace(BASE_FOLDER, ''), + calculateModuleTargetFolder(module).replace(BASE_FOLDER, ''), + ]), + ['1', '0'] + ), + ['Id', 'Team', 'Current folder', 'Target folder'] + ).toString() + ); + log.info(`TOTAL: ${incorrect.length} modules`); + } else if (listFlag === 'uncategorised') { + log.info( + createModuleTable( + uncategorised.map((module) => [ + module.id, + `${module.directory.replace(BASE_FOLDER, '')}/kibana.jsonc`, + ]), + ['Id', 'Manifest'] + ).toString() + ); + log.info(`TOTAL: ${uncategorised.length} modules`); + } +}; diff --git a/packages/kbn-relocate/relocate.ts b/packages/kbn-relocate/relocate.ts index f9ead5f815736..d377ffe35dbdf 100644 --- a/packages/kbn-relocate/relocate.ts +++ b/packages/kbn-relocate/relocate.ts @@ -11,7 +11,7 @@ import { join } from 'path'; import { existsSync } from 'fs'; import { rename, mkdir, rm } from 'fs/promises'; import inquirer from 'inquirer'; -import { orderBy } from 'lodash'; +import { sortBy } from 'lodash'; import type { ToolingLog } from '@kbn/tooling-log'; import { getPackages } from '@kbn/repo-packages'; import { REPO_ROOT } from '@kbn/repo-info'; @@ -104,8 +104,8 @@ const findModules = ({ teams, paths, included, excluded }: FindModulesParams, lo const modules = getPackages(REPO_ROOT); // find modules selected by user filters - return orderBy( - modules + return ( + sortBy(modules, ['directory']) // exclude devOnly modules (they will remain in /packages) .filter(({ manifest }) => !manifest.devOnly) // explicit exclusions @@ -127,8 +127,28 @@ const findModules = ({ teams, paths, included, excluded }: FindModulesParams, lo ) // the module is not explicitly excluded .filter(({ id }) => !excluded.includes(id)) + // exclude modules that don't define a group/visibility + .filter((module) => { + if (!module.group || module.group === 'common' || !module.visibility) { + log.info(`The module ${module.id} does not specify 'group' or 'visibility'. Skipping`); + return false; + } else { + return true; + } + }) // exclude modules that are in the correct folder - .filter((module) => !isInTargetFolder(module, log)) + .filter((module) => { + if (isInTargetFolder(module)) { + log.info( + `The module ${ + module.id + } is already in the correct folder: '${calculateModuleTargetFolder(module)}'. Skipping` + ); + return false; + } else { + return true; + } + }) ); }; @@ -159,27 +179,6 @@ export const findAndRelocateModules = async (params: RelocateModulesParams, log: return; } - const toMove = findModules(findParams, log); - if (!toMove.length) { - log.info( - `No packages match the specified filters. Please tune your '--path' and/or '--team' and/or '--include' flags` - ); - return; - } - - relocatePlan(toMove, log); - - const resConfirmPlan = await inquirer.prompt({ - type: 'confirm', - name: 'confirmPlan', - message: `The script will RESET CHANGES in this repository, relocate the modules above and update references. Proceed?`, - }); - - if (!resConfirmPlan.confirmPlan) { - log.info('Aborting'); - return; - } - if (prNumber) { pr = await findPr(prNumber); @@ -187,14 +186,27 @@ export const findAndRelocateModules = async (params: RelocateModulesParams, log: const resOverride = await inquirer.prompt({ type: 'confirm', name: 'overrideManualCommits', - message: 'Detected manual commits in the PR, do you want to override them?', + message: + 'Manual commits detected in the PR. The script will try to cherry-pick them, but it might require manual intervention to resolve conflicts. Continue?', }); if (!resOverride.overrideManualCommits) { + log.info('Aborting'); return; } } } + const resConfirmReset = await inquirer.prompt({ + type: 'confirm', + name: 'confirmReset', + message: `The script will RESET CHANGES in this repository. Proceed?`, + }); + + if (!resConfirmReset.confirmReset) { + log.info('Aborting'); + return; + } + // start with a clean repo await safeExec(`git restore --staged .`); await safeExec(`git restore .`); @@ -215,20 +227,40 @@ export const findAndRelocateModules = async (params: RelocateModulesParams, log: await checkoutBranch(NEW_BRANCH); } - // push changes in the branch + await safeExec(`yarn kbn bootstrap`); await inquirer.prompt({ type: 'confirm', name: 'readyRelocate', message: `Ready to relocate! You can commit changes previous to the relocation at this point. Confirm to proceed with the relocation`, }); + const toMove = findModules(findParams, log); + if (!toMove.length) { + log.info( + `No packages match the specified filters. Please tune your '--path' and/or '--team' and/or '--include' flags` + ); + return; + } + + relocatePlan(toMove, log); + + const resConfirmPlan = await inquirer.prompt({ + type: 'confirm', + name: 'confirmPlan', + message: `The script will relocate the modules above and update references. Proceed?`, + }); + + if (!resConfirmPlan.confirmPlan) { + log.info('Aborting'); + return; + } + // relocate modules - await safeExec(`yarn kbn bootstrap`); const movedCount = await relocateModules(toMove, log); if (movedCount === 0) { log.warning( - 'No modules were relocated, aborting operation to prevent force-pushing empty changes (this would close the existing PR!)' + 'No modules were relocated, aborting operation to prevent force-pushing empty changes' ); return; } diff --git a/packages/kbn-relocate/utils/logging.ts b/packages/kbn-relocate/utils/logging.ts index bd8f8fde42ae0..ca9e994797526 100644 --- a/packages/kbn-relocate/utils/logging.ts +++ b/packages/kbn-relocate/utils/logging.ts @@ -28,7 +28,7 @@ export const createModuleTable = ( ) => { const table = new Table({ head, - colAligns: ['left', 'left'], + colAligns: head.map(() => 'left'), style: { compact: true, 'padding-left': 2, diff --git a/packages/kbn-relocate/utils/relocate.ts b/packages/kbn-relocate/utils/relocate.ts index 1e833b8d2539a..770a1993eea68 100644 --- a/packages/kbn-relocate/utils/relocate.ts +++ b/packages/kbn-relocate/utils/relocate.ts @@ -19,7 +19,6 @@ import { KIBANA_FOLDER, NO_GREP, SCRIPT_ERRORS, - TARGET_FOLDERS, UPDATED_REFERENCES, UPDATED_RELATIVE_PATHS, } from '../constants'; @@ -38,13 +37,20 @@ export const stripFirstChunk = (path: string): string => { export const calculateModuleTargetFolder = (module: Package): string => { const group = module.manifest.group!; const isPlugin = module.manifest.type === 'plugin'; - const fullPath = join(BASE_FOLDER, module.directory); + const fullPath = module.directory.startsWith(BASE_FOLDER) + ? module.directory + : join(BASE_FOLDER, module.directory); + + let moduleDelimiter: string; if (!fullPath.includes('/plugins/') && !fullPath.includes('/packages/')) { throw new Error( `The module ${module.id} is not located under a '*/plugins/*' or '*/packages/*' folder` ); + } else if (fullPath.includes('/plugins/') && fullPath.includes('/packages/')) { + moduleDelimiter = isPlugin ? '/plugins/' : '/packages/'; + } else { + moduleDelimiter = fullPath.includes('/plugins/') ? '/plugins/' : '/packages/'; } - let moduleDelimiter = fullPath.includes('/plugins/') ? '/plugins/' : '/packages/'; // for platform modules that are in a sustainable folder, strip the /private/ or /shared/ part too if (module.directory.includes(`${moduleDelimiter}private/`)) { @@ -60,7 +66,10 @@ export const calculateModuleTargetFolder = (module: Package): string => { let path: string; if (group === 'platform') { - if (fullPath.includes(`/${KIBANA_FOLDER}/packages/core/`)) { + if ( + fullPath.includes(`/${KIBANA_FOLDER}/packages/core/`) || + fullPath.includes(`/${KIBANA_FOLDER}/src/core/packages`) + ) { // packages/core/* => src/core/packages/* path = join(BASE_FOLDER, 'src', 'core', 'packages', moduleFolder); } else { @@ -91,24 +100,8 @@ export const calculateModuleTargetFolder = (module: Package): string => { return applyTransforms(module, path); }; -export const isInTargetFolder = (module: Package, log: ToolingLog): boolean => { - if (!module.group || module.group === 'common' || !module.visibility) { - log.warning(`The module '${module.id}' is missing the group/visibility information`); - return false; - } - - const baseTargetFolders = TARGET_FOLDERS[`${module.group}:${module.visibility}`]; - const baseTargetFolder = baseTargetFolders.find((candidate) => { - return module.directory.includes(candidate); - }); - if (baseTargetFolder) { - log.info( - `The module ${module.id} is already in the correct folder: '${baseTargetFolder}'. Skipping` - ); - return true; - } - - return false; +export const isInTargetFolder = (module: Package): boolean => { + return module.directory.startsWith(calculateModuleTargetFolder(module)); }; export const replaceReferences = async (module: Package, destination: string, log: ToolingLog) => { @@ -184,7 +177,7 @@ const replaceReferencesInternal = async ( const backFwdSrc = relativeSource.replaceAll('/', `\\\\\\/`); const backFwdDst = relativeDestination.replaceAll('/', `\\\\\\/`); await safeExec( - `sed -i '' -E '/${src}[\-_a-zA-Z0-9]/! s/${backFwdSrc}/${backFwdDst}/g' .buildkite/scripts/pipelines/pull_request/pipeline.ts`, + `sed -i '' -E '/${backFwdSrc}[\-_a-zA-Z0-9]/! s/${backFwdSrc}/${backFwdDst}/g' .buildkite/scripts/pipelines/pull_request/pipeline.ts`, false ); }; 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-reporting/common/jest.config.js b/packages/kbn-reporting/common/jest.config.js deleted file mode 100644 index 7a55082a390fc..0000000000000 --- a/packages/kbn-reporting/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', - rootDir: '../../..', - roots: ['/packages/kbn-reporting/common'], -}; diff --git a/packages/kbn-reporting/export_types/csv/jest.config.js b/packages/kbn-reporting/export_types/csv/jest.config.js deleted file mode 100644 index ebd36ffbc50dc..0000000000000 --- a/packages/kbn-reporting/export_types/csv/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: ['/packages/kbn-reporting/export_types/csv'], -}; diff --git a/packages/kbn-reporting/export_types/csv_common/jest.config.js b/packages/kbn-reporting/export_types/csv_common/jest.config.js deleted file mode 100644 index f827fdd6c48a9..0000000000000 --- a/packages/kbn-reporting/export_types/csv_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', - rootDir: '../../../..', - roots: ['/packages/kbn-reporting/export_types/csv_common'], -}; diff --git a/packages/kbn-reporting/export_types/pdf/jest.config.js b/packages/kbn-reporting/export_types/pdf/jest.config.js deleted file mode 100644 index 50c6067c4b493..0000000000000 --- a/packages/kbn-reporting/export_types/pdf/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: ['/packages/kbn-reporting/export_types/pdf'], -}; diff --git a/packages/kbn-reporting/export_types/png/jest.config.js b/packages/kbn-reporting/export_types/png/jest.config.js deleted file mode 100644 index 2eb1c8df3fc2b..0000000000000 --- a/packages/kbn-reporting/export_types/png/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: ['/packages/kbn-reporting/export_types/png'], -}; diff --git a/packages/kbn-reporting/get_csv_panel_actions/jest.config.js b/packages/kbn-reporting/get_csv_panel_actions/jest.config.js deleted file mode 100644 index 9e0509cddb5a8..0000000000000 --- a/packages/kbn-reporting/get_csv_panel_actions/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-reporting/get_csv_panel_actions'], -}; diff --git a/packages/kbn-reporting/mocks_server/jest.config.js b/packages/kbn-reporting/mocks_server/jest.config.js deleted file mode 100644 index c21808c182dd4..0000000000000 --- a/packages/kbn-reporting/mocks_server/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: ['/packages/kbn-reporting/mocks_server'], -}; diff --git a/packages/kbn-reporting/mocks_server/tsconfig.json b/packages/kbn-reporting/mocks_server/tsconfig.json deleted file mode 100644 index ef36887c668e2..0000000000000 --- a/packages/kbn-reporting/mocks_server/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "../../../tsconfig.base.json", - "compilerOptions": { - "outDir": "target/types", - "types": [ - "jest", - "node" - ] - }, - "include": [ - "**/*.ts", - ], - "exclude": [ - "target/**/*" - ], - "kbn_references": [ - "@kbn/reporting-server", - ] -} diff --git a/packages/kbn-reporting/public/jest.config.js b/packages/kbn-reporting/public/jest.config.js deleted file mode 100644 index 25b8936e94561..0000000000000 --- a/packages/kbn-reporting/public/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-reporting/public'], -}; diff --git a/packages/kbn-reporting/server/jest.config.js b/packages/kbn-reporting/server/jest.config.js deleted file mode 100644 index 18c8e9e89e4c0..0000000000000 --- a/packages/kbn-reporting/server/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-reporting/server'], -}; diff --git a/packages/kbn-screenshotting-server/jest.config.js b/packages/kbn-screenshotting-server/jest.config.js deleted file mode 100644 index d1ef8a4351f20..0000000000000 --- a/packages/kbn-screenshotting-server/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: ['/packages/kbn-screenshotting-server'], -}; 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-telemetry-tools/src/tools/tasks/write_to_file_task.ts b/packages/kbn-telemetry-tools/src/tools/tasks/write_to_file_task.ts index e57b8efb470ae..d799c2cca6b11 100644 --- a/packages/kbn-telemetry-tools/src/tools/tasks/write_to_file_task.ts +++ b/packages/kbn-telemetry-tools/src/tools/tasks/write_to_file_task.ts @@ -15,7 +15,7 @@ export function writeToFileTask({ roots }: TaskContext) { return roots.map((root) => ({ task: async () => { const fullPath = path.resolve(process.cwd(), root.config.output); - if (root.mapping && Object.keys(root.mapping.properties).length > 0) { + if (root.mapping) { // Sort first-level properties alphabetically root.mapping.properties = Object.fromEntries( Object.entries(root.mapping.properties).sort(([a], [b]) => { 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-ui-actions-browser/jest.config.js b/packages/kbn-ui-actions-browser/jest.config.js deleted file mode 100644 index fc4592b7f901b..0000000000000 --- a/packages/kbn-ui-actions-browser/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-ui-actions-browser'], -}; 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/packages/shared-ux/chrome/solution_navigation.mdx b/packages/shared-ux/chrome/solution_navigation.mdx index c4d0743c59800..e7e2e883df9ba 100644 --- a/packages/shared-ux/chrome/solution_navigation.mdx +++ b/packages/shared-ux/chrome/solution_navigation.mdx @@ -182,7 +182,7 @@ navigation.addSolutionNavigation({ #### Navigation tree API > **Warning** -> The API reference is manually maintained and might be out of date. Please refer [to the source](https://github.com/elastic/kibana/blob/main/packages/core/chrome/core-chrome-browser/src/project_navigation.ts) for the most up-to-date information, until we have automated the API reference. +> The API reference is manually maintained and might be out of date. Please refer [to the source](https://github.com/elastic/kibana/blob/main/src/core/packages/chrome/browser/src/project_navigation.ts) for the most up-to-date information, until we have automated the API reference. ##### `NavigationTreeDefinition` diff --git a/packages/core/chrome/core-chrome-browser-internal/README.md b/src/core/packages/chrome/browser-internal/README.md similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/README.md rename to src/core/packages/chrome/browser-internal/README.md diff --git a/packages/core/chrome/core-chrome-browser-internal/index.ts b/src/core/packages/chrome/browser-internal/index.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/index.ts rename to src/core/packages/chrome/browser-internal/index.ts diff --git a/packages/content-management/user_profiles/jest.config.js b/src/core/packages/chrome/browser-internal/jest.config.js similarity index 84% rename from packages/content-management/user_profiles/jest.config.js rename to src/core/packages/chrome/browser-internal/jest.config.js index 0b318c66752ff..308662ce4bc16 100644 --- a/packages/content-management/user_profiles/jest.config.js +++ b/src/core/packages/chrome/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/content-management/user_profiles'], + rootDir: '../../../../..', + roots: ['/src/core/packages/chrome/browser-internal'], }; diff --git a/packages/core/chrome/core-chrome-browser-internal/kibana.jsonc b/src/core/packages/chrome/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/kibana.jsonc rename to src/core/packages/chrome/browser-internal/kibana.jsonc diff --git a/packages/core/chrome/core-chrome-browser-internal/package.json b/src/core/packages/chrome/browser-internal/package.json similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/package.json rename to src/core/packages/chrome/browser-internal/package.json diff --git a/packages/core/chrome/core-chrome-browser-internal/src/chrome_service.test.mocks.ts b/src/core/packages/chrome/browser-internal/src/chrome_service.test.mocks.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/chrome_service.test.mocks.ts rename to src/core/packages/chrome/browser-internal/src/chrome_service.test.mocks.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/chrome_service.test.tsx b/src/core/packages/chrome/browser-internal/src/chrome_service.test.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/chrome_service.test.tsx rename to src/core/packages/chrome/browser-internal/src/chrome_service.test.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/chrome_service.tsx b/src/core/packages/chrome/browser-internal/src/chrome_service.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/chrome_service.tsx rename to src/core/packages/chrome/browser-internal/src/chrome_service.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/doc_title/doc_title_service.test.ts b/src/core/packages/chrome/browser-internal/src/doc_title/doc_title_service.test.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/doc_title/doc_title_service.test.ts rename to src/core/packages/chrome/browser-internal/src/doc_title/doc_title_service.test.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/doc_title/doc_title_service.ts b/src/core/packages/chrome/browser-internal/src/doc_title/doc_title_service.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/doc_title/doc_title_service.ts rename to src/core/packages/chrome/browser-internal/src/doc_title/doc_title_service.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/doc_title/index.ts b/src/core/packages/chrome/browser-internal/src/doc_title/index.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/doc_title/index.ts rename to src/core/packages/chrome/browser-internal/src/doc_title/index.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/handle_system_colormode_change.test.ts b/src/core/packages/chrome/browser-internal/src/handle_system_colormode_change.test.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/handle_system_colormode_change.test.ts rename to src/core/packages/chrome/browser-internal/src/handle_system_colormode_change.test.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/handle_system_colormode_change.tsx b/src/core/packages/chrome/browser-internal/src/handle_system_colormode_change.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/handle_system_colormode_change.tsx rename to src/core/packages/chrome/browser-internal/src/handle_system_colormode_change.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/index.ts b/src/core/packages/chrome/browser-internal/src/index.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/index.ts rename to src/core/packages/chrome/browser-internal/src/index.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/nav_controls/index.ts b/src/core/packages/chrome/browser-internal/src/nav_controls/index.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/nav_controls/index.ts rename to src/core/packages/chrome/browser-internal/src/nav_controls/index.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/nav_controls/nav_controls_service.test.ts b/src/core/packages/chrome/browser-internal/src/nav_controls/nav_controls_service.test.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/nav_controls/nav_controls_service.test.ts rename to src/core/packages/chrome/browser-internal/src/nav_controls/nav_controls_service.test.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/nav_controls/nav_controls_service.ts b/src/core/packages/chrome/browser-internal/src/nav_controls/nav_controls_service.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/nav_controls/nav_controls_service.ts rename to src/core/packages/chrome/browser-internal/src/nav_controls/nav_controls_service.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/nav_links/index.ts b/src/core/packages/chrome/browser-internal/src/nav_links/index.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/nav_links/index.ts rename to src/core/packages/chrome/browser-internal/src/nav_links/index.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/nav_links/nav_link.ts b/src/core/packages/chrome/browser-internal/src/nav_links/nav_link.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/nav_links/nav_link.ts rename to src/core/packages/chrome/browser-internal/src/nav_links/nav_link.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/nav_links/nav_links_service.test.ts b/src/core/packages/chrome/browser-internal/src/nav_links/nav_links_service.test.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/nav_links/nav_links_service.test.ts rename to src/core/packages/chrome/browser-internal/src/nav_links/nav_links_service.test.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/nav_links/nav_links_service.ts b/src/core/packages/chrome/browser-internal/src/nav_links/nav_links_service.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/nav_links/nav_links_service.ts rename to src/core/packages/chrome/browser-internal/src/nav_links/nav_links_service.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/nav_links/to_nav_link.test.ts b/src/core/packages/chrome/browser-internal/src/nav_links/to_nav_link.test.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/nav_links/to_nav_link.test.ts rename to src/core/packages/chrome/browser-internal/src/nav_links/to_nav_link.test.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/nav_links/to_nav_link.ts b/src/core/packages/chrome/browser-internal/src/nav_links/to_nav_link.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/nav_links/to_nav_link.ts rename to src/core/packages/chrome/browser-internal/src/nav_links/to_nav_link.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/project_navigation/breadcrumbs.tsx b/src/core/packages/chrome/browser-internal/src/project_navigation/breadcrumbs.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/project_navigation/breadcrumbs.tsx rename to src/core/packages/chrome/browser-internal/src/project_navigation/breadcrumbs.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/project_navigation/cloud_links.tsx b/src/core/packages/chrome/browser-internal/src/project_navigation/cloud_links.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/project_navigation/cloud_links.tsx rename to src/core/packages/chrome/browser-internal/src/project_navigation/cloud_links.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/project_navigation/index.ts b/src/core/packages/chrome/browser-internal/src/project_navigation/index.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/project_navigation/index.ts rename to src/core/packages/chrome/browser-internal/src/project_navigation/index.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/project_navigation/navigation_presets.ts b/src/core/packages/chrome/browser-internal/src/project_navigation/navigation_presets.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/project_navigation/navigation_presets.ts rename to src/core/packages/chrome/browser-internal/src/project_navigation/navigation_presets.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/project_navigation/project_navigation_service.test.ts b/src/core/packages/chrome/browser-internal/src/project_navigation/project_navigation_service.test.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/project_navigation/project_navigation_service.test.ts rename to src/core/packages/chrome/browser-internal/src/project_navigation/project_navigation_service.test.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/project_navigation/project_navigation_service.ts b/src/core/packages/chrome/browser-internal/src/project_navigation/project_navigation_service.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/project_navigation/project_navigation_service.ts rename to src/core/packages/chrome/browser-internal/src/project_navigation/project_navigation_service.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/project_navigation/utils.test.ts b/src/core/packages/chrome/browser-internal/src/project_navigation/utils.test.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/project_navigation/utils.test.ts rename to src/core/packages/chrome/browser-internal/src/project_navigation/utils.test.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/project_navigation/utils.ts b/src/core/packages/chrome/browser-internal/src/project_navigation/utils.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/project_navigation/utils.ts rename to src/core/packages/chrome/browser-internal/src/project_navigation/utils.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.test.ts b/src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.test.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.test.ts rename to src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.test.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.ts b/src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/register_analytics_context_provider.ts rename to src/core/packages/chrome/browser-internal/src/register_analytics_context_provider.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/types.ts b/src/core/packages/chrome/browser-internal/src/types.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/types.ts rename to src/core/packages/chrome/browser-internal/src/types.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/__snapshots__/loading_indicator.test.tsx.snap b/src/core/packages/chrome/browser-internal/src/ui/__snapshots__/loading_indicator.test.tsx.snap similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/__snapshots__/loading_indicator.test.tsx.snap rename to src/core/packages/chrome/browser-internal/src/ui/__snapshots__/loading_indicator.test.tsx.snap diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap b/src/core/packages/chrome/browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap rename to src/core/packages/chrome/browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/header.test.tsx.snap b/src/core/packages/chrome/browser-internal/src/ui/header/__snapshots__/header.test.tsx.snap similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/header.test.tsx.snap rename to src/core/packages/chrome/browser-internal/src/ui/header/__snapshots__/header.test.tsx.snap diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/screen_reader_a11y.test.tsx.snap b/src/core/packages/chrome/browser-internal/src/ui/header/__snapshots__/screen_reader_a11y.test.tsx.snap similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/screen_reader_a11y.test.tsx.snap rename to src/core/packages/chrome/browser-internal/src/ui/header/__snapshots__/screen_reader_a11y.test.tsx.snap diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.test.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/collapsible_nav.test.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.test.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/collapsible_nav.test.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/collapsible_nav.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/collapsible_nav.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/elastic_mark.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/elastic_mark.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/elastic_mark.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/elastic_mark.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/get_collapsible_nav_styles.ts b/src/core/packages/chrome/browser-internal/src/ui/header/get_collapsible_nav_styles.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/get_collapsible_nav_styles.ts rename to src/core/packages/chrome/browser-internal/src/ui/header/get_collapsible_nav_styles.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header.test.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header.test.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header.test.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header.test.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_action_menu.test.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_action_menu.test.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_action_menu.test.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_action_menu.test.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_action_menu.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_action_menu.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_action_menu.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_action_menu.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_badge.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_badge.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_badge.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_badge.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_breadcrumbs.test.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_breadcrumbs.test.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_breadcrumbs.test.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_breadcrumbs.test.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_breadcrumbs.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_breadcrumbs.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_breadcrumbs.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_breadcrumbs.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_extension.test.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_extension.test.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_extension.test.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_extension.test.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_extension.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_extension.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_extension.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_extension.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_help_menu.test.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_help_menu.test.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_help_menu.test.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_help_menu.test.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_help_menu.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_help_menu.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_help_menu.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_help_menu.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_logo.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_logo.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_logo.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_logo.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_menu_button.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_menu_button.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_menu_button.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_menu_button.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_nav_controls.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_nav_controls.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_nav_controls.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_nav_controls.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_top_banner.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/header_top_banner.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_top_banner.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/header_top_banner.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/index.ts b/src/core/packages/chrome/browser-internal/src/ui/header/index.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/index.ts rename to src/core/packages/chrome/browser-internal/src/ui/header/index.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/nav_link.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/nav_link.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/nav_link.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/nav_link.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/screen_reader_a11y.test.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/screen_reader_a11y.test.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/screen_reader_a11y.test.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/screen_reader_a11y.test.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/screen_reader_a11y.tsx b/src/core/packages/chrome/browser-internal/src/ui/header/screen_reader_a11y.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/screen_reader_a11y.tsx rename to src/core/packages/chrome/browser-internal/src/ui/header/screen_reader_a11y.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/types.ts b/src/core/packages/chrome/browser-internal/src/ui/header/types.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/header/types.ts rename to src/core/packages/chrome/browser-internal/src/ui/header/types.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/index.ts b/src/core/packages/chrome/browser-internal/src/ui/index.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/index.ts rename to src/core/packages/chrome/browser-internal/src/ui/index.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.test.tsx b/src/core/packages/chrome/browser-internal/src/ui/loading_indicator.test.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.test.tsx rename to src/core/packages/chrome/browser-internal/src/ui/loading_indicator.test.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.tsx b/src/core/packages/chrome/browser-internal/src/ui/loading_indicator.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.tsx rename to src/core/packages/chrome/browser-internal/src/ui/loading_indicator.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/project/app_menu.tsx b/src/core/packages/chrome/browser-internal/src/ui/project/app_menu.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/project/app_menu.tsx rename to src/core/packages/chrome/browser-internal/src/ui/project/app_menu.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/project/breadcrumbs.tsx b/src/core/packages/chrome/browser-internal/src/ui/project/breadcrumbs.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/project/breadcrumbs.tsx rename to src/core/packages/chrome/browser-internal/src/ui/project/breadcrumbs.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/project/header.test.tsx b/src/core/packages/chrome/browser-internal/src/ui/project/header.test.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/project/header.test.tsx rename to src/core/packages/chrome/browser-internal/src/ui/project/header.test.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/project/header.tsx b/src/core/packages/chrome/browser-internal/src/ui/project/header.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/project/header.tsx rename to src/core/packages/chrome/browser-internal/src/ui/project/header.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/project/index.ts b/src/core/packages/chrome/browser-internal/src/ui/project/index.ts similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/project/index.ts rename to src/core/packages/chrome/browser-internal/src/ui/project/index.ts diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/project/navigation.tsx b/src/core/packages/chrome/browser-internal/src/ui/project/navigation.tsx similarity index 100% rename from packages/core/chrome/core-chrome-browser-internal/src/ui/project/navigation.tsx rename to src/core/packages/chrome/browser-internal/src/ui/project/navigation.tsx diff --git a/packages/core/chrome/core-chrome-browser-internal/tsconfig.json b/src/core/packages/chrome/browser-internal/tsconfig.json similarity index 97% rename from packages/core/chrome/core-chrome-browser-internal/tsconfig.json rename to src/core/packages/chrome/browser-internal/tsconfig.json index 6960b8961561e..781811ed682e9 100644 --- a/packages/core/chrome/core-chrome-browser-internal/tsconfig.json +++ b/src/core/packages/chrome/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/custom-branding/core-custom-branding-browser-internal/README.md b/src/core/packages/custom-branding/browser-internal/README.md similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-internal/README.md rename to src/core/packages/custom-branding/browser-internal/README.md diff --git a/packages/core/custom-branding/core-custom-branding-browser-internal/index.ts b/src/core/packages/custom-branding/browser-internal/index.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-internal/index.ts rename to src/core/packages/custom-branding/browser-internal/index.ts diff --git a/packages/content-management/favorites/favorites_public/jest.config.js b/src/core/packages/custom-branding/browser-internal/jest.config.js similarity index 83% rename from packages/content-management/favorites/favorites_public/jest.config.js rename to src/core/packages/custom-branding/browser-internal/jest.config.js index 120b35e798b7b..98c324b2063ce 100644 --- a/packages/content-management/favorites/favorites_public/jest.config.js +++ b/src/core/packages/custom-branding/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/content-management/favorites/favorites_public'], + rootDir: '../../../../../', + roots: ['/src/core/packages/custom-branding/browser-internal'], }; diff --git a/packages/core/custom-branding/core-custom-branding-browser-internal/kibana.jsonc b/src/core/packages/custom-branding/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-internal/kibana.jsonc rename to src/core/packages/custom-branding/browser-internal/kibana.jsonc diff --git a/packages/core/custom-branding/core-custom-branding-browser-internal/package.json b/src/core/packages/custom-branding/browser-internal/package.json similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-internal/package.json rename to src/core/packages/custom-branding/browser-internal/package.json diff --git a/packages/core/custom-branding/core-custom-branding-browser-internal/src/custom_branding_service.test.ts b/src/core/packages/custom-branding/browser-internal/src/custom_branding_service.test.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-internal/src/custom_branding_service.test.ts rename to src/core/packages/custom-branding/browser-internal/src/custom_branding_service.test.ts diff --git a/packages/core/custom-branding/core-custom-branding-browser-internal/src/custom_branding_service.ts b/src/core/packages/custom-branding/browser-internal/src/custom_branding_service.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-internal/src/custom_branding_service.ts rename to src/core/packages/custom-branding/browser-internal/src/custom_branding_service.ts diff --git a/packages/core/custom-branding/core-custom-branding-browser-internal/tsconfig.json b/src/core/packages/custom-branding/browser-internal/tsconfig.json similarity index 85% rename from packages/core/custom-branding/core-custom-branding-browser-internal/tsconfig.json rename to src/core/packages/custom-branding/browser-internal/tsconfig.json index cf46904936bc0..35904d0027e0f 100644 --- a/packages/core/custom-branding/core-custom-branding-browser-internal/tsconfig.json +++ b/src/core/packages/custom-branding/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/custom-branding/core-custom-branding-browser-mocks/README.md b/src/core/packages/custom-branding/browser-mocks/README.md similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-mocks/README.md rename to src/core/packages/custom-branding/browser-mocks/README.md diff --git a/packages/core/custom-branding/core-custom-branding-browser-mocks/custom_branding_service.mock.ts b/src/core/packages/custom-branding/browser-mocks/custom_branding_service.mock.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-mocks/custom_branding_service.mock.ts rename to src/core/packages/custom-branding/browser-mocks/custom_branding_service.mock.ts diff --git a/packages/core/custom-branding/core-custom-branding-browser-mocks/index.ts b/src/core/packages/custom-branding/browser-mocks/index.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-mocks/index.ts rename to src/core/packages/custom-branding/browser-mocks/index.ts diff --git a/src/core/packages/custom-branding/browser-mocks/jest.config.js b/src/core/packages/custom-branding/browser-mocks/jest.config.js new file mode 100644 index 0000000000000..90eab8eae1c38 --- /dev/null +++ b/src/core/packages/custom-branding/browser-mocks/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/core/packages/custom-branding/browser-mocks'], +}; diff --git a/packages/core/custom-branding/core-custom-branding-browser-mocks/kibana.jsonc b/src/core/packages/custom-branding/browser-mocks/kibana.jsonc similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-mocks/kibana.jsonc rename to src/core/packages/custom-branding/browser-mocks/kibana.jsonc diff --git a/packages/core/custom-branding/core-custom-branding-browser-mocks/package.json b/src/core/packages/custom-branding/browser-mocks/package.json similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-mocks/package.json rename to src/core/packages/custom-branding/browser-mocks/package.json diff --git a/packages/core/custom-branding/core-custom-branding-browser-mocks/service_contract.mock.ts b/src/core/packages/custom-branding/browser-mocks/service_contract.mock.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser-mocks/service_contract.mock.ts rename to src/core/packages/custom-branding/browser-mocks/service_contract.mock.ts diff --git a/packages/core/custom-branding/core-custom-branding-browser-mocks/tsconfig.json b/src/core/packages/custom-branding/browser-mocks/tsconfig.json similarity index 84% rename from packages/core/custom-branding/core-custom-branding-browser-mocks/tsconfig.json rename to src/core/packages/custom-branding/browser-mocks/tsconfig.json index 2f4b2bdd8cb31..d422554872c69 100644 --- a/packages/core/custom-branding/core-custom-branding-browser-mocks/tsconfig.json +++ b/src/core/packages/custom-branding/browser-mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/custom-branding/core-custom-branding-browser/README.md b/src/core/packages/custom-branding/browser/README.md similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser/README.md rename to src/core/packages/custom-branding/browser/README.md diff --git a/packages/core/custom-branding/core-custom-branding-browser/index.ts b/src/core/packages/custom-branding/browser/index.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser/index.ts rename to src/core/packages/custom-branding/browser/index.ts diff --git a/packages/core/custom-branding/core-custom-branding-browser/kibana.jsonc b/src/core/packages/custom-branding/browser/kibana.jsonc similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser/kibana.jsonc rename to src/core/packages/custom-branding/browser/kibana.jsonc diff --git a/packages/core/custom-branding/core-custom-branding-browser/package.json b/src/core/packages/custom-branding/browser/package.json similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser/package.json rename to src/core/packages/custom-branding/browser/package.json diff --git a/packages/core/custom-branding/core-custom-branding-browser/tsconfig.json b/src/core/packages/custom-branding/browser/tsconfig.json similarity index 86% rename from packages/core/custom-branding/core-custom-branding-browser/tsconfig.json rename to src/core/packages/custom-branding/browser/tsconfig.json index c1e8bfe33ab5d..36e9c630b983e 100644 --- a/packages/core/custom-branding/core-custom-branding-browser/tsconfig.json +++ b/src/core/packages/custom-branding/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/custom-branding/core-custom-branding-browser/types.ts b/src/core/packages/custom-branding/browser/types.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-browser/types.ts rename to src/core/packages/custom-branding/browser/types.ts diff --git a/packages/core/custom-branding/core-custom-branding-common/README.md b/src/core/packages/custom-branding/common/README.md similarity index 100% rename from packages/core/custom-branding/core-custom-branding-common/README.md rename to src/core/packages/custom-branding/common/README.md diff --git a/packages/core/custom-branding/core-custom-branding-common/index.ts b/src/core/packages/custom-branding/common/index.ts similarity index 90% rename from packages/core/custom-branding/core-custom-branding-common/index.ts rename to src/core/packages/custom-branding/common/index.ts index d741255ccb240..ced5c73c5e29b 100644 --- a/packages/core/custom-branding/core-custom-branding-common/index.ts +++ b/src/core/packages/custom-branding/common/index.ts @@ -22,7 +22,7 @@ export interface CustomBranding { pageTitle?: string; /** * Custom replacement for Elastic Mark - * @link packages/core/chrome/core-chrome-browser-internal/src/ui/header/elastic_mark.tsx + * @link src/core/packages/chrome/browser-internal/src/ui/header/elastic_mark.tsx */ customizedLogo?: string; /** diff --git a/packages/core/custom-branding/core-custom-branding-common/kibana.jsonc b/src/core/packages/custom-branding/common/kibana.jsonc similarity index 100% rename from packages/core/custom-branding/core-custom-branding-common/kibana.jsonc rename to src/core/packages/custom-branding/common/kibana.jsonc diff --git a/packages/core/custom-branding/core-custom-branding-common/package.json b/src/core/packages/custom-branding/common/package.json similarity index 100% rename from packages/core/custom-branding/core-custom-branding-common/package.json rename to src/core/packages/custom-branding/common/package.json diff --git a/packages/core/custom-branding/core-custom-branding-common/tsconfig.json b/src/core/packages/custom-branding/common/tsconfig.json similarity index 79% rename from packages/core/custom-branding/core-custom-branding-common/tsconfig.json rename to src/core/packages/custom-branding/common/tsconfig.json index 931451997d24a..fb05929eb6a5f 100644 --- a/packages/core/custom-branding/core-custom-branding-common/tsconfig.json +++ b/src/core/packages/custom-branding/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/custom-branding/core-custom-branding-server-internal/README.md b/src/core/packages/custom-branding/server-internal/README.md similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-internal/README.md rename to src/core/packages/custom-branding/server-internal/README.md diff --git a/packages/core/custom-branding/core-custom-branding-server-internal/custom_branding_service.test.ts b/src/core/packages/custom-branding/server-internal/custom_branding_service.test.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-internal/custom_branding_service.test.ts rename to src/core/packages/custom-branding/server-internal/custom_branding_service.test.ts diff --git a/packages/core/custom-branding/core-custom-branding-server-internal/custom_branding_service.ts b/src/core/packages/custom-branding/server-internal/custom_branding_service.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-internal/custom_branding_service.ts rename to src/core/packages/custom-branding/server-internal/custom_branding_service.ts diff --git a/packages/core/custom-branding/core-custom-branding-server-internal/index.ts b/src/core/packages/custom-branding/server-internal/index.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-internal/index.ts rename to src/core/packages/custom-branding/server-internal/index.ts diff --git a/src/core/packages/custom-branding/server-internal/jest.config.js b/src/core/packages/custom-branding/server-internal/jest.config.js new file mode 100644 index 0000000000000..9a28302c8f38c --- /dev/null +++ b/src/core/packages/custom-branding/server-internal/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/core/packages/custom-branding/server-internal'], +}; diff --git a/packages/core/custom-branding/core-custom-branding-server-internal/kibana.jsonc b/src/core/packages/custom-branding/server-internal/kibana.jsonc similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-internal/kibana.jsonc rename to src/core/packages/custom-branding/server-internal/kibana.jsonc diff --git a/packages/core/custom-branding/core-custom-branding-server-internal/package.json b/src/core/packages/custom-branding/server-internal/package.json similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-internal/package.json rename to src/core/packages/custom-branding/server-internal/package.json diff --git a/packages/core/custom-branding/core-custom-branding-server-internal/tsconfig.json b/src/core/packages/custom-branding/server-internal/tsconfig.json similarity index 89% rename from packages/core/custom-branding/core-custom-branding-server-internal/tsconfig.json rename to src/core/packages/custom-branding/server-internal/tsconfig.json index aa2e232129bcc..25b21716093a9 100644 --- a/packages/core/custom-branding/core-custom-branding-server-internal/tsconfig.json +++ b/src/core/packages/custom-branding/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/custom-branding/core-custom-branding-server-mocks/README.md b/src/core/packages/custom-branding/server-mocks/README.md similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-mocks/README.md rename to src/core/packages/custom-branding/server-mocks/README.md diff --git a/packages/core/custom-branding/core-custom-branding-server-mocks/index.ts b/src/core/packages/custom-branding/server-mocks/index.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-mocks/index.ts rename to src/core/packages/custom-branding/server-mocks/index.ts diff --git a/packages/core/ui-settings/core-ui-settings-server/jest.config.js b/src/core/packages/custom-branding/server-mocks/jest.config.js similarity index 83% rename from packages/core/ui-settings/core-ui-settings-server/jest.config.js rename to src/core/packages/custom-branding/server-mocks/jest.config.js index ec4710b138d0e..a96674175abb3 100644 --- a/packages/core/ui-settings/core-ui-settings-server/jest.config.js +++ b/src/core/packages/custom-branding/server-mocks/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/ui-settings/core-ui-settings-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/custom-branding/server-mocks'], }; diff --git a/packages/core/custom-branding/core-custom-branding-server-mocks/kibana.jsonc b/src/core/packages/custom-branding/server-mocks/kibana.jsonc similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-mocks/kibana.jsonc rename to src/core/packages/custom-branding/server-mocks/kibana.jsonc diff --git a/packages/core/custom-branding/core-custom-branding-server-mocks/package.json b/src/core/packages/custom-branding/server-mocks/package.json similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-mocks/package.json rename to src/core/packages/custom-branding/server-mocks/package.json diff --git a/packages/core/custom-branding/core-custom-branding-server-mocks/src/custom_branding_service.mock.ts b/src/core/packages/custom-branding/server-mocks/src/custom_branding_service.mock.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-mocks/src/custom_branding_service.mock.ts rename to src/core/packages/custom-branding/server-mocks/src/custom_branding_service.mock.ts diff --git a/packages/core/custom-branding/core-custom-branding-server-mocks/src/service_contract.mock.ts b/src/core/packages/custom-branding/server-mocks/src/service_contract.mock.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server-mocks/src/service_contract.mock.ts rename to src/core/packages/custom-branding/server-mocks/src/service_contract.mock.ts diff --git a/packages/core/custom-branding/core-custom-branding-server-mocks/tsconfig.json b/src/core/packages/custom-branding/server-mocks/tsconfig.json similarity index 83% rename from packages/core/custom-branding/core-custom-branding-server-mocks/tsconfig.json rename to src/core/packages/custom-branding/server-mocks/tsconfig.json index 1b31b9f15ec66..23b5924ecb761 100644 --- a/packages/core/custom-branding/core-custom-branding-server-mocks/tsconfig.json +++ b/src/core/packages/custom-branding/server-mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/custom-branding/core-custom-branding-server/README.md b/src/core/packages/custom-branding/server/README.md similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server/README.md rename to src/core/packages/custom-branding/server/README.md diff --git a/packages/core/custom-branding/core-custom-branding-server/index.ts b/src/core/packages/custom-branding/server/index.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server/index.ts rename to src/core/packages/custom-branding/server/index.ts diff --git a/packages/core/custom-branding/core-custom-branding-server/kibana.jsonc b/src/core/packages/custom-branding/server/kibana.jsonc similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server/kibana.jsonc rename to src/core/packages/custom-branding/server/kibana.jsonc diff --git a/packages/core/custom-branding/core-custom-branding-server/package.json b/src/core/packages/custom-branding/server/package.json similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server/package.json rename to src/core/packages/custom-branding/server/package.json diff --git a/packages/core/custom-branding/core-custom-branding-server/tsconfig.json b/src/core/packages/custom-branding/server/tsconfig.json similarity index 85% rename from packages/core/custom-branding/core-custom-branding-server/tsconfig.json rename to src/core/packages/custom-branding/server/tsconfig.json index fa1ec74e80cb8..08febae9247ea 100644 --- a/packages/core/custom-branding/core-custom-branding-server/tsconfig.json +++ b/src/core/packages/custom-branding/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/custom-branding/core-custom-branding-server/types.ts b/src/core/packages/custom-branding/server/types.ts similarity index 100% rename from packages/core/custom-branding/core-custom-branding-server/types.ts rename to src/core/packages/custom-branding/server/types.ts diff --git a/src/core/packages/lifecycle/browser/src/core_setup.ts b/src/core/packages/lifecycle/browser/src/core_setup.ts index bef46aa4b84c1..84dbbf5e6efdb 100644 --- a/src/core/packages/lifecycle/browser/src/core_setup.ts +++ b/src/core/packages/lifecycle/browser/src/core_setup.ts @@ -36,7 +36,7 @@ import type { CoreStart } from './core_start'; * navigation in the generated docs until there's a fix for * https://github.com/Microsoft/web-build-tools/issues/1237 */ -export interface CoreSetup { +export interface CoreSetup = {}, TStart = unknown> { /** {@link AnalyticsServiceSetup} */ analytics: AnalyticsServiceSetup; /** {@link ApplicationSetup} */ diff --git a/src/core/packages/lifecycle/server/src/core_setup.ts b/src/core/packages/lifecycle/server/src/core_setup.ts index 59616a5d65ecd..f3419187b183a 100644 --- a/src/core/packages/lifecycle/server/src/core_setup.ts +++ b/src/core/packages/lifecycle/server/src/core_setup.ts @@ -40,7 +40,7 @@ import type { CoreStart } from './core_start'; * consuming {@link Plugin}'s `TStart` type. Used by `getStartServices`. * @public */ -export interface CoreSetup { +export interface CoreSetup = {}, TStart = unknown> { /** {@link AnalyticsServiceSetup} */ analytics: AnalyticsServiceSetup; /** {@link CapabilitiesSetup} */ diff --git a/src/core/packages/plugins/browser/src/plugin.ts b/src/core/packages/plugins/browser/src/plugin.ts index c3e5d9c42cf0b..974776533f285 100644 --- a/src/core/packages/plugins/browser/src/plugin.ts +++ b/src/core/packages/plugins/browser/src/plugin.ts @@ -18,8 +18,8 @@ import type { CoreStart, CoreSetup } from '@kbn/core-lifecycle-browser'; export interface Plugin< TSetup = void, TStart = void, - TPluginsSetup extends object = object, - TPluginsStart extends object = object + TPluginsSetup extends Record = never, + TPluginsStart extends Record = never > { setup(core: CoreSetup, plugins: TPluginsSetup): TSetup; diff --git a/src/core/packages/plugins/browser/src/plugin_initializer.ts b/src/core/packages/plugins/browser/src/plugin_initializer.ts index 97bb3748dbe42..e8ffa887087fe 100644 --- a/src/core/packages/plugins/browser/src/plugin_initializer.ts +++ b/src/core/packages/plugins/browser/src/plugin_initializer.ts @@ -19,10 +19,10 @@ import type { Plugin } from './plugin'; * @public */ export type PluginInitializer< - TSetup, - TStart, - TPluginsSetup extends object = object, - TPluginsStart extends object = object + TSetup = void, + TStart = void, + TPluginsSetup extends Record = never, + TPluginsStart extends Record = never > = (core: PluginInitializerContext) => Plugin; /** diff --git a/src/core/packages/plugins/server-internal/src/plugin.ts b/src/core/packages/plugins/server-internal/src/plugin.ts index cd330a647da66..7d37c2b46943f 100644 --- a/src/core/packages/plugins/server-internal/src/plugin.ts +++ b/src/core/packages/plugins/server-internal/src/plugin.ts @@ -98,7 +98,7 @@ export class PluginWrapper< * is the contract returned by the dependency's `setup` function. */ public setup( - setupContext: CoreSetup | CorePreboot, + setupContext: CoreSetup | CorePreboot, plugins: TPluginsSetup ): TSetup | Promise { if (!this.instance) { @@ -109,7 +109,7 @@ export class PluginWrapper< return this.instance.setup(setupContext as CorePreboot, plugins); } - return this.instance.setup(setupContext as CoreSetup, plugins); + return this.instance.setup(setupContext as CoreSetup, plugins); } /** diff --git a/src/core/packages/plugins/server/src/types.ts b/src/core/packages/plugins/server/src/types.ts index 7be2647ba48d2..39c8ef4cb8392 100644 --- a/src/core/packages/plugins/server/src/types.ts +++ b/src/core/packages/plugins/server/src/types.ts @@ -291,10 +291,10 @@ export interface PrebootPlugin = {}, + TPluginsStart extends Record = {} > { - setup(core: CoreSetup, plugins: TPluginsSetup): TSetup; + setup(core: CoreSetup, plugins: TPluginsSetup): TSetup; start(core: CoreStart, plugins: TPluginsStart): TStart; @@ -451,10 +451,10 @@ export interface PluginInitializerContext { * @public */ export type PluginInitializer< - TSetup, - TStart, - TPluginsSetup extends object = object, - TPluginsStart extends object = object + TSetup = void, + TStart = void, + TPluginsSetup extends Record = never, + TPluginsStart extends Record = never > = ( core: PluginInitializerContext ) => Promise< diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/README.md b/src/core/packages/ui-settings/browser-internal/README.md similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/README.md rename to src/core/packages/ui-settings/browser-internal/README.md diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/index.ts b/src/core/packages/ui-settings/browser-internal/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/index.ts rename to src/core/packages/ui-settings/browser-internal/index.ts diff --git a/src/core/packages/ui-settings/browser-internal/jest.config.js b/src/core/packages/ui-settings/browser-internal/jest.config.js new file mode 100644 index 0000000000000..193b6fe2d6163 --- /dev/null +++ b/src/core/packages/ui-settings/browser-internal/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/core/packages/ui-settings/browser-internal'], +}; diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/kibana.jsonc b/src/core/packages/ui-settings/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/kibana.jsonc rename to src/core/packages/ui-settings/browser-internal/kibana.jsonc diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/package.json b/src/core/packages/ui-settings/browser-internal/package.json similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/package.json rename to src/core/packages/ui-settings/browser-internal/package.json diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/__snapshots__/ui_settings_api.test.ts.snap b/src/core/packages/ui-settings/browser-internal/src/__snapshots__/ui_settings_api.test.ts.snap similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/__snapshots__/ui_settings_api.test.ts.snap rename to src/core/packages/ui-settings/browser-internal/src/__snapshots__/ui_settings_api.test.ts.snap diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/__snapshots__/ui_settings_client.test.ts.snap b/src/core/packages/ui-settings/browser-internal/src/__snapshots__/ui_settings_client.test.ts.snap similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/__snapshots__/ui_settings_client.test.ts.snap rename to src/core/packages/ui-settings/browser-internal/src/__snapshots__/ui_settings_client.test.ts.snap diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/settings_service.test.ts b/src/core/packages/ui-settings/browser-internal/src/settings_service.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/settings_service.test.ts rename to src/core/packages/ui-settings/browser-internal/src/settings_service.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/settings_service.ts b/src/core/packages/ui-settings/browser-internal/src/settings_service.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/settings_service.ts rename to src/core/packages/ui-settings/browser-internal/src/settings_service.ts diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_api.test.ts b/src/core/packages/ui-settings/browser-internal/src/ui_settings_api.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_api.test.ts rename to src/core/packages/ui-settings/browser-internal/src/ui_settings_api.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_api.ts b/src/core/packages/ui-settings/browser-internal/src/ui_settings_api.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_api.ts rename to src/core/packages/ui-settings/browser-internal/src/ui_settings_api.ts diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client.test.ts b/src/core/packages/ui-settings/browser-internal/src/ui_settings_client.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client.test.ts rename to src/core/packages/ui-settings/browser-internal/src/ui_settings_client.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client.ts b/src/core/packages/ui-settings/browser-internal/src/ui_settings_client.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client.ts rename to src/core/packages/ui-settings/browser-internal/src/ui_settings_client.ts diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client_common.ts b/src/core/packages/ui-settings/browser-internal/src/ui_settings_client_common.ts similarity index 99% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client_common.ts rename to src/core/packages/ui-settings/browser-internal/src/ui_settings_client_common.ts index 6ece79b0a675c..527eee34ece15 100644 --- a/packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_client_common.ts +++ b/src/core/packages/ui-settings/browser-internal/src/ui_settings_client_common.ts @@ -107,7 +107,7 @@ You can use \`IUiSettingsClient.get("${key}", defaultValue)\`, which will just r isDeclared(key: string) { return ( - // @ts-ignore + // @ts-expect-error (key !== '__proto__' || key !== 'constructor' || key !== 'prototype') && key in this.cache ); } diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_global_client.test.ts b/src/core/packages/ui-settings/browser-internal/src/ui_settings_global_client.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_global_client.test.ts rename to src/core/packages/ui-settings/browser-internal/src/ui_settings_global_client.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_global_client.ts b/src/core/packages/ui-settings/browser-internal/src/ui_settings_global_client.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_global_client.ts rename to src/core/packages/ui-settings/browser-internal/src/ui_settings_global_client.ts diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_service.test.ts b/src/core/packages/ui-settings/browser-internal/src/ui_settings_service.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_service.test.ts rename to src/core/packages/ui-settings/browser-internal/src/ui_settings_service.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_service.ts b/src/core/packages/ui-settings/browser-internal/src/ui_settings_service.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser-internal/src/ui_settings_service.ts rename to src/core/packages/ui-settings/browser-internal/src/ui_settings_service.ts diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/tsconfig.json b/src/core/packages/ui-settings/browser-internal/tsconfig.json similarity index 91% rename from packages/core/ui-settings/core-ui-settings-browser-internal/tsconfig.json rename to src/core/packages/ui-settings/browser-internal/tsconfig.json index bcedc9db9175e..21c641ded6a99 100644 --- a/packages/core/ui-settings/core-ui-settings-browser-internal/tsconfig.json +++ b/src/core/packages/ui-settings/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/ui-settings/core-ui-settings-browser/README.md b/src/core/packages/ui-settings/browser/README.md similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser/README.md rename to src/core/packages/ui-settings/browser/README.md diff --git a/packages/core/ui-settings/core-ui-settings-browser/index.ts b/src/core/packages/ui-settings/browser/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser/index.ts rename to src/core/packages/ui-settings/browser/index.ts diff --git a/packages/kbn-coloring/jest.config.js b/src/core/packages/ui-settings/browser/jest.config.js similarity index 84% rename from packages/kbn-coloring/jest.config.js rename to src/core/packages/ui-settings/browser/jest.config.js index e425aa35ebc82..17a9641c1f027 100644 --- a/packages/kbn-coloring/jest.config.js +++ b/src/core/packages/ui-settings/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-coloring'], + rootDir: '../../../../..', + roots: ['/src/core/packages/ui-settings/browser'], }; diff --git a/packages/core/ui-settings/core-ui-settings-browser/kibana.jsonc b/src/core/packages/ui-settings/browser/kibana.jsonc similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser/kibana.jsonc rename to src/core/packages/ui-settings/browser/kibana.jsonc diff --git a/packages/core/ui-settings/core-ui-settings-browser/package.json b/src/core/packages/ui-settings/browser/package.json similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser/package.json rename to src/core/packages/ui-settings/browser/package.json diff --git a/packages/core/ui-settings/core-ui-settings-browser/src/types.ts b/src/core/packages/ui-settings/browser/src/types.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-browser/src/types.ts rename to src/core/packages/ui-settings/browser/src/types.ts diff --git a/packages/core/ui-settings/core-ui-settings-browser/tsconfig.json b/src/core/packages/ui-settings/browser/tsconfig.json similarity index 83% rename from packages/core/ui-settings/core-ui-settings-browser/tsconfig.json rename to src/core/packages/ui-settings/browser/tsconfig.json index 95fe1b5c6ea01..e83551fb883bf 100644 --- a/packages/core/ui-settings/core-ui-settings-browser/tsconfig.json +++ b/src/core/packages/ui-settings/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/ui-settings/core-ui-settings-common/README.md b/src/core/packages/ui-settings/common/README.md similarity index 100% rename from packages/core/ui-settings/core-ui-settings-common/README.md rename to src/core/packages/ui-settings/common/README.md diff --git a/packages/core/ui-settings/core-ui-settings-common/index.ts b/src/core/packages/ui-settings/common/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-common/index.ts rename to src/core/packages/ui-settings/common/index.ts diff --git a/packages/content-management/content_editor/jest.config.js b/src/core/packages/ui-settings/common/jest.config.js similarity index 85% rename from packages/content-management/content_editor/jest.config.js rename to src/core/packages/ui-settings/common/jest.config.js index f604714408bff..cf9a12d4af8ca 100644 --- a/packages/content-management/content_editor/jest.config.js +++ b/src/core/packages/ui-settings/common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/content-management/content_editor'], + rootDir: '../../../../..', + roots: ['/src/core/packages/ui-settings/common'], }; diff --git a/packages/core/ui-settings/core-ui-settings-common/kibana.jsonc b/src/core/packages/ui-settings/common/kibana.jsonc similarity index 100% rename from packages/core/ui-settings/core-ui-settings-common/kibana.jsonc rename to src/core/packages/ui-settings/common/kibana.jsonc diff --git a/packages/core/ui-settings/core-ui-settings-common/package.json b/src/core/packages/ui-settings/common/package.json similarity index 100% rename from packages/core/ui-settings/core-ui-settings-common/package.json rename to src/core/packages/ui-settings/common/package.json diff --git a/packages/core/ui-settings/core-ui-settings-common/src/dark_mode.test.ts b/src/core/packages/ui-settings/common/src/dark_mode.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-common/src/dark_mode.test.ts rename to src/core/packages/ui-settings/common/src/dark_mode.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-common/src/dark_mode.ts b/src/core/packages/ui-settings/common/src/dark_mode.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-common/src/dark_mode.ts rename to src/core/packages/ui-settings/common/src/dark_mode.ts diff --git a/packages/core/ui-settings/core-ui-settings-common/src/theme.ts b/src/core/packages/ui-settings/common/src/theme.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-common/src/theme.ts rename to src/core/packages/ui-settings/common/src/theme.ts diff --git a/packages/core/ui-settings/core-ui-settings-common/src/timezones.ts b/src/core/packages/ui-settings/common/src/timezones.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-common/src/timezones.ts rename to src/core/packages/ui-settings/common/src/timezones.ts diff --git a/packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts b/src/core/packages/ui-settings/common/src/ui_settings.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts rename to src/core/packages/ui-settings/common/src/ui_settings.ts diff --git a/packages/core/ui-settings/core-ui-settings-common/tsconfig.json b/src/core/packages/ui-settings/common/tsconfig.json similarity index 85% rename from packages/core/ui-settings/core-ui-settings-common/tsconfig.json rename to src/core/packages/ui-settings/common/tsconfig.json index 733581728ddb8..6c8e347002ca3 100644 --- a/packages/core/ui-settings/core-ui-settings-common/tsconfig.json +++ b/src/core/packages/ui-settings/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/README.md b/src/core/packages/ui-settings/server-internal/README.md similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/README.md rename to src/core/packages/ui-settings/server-internal/README.md diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/index.ts b/src/core/packages/ui-settings/server-internal/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/index.ts rename to src/core/packages/ui-settings/server-internal/index.ts diff --git a/packages/kbn-generate-csv/jest.config.js b/src/core/packages/ui-settings/server-internal/jest.config.js similarity index 84% rename from packages/kbn-generate-csv/jest.config.js rename to src/core/packages/ui-settings/server-internal/jest.config.js index 85d5957c9b249..0d97ff05f27c3 100644 --- a/packages/kbn-generate-csv/jest.config.js +++ b/src/core/packages/ui-settings/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-generate-csv/'], + rootDir: '../../../../..', + roots: ['/src/core/packages/ui-settings/server-internal'], }; diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/kibana.jsonc b/src/core/packages/ui-settings/server-internal/kibana.jsonc similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/kibana.jsonc rename to src/core/packages/ui-settings/server-internal/kibana.jsonc diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/package.json b/src/core/packages/ui-settings/server-internal/package.json similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/package.json rename to src/core/packages/ui-settings/server-internal/package.json diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/cache.test.ts b/src/core/packages/ui-settings/server-internal/src/cache.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/cache.test.ts rename to src/core/packages/ui-settings/server-internal/src/cache.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/cache.ts b/src/core/packages/ui-settings/server-internal/src/cache.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/cache.ts rename to src/core/packages/ui-settings/server-internal/src/cache.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/base_ui_settings_client.ts b/src/core/packages/ui-settings/server-internal/src/clients/base_ui_settings_client.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/base_ui_settings_client.ts rename to src/core/packages/ui-settings/server-internal/src/clients/base_ui_settings_client.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/index.ts b/src/core/packages/ui-settings/server-internal/src/clients/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/index.ts rename to src/core/packages/ui-settings/server-internal/src/clients/index.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client.test.mock.ts b/src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client.test.mock.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client.test.mock.ts rename to src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client.test.mock.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client.test.ts b/src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client.test.ts rename to src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client.ts b/src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client.ts rename to src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client_common.ts b/src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client_common.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client_common.ts rename to src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client_common.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client_factory.test.ts b/src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client_factory.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client_factory.test.ts rename to src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client_factory.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client_factory.ts b/src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client_factory.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_client_factory.ts rename to src/core/packages/ui-settings/server-internal/src/clients/ui_settings_client_factory.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_defaults_client.test.ts b/src/core/packages/ui-settings/server-internal/src/clients/ui_settings_defaults_client.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_defaults_client.test.ts rename to src/core/packages/ui-settings/server-internal/src/clients/ui_settings_defaults_client.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_defaults_client.ts b/src/core/packages/ui-settings/server-internal/src/clients/ui_settings_defaults_client.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_defaults_client.ts rename to src/core/packages/ui-settings/server-internal/src/clients/ui_settings_defaults_client.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.test.ts b/src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.test.ts rename to src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts b/src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/clients/ui_settings_global_client.ts rename to src/core/packages/ui-settings/server-internal/src/clients/ui_settings_global_client.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.test.mock.ts b/src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.test.mock.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.test.mock.ts rename to src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.test.mock.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.test.ts b/src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.test.ts rename to src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.ts b/src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.ts rename to src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/create_or_upgrade_saved_config.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/get_upgradeable_config.test.ts b/src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/get_upgradeable_config.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/get_upgradeable_config.test.ts rename to src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/get_upgradeable_config.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/get_upgradeable_config.ts b/src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/get_upgradeable_config.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/get_upgradeable_config.ts rename to src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/get_upgradeable_config.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/index.ts b/src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/index.ts rename to src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/index.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/is_config_version_upgradeable.test.ts b/src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/is_config_version_upgradeable.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/is_config_version_upgradeable.test.ts rename to src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/is_config_version_upgradeable.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/is_config_version_upgradeable.ts b/src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/is_config_version_upgradeable.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/create_or_upgrade_saved_config/is_config_version_upgradeable.ts rename to src/core/packages/ui-settings/server-internal/src/create_or_upgrade_saved_config/is_config_version_upgradeable.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/index.ts b/src/core/packages/ui-settings/server-internal/src/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/index.ts rename to src/core/packages/ui-settings/server-internal/src/index.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/internal_types.ts b/src/core/packages/ui-settings/server-internal/src/internal_types.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/internal_types.ts rename to src/core/packages/ui-settings/server-internal/src/internal_types.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/routes/delete.ts b/src/core/packages/ui-settings/server-internal/src/routes/delete.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/routes/delete.ts rename to src/core/packages/ui-settings/server-internal/src/routes/delete.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/routes/get.ts b/src/core/packages/ui-settings/server-internal/src/routes/get.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/routes/get.ts rename to src/core/packages/ui-settings/server-internal/src/routes/get.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/routes/index.ts b/src/core/packages/ui-settings/server-internal/src/routes/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/routes/index.ts rename to src/core/packages/ui-settings/server-internal/src/routes/index.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/delete.ts b/src/core/packages/ui-settings/server-internal/src/routes/internal/delete.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/delete.ts rename to src/core/packages/ui-settings/server-internal/src/routes/internal/delete.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/get.ts b/src/core/packages/ui-settings/server-internal/src/routes/internal/get.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/get.ts rename to src/core/packages/ui-settings/server-internal/src/routes/internal/get.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/index.ts b/src/core/packages/ui-settings/server-internal/src/routes/internal/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/index.ts rename to src/core/packages/ui-settings/server-internal/src/routes/internal/index.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/set.ts b/src/core/packages/ui-settings/server-internal/src/routes/internal/set.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/set.ts rename to src/core/packages/ui-settings/server-internal/src/routes/internal/set.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/set_many.ts b/src/core/packages/ui-settings/server-internal/src/routes/internal/set_many.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/set_many.ts rename to src/core/packages/ui-settings/server-internal/src/routes/internal/set_many.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/validate.ts b/src/core/packages/ui-settings/server-internal/src/routes/internal/validate.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/routes/internal/validate.ts rename to src/core/packages/ui-settings/server-internal/src/routes/internal/validate.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/routes/set.ts b/src/core/packages/ui-settings/server-internal/src/routes/set.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/routes/set.ts rename to src/core/packages/ui-settings/server-internal/src/routes/set.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/routes/set_many.ts b/src/core/packages/ui-settings/server-internal/src/routes/set_many.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/routes/set_many.ts rename to src/core/packages/ui-settings/server-internal/src/routes/set_many.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/index.ts b/src/core/packages/ui-settings/server-internal/src/saved_objects/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/index.ts rename to src/core/packages/ui-settings/server-internal/src/saved_objects/index.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/migrations.test.ts b/src/core/packages/ui-settings/server-internal/src/saved_objects/migrations.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/migrations.test.ts rename to src/core/packages/ui-settings/server-internal/src/saved_objects/migrations.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/migrations.ts b/src/core/packages/ui-settings/server-internal/src/saved_objects/migrations.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/migrations.ts rename to src/core/packages/ui-settings/server-internal/src/saved_objects/migrations.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/transforms.test.ts b/src/core/packages/ui-settings/server-internal/src/saved_objects/transforms.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/transforms.test.ts rename to src/core/packages/ui-settings/server-internal/src/saved_objects/transforms.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/transforms.ts b/src/core/packages/ui-settings/server-internal/src/saved_objects/transforms.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/transforms.ts rename to src/core/packages/ui-settings/server-internal/src/saved_objects/transforms.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/ui_settings.ts b/src/core/packages/ui-settings/server-internal/src/saved_objects/ui_settings.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/saved_objects/ui_settings.ts rename to src/core/packages/ui-settings/server-internal/src/saved_objects/ui_settings.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/accessibility.test.ts b/src/core/packages/ui-settings/server-internal/src/settings/accessibility.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/accessibility.test.ts rename to src/core/packages/ui-settings/server-internal/src/settings/accessibility.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/accessibility.ts b/src/core/packages/ui-settings/server-internal/src/settings/accessibility.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/accessibility.ts rename to src/core/packages/ui-settings/server-internal/src/settings/accessibility.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/announcements.test.ts b/src/core/packages/ui-settings/server-internal/src/settings/announcements.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/announcements.test.ts rename to src/core/packages/ui-settings/server-internal/src/settings/announcements.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/announcements.ts b/src/core/packages/ui-settings/server-internal/src/settings/announcements.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/announcements.ts rename to src/core/packages/ui-settings/server-internal/src/settings/announcements.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/date_formats.test.ts b/src/core/packages/ui-settings/server-internal/src/settings/date_formats.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/date_formats.test.ts rename to src/core/packages/ui-settings/server-internal/src/settings/date_formats.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/date_formats.ts b/src/core/packages/ui-settings/server-internal/src/settings/date_formats.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/date_formats.ts rename to src/core/packages/ui-settings/server-internal/src/settings/date_formats.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/index.test.ts b/src/core/packages/ui-settings/server-internal/src/settings/index.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/index.test.ts rename to src/core/packages/ui-settings/server-internal/src/settings/index.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/index.ts b/src/core/packages/ui-settings/server-internal/src/settings/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/index.ts rename to src/core/packages/ui-settings/server-internal/src/settings/index.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/misc.ts b/src/core/packages/ui-settings/server-internal/src/settings/misc.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/misc.ts rename to src/core/packages/ui-settings/server-internal/src/settings/misc.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/notifications.test.ts b/src/core/packages/ui-settings/server-internal/src/settings/notifications.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/notifications.test.ts rename to src/core/packages/ui-settings/server-internal/src/settings/notifications.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/notifications.ts b/src/core/packages/ui-settings/server-internal/src/settings/notifications.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/notifications.ts rename to src/core/packages/ui-settings/server-internal/src/settings/notifications.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/state.test.ts b/src/core/packages/ui-settings/server-internal/src/settings/state.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/state.test.ts rename to src/core/packages/ui-settings/server-internal/src/settings/state.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/state.ts b/src/core/packages/ui-settings/server-internal/src/settings/state.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/state.ts rename to src/core/packages/ui-settings/server-internal/src/settings/state.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/theme.test.ts b/src/core/packages/ui-settings/server-internal/src/settings/theme.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/theme.test.ts rename to src/core/packages/ui-settings/server-internal/src/settings/theme.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/theme.ts b/src/core/packages/ui-settings/server-internal/src/settings/theme.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/settings/theme.ts rename to src/core/packages/ui-settings/server-internal/src/settings/theme.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/types.ts b/src/core/packages/ui-settings/server-internal/src/types.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/types.ts rename to src/core/packages/ui-settings/server-internal/src/types.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_config.ts b/src/core/packages/ui-settings/server-internal/src/ui_settings_config.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_config.ts rename to src/core/packages/ui-settings/server-internal/src/ui_settings_config.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_errors.ts b/src/core/packages/ui-settings/server-internal/src/ui_settings_errors.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_errors.ts rename to src/core/packages/ui-settings/server-internal/src/ui_settings_errors.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_route_handler_context.ts b/src/core/packages/ui-settings/server-internal/src/ui_settings_route_handler_context.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_route_handler_context.ts rename to src/core/packages/ui-settings/server-internal/src/ui_settings_route_handler_context.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_service.test.mock.ts b/src/core/packages/ui-settings/server-internal/src/ui_settings_service.test.mock.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_service.test.mock.ts rename to src/core/packages/ui-settings/server-internal/src/ui_settings_service.test.mock.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_service.test.ts b/src/core/packages/ui-settings/server-internal/src/ui_settings_service.test.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_service.test.ts rename to src/core/packages/ui-settings/server-internal/src/ui_settings_service.test.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_service.ts b/src/core/packages/ui-settings/server-internal/src/ui_settings_service.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server-internal/src/ui_settings_service.ts rename to src/core/packages/ui-settings/server-internal/src/ui_settings_service.ts diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/tsconfig.json b/src/core/packages/ui-settings/server-internal/tsconfig.json similarity index 94% rename from packages/core/ui-settings/core-ui-settings-server-internal/tsconfig.json rename to src/core/packages/ui-settings/server-internal/tsconfig.json index 8786943d0f6da..09887438dda56 100644 --- a/packages/core/ui-settings/core-ui-settings-server-internal/tsconfig.json +++ b/src/core/packages/ui-settings/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/core/ui-settings/core-ui-settings-server/README.md b/src/core/packages/ui-settings/server/README.md similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server/README.md rename to src/core/packages/ui-settings/server/README.md diff --git a/packages/core/ui-settings/core-ui-settings-server/index.ts b/src/core/packages/ui-settings/server/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server/index.ts rename to src/core/packages/ui-settings/server/index.ts diff --git a/packages/kbn-calculate-width-from-char-count/jest.config.js b/src/core/packages/ui-settings/server/jest.config.js similarity index 85% rename from packages/kbn-calculate-width-from-char-count/jest.config.js rename to src/core/packages/ui-settings/server/jest.config.js index 3881803ebb270..8660b7cfb7725 100644 --- a/packages/kbn-calculate-width-from-char-count/jest.config.js +++ b/src/core/packages/ui-settings/server/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/core/packages/ui-settings/server'], }; diff --git a/packages/core/ui-settings/core-ui-settings-server/kibana.jsonc b/src/core/packages/ui-settings/server/kibana.jsonc similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server/kibana.jsonc rename to src/core/packages/ui-settings/server/kibana.jsonc diff --git a/packages/core/ui-settings/core-ui-settings-server/package.json b/src/core/packages/ui-settings/server/package.json similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server/package.json rename to src/core/packages/ui-settings/server/package.json diff --git a/packages/core/ui-settings/core-ui-settings-server/src/contracts.ts b/src/core/packages/ui-settings/server/src/contracts.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server/src/contracts.ts rename to src/core/packages/ui-settings/server/src/contracts.ts diff --git a/packages/core/ui-settings/core-ui-settings-server/src/index.ts b/src/core/packages/ui-settings/server/src/index.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server/src/index.ts rename to src/core/packages/ui-settings/server/src/index.ts diff --git a/packages/core/ui-settings/core-ui-settings-server/src/request_handler_context.ts b/src/core/packages/ui-settings/server/src/request_handler_context.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server/src/request_handler_context.ts rename to src/core/packages/ui-settings/server/src/request_handler_context.ts diff --git a/packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts b/src/core/packages/ui-settings/server/src/ui_settings_client.ts similarity index 100% rename from packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts rename to src/core/packages/ui-settings/server/src/ui_settings_client.ts diff --git a/packages/core/ui-settings/core-ui-settings-server/tsconfig.json b/src/core/packages/ui-settings/server/tsconfig.json similarity index 85% rename from packages/core/ui-settings/core-ui-settings-server/tsconfig.json rename to src/core/packages/ui-settings/server/tsconfig.json index 0895961777aa9..8ef6bf03f1191 100644 --- a/packages/core/ui-settings/core-ui-settings-server/tsconfig.json +++ b/src/core/packages/ui-settings/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/core/server/integration_tests/ci_checks/saved_objects/check_registered_types.test.ts b/src/core/server/integration_tests/ci_checks/saved_objects/check_registered_types.test.ts index f2bbcd85834ff..353ef8c85548d 100644 --- a/src/core/server/integration_tests/ci_checks/saved_objects/check_registered_types.test.ts +++ b/src/core/server/integration_tests/ci_checks/saved_objects/check_registered_types.test.ts @@ -57,8 +57,8 @@ describe('checking migration metadata changes on all registered SO types', () => expect(hashMap).toMatchInlineSnapshot(` Object { "action": "0e6fc0b74c7312a8c11ff6b14437b93a997358b8", - "action_task_params": "b50cb5c8a493881474918e8d4985e61374ca4c30", - "ad_hoc_run_params": "d4e3c5c794151d0a4f5c71e886b2aa638da73ad2", + "action_task_params": "2e475d8b62e2de50b77f58cda309efb537e1d543", + "ad_hoc_run_params": "c7419760e878207231c3c8a25ec4d78360e07bf7", "alert": "556a03378f5ee1c31593c3a37c66b54555ee14ff", "api_key_pending_invalidation": "8f5554d1984854011b8392d9a6f7ef985bcac03c", "apm-custom-dashboards": "b67128f78160c288bd7efe25b2da6e2afd5e82fc", @@ -170,7 +170,7 @@ describe('checking migration metadata changes on all registered SO types', () => "synthetics-private-location": "8cecc9e4f39637d2f8244eb7985c0690ceab24be", "synthetics-privates-locations": "f53d799d5c9bc8454aaa32c6abc99a899b025d5c", "tag": "e2544392fe6563e215bb677abc8b01c2601ef2dc", - "task": "3c89a7c918d5b896a5f8800f06e9114ad7e7aea3", + "task": "ca8020259e46f713965a754ffae286c02d3cf05d", "telemetry": "7b00bcf1c7b4f6db1192bb7405a6a63e78b699fd", "threshold-explorer-view": "175306806f9fc8e13fcc1c8953ec4ba89bda1b70", "ui-metric": "d227284528fd19904e9d972aea0a13716fc5fe24", 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-generate-csv/README.md b/src/platform/packages/private/kbn-generate-csv/README.md similarity index 100% rename from packages/kbn-generate-csv/README.md rename to src/platform/packages/private/kbn-generate-csv/README.md diff --git a/packages/kbn-generate-csv/constants.ts b/src/platform/packages/private/kbn-generate-csv/constants.ts similarity index 100% rename from packages/kbn-generate-csv/constants.ts rename to src/platform/packages/private/kbn-generate-csv/constants.ts diff --git a/packages/kbn-generate-csv/index.ts b/src/platform/packages/private/kbn-generate-csv/index.ts similarity index 100% rename from packages/kbn-generate-csv/index.ts rename to src/platform/packages/private/kbn-generate-csv/index.ts diff --git a/packages/kbn-event-annotation-common/jest.config.js b/src/platform/packages/private/kbn-generate-csv/jest.config.js similarity index 83% rename from packages/kbn-event-annotation-common/jest.config.js rename to src/platform/packages/private/kbn-generate-csv/jest.config.js index 61c60c7572d78..f01182cbc30d8 100644 --- a/packages/kbn-event-annotation-common/jest.config.js +++ b/src/platform/packages/private/kbn-generate-csv/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/private/kbn-generate-csv/'], }; diff --git a/packages/kbn-generate-csv/kibana.jsonc b/src/platform/packages/private/kbn-generate-csv/kibana.jsonc similarity index 100% rename from packages/kbn-generate-csv/kibana.jsonc rename to src/platform/packages/private/kbn-generate-csv/kibana.jsonc diff --git a/packages/kbn-generate-csv/package.json b/src/platform/packages/private/kbn-generate-csv/package.json similarity index 100% rename from packages/kbn-generate-csv/package.json rename to src/platform/packages/private/kbn-generate-csv/package.json diff --git a/packages/kbn-generate-csv/src/__snapshots__/generate_csv.test.ts.snap b/src/platform/packages/private/kbn-generate-csv/src/__snapshots__/generate_csv.test.ts.snap similarity index 100% rename from packages/kbn-generate-csv/src/__snapshots__/generate_csv.test.ts.snap rename to src/platform/packages/private/kbn-generate-csv/src/__snapshots__/generate_csv.test.ts.snap diff --git a/packages/kbn-generate-csv/src/generate_csv.test.ts b/src/platform/packages/private/kbn-generate-csv/src/generate_csv.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/generate_csv.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/generate_csv.test.ts diff --git a/packages/kbn-generate-csv/src/generate_csv.ts b/src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts similarity index 100% rename from packages/kbn-generate-csv/src/generate_csv.ts rename to src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts diff --git a/packages/kbn-generate-csv/src/generate_csv_esql.test.ts b/src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/generate_csv_esql.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.test.ts diff --git a/packages/kbn-generate-csv/src/generate_csv_esql.ts b/src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts similarity index 100% rename from packages/kbn-generate-csv/src/generate_csv_esql.ts rename to src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts diff --git a/packages/kbn-generate-csv/src/index.ts b/src/platform/packages/private/kbn-generate-csv/src/index.ts similarity index 100% rename from packages/kbn-generate-csv/src/index.ts rename to src/platform/packages/private/kbn-generate-csv/src/index.ts diff --git a/packages/kbn-generate-csv/src/lib/get_export_settings.test.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/get_export_settings.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/get_export_settings.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/get_export_settings.test.ts diff --git a/packages/kbn-generate-csv/src/lib/get_export_settings.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/get_export_settings.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/get_export_settings.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/get_export_settings.ts diff --git a/packages/kbn-generate-csv/src/lib/i18n_texts.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/i18n_texts.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/i18n_texts.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/i18n_texts.ts diff --git a/packages/kbn-generate-csv/src/lib/max_size_builder.test.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/max_size_builder.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/max_size_builder.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/max_size_builder.test.ts diff --git a/packages/kbn-generate-csv/src/lib/max_size_string_builder.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/max_size_string_builder.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/max_size_string_builder.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/max_size_string_builder.ts diff --git a/packages/kbn-generate-csv/src/lib/search_cursor.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/search_cursor.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor.ts diff --git a/packages/kbn-generate-csv/src/lib/search_cursor_pit.test.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_pit.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/search_cursor_pit.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_pit.test.ts diff --git a/packages/kbn-generate-csv/src/lib/search_cursor_pit.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_pit.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/search_cursor_pit.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_pit.ts diff --git a/packages/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts diff --git a/packages/kbn-generate-csv/src/lib/search_cursor_scroll.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_scroll.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/search_cursor_scroll.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_scroll.ts diff --git a/packages/kbn-generate-csv/tsconfig.json b/src/platform/packages/private/kbn-generate-csv/tsconfig.json similarity index 92% rename from packages/kbn-generate-csv/tsconfig.json rename to src/platform/packages/private/kbn-generate-csv/tsconfig.json index 4216438b6689a..bc06d1769db7c 100644 --- a/packages/kbn-generate-csv/tsconfig.json +++ b/src/platform/packages/private/kbn-generate-csv/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-generate-csv/types.ts b/src/platform/packages/private/kbn-generate-csv/types.ts similarity index 100% rename from packages/kbn-generate-csv/types.ts rename to src/platform/packages/private/kbn-generate-csv/types.ts 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/core/ui-settings/core-ui-settings-server-internal/jest.config.js b/src/platform/packages/private/kbn-managed-content-badge/jest.config.js similarity index 82% rename from packages/core/ui-settings/core-ui-settings-server-internal/jest.config.js rename to src/platform/packages/private/kbn-managed-content-badge/jest.config.js index bb2b0493be9be..b9bb6ea9621ea 100644 --- a/packages/core/ui-settings/core-ui-settings-server-internal/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/core/ui-settings/core-ui-settings-server-internal'], + 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-reporting/common/README.md b/src/platform/packages/private/kbn-reporting/common/README.md similarity index 100% rename from packages/kbn-reporting/common/README.md rename to src/platform/packages/private/kbn-reporting/common/README.md diff --git a/packages/kbn-reporting/common/build_kibana_path.ts b/src/platform/packages/private/kbn-reporting/common/build_kibana_path.ts similarity index 100% rename from packages/kbn-reporting/common/build_kibana_path.ts rename to src/platform/packages/private/kbn-reporting/common/build_kibana_path.ts diff --git a/packages/kbn-reporting/common/cancellation_token.test.ts b/src/platform/packages/private/kbn-reporting/common/cancellation_token.test.ts similarity index 100% rename from packages/kbn-reporting/common/cancellation_token.test.ts rename to src/platform/packages/private/kbn-reporting/common/cancellation_token.test.ts diff --git a/packages/kbn-reporting/common/cancellation_token.ts b/src/platform/packages/private/kbn-reporting/common/cancellation_token.ts similarity index 100% rename from packages/kbn-reporting/common/cancellation_token.ts rename to src/platform/packages/private/kbn-reporting/common/cancellation_token.ts diff --git a/packages/kbn-reporting/common/constants.ts b/src/platform/packages/private/kbn-reporting/common/constants.ts similarity index 100% rename from packages/kbn-reporting/common/constants.ts rename to src/platform/packages/private/kbn-reporting/common/constants.ts diff --git a/packages/kbn-reporting/common/errors.test.ts b/src/platform/packages/private/kbn-reporting/common/errors.test.ts similarity index 100% rename from packages/kbn-reporting/common/errors.test.ts rename to src/platform/packages/private/kbn-reporting/common/errors.test.ts diff --git a/packages/kbn-reporting/common/errors.ts b/src/platform/packages/private/kbn-reporting/common/errors.ts similarity index 100% rename from packages/kbn-reporting/common/errors.ts rename to src/platform/packages/private/kbn-reporting/common/errors.ts diff --git a/packages/kbn-reporting/common/index.ts b/src/platform/packages/private/kbn-reporting/common/index.ts similarity index 100% rename from packages/kbn-reporting/common/index.ts rename to src/platform/packages/private/kbn-reporting/common/index.ts diff --git a/src/platform/packages/private/kbn-reporting/common/jest.config.js b/src/platform/packages/private/kbn-reporting/common/jest.config.js new file mode 100644 index 0000000000000..84c9cc2064b80 --- /dev/null +++ b/src/platform/packages/private/kbn-reporting/common/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-reporting/common'], +}; diff --git a/packages/kbn-reporting/common/kibana.jsonc b/src/platform/packages/private/kbn-reporting/common/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/common/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/common/kibana.jsonc diff --git a/packages/kbn-reporting/common/package.json b/src/platform/packages/private/kbn-reporting/common/package.json similarity index 100% rename from packages/kbn-reporting/common/package.json rename to src/platform/packages/private/kbn-reporting/common/package.json diff --git a/packages/kbn-reporting/common/routes.ts b/src/platform/packages/private/kbn-reporting/common/routes.ts similarity index 100% rename from packages/kbn-reporting/common/routes.ts rename to src/platform/packages/private/kbn-reporting/common/routes.ts diff --git a/packages/kbn-reporting/common/schema_utils.test.ts b/src/platform/packages/private/kbn-reporting/common/schema_utils.test.ts similarity index 100% rename from packages/kbn-reporting/common/schema_utils.test.ts rename to src/platform/packages/private/kbn-reporting/common/schema_utils.test.ts diff --git a/packages/kbn-reporting/common/schema_utils.ts b/src/platform/packages/private/kbn-reporting/common/schema_utils.ts similarity index 100% rename from packages/kbn-reporting/common/schema_utils.ts rename to src/platform/packages/private/kbn-reporting/common/schema_utils.ts diff --git a/packages/kbn-reporting/common/tsconfig.json b/src/platform/packages/private/kbn-reporting/common/tsconfig.json similarity index 87% rename from packages/kbn-reporting/common/tsconfig.json rename to src/platform/packages/private/kbn-reporting/common/tsconfig.json index 8210d93ad457c..00b1981facf18 100644 --- a/packages/kbn-reporting/common/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/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-reporting/common/types.ts b/src/platform/packages/private/kbn-reporting/common/types.ts similarity index 98% rename from packages/kbn-reporting/common/types.ts rename to src/platform/packages/private/kbn-reporting/common/types.ts index 18f817d2a6627..2b9aaa7b1c9f6 100644 --- a/packages/kbn-reporting/common/types.ts +++ b/src/platform/packages/private/kbn-reporting/common/types.ts @@ -57,7 +57,7 @@ export interface ReportOutput extends TaskRunResult { } /** - * @see also {@link packages/kbn-reporting/common/types.ts} + * @see also {@link src/platform/packages/private/kbn-reporting/common/types.ts} */ export type CsvPagingStrategy = 'pit' | 'scroll'; diff --git a/packages/kbn-reporting/common/url.ts b/src/platform/packages/private/kbn-reporting/common/url.ts similarity index 100% rename from packages/kbn-reporting/common/url.ts rename to src/platform/packages/private/kbn-reporting/common/url.ts diff --git a/packages/kbn-reporting/export_types/csv/README.md b/src/platform/packages/private/kbn-reporting/export_types/csv/README.md similarity index 100% rename from packages/kbn-reporting/export_types/csv/README.md rename to src/platform/packages/private/kbn-reporting/export_types/csv/README.md diff --git a/packages/kbn-reporting/export_types/csv/csv_searchsource.test.ts b/src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv/csv_searchsource.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.test.ts diff --git a/packages/kbn-reporting/export_types/csv/csv_searchsource.ts b/src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv/csv_searchsource.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts diff --git a/packages/kbn-reporting/export_types/csv/csv_v2.ts b/src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv/csv_v2.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts diff --git a/packages/kbn-reporting/export_types/csv/index.ts b/src/platform/packages/private/kbn-reporting/export_types/csv/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv/index.ts diff --git a/packages/content-management/content_insights/content_insights_server/jest.config.js b/src/platform/packages/private/kbn-reporting/export_types/csv/jest.config.js similarity index 81% rename from packages/content-management/content_insights/content_insights_server/jest.config.js rename to src/platform/packages/private/kbn-reporting/export_types/csv/jest.config.js index 15204549bfac2..8daed3e32f510 100644 --- a/packages/content-management/content_insights/content_insights_server/jest.config.js +++ b/src/platform/packages/private/kbn-reporting/export_types/csv/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/content-management/content_insights/content_insights_server'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/private/kbn-reporting/export_types/csv'], }; diff --git a/packages/kbn-reporting/export_types/csv/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/csv/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/csv/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/csv/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/csv/package.json b/src/platform/packages/private/kbn-reporting/export_types/csv/package.json similarity index 100% rename from packages/kbn-reporting/export_types/csv/package.json rename to src/platform/packages/private/kbn-reporting/export_types/csv/package.json diff --git a/packages/kbn-reporting/export_types/csv/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/csv/tsconfig.json similarity index 90% rename from packages/kbn-reporting/export_types/csv/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/csv/tsconfig.json index a5ee79e9b52c4..ed13fa00216ee 100644 --- a/packages/kbn-reporting/export_types/csv/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/csv/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-reporting/export_types/csv/types.ts b/src/platform/packages/private/kbn-reporting/export_types/csv/types.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv/types.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv/types.ts diff --git a/packages/kbn-reporting/export_types/csv_common/README.md b/src/platform/packages/private/kbn-reporting/export_types/csv_common/README.md similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/README.md rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/README.md diff --git a/packages/kbn-reporting/export_types/csv_common/constants.ts b/src/platform/packages/private/kbn-reporting/export_types/csv_common/constants.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/constants.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/constants.ts diff --git a/packages/kbn-reporting/export_types/csv_common/index.ts b/src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts diff --git a/src/platform/packages/private/kbn-reporting/export_types/csv_common/jest.config.js b/src/platform/packages/private/kbn-reporting/export_types/csv_common/jest.config.js new file mode 100644 index 0000000000000..80977b5ea44f1 --- /dev/null +++ b/src/platform/packages/private/kbn-reporting/export_types/csv_common/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-reporting/export_types/csv_common'], +}; diff --git a/packages/kbn-reporting/export_types/csv_common/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/csv_common/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.test.ts b/src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.test.ts diff --git a/packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts b/src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts diff --git a/packages/kbn-reporting/export_types/csv_common/package.json b/src/platform/packages/private/kbn-reporting/export_types/csv_common/package.json similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/package.json rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/package.json diff --git a/packages/kbn-reporting/export_types/csv_common/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/csv_common/tsconfig.json similarity index 83% rename from packages/kbn-reporting/export_types/csv_common/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/tsconfig.json index 32ffe1f902b7e..6a9b838c69205 100644 --- a/packages/kbn-reporting/export_types/csv_common/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/csv_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-reporting/export_types/pdf/get_absolute_url.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_absolute_url.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_absolute_url.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_absolute_url.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/get_absolute_url.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_absolute_url.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_absolute_url.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_absolute_url.ts diff --git a/packages/kbn-reporting/export_types/pdf/get_custom_logo.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_custom_logo.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_custom_logo.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_custom_logo.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/get_custom_logo.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_custom_logo.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_custom_logo.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_custom_logo.ts diff --git a/packages/kbn-reporting/export_types/pdf/get_full_urls.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_full_urls.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_full_urls.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_full_urls.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/get_full_urls.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_full_urls.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_full_urls.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_full_urls.ts diff --git a/packages/kbn-reporting/export_types/pdf/index.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/index.ts diff --git a/packages/core/custom-branding/core-custom-branding-server-internal/jest.config.js b/src/platform/packages/private/kbn-reporting/export_types/pdf/jest.config.js similarity index 81% rename from packages/core/custom-branding/core-custom-branding-server-internal/jest.config.js rename to src/platform/packages/private/kbn-reporting/export_types/pdf/jest.config.js index ebd41954f7d9f..7cfdcbf6173df 100644 --- a/packages/core/custom-branding/core-custom-branding-server-internal/jest.config.js +++ b/src/platform/packages/private/kbn-reporting/export_types/pdf/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../../', - roots: ['/packages/core/custom-branding/core-custom-branding-server-internal'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/private/kbn-reporting/export_types/pdf'], }; diff --git a/packages/kbn-reporting/export_types/pdf/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/pdf/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/pdf/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/pdf/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/pdf/package.json b/src/platform/packages/private/kbn-reporting/export_types/pdf/package.json similarity index 100% rename from packages/kbn-reporting/export_types/pdf/package.json rename to src/platform/packages/private/kbn-reporting/export_types/pdf/package.json diff --git a/packages/kbn-reporting/export_types/pdf/pdf_tracker.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/pdf_tracker.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/pdf_tracker.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/pdf_tracker.ts diff --git a/packages/kbn-reporting/export_types/pdf/printable_pdf.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/printable_pdf.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/printable_pdf.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/printable_pdf.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts diff --git a/packages/kbn-reporting/export_types/pdf/printable_pdf_v2.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/printable_pdf_v2.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts diff --git a/packages/kbn-reporting/export_types/pdf/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/pdf/tsconfig.json similarity index 88% rename from packages/kbn-reporting/export_types/pdf/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/pdf/tsconfig.json index e031db25ad1b4..178288746e031 100644 --- a/packages/kbn-reporting/export_types/pdf/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/pdf/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-reporting/export_types/pdf/validate_urls.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/validate_urls.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/validate_urls.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/validate_urls.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/validate_urls.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/validate_urls.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/validate_urls.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/validate_urls.ts diff --git a/packages/kbn-reporting/export_types/pdf_common/README.md b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/README.md similarity index 100% rename from packages/kbn-reporting/export_types/pdf_common/README.md rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/README.md diff --git a/packages/kbn-reporting/export_types/pdf_common/constants.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/constants.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf_common/constants.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/constants.ts diff --git a/packages/kbn-reporting/export_types/pdf_common/index.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf_common/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts diff --git a/packages/kbn-reporting/export_types/pdf_common/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/pdf_common/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/pdf_common/package.json b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/package.json similarity index 100% rename from packages/kbn-reporting/export_types/pdf_common/package.json rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/package.json diff --git a/packages/kbn-reporting/export_types/pdf_common/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/tsconfig.json similarity index 82% rename from packages/kbn-reporting/export_types/pdf_common/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/tsconfig.json index cb0a7b461eda8..24a75b78a3416 100644 --- a/packages/kbn-reporting/export_types/pdf_common/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/pdf_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-reporting/export_types/png/index.ts b/src/platform/packages/private/kbn-reporting/export_types/png/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/png/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/png/index.ts diff --git a/src/platform/packages/private/kbn-reporting/export_types/png/jest.config.js b/src/platform/packages/private/kbn-reporting/export_types/png/jest.config.js new file mode 100644 index 0000000000000..d5fedfb9ce263 --- /dev/null +++ b/src/platform/packages/private/kbn-reporting/export_types/png/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/private/kbn-reporting/export_types/png'], +}; diff --git a/packages/kbn-reporting/export_types/png/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/png/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/png/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/png/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/png/package.json b/src/platform/packages/private/kbn-reporting/export_types/png/package.json similarity index 100% rename from packages/kbn-reporting/export_types/png/package.json rename to src/platform/packages/private/kbn-reporting/export_types/png/package.json diff --git a/packages/kbn-reporting/export_types/png/png_v2.test.ts b/src/platform/packages/private/kbn-reporting/export_types/png/png_v2.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/png/png_v2.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/png/png_v2.test.ts diff --git a/packages/kbn-reporting/export_types/png/png_v2.ts b/src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts similarity index 100% rename from packages/kbn-reporting/export_types/png/png_v2.ts rename to src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts diff --git a/packages/kbn-reporting/export_types/png/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/png/tsconfig.json similarity index 89% rename from packages/kbn-reporting/export_types/png/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/png/tsconfig.json index b8a141a320dd8..d2f8c86010ca5 100644 --- a/packages/kbn-reporting/export_types/png/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/png/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-reporting/export_types/png_common/README.md b/src/platform/packages/private/kbn-reporting/export_types/png_common/README.md similarity index 100% rename from packages/kbn-reporting/export_types/png_common/README.md rename to src/platform/packages/private/kbn-reporting/export_types/png_common/README.md diff --git a/packages/kbn-reporting/export_types/png_common/constants.ts b/src/platform/packages/private/kbn-reporting/export_types/png_common/constants.ts similarity index 100% rename from packages/kbn-reporting/export_types/png_common/constants.ts rename to src/platform/packages/private/kbn-reporting/export_types/png_common/constants.ts diff --git a/packages/kbn-reporting/export_types/png_common/index.ts b/src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/png_common/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts diff --git a/packages/kbn-reporting/export_types/png_common/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/png_common/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/png_common/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/png_common/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/png_common/package.json b/src/platform/packages/private/kbn-reporting/export_types/png_common/package.json similarity index 100% rename from packages/kbn-reporting/export_types/png_common/package.json rename to src/platform/packages/private/kbn-reporting/export_types/png_common/package.json diff --git a/packages/kbn-reporting/export_types/png_common/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/png_common/tsconfig.json similarity index 82% rename from packages/kbn-reporting/export_types/png_common/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/png_common/tsconfig.json index cb0a7b461eda8..24a75b78a3416 100644 --- a/packages/kbn-reporting/export_types/png_common/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/png_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-reporting/get_csv_panel_actions/index.ts b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/index.ts similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/index.ts rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/index.ts diff --git a/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/jest.config.js b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/jest.config.js new file mode 100644 index 0000000000000..c989959726eda --- /dev/null +++ b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/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-reporting/get_csv_panel_actions'], +}; diff --git a/packages/kbn-reporting/get_csv_panel_actions/kibana.jsonc b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/kibana.jsonc diff --git a/packages/kbn-reporting/get_csv_panel_actions/package.json b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/package.json similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/package.json rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/package.json diff --git a/packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.test.ts b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.test.ts similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.test.ts rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.test.ts diff --git a/packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx diff --git a/packages/kbn-reporting/get_csv_panel_actions/panel_actions/strings.tsx b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/strings.tsx similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/panel_actions/strings.tsx rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/strings.tsx diff --git a/packages/kbn-reporting/get_csv_panel_actions/tsconfig.json b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/tsconfig.json similarity index 92% rename from packages/kbn-reporting/get_csv_panel_actions/tsconfig.json rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/tsconfig.json index 954a92fe814b3..ff8968900804c 100644 --- a/packages/kbn-reporting/get_csv_panel_actions/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-reporting/mocks_server/README.md b/src/platform/packages/private/kbn-reporting/mocks_server/README.md similarity index 100% rename from packages/kbn-reporting/mocks_server/README.md rename to src/platform/packages/private/kbn-reporting/mocks_server/README.md diff --git a/packages/kbn-reporting/mocks_server/index.ts b/src/platform/packages/private/kbn-reporting/mocks_server/index.ts similarity index 100% rename from packages/kbn-reporting/mocks_server/index.ts rename to src/platform/packages/private/kbn-reporting/mocks_server/index.ts diff --git a/src/platform/packages/private/kbn-reporting/mocks_server/jest.config.js b/src/platform/packages/private/kbn-reporting/mocks_server/jest.config.js new file mode 100644 index 0000000000000..b117450bbfe32 --- /dev/null +++ b/src/platform/packages/private/kbn-reporting/mocks_server/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/private/kbn-reporting/mocks_server'], +}; diff --git a/packages/kbn-reporting/mocks_server/kibana.jsonc b/src/platform/packages/private/kbn-reporting/mocks_server/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/mocks_server/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/mocks_server/kibana.jsonc diff --git a/packages/kbn-reporting/mocks_server/package.json b/src/platform/packages/private/kbn-reporting/mocks_server/package.json similarity index 100% rename from packages/kbn-reporting/mocks_server/package.json rename to src/platform/packages/private/kbn-reporting/mocks_server/package.json diff --git a/x-pack/platform/packages/private/ml/kibana_theme/tsconfig.json b/src/platform/packages/private/kbn-reporting/mocks_server/tsconfig.json similarity index 89% rename from x-pack/platform/packages/private/ml/kibana_theme/tsconfig.json rename to src/platform/packages/private/kbn-reporting/mocks_server/tsconfig.json index 1342e03481c51..3f19f7cd23ff2 100644 --- a/x-pack/platform/packages/private/ml/kibana_theme/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/mocks_server/tsconfig.json @@ -14,6 +14,6 @@ "target/**/*" ], "kbn_references": [ - "@kbn/core-theme-browser", + "@kbn/reporting-server", ] } diff --git a/packages/kbn-reporting/public/README.md b/src/platform/packages/private/kbn-reporting/public/README.md similarity index 100% rename from packages/kbn-reporting/public/README.md rename to src/platform/packages/private/kbn-reporting/public/README.md diff --git a/packages/kbn-reporting/public/context.tsx b/src/platform/packages/private/kbn-reporting/public/context.tsx similarity index 100% rename from packages/kbn-reporting/public/context.tsx rename to src/platform/packages/private/kbn-reporting/public/context.tsx diff --git a/packages/kbn-reporting/public/hooks.ts b/src/platform/packages/private/kbn-reporting/public/hooks.ts similarity index 100% rename from packages/kbn-reporting/public/hooks.ts rename to src/platform/packages/private/kbn-reporting/public/hooks.ts diff --git a/packages/kbn-reporting/public/index.ts b/src/platform/packages/private/kbn-reporting/public/index.ts similarity index 100% rename from packages/kbn-reporting/public/index.ts rename to src/platform/packages/private/kbn-reporting/public/index.ts diff --git a/src/platform/packages/private/kbn-reporting/public/jest.config.js b/src/platform/packages/private/kbn-reporting/public/jest.config.js new file mode 100644 index 0000000000000..c9c324666ee0a --- /dev/null +++ b/src/platform/packages/private/kbn-reporting/public/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-reporting/public'], +}; diff --git a/packages/kbn-reporting/public/job.tsx b/src/platform/packages/private/kbn-reporting/public/job.tsx similarity index 100% rename from packages/kbn-reporting/public/job.tsx rename to src/platform/packages/private/kbn-reporting/public/job.tsx diff --git a/packages/kbn-reporting/public/job_completion_notifications.test.ts b/src/platform/packages/private/kbn-reporting/public/job_completion_notifications.test.ts similarity index 100% rename from packages/kbn-reporting/public/job_completion_notifications.test.ts rename to src/platform/packages/private/kbn-reporting/public/job_completion_notifications.test.ts diff --git a/packages/kbn-reporting/public/job_completion_notifications.ts b/src/platform/packages/private/kbn-reporting/public/job_completion_notifications.ts similarity index 100% rename from packages/kbn-reporting/public/job_completion_notifications.ts rename to src/platform/packages/private/kbn-reporting/public/job_completion_notifications.ts diff --git a/packages/kbn-reporting/public/kibana.jsonc b/src/platform/packages/private/kbn-reporting/public/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/public/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/public/kibana.jsonc diff --git a/packages/kbn-reporting/public/license_check.test.ts b/src/platform/packages/private/kbn-reporting/public/license_check.test.ts similarity index 100% rename from packages/kbn-reporting/public/license_check.test.ts rename to src/platform/packages/private/kbn-reporting/public/license_check.test.ts diff --git a/packages/kbn-reporting/public/license_check.ts b/src/platform/packages/private/kbn-reporting/public/license_check.ts similarity index 100% rename from packages/kbn-reporting/public/license_check.ts rename to src/platform/packages/private/kbn-reporting/public/license_check.ts diff --git a/packages/kbn-reporting/public/package.json b/src/platform/packages/private/kbn-reporting/public/package.json similarity index 100% rename from packages/kbn-reporting/public/package.json rename to src/platform/packages/private/kbn-reporting/public/package.json diff --git a/packages/kbn-reporting/public/reporting_api_client.test.ts b/src/platform/packages/private/kbn-reporting/public/reporting_api_client.test.ts similarity index 100% rename from packages/kbn-reporting/public/reporting_api_client.test.ts rename to src/platform/packages/private/kbn-reporting/public/reporting_api_client.test.ts diff --git a/packages/kbn-reporting/public/reporting_api_client.ts b/src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts similarity index 100% rename from packages/kbn-reporting/public/reporting_api_client.ts rename to src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts diff --git a/packages/kbn-reporting/public/share/index.ts b/src/platform/packages/private/kbn-reporting/public/share/index.ts similarity index 100% rename from packages/kbn-reporting/public/share/index.ts rename to src/platform/packages/private/kbn-reporting/public/share/index.ts diff --git a/packages/kbn-reporting/public/share/share_context_menu/__snapshots__/screen_capture_panel_content.test.tsx.snap b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/__snapshots__/screen_capture_panel_content.test.tsx.snap similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/__snapshots__/screen_capture_panel_content.test.tsx.snap rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/__snapshots__/screen_capture_panel_content.test.tsx.snap diff --git a/packages/kbn-reporting/public/share/share_context_menu/index.ts b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/index.ts similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/index.ts rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/index.ts diff --git a/packages/kbn-reporting/public/share/share_context_menu/panel_spinner.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/panel_spinner.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/panel_spinner.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/panel_spinner.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/register_csv_modal_reporting.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_csv_modal_reporting.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/register_csv_modal_reporting.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_csv_modal_reporting.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_unsaved_work_panel.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_unsaved_work_panel.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_unsaved_work_panel.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_unsaved_work_panel.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_url_too_long_panel.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_url_too_long_panel.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_url_too_long_panel.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_url_too_long_panel.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/index.ts b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/index.ts similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/index.ts rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/index.ts diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/constants.ts b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/constants.ts similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/constants.ts rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/constants.ts diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/index.ts b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/index.ts similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/index.ts rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/index.ts diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.test.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.test.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.test.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.test.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content_lazy.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content_lazy.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content_lazy.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content_lazy.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.test.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.test.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.test.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.test.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content_lazy.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content_lazy.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content_lazy.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content_lazy.tsx diff --git a/packages/kbn-reporting/public/share/shared/get_shared_components.tsx b/src/platform/packages/private/kbn-reporting/public/share/shared/get_shared_components.tsx similarity index 100% rename from packages/kbn-reporting/public/share/shared/get_shared_components.tsx rename to src/platform/packages/private/kbn-reporting/public/share/shared/get_shared_components.tsx diff --git a/packages/kbn-reporting/public/share/shared/index.ts b/src/platform/packages/private/kbn-reporting/public/share/shared/index.ts similarity index 100% rename from packages/kbn-reporting/public/share/shared/index.ts rename to src/platform/packages/private/kbn-reporting/public/share/shared/index.ts diff --git a/packages/kbn-reporting/public/tsconfig.json b/src/platform/packages/private/kbn-reporting/public/tsconfig.json similarity index 93% rename from packages/kbn-reporting/public/tsconfig.json rename to src/platform/packages/private/kbn-reporting/public/tsconfig.json index 9ca3c97766623..0f1d7d545cf34 100644 --- a/packages/kbn-reporting/public/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/public/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-reporting/public/types.ts b/src/platform/packages/private/kbn-reporting/public/types.ts similarity index 100% rename from packages/kbn-reporting/public/types.ts rename to src/platform/packages/private/kbn-reporting/public/types.ts diff --git a/packages/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap b/src/platform/packages/private/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap similarity index 100% rename from packages/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap rename to src/platform/packages/private/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap diff --git a/packages/kbn-reporting/server/check_license.test.ts b/src/platform/packages/private/kbn-reporting/server/check_license.test.ts similarity index 100% rename from packages/kbn-reporting/server/check_license.test.ts rename to src/platform/packages/private/kbn-reporting/server/check_license.test.ts diff --git a/packages/kbn-reporting/server/check_license.ts b/src/platform/packages/private/kbn-reporting/server/check_license.ts similarity index 100% rename from packages/kbn-reporting/server/check_license.ts rename to src/platform/packages/private/kbn-reporting/server/check_license.ts diff --git a/packages/kbn-reporting/server/config_schema.test.ts b/src/platform/packages/private/kbn-reporting/server/config_schema.test.ts similarity index 100% rename from packages/kbn-reporting/server/config_schema.test.ts rename to src/platform/packages/private/kbn-reporting/server/config_schema.test.ts diff --git a/packages/kbn-reporting/server/config_schema.ts b/src/platform/packages/private/kbn-reporting/server/config_schema.ts similarity index 100% rename from packages/kbn-reporting/server/config_schema.ts rename to src/platform/packages/private/kbn-reporting/server/config_schema.ts diff --git a/packages/kbn-reporting/server/constants.ts b/src/platform/packages/private/kbn-reporting/server/constants.ts similarity index 100% rename from packages/kbn-reporting/server/constants.ts rename to src/platform/packages/private/kbn-reporting/server/constants.ts diff --git a/packages/kbn-reporting/server/crypto.ts b/src/platform/packages/private/kbn-reporting/server/crypto.ts similarity index 100% rename from packages/kbn-reporting/server/crypto.ts rename to src/platform/packages/private/kbn-reporting/server/crypto.ts diff --git a/packages/kbn-reporting/server/decrypt_job_headers.test.ts b/src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.test.ts similarity index 100% rename from packages/kbn-reporting/server/decrypt_job_headers.test.ts rename to src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.test.ts diff --git a/packages/kbn-reporting/server/decrypt_job_headers.ts b/src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.ts similarity index 100% rename from packages/kbn-reporting/server/decrypt_job_headers.ts rename to src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.ts diff --git a/packages/kbn-reporting/server/export_type.ts b/src/platform/packages/private/kbn-reporting/server/export_type.ts similarity index 100% rename from packages/kbn-reporting/server/export_type.ts rename to src/platform/packages/private/kbn-reporting/server/export_type.ts diff --git a/packages/kbn-reporting/server/export_types_registry.ts b/src/platform/packages/private/kbn-reporting/server/export_types_registry.ts similarity index 100% rename from packages/kbn-reporting/server/export_types_registry.ts rename to src/platform/packages/private/kbn-reporting/server/export_types_registry.ts diff --git a/packages/kbn-reporting/server/get_full_redirect_app_url.test.ts b/src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.test.ts similarity index 100% rename from packages/kbn-reporting/server/get_full_redirect_app_url.test.ts rename to src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.test.ts diff --git a/packages/kbn-reporting/server/get_full_redirect_app_url.ts b/src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.ts similarity index 100% rename from packages/kbn-reporting/server/get_full_redirect_app_url.ts rename to src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.ts diff --git a/packages/kbn-reporting/server/index.ts b/src/platform/packages/private/kbn-reporting/server/index.ts similarity index 100% rename from packages/kbn-reporting/server/index.ts rename to src/platform/packages/private/kbn-reporting/server/index.ts diff --git a/src/platform/packages/private/kbn-reporting/server/jest.config.js b/src/platform/packages/private/kbn-reporting/server/jest.config.js new file mode 100644 index 0000000000000..1ed014b7b7df0 --- /dev/null +++ b/src/platform/packages/private/kbn-reporting/server/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-reporting/server'], +}; diff --git a/packages/kbn-reporting/server/kibana.jsonc b/src/platform/packages/private/kbn-reporting/server/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/server/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/server/kibana.jsonc diff --git a/packages/kbn-reporting/server/package.json b/src/platform/packages/private/kbn-reporting/server/package.json similarity index 100% rename from packages/kbn-reporting/server/package.json rename to src/platform/packages/private/kbn-reporting/server/package.json diff --git a/packages/kbn-reporting/server/services.ts b/src/platform/packages/private/kbn-reporting/server/services.ts similarity index 100% rename from packages/kbn-reporting/server/services.ts rename to src/platform/packages/private/kbn-reporting/server/services.ts diff --git a/packages/kbn-reporting/server/tsconfig.json b/src/platform/packages/private/kbn-reporting/server/tsconfig.json similarity index 93% rename from packages/kbn-reporting/server/tsconfig.json rename to src/platform/packages/private/kbn-reporting/server/tsconfig.json index 94b082afdc2ee..07fcdf9efb4e3 100644 --- a/packages/kbn-reporting/server/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-reporting/server/types.ts b/src/platform/packages/private/kbn-reporting/server/types.ts similarity index 100% rename from packages/kbn-reporting/server/types.ts rename to src/platform/packages/private/kbn-reporting/server/types.ts diff --git a/packages/kbn-screenshotting-server/README.md b/src/platform/packages/private/kbn-screenshotting-server/README.md similarity index 100% rename from packages/kbn-screenshotting-server/README.md rename to src/platform/packages/private/kbn-screenshotting-server/README.md diff --git a/packages/kbn-screenshotting-server/index.ts b/src/platform/packages/private/kbn-screenshotting-server/index.ts similarity index 100% rename from packages/kbn-screenshotting-server/index.ts rename to src/platform/packages/private/kbn-screenshotting-server/index.ts diff --git a/packages/content-management/favorites/favorites_common/jest.config.js b/src/platform/packages/private/kbn-screenshotting-server/jest.config.js similarity index 82% rename from packages/content-management/favorites/favorites_common/jest.config.js rename to src/platform/packages/private/kbn-screenshotting-server/jest.config.js index c8b618b4f4ac6..59ae5deea5d8b 100644 --- a/packages/content-management/favorites/favorites_common/jest.config.js +++ b/src/platform/packages/private/kbn-screenshotting-server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/content-management/favorites/favorites_common'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-screenshotting-server'], }; diff --git a/packages/kbn-screenshotting-server/kibana.jsonc b/src/platform/packages/private/kbn-screenshotting-server/kibana.jsonc similarity index 100% rename from packages/kbn-screenshotting-server/kibana.jsonc rename to src/platform/packages/private/kbn-screenshotting-server/kibana.jsonc diff --git a/packages/kbn-screenshotting-server/package.json b/src/platform/packages/private/kbn-screenshotting-server/package.json similarity index 100% rename from packages/kbn-screenshotting-server/package.json rename to src/platform/packages/private/kbn-screenshotting-server/package.json diff --git a/packages/kbn-screenshotting-server/src/args.test.ts b/src/platform/packages/private/kbn-screenshotting-server/src/args.test.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/args.test.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/args.test.ts diff --git a/packages/kbn-screenshotting-server/src/args.ts b/src/platform/packages/private/kbn-screenshotting-server/src/args.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/args.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/args.ts diff --git a/packages/kbn-screenshotting-server/src/config/create_config.test.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/create_config.test.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/create_config.test.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/create_config.test.ts diff --git a/packages/kbn-screenshotting-server/src/config/create_config.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/create_config.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/create_config.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/create_config.ts diff --git a/packages/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.test.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.test.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.test.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.test.ts diff --git a/packages/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.ts diff --git a/packages/kbn-screenshotting-server/src/config/index.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/index.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/index.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/index.ts diff --git a/packages/kbn-screenshotting-server/src/config/schema.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/schema.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/schema.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/schema.ts diff --git a/packages/kbn-screenshotting-server/src/get_chromium_package.ts b/src/platform/packages/private/kbn-screenshotting-server/src/get_chromium_package.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/get_chromium_package.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/get_chromium_package.ts diff --git a/packages/kbn-screenshotting-server/src/paths.test.ts b/src/platform/packages/private/kbn-screenshotting-server/src/paths.test.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/paths.test.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/paths.test.ts diff --git a/packages/kbn-screenshotting-server/src/paths.ts b/src/platform/packages/private/kbn-screenshotting-server/src/paths.ts similarity index 99% rename from packages/kbn-screenshotting-server/src/paths.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/paths.ts index e4c5a89d77627..6528981207ba3 100644 --- a/packages/kbn-screenshotting-server/src/paths.ts +++ b/src/platform/packages/private/kbn-screenshotting-server/src/paths.ts @@ -103,7 +103,7 @@ export class ChromiumArchivePaths { ]; // zip files get downloaded to a .chromium directory in the kibana root - public readonly archivesPath = path.resolve(__dirname, '../../../.chromium'); + public readonly archivesPath = path.resolve(__dirname, '../../../../../../.chromium'); public find(platform: string, architecture: string, packages: PackageInfo[] = this.packages) { return packages.find((p) => p.platform === platform && p.architecture === architecture); diff --git a/packages/kbn-screenshotting-server/tsconfig.json b/src/platform/packages/private/kbn-screenshotting-server/tsconfig.json similarity index 84% rename from packages/kbn-screenshotting-server/tsconfig.json rename to src/platform/packages/private/kbn-screenshotting-server/tsconfig.json index 1ca4b9da2b0f6..1661cfb5925e5 100644 --- a/packages/kbn-screenshotting-server/tsconfig.json +++ b/src/platform/packages/private/kbn-screenshotting-server/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/src/platform/packages/private/kbn-tinymath/jest.config.js b/src/platform/packages/private/kbn-tinymath/jest.config.js new file mode 100644 index 0000000000000..14ea6adfc47f0 --- /dev/null +++ b/src/platform/packages/private/kbn-tinymath/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-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/platform/packages/private/shared-ux/storybook/config/main.ts b/src/platform/packages/private/shared-ux/storybook/config/main.ts index 7d145943c881d..257268c9e0f54 100644 --- a/src/platform/packages/private/shared-ux/storybook/config/main.ts +++ b/src/platform/packages/private/shared-ux/storybook/config/main.ts @@ -11,7 +11,10 @@ import { defaultConfig } from '@kbn/storybook'; module.exports = { ...defaultConfig, - stories: ['../../../../../**/*.stories.+(tsx|mdx)'], + stories: [ + '../../**/*.stories.+(tsx|mdx)', + '../../../../shared/shared-ux/**/*.stories.+(tsx|mdx)', + ], reactOptions: { strictMode: true, }, 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/content-management/favorites/favorites_server/jest.config.js b/src/platform/packages/shared/chart-expressions-common/jest.config.js similarity index 83% rename from packages/content-management/favorites/favorites_server/jest.config.js rename to src/platform/packages/shared/chart-expressions-common/jest.config.js index 03916770b5a55..b5ba25d7a25f7 100644 --- a/packages/content-management/favorites/favorites_server/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/content-management/favorites/favorites_server'], + 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/content-management/content_editor/README.md b/src/platform/packages/shared/content-management/content_editor/README.md similarity index 100% rename from packages/content-management/content_editor/README.md rename to src/platform/packages/shared/content-management/content_editor/README.md diff --git a/packages/content-management/content_editor/index.ts b/src/platform/packages/shared/content-management/content_editor/index.ts similarity index 100% rename from packages/content-management/content_editor/index.ts rename to src/platform/packages/shared/content-management/content_editor/index.ts diff --git a/packages/content-management/content_insights/content_insights_public/jest.config.js b/src/platform/packages/shared/content-management/content_editor/jest.config.js similarity index 81% rename from packages/content-management/content_insights/content_insights_public/jest.config.js rename to src/platform/packages/shared/content-management/content_editor/jest.config.js index a5af1e4e29893..19820429e831f 100644 --- a/packages/content-management/content_insights/content_insights_public/jest.config.js +++ b/src/platform/packages/shared/content-management/content_editor/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/content-management/content_insights/content_insights_public'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/content-management/content_editor'], }; diff --git a/packages/content-management/content_editor/kibana.jsonc b/src/platform/packages/shared/content-management/content_editor/kibana.jsonc similarity index 100% rename from packages/content-management/content_editor/kibana.jsonc rename to src/platform/packages/shared/content-management/content_editor/kibana.jsonc diff --git a/packages/content-management/content_editor/package.json b/src/platform/packages/shared/content-management/content_editor/package.json similarity index 100% rename from packages/content-management/content_editor/package.json rename to src/platform/packages/shared/content-management/content_editor/package.json diff --git a/packages/content-management/content_editor/src/__jest__/index.ts b/src/platform/packages/shared/content-management/content_editor/src/__jest__/index.ts similarity index 100% rename from packages/content-management/content_editor/src/__jest__/index.ts rename to src/platform/packages/shared/content-management/content_editor/src/__jest__/index.ts diff --git a/packages/content-management/content_editor/src/__jest__/tests.helpers.tsx b/src/platform/packages/shared/content-management/content_editor/src/__jest__/tests.helpers.tsx similarity index 100% rename from packages/content-management/content_editor/src/__jest__/tests.helpers.tsx rename to src/platform/packages/shared/content-management/content_editor/src/__jest__/tests.helpers.tsx diff --git a/packages/content-management/content_editor/src/components/editor_flyout_content.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_content.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/editor_flyout_content.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_content.tsx diff --git a/packages/content-management/content_editor/src/components/editor_flyout_content_container.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_content_container.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/editor_flyout_content_container.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_content_container.tsx diff --git a/packages/content-management/content_editor/src/components/editor_flyout_warnings.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_warnings.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/editor_flyout_warnings.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_warnings.tsx diff --git a/packages/content-management/content_editor/src/components/editor_loader.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/editor_loader.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/editor_loader.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/editor_loader.tsx diff --git a/packages/content-management/content_editor/src/components/index.ts b/src/platform/packages/shared/content-management/content_editor/src/components/index.ts similarity index 100% rename from packages/content-management/content_editor/src/components/index.ts rename to src/platform/packages/shared/content-management/content_editor/src/components/index.ts diff --git a/packages/content-management/content_editor/src/components/inspector_flyout_content.test.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/inspector_flyout_content.test.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/inspector_flyout_content.test.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/inspector_flyout_content.test.tsx diff --git a/packages/content-management/content_editor/src/components/metadata_form.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/metadata_form.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx diff --git a/packages/content-management/content_editor/src/components/use_metadata_form.ts b/src/platform/packages/shared/content-management/content_editor/src/components/use_metadata_form.ts similarity index 100% rename from packages/content-management/content_editor/src/components/use_metadata_form.ts rename to src/platform/packages/shared/content-management/content_editor/src/components/use_metadata_form.ts diff --git a/packages/content-management/content_editor/src/index.ts b/src/platform/packages/shared/content-management/content_editor/src/index.ts similarity index 100% rename from packages/content-management/content_editor/src/index.ts rename to src/platform/packages/shared/content-management/content_editor/src/index.ts diff --git a/packages/content-management/content_editor/src/mocks.tsx b/src/platform/packages/shared/content-management/content_editor/src/mocks.tsx similarity index 100% rename from packages/content-management/content_editor/src/mocks.tsx rename to src/platform/packages/shared/content-management/content_editor/src/mocks.tsx diff --git a/packages/content-management/content_editor/src/open_content_editor.test.tsx b/src/platform/packages/shared/content-management/content_editor/src/open_content_editor.test.tsx similarity index 100% rename from packages/content-management/content_editor/src/open_content_editor.test.tsx rename to src/platform/packages/shared/content-management/content_editor/src/open_content_editor.test.tsx diff --git a/packages/content-management/content_editor/src/open_content_editor.tsx b/src/platform/packages/shared/content-management/content_editor/src/open_content_editor.tsx similarity index 100% rename from packages/content-management/content_editor/src/open_content_editor.tsx rename to src/platform/packages/shared/content-management/content_editor/src/open_content_editor.tsx diff --git a/packages/content-management/content_editor/src/services.tsx b/src/platform/packages/shared/content-management/content_editor/src/services.tsx similarity index 100% rename from packages/content-management/content_editor/src/services.tsx rename to src/platform/packages/shared/content-management/content_editor/src/services.tsx diff --git a/packages/content-management/content_editor/src/types.ts b/src/platform/packages/shared/content-management/content_editor/src/types.ts similarity index 100% rename from packages/content-management/content_editor/src/types.ts rename to src/platform/packages/shared/content-management/content_editor/src/types.ts diff --git a/packages/content-management/content_editor/tsconfig.json b/src/platform/packages/shared/content-management/content_editor/tsconfig.json similarity index 93% rename from packages/content-management/content_editor/tsconfig.json rename to src/platform/packages/shared/content-management/content_editor/tsconfig.json index 832da409a06fd..d767b59191161 100644 --- a/packages/content-management/content_editor/tsconfig.json +++ b/src/platform/packages/shared/content-management/content_editor/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "jsx": "react", diff --git a/packages/content-management/content_insights/content_insights_public/README.md b/src/platform/packages/shared/content-management/content_insights/content_insights_public/README.md similarity index 100% rename from packages/content-management/content_insights/content_insights_public/README.md rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/README.md diff --git a/packages/content-management/content_insights/content_insights_public/index.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_public/index.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_public/index.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/index.ts diff --git a/src/platform/packages/shared/content-management/content_insights/content_insights_public/jest.config.js b/src/platform/packages/shared/content-management/content_insights/content_insights_public/jest.config.js new file mode 100644 index 0000000000000..a1308c042c304 --- /dev/null +++ b/src/platform/packages/shared/content-management/content_insights/content_insights_public/jest.config.js @@ -0,0 +1,16 @@ +/* + * 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/content-management/content_insights/content_insights_public', + ], +}; diff --git a/packages/content-management/content_insights/content_insights_public/kibana.jsonc b/src/platform/packages/shared/content-management/content_insights/content_insights_public/kibana.jsonc similarity index 100% rename from packages/content-management/content_insights/content_insights_public/kibana.jsonc rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/kibana.jsonc diff --git a/packages/content-management/content_insights/content_insights_public/package.json b/src/platform/packages/shared/content-management/content_insights/content_insights_public/package.json similarity index 100% rename from packages/content-management/content_insights/content_insights_public/package.json rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/package.json diff --git a/packages/content-management/content_insights/content_insights_public/src/client.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/client.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts diff --git a/packages/content-management/content_insights/content_insights_public/src/components/activity_view.test.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.test.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/activity_view.test.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.test.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/components/activity_view.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/activity_view.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/components/index.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/index.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/index.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/index.ts diff --git a/packages/content-management/content_insights/content_insights_public/src/components/views_stats/index.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/index.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/views_stats/index.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/index.ts diff --git a/packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_chart.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_chart.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_chart.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_chart.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.test.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.test.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.test.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.test.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats_lib.test.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats_lib.test.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats_lib.test.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats_lib.test.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/services.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/services.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/services.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/services.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/types.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/types.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/types.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/types.ts diff --git a/packages/content-management/content_insights/content_insights_public/tsconfig.json b/src/platform/packages/shared/content-management/content_insights/content_insights_public/tsconfig.json similarity index 92% rename from packages/content-management/content_insights/content_insights_public/tsconfig.json rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/tsconfig.json index 0f99ab03a4e1d..f93cc610ca877 100644 --- a/packages/content-management/content_insights/content_insights_public/tsconfig.json +++ b/src/platform/packages/shared/content-management/content_insights/content_insights_public/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/content-management/content_insights/content_insights_server/README.md b/src/platform/packages/shared/content-management/content_insights/content_insights_server/README.md similarity index 100% rename from packages/content-management/content_insights/content_insights_server/README.md rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/README.md diff --git a/packages/content-management/content_insights/content_insights_server/index.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_server/index.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_server/index.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/index.ts diff --git a/src/platform/packages/shared/content-management/content_insights/content_insights_server/jest.config.js b/src/platform/packages/shared/content-management/content_insights/content_insights_server/jest.config.js new file mode 100644 index 0000000000000..e091055dd9382 --- /dev/null +++ b/src/platform/packages/shared/content-management/content_insights/content_insights_server/jest.config.js @@ -0,0 +1,16 @@ +/* + * 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/content-management/content_insights/content_insights_server', + ], +}; diff --git a/packages/content-management/content_insights/content_insights_server/kibana.jsonc b/src/platform/packages/shared/content-management/content_insights/content_insights_server/kibana.jsonc similarity index 100% rename from packages/content-management/content_insights/content_insights_server/kibana.jsonc rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/kibana.jsonc diff --git a/packages/content-management/content_insights/content_insights_server/package.json b/src/platform/packages/shared/content-management/content_insights/content_insights_server/package.json similarity index 100% rename from packages/content-management/content_insights/content_insights_server/package.json rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/package.json diff --git a/packages/content-management/content_insights/content_insights_server/src/register.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_server/src/register.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts diff --git a/packages/content-management/content_insights/content_insights_server/tsconfig.json b/src/platform/packages/shared/content-management/content_insights/content_insights_server/tsconfig.json similarity index 83% rename from packages/content-management/content_insights/content_insights_server/tsconfig.json rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/tsconfig.json index 3e2312c0278a2..d04c5a9821fc1 100644 --- a/packages/content-management/content_insights/content_insights_server/tsconfig.json +++ b/src/platform/packages/shared/content-management/content_insights/content_insights_server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/content-management/favorites/favorites_common/README.md b/src/platform/packages/shared/content-management/favorites/favorites_common/README.md similarity index 100% rename from packages/content-management/favorites/favorites_common/README.md rename to src/platform/packages/shared/content-management/favorites/favorites_common/README.md diff --git a/packages/content-management/favorites/favorites_common/index.ts b/src/platform/packages/shared/content-management/favorites/favorites_common/index.ts similarity index 100% rename from packages/content-management/favorites/favorites_common/index.ts rename to src/platform/packages/shared/content-management/favorites/favorites_common/index.ts diff --git a/src/platform/packages/shared/content-management/favorites/favorites_common/jest.config.js b/src/platform/packages/shared/content-management/favorites/favorites_common/jest.config.js new file mode 100644 index 0000000000000..7062f6115145a --- /dev/null +++ b/src/platform/packages/shared/content-management/favorites/favorites_common/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/content-management/favorites/favorites_common'], +}; diff --git a/packages/content-management/favorites/favorites_common/kibana.jsonc b/src/platform/packages/shared/content-management/favorites/favorites_common/kibana.jsonc similarity index 84% rename from packages/content-management/favorites/favorites_common/kibana.jsonc rename to src/platform/packages/shared/content-management/favorites/favorites_common/kibana.jsonc index 46a8bdf6862b0..b5908ab1e5f6e 100644 --- a/packages/content-management/favorites/favorites_common/kibana.jsonc +++ b/src/platform/packages/shared/content-management/favorites/favorites_common/kibana.jsonc @@ -3,5 +3,5 @@ "id": "@kbn/content-management-favorites-common", "owner": "@elastic/appex-sharedux", "group": "platform", - "visibility": "private" + "visibility": "shared" } diff --git a/packages/content-management/favorites/favorites_common/package.json b/src/platform/packages/shared/content-management/favorites/favorites_common/package.json similarity index 100% rename from packages/content-management/favorites/favorites_common/package.json rename to src/platform/packages/shared/content-management/favorites/favorites_common/package.json diff --git a/packages/content-management/favorites/favorites_common/tsconfig.json b/src/platform/packages/shared/content-management/favorites/favorites_common/tsconfig.json similarity index 78% rename from packages/content-management/favorites/favorites_common/tsconfig.json rename to src/platform/packages/shared/content-management/favorites/favorites_common/tsconfig.json index 0d78dace105e1..d3b1bb09783b7 100644 --- a/packages/content-management/favorites/favorites_common/tsconfig.json +++ b/src/platform/packages/shared/content-management/favorites/favorites_common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/content-management/favorites/favorites_public/README.md b/src/platform/packages/shared/content-management/favorites/favorites_public/README.md similarity index 100% rename from packages/content-management/favorites/favorites_public/README.md rename to src/platform/packages/shared/content-management/favorites/favorites_public/README.md diff --git a/packages/content-management/favorites/favorites_public/index.ts b/src/platform/packages/shared/content-management/favorites/favorites_public/index.ts similarity index 100% rename from packages/content-management/favorites/favorites_public/index.ts rename to src/platform/packages/shared/content-management/favorites/favorites_public/index.ts diff --git a/src/platform/packages/shared/content-management/favorites/favorites_public/jest.config.js b/src/platform/packages/shared/content-management/favorites/favorites_public/jest.config.js new file mode 100644 index 0000000000000..c3a9e5d878f76 --- /dev/null +++ b/src/platform/packages/shared/content-management/favorites/favorites_public/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/content-management/favorites/favorites_public'], +}; diff --git a/packages/content-management/favorites/favorites_public/kibana.jsonc b/src/platform/packages/shared/content-management/favorites/favorites_public/kibana.jsonc similarity index 100% rename from packages/content-management/favorites/favorites_public/kibana.jsonc rename to src/platform/packages/shared/content-management/favorites/favorites_public/kibana.jsonc diff --git a/packages/content-management/favorites/favorites_public/package.json b/src/platform/packages/shared/content-management/favorites/favorites_public/package.json similarity index 100% rename from packages/content-management/favorites/favorites_public/package.json rename to src/platform/packages/shared/content-management/favorites/favorites_public/package.json diff --git a/packages/content-management/favorites/favorites_public/src/components/empty_favorites_dark.svg b/src/platform/packages/shared/content-management/favorites/favorites_public/src/components/empty_favorites_dark.svg similarity index 100% rename from packages/content-management/favorites/favorites_public/src/components/empty_favorites_dark.svg rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/components/empty_favorites_dark.svg diff --git a/packages/content-management/favorites/favorites_public/src/components/empty_favorites_light.svg b/src/platform/packages/shared/content-management/favorites/favorites_public/src/components/empty_favorites_light.svg similarity index 100% rename from packages/content-management/favorites/favorites_public/src/components/empty_favorites_light.svg rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/components/empty_favorites_light.svg diff --git a/packages/content-management/favorites/favorites_public/src/components/favorite_button.tsx b/src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorite_button.tsx similarity index 100% rename from packages/content-management/favorites/favorites_public/src/components/favorite_button.tsx rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorite_button.tsx diff --git a/packages/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx b/src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx similarity index 100% rename from packages/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx diff --git a/packages/content-management/favorites/favorites_public/src/favorites_client.ts b/src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts similarity index 100% rename from packages/content-management/favorites/favorites_public/src/favorites_client.ts rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts diff --git a/packages/content-management/favorites/favorites_public/src/favorites_context.tsx b/src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_context.tsx similarity index 100% rename from packages/content-management/favorites/favorites_public/src/favorites_context.tsx rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_context.tsx diff --git a/packages/content-management/favorites/favorites_public/src/favorites_query.tsx b/src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_query.tsx similarity index 100% rename from packages/content-management/favorites/favorites_public/src/favorites_query.tsx rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_query.tsx diff --git a/packages/content-management/favorites/favorites_public/tsconfig.json b/src/platform/packages/shared/content-management/favorites/favorites_public/tsconfig.json similarity index 89% rename from packages/content-management/favorites/favorites_public/tsconfig.json rename to src/platform/packages/shared/content-management/favorites/favorites_public/tsconfig.json index aa36c38cebab3..92e517f2c9a0c 100644 --- a/packages/content-management/favorites/favorites_public/tsconfig.json +++ b/src/platform/packages/shared/content-management/favorites/favorites_public/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/content-management/favorites/favorites_server/README.md b/src/platform/packages/shared/content-management/favorites/favorites_server/README.md similarity index 100% rename from packages/content-management/favorites/favorites_server/README.md rename to src/platform/packages/shared/content-management/favorites/favorites_server/README.md diff --git a/packages/content-management/favorites/favorites_server/index.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/index.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/index.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/index.ts diff --git a/src/platform/packages/shared/content-management/favorites/favorites_server/jest.config.js b/src/platform/packages/shared/content-management/favorites/favorites_server/jest.config.js new file mode 100644 index 0000000000000..ef429d8acebd4 --- /dev/null +++ b/src/platform/packages/shared/content-management/favorites/favorites_server/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/content-management/favorites/favorites_server'], +}; diff --git a/packages/content-management/favorites/favorites_server/kibana.jsonc b/src/platform/packages/shared/content-management/favorites/favorites_server/kibana.jsonc similarity index 100% rename from packages/content-management/favorites/favorites_server/kibana.jsonc rename to src/platform/packages/shared/content-management/favorites/favorites_server/kibana.jsonc diff --git a/packages/content-management/favorites/favorites_server/package.json b/src/platform/packages/shared/content-management/favorites/favorites_server/package.json similarity index 100% rename from packages/content-management/favorites/favorites_server/package.json rename to src/platform/packages/shared/content-management/favorites/favorites_server/package.json diff --git a/packages/content-management/favorites/favorites_server/src/favorites_registry.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_registry.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/favorites_registry.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_registry.ts diff --git a/packages/content-management/favorites/favorites_server/src/favorites_routes.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/favorites_routes.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts diff --git a/packages/content-management/favorites/favorites_server/src/favorites_saved_object.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_saved_object.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/favorites_saved_object.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_saved_object.ts diff --git a/packages/content-management/favorites/favorites_server/src/favorites_service.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_service.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/favorites_service.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_service.ts diff --git a/packages/content-management/favorites/favorites_server/src/favorites_usage_collection.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_usage_collection.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/favorites_usage_collection.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_usage_collection.ts diff --git a/packages/content-management/favorites/favorites_server/src/index.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/index.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/index.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/index.ts diff --git a/packages/content-management/favorites/favorites_server/tsconfig.json b/src/platform/packages/shared/content-management/favorites/favorites_server/tsconfig.json similarity index 88% rename from packages/content-management/favorites/favorites_server/tsconfig.json rename to src/platform/packages/shared/content-management/favorites/favorites_server/tsconfig.json index bbab19ade978b..a5496a769ab58 100644 --- a/packages/content-management/favorites/favorites_server/tsconfig.json +++ b/src/platform/packages/shared/content-management/favorites/favorites_server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/content-management/tabbed_table_list_view/README.mdx b/src/platform/packages/shared/content-management/tabbed_table_list_view/README.mdx similarity index 100% rename from packages/content-management/tabbed_table_list_view/README.mdx rename to src/platform/packages/shared/content-management/tabbed_table_list_view/README.mdx diff --git a/packages/content-management/tabbed_table_list_view/index.ts b/src/platform/packages/shared/content-management/tabbed_table_list_view/index.ts similarity index 100% rename from packages/content-management/tabbed_table_list_view/index.ts rename to src/platform/packages/shared/content-management/tabbed_table_list_view/index.ts diff --git a/src/platform/packages/shared/content-management/tabbed_table_list_view/jest.config.js b/src/platform/packages/shared/content-management/tabbed_table_list_view/jest.config.js new file mode 100644 index 0000000000000..b4332412c4c95 --- /dev/null +++ b/src/platform/packages/shared/content-management/tabbed_table_list_view/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/content-management/tabbed_table_list_view'], +}; diff --git a/packages/content-management/tabbed_table_list_view/kibana.jsonc b/src/platform/packages/shared/content-management/tabbed_table_list_view/kibana.jsonc similarity index 85% rename from packages/content-management/tabbed_table_list_view/kibana.jsonc rename to src/platform/packages/shared/content-management/tabbed_table_list_view/kibana.jsonc index ec30f2315a464..9f126adf089a5 100644 --- a/packages/content-management/tabbed_table_list_view/kibana.jsonc +++ b/src/platform/packages/shared/content-management/tabbed_table_list_view/kibana.jsonc @@ -5,5 +5,5 @@ "@elastic/appex-sharedux" ], "group": "platform", - "visibility": "private" -} \ No newline at end of file + "visibility": "shared" +} diff --git a/packages/content-management/tabbed_table_list_view/package.json b/src/platform/packages/shared/content-management/tabbed_table_list_view/package.json similarity index 100% rename from packages/content-management/tabbed_table_list_view/package.json rename to src/platform/packages/shared/content-management/tabbed_table_list_view/package.json diff --git a/packages/content-management/tabbed_table_list_view/src/index.ts b/src/platform/packages/shared/content-management/tabbed_table_list_view/src/index.ts similarity index 100% rename from packages/content-management/tabbed_table_list_view/src/index.ts rename to src/platform/packages/shared/content-management/tabbed_table_list_view/src/index.ts diff --git a/packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.test.tsx b/src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.test.tsx similarity index 100% rename from packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.test.tsx rename to src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.test.tsx diff --git a/packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx b/src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx similarity index 100% rename from packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx rename to src/platform/packages/shared/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx diff --git a/packages/content-management/tabbed_table_list_view/tsconfig.json b/src/platform/packages/shared/content-management/tabbed_table_list_view/tsconfig.json similarity index 91% rename from packages/content-management/tabbed_table_list_view/tsconfig.json rename to src/platform/packages/shared/content-management/tabbed_table_list_view/tsconfig.json index 41c06d75bbbda..2deb84e79bdb9 100644 --- a/packages/content-management/tabbed_table_list_view/tsconfig.json +++ b/src/platform/packages/shared/content-management/tabbed_table_list_view/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/content-management/table_list_view/README.mdx b/src/platform/packages/shared/content-management/table_list_view/README.mdx similarity index 100% rename from packages/content-management/table_list_view/README.mdx rename to src/platform/packages/shared/content-management/table_list_view/README.mdx diff --git a/packages/content-management/table_list_view/index.ts b/src/platform/packages/shared/content-management/table_list_view/index.ts similarity index 100% rename from packages/content-management/table_list_view/index.ts rename to src/platform/packages/shared/content-management/table_list_view/index.ts diff --git a/src/platform/packages/shared/content-management/table_list_view/jest.config.js b/src/platform/packages/shared/content-management/table_list_view/jest.config.js new file mode 100644 index 0000000000000..912c0c68d91e7 --- /dev/null +++ b/src/platform/packages/shared/content-management/table_list_view/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/content-management/table_list_view'], +}; diff --git a/packages/content-management/table_list_view/kibana.jsonc b/src/platform/packages/shared/content-management/table_list_view/kibana.jsonc similarity index 100% rename from packages/content-management/table_list_view/kibana.jsonc rename to src/platform/packages/shared/content-management/table_list_view/kibana.jsonc diff --git a/packages/content-management/table_list_view/package.json b/src/platform/packages/shared/content-management/table_list_view/package.json similarity index 100% rename from packages/content-management/table_list_view/package.json rename to src/platform/packages/shared/content-management/table_list_view/package.json diff --git a/packages/content-management/table_list_view/src/table_list_view.tsx b/src/platform/packages/shared/content-management/table_list_view/src/table_list_view.tsx similarity index 100% rename from packages/content-management/table_list_view/src/table_list_view.tsx rename to src/platform/packages/shared/content-management/table_list_view/src/table_list_view.tsx diff --git a/packages/content-management/table_list_view/tsconfig.json b/src/platform/packages/shared/content-management/table_list_view/tsconfig.json similarity index 90% rename from packages/content-management/table_list_view/tsconfig.json rename to src/platform/packages/shared/content-management/table_list_view/tsconfig.json index f8a034aa61012..aa9e9216698c3 100644 --- a/packages/content-management/table_list_view/tsconfig.json +++ b/src/platform/packages/shared/content-management/table_list_view/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/content-management/table_list_view_common/README.md b/src/platform/packages/shared/content-management/table_list_view_common/README.md similarity index 100% rename from packages/content-management/table_list_view_common/README.md rename to src/platform/packages/shared/content-management/table_list_view_common/README.md diff --git a/packages/content-management/table_list_view_common/index.ts b/src/platform/packages/shared/content-management/table_list_view_common/index.ts similarity index 100% rename from packages/content-management/table_list_view_common/index.ts rename to src/platform/packages/shared/content-management/table_list_view_common/index.ts diff --git a/packages/content-management/table_list_view_common/kibana.jsonc b/src/platform/packages/shared/content-management/table_list_view_common/kibana.jsonc similarity index 100% rename from packages/content-management/table_list_view_common/kibana.jsonc rename to src/platform/packages/shared/content-management/table_list_view_common/kibana.jsonc diff --git a/packages/content-management/table_list_view_common/package.json b/src/platform/packages/shared/content-management/table_list_view_common/package.json similarity index 100% rename from packages/content-management/table_list_view_common/package.json rename to src/platform/packages/shared/content-management/table_list_view_common/package.json diff --git a/packages/content-management/table_list_view_common/tsconfig.json b/src/platform/packages/shared/content-management/table_list_view_common/tsconfig.json similarity index 82% rename from packages/content-management/table_list_view_common/tsconfig.json rename to src/platform/packages/shared/content-management/table_list_view_common/tsconfig.json index 46f71bf3cc2b9..ad8d185ccf03e 100644 --- a/packages/content-management/table_list_view_common/tsconfig.json +++ b/src/platform/packages/shared/content-management/table_list_view_common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/content-management/table_list_view_table/README.mdx b/src/platform/packages/shared/content-management/table_list_view_table/README.mdx similarity index 100% rename from packages/content-management/table_list_view_table/README.mdx rename to src/platform/packages/shared/content-management/table_list_view_table/README.mdx diff --git a/packages/content-management/table_list_view_table/index.ts b/src/platform/packages/shared/content-management/table_list_view_table/index.ts similarity index 100% rename from packages/content-management/table_list_view_table/index.ts rename to src/platform/packages/shared/content-management/table_list_view_table/index.ts diff --git a/src/platform/packages/shared/content-management/table_list_view_table/jest.config.js b/src/platform/packages/shared/content-management/table_list_view_table/jest.config.js new file mode 100644 index 0000000000000..590f64bae46f9 --- /dev/null +++ b/src/platform/packages/shared/content-management/table_list_view_table/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/content-management/table_list_view_table'], +}; diff --git a/packages/content-management/table_list_view_table/kibana.jsonc b/src/platform/packages/shared/content-management/table_list_view_table/kibana.jsonc similarity index 100% rename from packages/content-management/table_list_view_table/kibana.jsonc rename to src/platform/packages/shared/content-management/table_list_view_table/kibana.jsonc diff --git a/packages/content-management/table_list_view_table/package.json b/src/platform/packages/shared/content-management/table_list_view_table/package.json similarity index 100% rename from packages/content-management/table_list_view_table/package.json rename to src/platform/packages/shared/content-management/table_list_view_table/package.json diff --git a/packages/content-management/table_list_view_table/src/__jest__/created_by_column.test.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/created_by_column.test.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/__jest__/created_by_column.test.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/created_by_column.test.tsx diff --git a/packages/content-management/table_list_view_table/src/__jest__/created_by_filter.test.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/created_by_filter.test.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/__jest__/created_by_filter.test.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/created_by_filter.test.tsx diff --git a/packages/content-management/table_list_view_table/src/__jest__/index.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/index.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/__jest__/index.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/index.ts diff --git a/packages/content-management/table_list_view_table/src/__jest__/tests.helpers.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/tests.helpers.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/__jest__/tests.helpers.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/tests.helpers.tsx diff --git a/packages/content-management/table_list_view_table/src/actions.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/actions.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/actions.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/actions.ts diff --git a/packages/content-management/table_list_view_table/src/components/confirm_delete_modal.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/confirm_delete_modal.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/confirm_delete_modal.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/confirm_delete_modal.tsx diff --git a/packages/content-management/table_list_view_table/src/components/content_editor_activity_row.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/content_editor_activity_row.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/content_editor_activity_row.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/content_editor_activity_row.tsx diff --git a/packages/content-management/table_list_view_table/src/components/index.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/components/index.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/components/index.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/index.ts diff --git a/packages/content-management/table_list_view_table/src/components/item_details.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/item_details.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/item_details.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/item_details.tsx diff --git a/packages/content-management/table_list_view_table/src/components/listing_limit_warning.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/listing_limit_warning.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/listing_limit_warning.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/listing_limit_warning.tsx diff --git a/packages/content-management/table_list_view_table/src/components/tabbed_filter.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/tabbed_filter.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/tabbed_filter.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/tabbed_filter.tsx diff --git a/packages/content-management/table_list_view_table/src/components/table.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/table.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/table.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/table.tsx diff --git a/packages/content-management/table_list_view_table/src/components/table_sort_select.test.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/table_sort_select.test.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/table_sort_select.test.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/table_sort_select.test.tsx diff --git a/packages/content-management/table_list_view_table/src/components/table_sort_select.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/table_sort_select.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/table_sort_select.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/table_sort_select.tsx diff --git a/packages/content-management/table_list_view_table/src/components/tag_badge.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/tag_badge.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/tag_badge.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/tag_badge.tsx diff --git a/packages/content-management/table_list_view_table/src/components/tag_filter_panel.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/tag_filter_panel.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/tag_filter_panel.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/tag_filter_panel.tsx diff --git a/packages/content-management/table_list_view_table/src/components/updated_at_field.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/updated_at_field.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/updated_at_field.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/updated_at_field.tsx diff --git a/packages/content-management/table_list_view_table/src/components/use_tag_filter_panel.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/use_tag_filter_panel.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/use_tag_filter_panel.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/use_tag_filter_panel.tsx diff --git a/packages/content-management/table_list_view_table/src/components/user_filter_panel.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/user_filter_panel.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/user_filter_panel.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/user_filter_panel.tsx diff --git a/packages/content-management/table_list_view_table/src/constants.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/constants.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/constants.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/constants.ts diff --git a/packages/content-management/table_list_view_table/src/index.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/index.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/index.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/index.ts diff --git a/packages/content-management/table_list_view_table/src/mocks.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/mocks.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/mocks.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/mocks.tsx diff --git a/packages/content-management/table_list_view_table/src/reducer.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/reducer.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/reducer.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/reducer.tsx diff --git a/packages/content-management/table_list_view_table/src/services.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/services.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx diff --git a/packages/content-management/table_list_view_table/src/table_list_view.test.helpers.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view.test.helpers.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/table_list_view.test.helpers.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view.test.helpers.ts diff --git a/packages/content-management/table_list_view_table/src/table_list_view.test.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view.test.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/table_list_view.test.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view.test.tsx diff --git a/packages/content-management/table_list_view_table/src/table_list_view_table.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/table_list_view_table.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx diff --git a/packages/content-management/table_list_view_table/src/types.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/types.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/types.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/types.ts diff --git a/packages/content-management/table_list_view_table/src/use_tags.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/use_tags.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/use_tags.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/use_tags.ts diff --git a/packages/content-management/table_list_view_table/src/use_url_state.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/use_url_state.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/use_url_state.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/use_url_state.ts diff --git a/packages/content-management/table_list_view_table/tsconfig.json b/src/platform/packages/shared/content-management/table_list_view_table/tsconfig.json similarity index 95% rename from packages/content-management/table_list_view_table/tsconfig.json rename to src/platform/packages/shared/content-management/table_list_view_table/tsconfig.json index 90a96953570fb..5f378ba1e45ce 100644 --- a/packages/content-management/table_list_view_table/tsconfig.json +++ b/src/platform/packages/shared/content-management/table_list_view_table/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/content-management/user_profiles/README.md b/src/platform/packages/shared/content-management/user_profiles/README.md similarity index 100% rename from packages/content-management/user_profiles/README.md rename to src/platform/packages/shared/content-management/user_profiles/README.md diff --git a/packages/content-management/user_profiles/index.ts b/src/platform/packages/shared/content-management/user_profiles/index.ts similarity index 100% rename from packages/content-management/user_profiles/index.ts rename to src/platform/packages/shared/content-management/user_profiles/index.ts diff --git a/src/platform/packages/shared/content-management/user_profiles/jest.config.js b/src/platform/packages/shared/content-management/user_profiles/jest.config.js new file mode 100644 index 0000000000000..95181dc35951a --- /dev/null +++ b/src/platform/packages/shared/content-management/user_profiles/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/content-management/user_profiles'], +}; diff --git a/packages/content-management/user_profiles/kibana.jsonc b/src/platform/packages/shared/content-management/user_profiles/kibana.jsonc similarity index 100% rename from packages/content-management/user_profiles/kibana.jsonc rename to src/platform/packages/shared/content-management/user_profiles/kibana.jsonc diff --git a/packages/content-management/user_profiles/package.json b/src/platform/packages/shared/content-management/user_profiles/package.json similarity index 100% rename from packages/content-management/user_profiles/package.json rename to src/platform/packages/shared/content-management/user_profiles/package.json diff --git a/packages/content-management/user_profiles/src/components/index.ts b/src/platform/packages/shared/content-management/user_profiles/src/components/index.ts similarity index 100% rename from packages/content-management/user_profiles/src/components/index.ts rename to src/platform/packages/shared/content-management/user_profiles/src/components/index.ts diff --git a/packages/content-management/user_profiles/src/components/managed_avatar_tip.tsx b/src/platform/packages/shared/content-management/user_profiles/src/components/managed_avatar_tip.tsx similarity index 100% rename from packages/content-management/user_profiles/src/components/managed_avatar_tip.tsx rename to src/platform/packages/shared/content-management/user_profiles/src/components/managed_avatar_tip.tsx diff --git a/packages/content-management/user_profiles/src/components/user_avatar_tip.tsx b/src/platform/packages/shared/content-management/user_profiles/src/components/user_avatar_tip.tsx similarity index 100% rename from packages/content-management/user_profiles/src/components/user_avatar_tip.tsx rename to src/platform/packages/shared/content-management/user_profiles/src/components/user_avatar_tip.tsx diff --git a/packages/content-management/user_profiles/src/components/user_missing_tip.tsx b/src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx similarity index 100% rename from packages/content-management/user_profiles/src/components/user_missing_tip.tsx rename to src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx diff --git a/packages/content-management/user_profiles/src/queries.ts b/src/platform/packages/shared/content-management/user_profiles/src/queries.ts similarity index 100% rename from packages/content-management/user_profiles/src/queries.ts rename to src/platform/packages/shared/content-management/user_profiles/src/queries.ts diff --git a/packages/content-management/user_profiles/src/services.tsx b/src/platform/packages/shared/content-management/user_profiles/src/services.tsx similarity index 100% rename from packages/content-management/user_profiles/src/services.tsx rename to src/platform/packages/shared/content-management/user_profiles/src/services.tsx diff --git a/packages/content-management/user_profiles/src/utils/batcher.test.tsx b/src/platform/packages/shared/content-management/user_profiles/src/utils/batcher.test.tsx similarity index 100% rename from packages/content-management/user_profiles/src/utils/batcher.test.tsx rename to src/platform/packages/shared/content-management/user_profiles/src/utils/batcher.test.tsx diff --git a/packages/content-management/user_profiles/src/utils/batcher.ts b/src/platform/packages/shared/content-management/user_profiles/src/utils/batcher.ts similarity index 100% rename from packages/content-management/user_profiles/src/utils/batcher.ts rename to src/platform/packages/shared/content-management/user_profiles/src/utils/batcher.ts diff --git a/packages/content-management/user_profiles/tsconfig.json b/src/platform/packages/shared/content-management/user_profiles/tsconfig.json similarity index 86% rename from packages/content-management/user_profiles/tsconfig.json rename to src/platform/packages/shared/content-management/user_profiles/tsconfig.json index de0aeff18778f..f143c1d03bbec 100644 --- a/packages/content-management/user_profiles/tsconfig.json +++ b/src/platform/packages/shared/content-management/user_profiles/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/platform/packages/shared/kbn-alerts-ui-shared/src/common/hooks/use_find_alerts_query.test.tsx b/src/platform/packages/shared/kbn-alerts-ui-shared/src/common/hooks/use_find_alerts_query.test.tsx index 4fe37fd7a6035..025b23d1ea5ff 100644 --- a/src/platform/packages/shared/kbn-alerts-ui-shared/src/common/hooks/use_find_alerts_query.test.tsx +++ b/src/platform/packages/shared/kbn-alerts-ui-shared/src/common/hooks/use_find_alerts_query.test.tsx @@ -8,7 +8,7 @@ */ import React from 'react'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook, waitFor } from '@testing-library/react'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { testQueryClientConfig } from '../test_utils/test_query_client_config'; import { httpServiceMock } from '@kbn/core-http-browser-mocks'; @@ -32,7 +32,7 @@ describe('useFindAlertsQuery', () => { }); it('calls the api correctly', async () => { - const { result, waitForValueToChange } = renderHook( + const { result } = renderHook( () => useFindAlertsQuery({ ...mockServices, @@ -43,7 +43,7 @@ describe('useFindAlertsQuery', () => { } ); - await waitForValueToChange(() => result.current.isLoading, { timeout: 5000 }); + await waitFor(() => expect(result.current.isLoading).toBe(true), { timeout: 5000 }); expect(mockServices.http.post).toHaveBeenCalledTimes(1); expect(mockServices.http.post).toBeCalledWith('/internal/rac/alerts/find', { diff --git a/src/platform/packages/shared/kbn-avc-banner/src/index.tsx b/src/platform/packages/shared/kbn-avc-banner/src/index.tsx index d1fe09df6c0a0..8c4a1f36e072d 100644 --- a/src/platform/packages/shared/kbn-avc-banner/src/index.tsx +++ b/src/platform/packages/shared/kbn-avc-banner/src/index.tsx @@ -15,18 +15,18 @@ import { FormattedMessage } from '@kbn/i18n-react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import avcBannerBackground from './avc_banner_background.svg'; -// Logic to hide banner at EOY 2024 -export const useIsStillYear2024: () => boolean = () => { +// Logic to hide banner at EOY 2025 +export const useIsStillYear2025: () => boolean = () => { return useMemo(() => { - return new Date().getFullYear() === 2024; + return new Date().getFullYear() === 2025; }, []); }; -export const AVCResultsBanner2024: React.FC<{ onDismiss: () => void }> = ({ onDismiss }) => { +export const AVCResultsBanner: React.FC<{ onDismiss: () => void }> = ({ onDismiss }) => { const { docLinks } = useKibana().services; const { euiTheme } = useEuiTheme(); const bannerTitle = i18n.translate('avcBanner.title', { - defaultMessage: '100% protection with zero false positives.', + defaultMessage: 'Proven defense with zero false positives', }); const calloutStyles = css({ 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/packages/core/custom-branding/core-custom-branding-server-mocks/jest.config.js b/src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js similarity index 81% rename from packages/core/custom-branding/core-custom-branding-server-mocks/jest.config.js rename to src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js index 6344e12e0ffac..bedc110bec8c2 100644 --- a/packages/core/custom-branding/core-custom-branding-server-mocks/jest.config.js +++ b/src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/custom-branding/core-custom-branding-server-mocks'], + 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-chart-icons/jest.config.js b/src/platform/packages/shared/kbn-chart-icons/jest.config.js similarity index 84% rename from packages/kbn-chart-icons/jest.config.js rename to src/platform/packages/shared/kbn-chart-icons/jest.config.js index 1ddf262c2a7d5..b75916eaa1099 100644 --- a/packages/kbn-chart-icons/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-chart-icons'], + 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/content-management/table_list_view/jest.config.js b/src/platform/packages/shared/kbn-coloring/jest.config.js similarity index 84% rename from packages/content-management/table_list_view/jest.config.js rename to src/platform/packages/shared/kbn-coloring/jest.config.js index fe0bc50cdb1a0..cad1365380997 100644 --- a/packages/content-management/table_list_view/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/content-management/table_list_view'], + 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 c3be4a82e8baa..b361a533a10b5 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/content-management/tabbed_table_list_view/jest.config.js b/src/platform/packages/shared/kbn-data-service/jest.config.js similarity index 83% rename from packages/content-management/tabbed_table_list_view/jest.config.js rename to src/platform/packages/shared/kbn-data-service/jest.config.js index 589510b334285..dcfcff99540c7 100644 --- a/packages/content-management/tabbed_table_list_view/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/content-management/tabbed_table_list_view'], + 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/src/platform/packages/shared/kbn-discover-contextual-components/src/data_types/logs/components/log_level_badge_cell/log_level_badge_cell.test.tsx b/src/platform/packages/shared/kbn-discover-contextual-components/src/data_types/logs/components/log_level_badge_cell/log_level_badge_cell.test.tsx index 460c97dfd115b..c6d4abd8c530e 100644 --- a/src/platform/packages/shared/kbn-discover-contextual-components/src/data_types/logs/components/log_level_badge_cell/log_level_badge_cell.test.tsx +++ b/src/platform/packages/shared/kbn-discover-contextual-components/src/data_types/logs/components/log_level_badge_cell/log_level_badge_cell.test.tsx @@ -9,6 +9,7 @@ import { fieldFormatsMock } from '@kbn/field-formats-plugin/common/mocks'; import { render, screen } from '@testing-library/react'; +import { EuiProvider } from '@elastic/eui'; import React from 'react'; import { getLogLevelBadgeCell } from './log_level_badge_cell'; import { dataViewMock } from '@kbn/discover-utils/src/__mocks__/data_view'; @@ -17,19 +18,21 @@ import { DataTableRecord, buildDataTableRecord } from '@kbn/discover-utils'; const renderCell = (logLevelField: string, record: DataTableRecord) => { const LogLevelBadgeCell = getLogLevelBadgeCell(logLevelField); render( - {}} - closePopover={() => {}} - /> + + {}} + closePopover={() => {}} + /> + ); }; diff --git a/src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/degraded_docs_control.tsx b/src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/degraded_docs_control.tsx index 27a71954ac705..ee8196c33b7de 100644 --- a/src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/degraded_docs_control.tsx +++ b/src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/degraded_docs_control.tsx @@ -9,9 +9,8 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; -import { EuiCode } from '@elastic/eui'; +import { EuiCode, useEuiTheme } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { euiThemeVars } from '@kbn/ui-theme'; import { RowControlColumn, RowControlComponent, @@ -83,6 +82,8 @@ const DegradedDocs = ({ Control: RowControlComponent; rowProps: RowControlRowProps; } & DegradedDocsControlProps) => { + const { euiTheme } = useEuiTheme(); + const isDegradedDocumentExists = DEGRADED_DOCS_FIELDS.some( (field) => field in record.raw && record.raw[field] !== null && record.raw[field] !== undefined ); @@ -91,7 +92,7 @@ const DegradedDocs = ({ if (addIgnoredMetadataToQuery) { return ( { render( - {logLevel}} - /> + + {logLevel}} + /> + ); }; diff --git a/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/components/log_level_badge.tsx b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/components/log_level_badge.tsx index 58f601338621f..c200b6c5383ed 100644 --- a/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/components/log_level_badge.tsx +++ b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/components/log_level_badge.tsx @@ -8,14 +8,13 @@ */ import React, { ReactElement } from 'react'; -import { EuiBadge, EuiBadgeProps, mathWithUnits, useEuiTheme } from '@elastic/eui'; -import { CSSObject } from '@emotion/react'; -import { euiThemeVars } from '@kbn/ui-theme'; +import { EuiBadge, EuiBadgeProps, useEuiTheme, UseEuiTheme } from '@elastic/eui'; +import { css } from '@emotion/react'; import { getLogLevelCoalescedValue, getLogLevelColor } from '../utils'; -const badgeCss: CSSObject = { - maxWidth: mathWithUnits(euiThemeVars.euiSize, (size) => size * 7.5), -}; +const badgeCss = ({ euiTheme }: UseEuiTheme) => css` + max-width: calc(${euiTheme.size.base} * 7.5); +`; export const LogLevelBadge = ({ logLevel, diff --git a/src/platform/packages/shared/kbn-discover-utils/tsconfig.json b/src/platform/packages/shared/kbn-discover-utils/tsconfig.json index 82c4f408c6d08..f31ec2ad6d1d5 100644 --- a/src/platform/packages/shared/kbn-discover-utils/tsconfig.json +++ b/src/platform/packages/shared/kbn-discover-utils/tsconfig.json @@ -6,16 +6,12 @@ "jest", "node", "react", - "@testing-library/jest-dom" + "@testing-library/jest-dom", + "../../../../../typings/emotion.d.ts" ] }, - "include": [ - "**/*.ts", - "**/*.tsx" - ], - "exclude": [ - "target/**/*" - ], + "include": ["**/*.ts", "**/*.tsx"], + "exclude": ["target/**/*"], "kbn_references": [ "@kbn/data-service", "@kbn/data-views-plugin", @@ -27,7 +23,6 @@ "@kbn/expressions-plugin", "@kbn/logs-data-access-plugin", "@kbn/i18n-react", - "@kbn/navigation-plugin", - "@kbn/ui-theme" + "@kbn/navigation-plugin" ] } diff --git a/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts index dc747a63cdc96..e4cf769069e9b 100644 --- a/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts +++ b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts @@ -479,7 +479,7 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D }, securitySolution: { artifactControl: `${SECURITY_SOLUTION_DOCS}artifact-control.html`, - avcResults: `${ELASTIC_WEBSITE_URL}blog/elastic-av-comparatives-business-security-test`, + avcResults: `${ELASTIC_WEBSITE_URL}blog/elastic-security-av-comparatives-business-test`, bidirectionalIntegrations: `${SECURITY_SOLUTION_DOCS}third-party-actions.html`, trustedApps: `${SECURITY_SOLUTION_DOCS}trusted-apps-ov.html`, eventFilters: `${SECURITY_SOLUTION_DOCS}event-filters.html`, 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/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/literal.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/literal.test.ts index 71ae3603c9c20..356daf8aa43ce 100644 --- a/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/literal.test.ts +++ b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/literal.test.ts @@ -116,6 +116,42 @@ describe('literal expression', () => { ], }); }); + + it('escape double-quote before backslash', () => { + const text = `ROW "a\\"\\\\b", 1`; + const { root } = parse(text); + + expect(root.commands[0]).toMatchObject({ + type: 'command', + args: [ + { + type: 'literal', + literalType: 'keyword', + name: '"a\\"\\\\b"', + valueUnquoted: 'a"\\b', + }, + {}, + ], + }); + }); + + it('escape backslash before double-quote', () => { + const text = `ROW "a\\\\\\"b", 1`; + const { root } = parse(text); + + expect(root.commands[0]).toMatchObject({ + type: 'command', + args: [ + { + type: 'literal', + literalType: 'keyword', + name: '"a\\\\\\"b"', + valueUnquoted: 'a\\"b', + }, + {}, + ], + }); + }); }); describe('triple quoted', () => { diff --git a/src/platform/packages/shared/kbn-esql-ast/src/parser/factories.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/factories.ts index 0db09c0f9dfa7..735c80dc26283 100644 --- a/src/platform/packages/shared/kbn-esql-ast/src/parser/factories.ts +++ b/src/platform/packages/shared/kbn-esql-ast/src/parser/factories.ts @@ -127,11 +127,11 @@ export function createLiteralString(ctx: StringContext): ESQLLiteral { if (!isTripleQuoted) { valueUnquoted = valueUnquoted - .replace(/\\\\/g, '\\') .replace(/\\"/g, '"') .replace(/\\r/g, '\r') .replace(/\\n/g, '\n') - .replace(/\\t/g, '\t'); + .replace(/\\t/g, '\t') + .replace(/\\\\/g, '\\'); } return Builder.expression.literal.string( 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/src/platform/packages/shared/kbn-event-annotation-common/jest.config.js b/src/platform/packages/shared/kbn-event-annotation-common/jest.config.js new file mode 100644 index 0000000000000..5a8665ff7b363 --- /dev/null +++ b/src/platform/packages/shared/kbn-event-annotation-common/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-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-event-annotation-components/jest.config.js b/src/platform/packages/shared/kbn-event-annotation-components/jest.config.js similarity index 82% rename from packages/kbn-event-annotation-components/jest.config.js rename to src/platform/packages/shared/kbn-event-annotation-components/jest.config.js index 62b40300befaa..47328ffafe5f8 100644 --- a/packages/kbn-event-annotation-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-event-annotation-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/content-management/table_list_view_table/jest.config.js b/src/platform/packages/shared/kbn-interpreter/jest.config.js similarity index 83% rename from packages/content-management/table_list_view_table/jest.config.js rename to src/platform/packages/shared/kbn-interpreter/jest.config.js index ec23407aa0c65..7156f951efd39 100644 --- a/packages/content-management/table_list_view_table/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/content-management/table_list_view_table'], + 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/src/platform/packages/shared/kbn-management/settings/components/field_row/README.mdx b/src/platform/packages/shared/kbn-management/settings/components/field_row/README.mdx index d8febe27dd674..6653797b18434 100644 --- a/src/platform/packages/shared/kbn-management/settings/components/field_row/README.mdx +++ b/src/platform/packages/shared/kbn-management/settings/components/field_row/README.mdx @@ -28,7 +28,7 @@ A `FormRow` represents a single UiSetting, and is responsible for rendering the ## Notes - This implementation was extracted from the `advancedSettings` plugin. -- The type for a `UiSettingMetadata` is limited due to the permissive nature of the [`UiSettingsParam` type](packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts). +- The type for a `UiSettingMetadata` is limited due to the permissive nature of the [`UiSettingsParam` type](src/core/packages/ui-settings/common/src/ui_settings.ts). - The source includes notations of several bugs which will surface if the assumptions about default settings from Kibana change. ## Testing diff --git a/src/platform/packages/shared/kbn-management/settings/components/field_row/description/description.tsx b/src/platform/packages/shared/kbn-management/settings/components/field_row/description/description.tsx index cced9d3b7acc0..1a5cf52d0ed7f 100644 --- a/src/platform/packages/shared/kbn-management/settings/components/field_row/description/description.tsx +++ b/src/platform/packages/shared/kbn-management/settings/components/field_row/description/description.tsx @@ -49,7 +49,7 @@ export const FieldDescription = ({ const { description, name } = field; // TODO - this does *not* match the `UiSetting` type. - // @see packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts + // @see src/core/packages/ui-settings/common/src/ui_settings.ts let content: ReactElement | string | undefined = description; if (!React.isValidElement(content)) { diff --git a/packages/kbn-object-versioning-utils/README.md b/src/platform/packages/shared/kbn-object-versioning-utils/README.md similarity index 100% rename from packages/kbn-object-versioning-utils/README.md rename to src/platform/packages/shared/kbn-object-versioning-utils/README.md diff --git a/packages/kbn-object-versioning-utils/index.ts b/src/platform/packages/shared/kbn-object-versioning-utils/index.ts similarity index 100% rename from packages/kbn-object-versioning-utils/index.ts rename to src/platform/packages/shared/kbn-object-versioning-utils/index.ts diff --git a/src/platform/packages/shared/kbn-object-versioning-utils/jest.config.js b/src/platform/packages/shared/kbn-object-versioning-utils/jest.config.js new file mode 100644 index 0000000000000..71e13d72ebfc5 --- /dev/null +++ b/src/platform/packages/shared/kbn-object-versioning-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-object-versioning-utils'], +}; diff --git a/packages/kbn-object-versioning-utils/kibana.jsonc b/src/platform/packages/shared/kbn-object-versioning-utils/kibana.jsonc similarity index 100% rename from packages/kbn-object-versioning-utils/kibana.jsonc rename to src/platform/packages/shared/kbn-object-versioning-utils/kibana.jsonc diff --git a/packages/kbn-object-versioning-utils/lib/validate_version.ts b/src/platform/packages/shared/kbn-object-versioning-utils/lib/validate_version.ts similarity index 100% rename from packages/kbn-object-versioning-utils/lib/validate_version.ts rename to src/platform/packages/shared/kbn-object-versioning-utils/lib/validate_version.ts diff --git a/packages/kbn-object-versioning-utils/package.json b/src/platform/packages/shared/kbn-object-versioning-utils/package.json similarity index 100% rename from packages/kbn-object-versioning-utils/package.json rename to src/platform/packages/shared/kbn-object-versioning-utils/package.json diff --git a/packages/kbn-object-versioning-utils/tsconfig.json b/src/platform/packages/shared/kbn-object-versioning-utils/tsconfig.json similarity index 82% rename from packages/kbn-object-versioning-utils/tsconfig.json rename to src/platform/packages/shared/kbn-object-versioning-utils/tsconfig.json index a9e9e3ad3baac..bb7b89b5671a0 100644 --- a/packages/kbn-object-versioning-utils/tsconfig.json +++ b/src/platform/packages/shared/kbn-object-versioning-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-object-versioning/README.md b/src/platform/packages/shared/kbn-object-versioning/README.md similarity index 100% rename from packages/kbn-object-versioning/README.md rename to src/platform/packages/shared/kbn-object-versioning/README.md diff --git a/packages/kbn-object-versioning/index.ts b/src/platform/packages/shared/kbn-object-versioning/index.ts similarity index 100% rename from packages/kbn-object-versioning/index.ts rename to src/platform/packages/shared/kbn-object-versioning/index.ts diff --git a/src/platform/packages/shared/kbn-object-versioning/jest.config.js b/src/platform/packages/shared/kbn-object-versioning/jest.config.js new file mode 100644 index 0000000000000..8c220af8b827e --- /dev/null +++ b/src/platform/packages/shared/kbn-object-versioning/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-object-versioning'], +}; diff --git a/packages/kbn-object-versioning/kibana.jsonc b/src/platform/packages/shared/kbn-object-versioning/kibana.jsonc similarity index 100% rename from packages/kbn-object-versioning/kibana.jsonc rename to src/platform/packages/shared/kbn-object-versioning/kibana.jsonc diff --git a/packages/kbn-object-versioning/lib/content_management_services_schemas.ts b/src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_schemas.ts similarity index 100% rename from packages/kbn-object-versioning/lib/content_management_services_schemas.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_schemas.ts diff --git a/packages/kbn-object-versioning/lib/content_management_services_versioning.test.ts b/src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.test.ts similarity index 100% rename from packages/kbn-object-versioning/lib/content_management_services_versioning.test.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.test.ts diff --git a/packages/kbn-object-versioning/lib/content_management_services_versioning.ts b/src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts similarity index 100% rename from packages/kbn-object-versioning/lib/content_management_services_versioning.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts diff --git a/packages/kbn-object-versioning/lib/content_management_types.ts b/src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts similarity index 100% rename from packages/kbn-object-versioning/lib/content_management_types.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts diff --git a/packages/kbn-object-versioning/lib/index.ts b/src/platform/packages/shared/kbn-object-versioning/lib/index.ts similarity index 100% rename from packages/kbn-object-versioning/lib/index.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/index.ts diff --git a/packages/kbn-object-versioning/lib/object_transform.test.ts b/src/platform/packages/shared/kbn-object-versioning/lib/object_transform.test.ts similarity index 100% rename from packages/kbn-object-versioning/lib/object_transform.test.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/object_transform.test.ts diff --git a/packages/kbn-object-versioning/lib/object_transform.ts b/src/platform/packages/shared/kbn-object-versioning/lib/object_transform.ts similarity index 100% rename from packages/kbn-object-versioning/lib/object_transform.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/object_transform.ts diff --git a/packages/kbn-object-versioning/lib/types.ts b/src/platform/packages/shared/kbn-object-versioning/lib/types.ts similarity index 100% rename from packages/kbn-object-versioning/lib/types.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/types.ts diff --git a/packages/kbn-object-versioning/lib/utils.test.ts b/src/platform/packages/shared/kbn-object-versioning/lib/utils.test.ts similarity index 100% rename from packages/kbn-object-versioning/lib/utils.test.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/utils.test.ts diff --git a/packages/kbn-object-versioning/lib/utils.ts b/src/platform/packages/shared/kbn-object-versioning/lib/utils.ts similarity index 100% rename from packages/kbn-object-versioning/lib/utils.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/utils.ts diff --git a/packages/kbn-object-versioning/package.json b/src/platform/packages/shared/kbn-object-versioning/package.json similarity index 100% rename from packages/kbn-object-versioning/package.json rename to src/platform/packages/shared/kbn-object-versioning/package.json diff --git a/packages/kbn-object-versioning/tsconfig.json b/src/platform/packages/shared/kbn-object-versioning/tsconfig.json similarity index 86% rename from packages/kbn-object-versioning/tsconfig.json rename to src/platform/packages/shared/kbn-object-versioning/tsconfig.json index 42c549aef3ce6..9a1a1dc90827d 100644 --- a/packages/kbn-object-versioning/tsconfig.json +++ b/src/platform/packages/shared/kbn-object-versioning/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/platform/packages/shared/kbn-profiling-utils/common/profiling.ts b/src/platform/packages/shared/kbn-profiling-utils/common/profiling.ts index 84c674cdc843c..b818f89606b9b 100644 --- a/src/platform/packages/shared/kbn-profiling-utils/common/profiling.ts +++ b/src/platform/packages/shared/kbn-profiling-utils/common/profiling.ts @@ -37,6 +37,11 @@ export enum FrameType { DotNET, ErrorFlag = 0x80, Error = 0xff, + + // Artificial frame types for grouping, set by the ES profiling plugin + Root = 0x100, + ProcessName = 0x101, + ThreadName = 0x102, } const frameTypeDescriptions = { @@ -53,6 +58,9 @@ const frameTypeDescriptions = { [FrameType.DotNET]: '.NET', [FrameType.ErrorFlag]: 'ErrorFlag', [FrameType.Error]: 'Error', + [FrameType.Root]: 'Root', + [FrameType.ProcessName]: 'Process', // Due to OTEL semconv issues, "process name" is currently more correct than "executable name" + [FrameType.ThreadName]: 'Thread', }; export function isErrorFrame(ft: FrameType): boolean { diff --git a/packages/kbn-recently-accessed/README.md b/src/platform/packages/shared/kbn-recently-accessed/README.md similarity index 100% rename from packages/kbn-recently-accessed/README.md rename to src/platform/packages/shared/kbn-recently-accessed/README.md diff --git a/packages/kbn-recently-accessed/index.ts b/src/platform/packages/shared/kbn-recently-accessed/index.ts similarity index 100% rename from packages/kbn-recently-accessed/index.ts rename to src/platform/packages/shared/kbn-recently-accessed/index.ts diff --git a/src/platform/packages/shared/kbn-recently-accessed/jest.config.js b/src/platform/packages/shared/kbn-recently-accessed/jest.config.js new file mode 100644 index 0000000000000..6349ac38208e8 --- /dev/null +++ b/src/platform/packages/shared/kbn-recently-accessed/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-recently-accessed'], +}; diff --git a/packages/kbn-recently-accessed/kibana.jsonc b/src/platform/packages/shared/kbn-recently-accessed/kibana.jsonc similarity index 100% rename from packages/kbn-recently-accessed/kibana.jsonc rename to src/platform/packages/shared/kbn-recently-accessed/kibana.jsonc diff --git a/packages/kbn-recently-accessed/package.json b/src/platform/packages/shared/kbn-recently-accessed/package.json similarity index 100% rename from packages/kbn-recently-accessed/package.json rename to src/platform/packages/shared/kbn-recently-accessed/package.json diff --git a/packages/kbn-recently-accessed/src/create_log_key.test.ts b/src/platform/packages/shared/kbn-recently-accessed/src/create_log_key.test.ts similarity index 100% rename from packages/kbn-recently-accessed/src/create_log_key.test.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/create_log_key.test.ts diff --git a/packages/kbn-recently-accessed/src/create_log_key.ts b/src/platform/packages/shared/kbn-recently-accessed/src/create_log_key.ts similarity index 100% rename from packages/kbn-recently-accessed/src/create_log_key.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/create_log_key.ts diff --git a/packages/kbn-recently-accessed/src/index.ts b/src/platform/packages/shared/kbn-recently-accessed/src/index.ts similarity index 100% rename from packages/kbn-recently-accessed/src/index.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/index.ts diff --git a/packages/kbn-recently-accessed/src/persisted_log.test.ts b/src/platform/packages/shared/kbn-recently-accessed/src/persisted_log.test.ts similarity index 100% rename from packages/kbn-recently-accessed/src/persisted_log.test.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/persisted_log.test.ts diff --git a/packages/kbn-recently-accessed/src/persisted_log.ts b/src/platform/packages/shared/kbn-recently-accessed/src/persisted_log.ts similarity index 100% rename from packages/kbn-recently-accessed/src/persisted_log.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/persisted_log.ts diff --git a/packages/kbn-recently-accessed/src/recently_accessed_service.test.ts b/src/platform/packages/shared/kbn-recently-accessed/src/recently_accessed_service.test.ts similarity index 100% rename from packages/kbn-recently-accessed/src/recently_accessed_service.test.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/recently_accessed_service.test.ts diff --git a/packages/kbn-recently-accessed/src/recently_accessed_service.ts b/src/platform/packages/shared/kbn-recently-accessed/src/recently_accessed_service.ts similarity index 100% rename from packages/kbn-recently-accessed/src/recently_accessed_service.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/recently_accessed_service.ts diff --git a/packages/kbn-recently-accessed/src/types.ts b/src/platform/packages/shared/kbn-recently-accessed/src/types.ts similarity index 100% rename from packages/kbn-recently-accessed/src/types.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/types.ts diff --git a/packages/kbn-recently-accessed/tsconfig.json b/src/platform/packages/shared/kbn-recently-accessed/tsconfig.json similarity index 85% rename from packages/kbn-recently-accessed/tsconfig.json rename to src/platform/packages/shared/kbn-recently-accessed/tsconfig.json index f6029007a4376..eed2fb275f20f 100644 --- a/packages/kbn-recently-accessed/tsconfig.json +++ b/src/platform/packages/shared/kbn-recently-accessed/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/platform/packages/shared/kbn-rrule/index.ts b/src/platform/packages/shared/kbn-rrule/index.ts index 2c860a548c248..7c63337710699 100644 --- a/src/platform/packages/shared/kbn-rrule/index.ts +++ b/src/platform/packages/shared/kbn-rrule/index.ts @@ -7,6 +7,6 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -export { RRule, Frequency, Weekday } from './rrule'; -export type { Options } from './rrule'; -export declare type WeekdayStr = 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA' | 'SU'; +export { RRule } from './rrule'; +export type { Options, WeekdayStr } from './types'; +export { Frequency, Weekday } from './types'; diff --git a/src/platform/packages/shared/kbn-rrule/rrule.test.ts b/src/platform/packages/shared/kbn-rrule/rrule.test.ts index 0a024e27bc7ed..f30e7d235012d 100644 --- a/src/platform/packages/shared/kbn-rrule/rrule.test.ts +++ b/src/platform/packages/shared/kbn-rrule/rrule.test.ts @@ -8,7 +8,8 @@ */ import sinon from 'sinon'; -import { RRule, Frequency, Weekday } from './rrule'; +import { RRule } from './rrule'; +import { Frequency, Weekday } from './types'; const DATE_2019 = '2019-01-01T00:00:00.000Z'; const DATE_2019_DECEMBER_19 = '2019-12-19T00:00:00.000Z'; @@ -730,6 +731,228 @@ describe('RRule', () => { ] `); }); + it('ignores invalid byweekday values', () => { + const rule = new RRule({ + dtstart: new Date(DATE_2019_DECEMBER_19), + freq: Frequency.WEEKLY, + interval: 1, + tzid: 'UTC', + byweekday: [Weekday.TH, 0, -2], + }); + expect(rule.all(14)).toMatchInlineSnapshot(` + Array [ + 2019-12-19T00:00:00.000Z, + 2019-12-26T00:00:00.000Z, + 2020-01-02T00:00:00.000Z, + 2020-01-09T00:00:00.000Z, + 2020-01-16T00:00:00.000Z, + 2020-01-23T00:00:00.000Z, + 2020-01-30T00:00:00.000Z, + 2020-02-06T00:00:00.000Z, + 2020-02-13T00:00:00.000Z, + 2020-02-20T00:00:00.000Z, + 2020-02-27T00:00:00.000Z, + 2020-03-05T00:00:00.000Z, + 2020-03-12T00:00:00.000Z, + 2020-03-19T00:00:00.000Z, + ] + `); + + const rule2 = new RRule({ + dtstart: new Date(DATE_2019), + freq: Frequency.WEEKLY, + interval: 1, + tzid: 'UTC', + byweekday: [Weekday.SA, Weekday.SU, Weekday.MO, 0], + }); + + expect(rule2.all(9)).toMatchInlineSnapshot(` + Array [ + 2019-01-05T00:00:00.000Z, + 2019-01-06T00:00:00.000Z, + 2019-01-07T00:00:00.000Z, + 2019-01-12T00:00:00.000Z, + 2019-01-13T00:00:00.000Z, + 2019-01-14T00:00:00.000Z, + 2019-01-19T00:00:00.000Z, + 2019-01-20T00:00:00.000Z, + 2019-01-21T00:00:00.000Z, + ] + `); + }); + }); + + describe('bymonth', () => { + it('works with yearly frequency', () => { + const rule = new RRule({ + dtstart: new Date(DATE_2019_DECEMBER_19), + freq: Frequency.YEARLY, + interval: 1, + tzid: 'UTC', + bymonth: [2, 5], + }); + expect(rule.all(14)).toMatchInlineSnapshot(` + Array [ + 2020-02-19T00:00:00.000Z, + 2020-05-19T00:00:00.000Z, + 2021-02-19T00:00:00.000Z, + 2021-05-19T00:00:00.000Z, + 2022-02-19T00:00:00.000Z, + 2022-05-19T00:00:00.000Z, + 2023-02-19T00:00:00.000Z, + 2023-05-19T00:00:00.000Z, + 2024-02-19T00:00:00.000Z, + 2024-05-19T00:00:00.000Z, + 2025-02-19T00:00:00.000Z, + 2025-05-19T00:00:00.000Z, + 2026-02-19T00:00:00.000Z, + 2026-05-19T00:00:00.000Z, + ] + `); + }); + it('ignores invalid bymonth values', () => { + const rule = new RRule({ + dtstart: new Date(DATE_2019_DECEMBER_19), + freq: Frequency.YEARLY, + interval: 1, + tzid: 'UTC', + bymonth: [0], + }); + expect(rule.all(14)).toMatchInlineSnapshot(` + Array [ + 2019-12-19T00:00:00.000Z, + 2020-12-19T00:00:00.000Z, + 2021-12-19T00:00:00.000Z, + 2022-12-19T00:00:00.000Z, + 2023-12-19T00:00:00.000Z, + 2024-12-19T00:00:00.000Z, + 2025-12-19T00:00:00.000Z, + 2026-12-19T00:00:00.000Z, + 2027-12-19T00:00:00.000Z, + 2028-12-19T00:00:00.000Z, + 2029-12-19T00:00:00.000Z, + 2030-12-19T00:00:00.000Z, + 2031-12-19T00:00:00.000Z, + 2032-12-19T00:00:00.000Z, + ] + `); + }); + }); + + describe('bymonthday', () => { + it('works with monthly frequency', () => { + const rule = new RRule({ + dtstart: new Date(DATE_2019_DECEMBER_19), + freq: Frequency.MONTHLY, + interval: 1, + tzid: 'UTC', + bymonthday: [1, 15], + }); + expect(rule.all(14)).toMatchInlineSnapshot(` + Array [ + 2020-01-01T00:00:00.000Z, + 2020-01-15T00:00:00.000Z, + 2020-02-01T00:00:00.000Z, + 2020-02-15T00:00:00.000Z, + 2020-03-01T00:00:00.000Z, + 2020-03-15T00:00:00.000Z, + 2020-04-01T00:00:00.000Z, + 2020-04-15T00:00:00.000Z, + 2020-05-01T00:00:00.000Z, + 2020-05-15T00:00:00.000Z, + 2020-06-01T00:00:00.000Z, + 2020-06-15T00:00:00.000Z, + 2020-07-01T00:00:00.000Z, + 2020-07-15T00:00:00.000Z, + ] + `); + }); + it('ignores invalid bymonthday values', () => { + const rule = new RRule({ + dtstart: new Date(DATE_2019_DECEMBER_19), + freq: Frequency.MONTHLY, + interval: 1, + tzid: 'UTC', + bymonthday: [0, -1, 32], + }); + expect(rule.all(14)).toMatchInlineSnapshot(` + Array [ + 2019-12-19T00:00:00.000Z, + 2020-01-19T00:00:00.000Z, + 2020-02-19T00:00:00.000Z, + 2020-03-19T00:00:00.000Z, + 2020-04-19T00:00:00.000Z, + 2020-05-19T00:00:00.000Z, + 2020-06-19T00:00:00.000Z, + 2020-07-19T00:00:00.000Z, + 2020-08-19T00:00:00.000Z, + 2020-09-19T00:00:00.000Z, + 2020-10-19T00:00:00.000Z, + 2020-11-19T00:00:00.000Z, + 2020-12-19T00:00:00.000Z, + 2021-01-19T00:00:00.000Z, + ] + `); + }); + }); + + describe('bymonth, bymonthday', () => { + it('works with yearly frequency', () => { + const rule = new RRule({ + dtstart: new Date(DATE_2019_DECEMBER_19), + freq: Frequency.YEARLY, + interval: 1, + tzid: 'UTC', + bymonth: [2, 5], + bymonthday: [8], + }); + expect(rule.all(14)).toMatchInlineSnapshot(` + Array [ + 2020-02-08T00:00:00.000Z, + 2020-05-08T00:00:00.000Z, + 2021-02-08T00:00:00.000Z, + 2021-05-08T00:00:00.000Z, + 2022-02-08T00:00:00.000Z, + 2022-05-08T00:00:00.000Z, + 2023-02-08T00:00:00.000Z, + 2023-05-08T00:00:00.000Z, + 2024-02-08T00:00:00.000Z, + 2024-05-08T00:00:00.000Z, + 2025-02-08T00:00:00.000Z, + 2025-05-08T00:00:00.000Z, + 2026-02-08T00:00:00.000Z, + 2026-05-08T00:00:00.000Z, + ] + `); + }); + it('ignores valid dates that do not exist e.g. February 30th', () => { + const rule = new RRule({ + dtstart: new Date(DATE_2019_DECEMBER_19), + freq: Frequency.YEARLY, + interval: 1, + tzid: 'UTC', + bymonth: [2, 5], + bymonthday: [30], + }); + expect(rule.all(14)).toMatchInlineSnapshot(` + Array [ + 2020-05-30T00:00:00.000Z, + 2021-05-30T00:00:00.000Z, + 2022-05-30T00:00:00.000Z, + 2023-05-30T00:00:00.000Z, + 2024-05-30T00:00:00.000Z, + 2025-05-30T00:00:00.000Z, + 2026-05-30T00:00:00.000Z, + 2027-05-30T00:00:00.000Z, + 2028-05-30T00:00:00.000Z, + 2029-05-30T00:00:00.000Z, + 2030-05-30T00:00:00.000Z, + 2031-05-30T00:00:00.000Z, + 2032-05-30T00:00:00.000Z, + 2033-05-30T00:00:00.000Z, + ] + `); + }); }); describe('byhour, byminute, bysecond', () => { @@ -844,6 +1067,30 @@ describe('RRule', () => { ] `); }); + it('ignores invalid byyearday values', () => { + const rule = new RRule({ + dtstart: new Date(DATE_2020), + freq: Frequency.YEARLY, + byyearday: [0, -1], + interval: 1, + tzid: 'UTC', + }); + + expect(rule.all(10)).toMatchInlineSnapshot(` + Array [ + 2020-01-01T00:00:00.000Z, + 2021-01-01T00:00:00.000Z, + 2022-01-01T00:00:00.000Z, + 2023-01-01T00:00:00.000Z, + 2024-01-01T00:00:00.000Z, + 2025-01-01T00:00:00.000Z, + 2026-01-01T00:00:00.000Z, + 2027-01-01T00:00:00.000Z, + 2028-01-01T00:00:00.000Z, + 2029-01-01T00:00:00.000Z, + ] + `); + }); }); describe('error handling', () => { @@ -872,5 +1119,33 @@ describe('RRule', () => { `"Cannot create RRule: until is an invalid date"` ); }); + + it('throws an error on an interval of 0', () => { + const testFn = () => + new RRule({ + dtstart: new Date(DATE_2020), + freq: Frequency.HOURLY, + interval: 0, + tzid: 'UTC', + }); + expect(testFn).toThrowErrorMatchingInlineSnapshot( + `"Cannot create RRule: interval must be greater than 0"` + ); + }); + + it('throws an error when exceeding the iteration limit', () => { + const testFn = () => { + const rule = new RRule({ + dtstart: new Date(DATE_2020), + freq: Frequency.YEARLY, + byyearday: [1], + interval: 1, + tzid: 'UTC', + }); + rule.all(100001); + }; + + expect(testFn).toThrowErrorMatchingInlineSnapshot(`"RRule iteration limit exceeded"`); + }); }); }); diff --git a/src/platform/packages/shared/kbn-rrule/rrule.ts b/src/platform/packages/shared/kbn-rrule/rrule.ts index 43e89ee209cb7..3279ec53d5194 100644 --- a/src/platform/packages/shared/kbn-rrule/rrule.ts +++ b/src/platform/packages/shared/kbn-rrule/rrule.ts @@ -7,58 +7,16 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -import moment, { Moment } from 'moment-timezone'; - -export enum Frequency { - YEARLY = 0, - MONTHLY = 1, - WEEKLY = 2, - DAILY = 3, - HOURLY = 4, - MINUTELY = 5, - SECONDLY = 6, -} - -export enum Weekday { - MO = 1, - TU = 2, - WE = 3, - TH = 4, - FR = 5, - SA = 6, - SU = 7, -} +import moment, { type Moment } from 'moment-timezone'; -export type WeekdayStr = 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA' | 'SU'; -interface IterOptions { - refDT: Moment; - wkst?: Weekday | number | null; - byyearday?: number[] | null; - bymonth?: number[] | null; - bysetpos?: number[] | null; - bymonthday?: number[] | null; - byweekday?: Weekday[] | null; - byhour?: number[] | null; - byminute?: number[] | null; - bysecond?: number[] | null; -} - -type Options = Omit & { - dtstart: Date; - freq?: Frequency; - interval?: number; - until?: Date | null; - count?: number; - tzid: string; -}; +import { Frequency, Weekday, type WeekdayStr, type Options, type IterOptions } from './types'; +import { sanitizeOptions } from './sanitize'; type ConstructorOptions = Omit & { byweekday?: Array | null; wkst?: Weekday | WeekdayStr | number | null; }; -export type { ConstructorOptions as Options }; - const ISO_WEEKDAYS = [ Weekday.MO, Weekday.TU, @@ -74,19 +32,15 @@ type AllResult = Date[] & { }; const ALL_LIMIT = 10000; +const TIMEOUT_LIMIT = 100000; export class RRule { private options: Options; constructor(options: ConstructorOptions) { - this.options = options as Options; - if (isNaN(options.dtstart.getTime())) { - throw new Error('Cannot create RRule: dtstart is an invalid date'); - } - if (options.until && isNaN(options.until.getTime())) { - throw new Error('Cannot create RRule: until is an invalid date'); - } + this.options = sanitizeOptions(options as Options); if (typeof options.wkst === 'string') { this.options.wkst = Weekday[options.wkst]; + if (!this.options.wkst) delete this.options.wkst; } const weekdayParseResult = parseByWeekdayPos(options.byweekday); if (weekdayParseResult) { @@ -112,12 +66,17 @@ export class RRule { .toDate(); const nextRecurrences: Moment[] = []; + let iters = 0; while ( (!count && !until) || (count && yieldedRecurrenceCount < count) || - (until && current.getTime() < new Date(until).getTime()) + (until && current.getTime() < until.getTime()) ) { + iters++; + if (iters > TIMEOUT_LIMIT) { + throw new Error('RRule iteration limit exceeded'); + } const next = nextRecurrences.shift()?.toDate(); if (next) { current = next; @@ -313,6 +272,7 @@ const getYearOfRecurrences = function ({ return getMonthOfRecurrences({ refDT: currentMonth, wkst, + bymonth, bymonthday, byweekday, byhour, @@ -327,6 +287,7 @@ const getYearOfRecurrences = function ({ return derivedByyearday.flatMap((dayOfYear) => { const currentDate = moment(refDT).dayOfYear(dayOfYear); + if (currentDate.year() !== refDT.year()) return []; if (!derivedByweekday.includes(currentDate.isoWeekday())) return []; return getDayOfRecurrences({ refDT: currentDate, byhour, byminute, bysecond }); }); @@ -345,7 +306,7 @@ const getMonthOfRecurrences = function ({ }: IterOptions) { const derivedByweekday = byweekday ?? ISO_WEEKDAYS; const currentMonth = refDT.month(); - if (bymonth && !bymonth.includes(currentMonth)) return []; + if (bymonth && !bymonth.includes(currentMonth + 1)) return []; let derivedBymonthday = bymonthday ?? [refDT.date()]; if (bysetpos) { @@ -392,6 +353,7 @@ const getMonthOfRecurrences = function ({ return derivedBymonthday.flatMap((date) => { const currentDate = moment(refDT).date(date); + if (bymonth && !bymonth.includes(currentDate.month() + 1)) return []; if (!derivedByweekday.includes(currentDate.isoWeekday())) return []; return getDayOfRecurrences({ refDT: currentDate, byhour, byminute, bysecond }); }); diff --git a/src/platform/packages/shared/kbn-rrule/sanitize.test.ts b/src/platform/packages/shared/kbn-rrule/sanitize.test.ts new file mode 100644 index 0000000000000..d316748571f76 --- /dev/null +++ b/src/platform/packages/shared/kbn-rrule/sanitize.test.ts @@ -0,0 +1,131 @@ +/* + * 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". + */ + +import { sanitizeOptions } from './sanitize'; +import { Weekday, Frequency, type Options } from './types'; + +describe('sanitizeOptions', () => { + const options: Options = { + wkst: Weekday.MO, + byyearday: [1, 2, 3], + bymonth: [1], + bysetpos: [1], + bymonthday: [1], + byweekday: [Weekday.MO], + byhour: [1], + byminute: [1], + bysecond: [1], + dtstart: new Date('September 3, 1998 03:24:00'), + freq: Frequency.YEARLY, + interval: 1, + until: new Date('February 25, 2022 03:24:00'), + count: 3, + tzid: 'foobar', + }; + + it('happy path', () => { + expect(sanitizeOptions(options)).toEqual(options); + }); + + it('throws an error when dtstart is missing', () => { + // @ts-expect-error + expect(() => sanitizeOptions({ ...options, dtstart: null })).toThrowError( + 'Cannot create RRule: dtstart is required' + ); + }); + + it('throws an error when tzid is missing', () => { + expect(() => sanitizeOptions({ ...options, tzid: '' })).toThrowError( + 'Cannot create RRule: tzid is required' + ); + }); + + it('throws an error when until field is invalid', () => { + expect(() => + sanitizeOptions({ + ...options, + // @ts-expect-error + until: { + getTime: () => NaN, + }, + }) + ).toThrowError('Cannot create RRule: until is an invalid date'); + }); + + it('throws an error when interval is less than 0', () => { + expect(() => sanitizeOptions({ ...options, interval: -3 })).toThrowError( + 'Cannot create RRule: interval must be greater than 0' + ); + }); + + it('throws an error when interval is not a number', () => { + // @ts-expect-error + expect(() => sanitizeOptions({ ...options, interval: 'foobar' })).toThrowError( + 'Cannot create RRule: interval must be a number' + ); + }); + + it('filters out invalid bymonth values', () => { + expect(sanitizeOptions({ ...options, bymonth: [0, 6, 13] })).toEqual({ + ...options, + bymonth: [6], + }); + }); + + it('removes bymonth when it is empty', () => { + expect(sanitizeOptions({ ...options, bymonth: [0] })).toEqual({ + ...options, + bymonth: undefined, + }); + }); + + it('filters out invalid bymonthday values', () => { + expect(sanitizeOptions({ ...options, bymonthday: [0, 15, 32] })).toEqual({ + ...options, + bymonthday: [15], + }); + }); + + it('removes bymonthday when it is empty', () => { + expect(sanitizeOptions({ ...options, bymonthday: [0] })).toEqual({ + ...options, + bymonthday: undefined, + }); + }); + + it('filters out invalid byweekday values', () => { + // @ts-expect-error + expect(sanitizeOptions({ ...options, byweekday: [0, 4, 8] })).toEqual({ + ...options, + byweekday: [4], + }); + }); + + it('removes byweekday when it is empty', () => { + // @ts-expect-error + expect(sanitizeOptions({ ...options, byweekday: [0] })).toEqual({ + ...options, + byweekday: undefined, + }); + }); + + it('filters out invalid byyearday values', () => { + expect(sanitizeOptions({ ...options, byyearday: [0, 150, 367] })).toEqual({ + ...options, + byyearday: [150], + }); + }); + + it('removes byyearday when it is empty', () => { + expect(sanitizeOptions({ ...options, byyearday: [0] })).toEqual({ + ...options, + byyearday: undefined, + }); + }); +}); diff --git a/src/platform/packages/shared/kbn-rrule/sanitize.ts b/src/platform/packages/shared/kbn-rrule/sanitize.ts new file mode 100644 index 0000000000000..7225c6668dcd0 --- /dev/null +++ b/src/platform/packages/shared/kbn-rrule/sanitize.ts @@ -0,0 +1,82 @@ +/* + * 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". + */ + +import type { Options } from './types'; + +export function sanitizeOptions(opts: Options) { + const options = { ...opts }; + + // Guard against invalid options that can't be omitted + if (!options.dtstart) { + throw new Error('Cannot create RRule: dtstart is required'); + } + + if (!options.tzid) { + throw new Error('Cannot create RRule: tzid is required'); + } + + if (isNaN(options.dtstart.getTime())) { + throw new Error('Cannot create RRule: dtstart is an invalid date'); + } + + if (options.until && isNaN(options.until.getTime())) { + throw new Error('Cannot create RRule: until is an invalid date'); + } + + if (options.interval != null) { + if (typeof options.interval !== 'number') { + throw new Error('Cannot create RRule: interval must be a number'); + } + + if (options.interval < 1) { + throw new Error('Cannot create RRule: interval must be greater than 0'); + } + } + + // Omit invalid options + if (options.bymonth) { + // Only months between 1 and 12 are valid + options.bymonth = options.bymonth.filter( + (month) => typeof month === 'number' && month >= 1 && month <= 12 + ); + if (!options.bymonth.length) { + delete options.bymonth; + } + } + + if (options.bymonthday) { + // Only days between 1 and 31 are valid + options.bymonthday = options.bymonthday.filter( + (day) => typeof day === 'number' && day >= 1 && day <= 31 + ); + if (!options.bymonthday.length) { + delete options.bymonthday; + } + } + + if (options.byweekday) { + // Only weekdays between 1 and 7 are valid + options.byweekday = options.byweekday.filter( + (weekday) => typeof weekday === 'number' && weekday >= 1 && weekday <= 7 + ); + if (!options.byweekday.length) { + delete options.byweekday; + } + } + + if (options.byyearday) { + // Only days between 1 and 366 are valid + options.byyearday = options.byyearday.filter((day) => day >= 1 && day <= 366); + if (!options.byyearday.length) { + delete options.byyearday; + } + } + + return options; +} diff --git a/src/platform/packages/shared/kbn-rrule/types.ts b/src/platform/packages/shared/kbn-rrule/types.ts new file mode 100644 index 0000000000000..8d8895fdfe91c --- /dev/null +++ b/src/platform/packages/shared/kbn-rrule/types.ts @@ -0,0 +1,54 @@ +/* + * 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". + */ + +import type { Moment } from 'moment'; + +export enum Frequency { + YEARLY = 0, + MONTHLY = 1, + WEEKLY = 2, + DAILY = 3, + HOURLY = 4, + MINUTELY = 5, + SECONDLY = 6, +} + +export enum Weekday { + MO = 1, + TU = 2, + WE = 3, + TH = 4, + FR = 5, + SA = 6, + SU = 7, +} + +export type WeekdayStr = 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA' | 'SU'; + +export interface IterOptions { + refDT: Moment; + wkst?: Weekday | number | null; + byyearday?: number[] | null; + bymonth?: number[] | null; + bysetpos?: number[] | null; + bymonthday?: number[] | null; + byweekday?: Weekday[] | null; + byhour?: number[] | null; + byminute?: number[] | null; + bysecond?: number[] | null; +} + +export type Options = Omit & { + dtstart: Date; + freq?: Frequency; + interval?: number; + until?: Date | null; + count?: number; + tzid: string; +}; diff --git a/src/platform/packages/shared/kbn-server-route-repository-client/src/is_request_aborted_error.ts b/src/platform/packages/shared/kbn-server-route-repository-client/src/is_request_aborted_error.ts index 3ab33ebac821c..2964e14288da5 100644 --- a/src/platform/packages/shared/kbn-server-route-repository-client/src/is_request_aborted_error.ts +++ b/src/platform/packages/shared/kbn-server-route-repository-client/src/is_request_aborted_error.ts @@ -9,6 +9,6 @@ import { get } from 'lodash'; -export function isRequestAbortedError(error: unknown): error is Error { +export function isRequestAbortedError(error: unknown): error is Error & { name: 'AbortError' } { return get(error, 'name') === 'AbortError'; } diff --git a/src/platform/packages/shared/kbn-server-route-repository-utils/src/typings.ts b/src/platform/packages/shared/kbn-server-route-repository-utils/src/typings.ts index 5db4a87b8b326..6cc176113a590 100644 --- a/src/platform/packages/shared/kbn-server-route-repository-utils/src/typings.ts +++ b/src/platform/packages/shared/kbn-server-route-repository-utils/src/typings.ts @@ -213,7 +213,7 @@ type DecodedRequestParamsOfType = : never; export type EndpointOf = - keyof TServerRouteRepository; + keyof TServerRouteRepository & string; export type ReturnOf< TServerRouteRepository extends ServerRouteRepository, 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-ui-actions-browser/README.md b/src/platform/packages/shared/kbn-ui-actions-browser/README.md similarity index 100% rename from packages/kbn-ui-actions-browser/README.md rename to src/platform/packages/shared/kbn-ui-actions-browser/README.md diff --git a/packages/kbn-ui-actions-browser/index.ts b/src/platform/packages/shared/kbn-ui-actions-browser/index.ts similarity index 100% rename from packages/kbn-ui-actions-browser/index.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/index.ts diff --git a/src/platform/packages/shared/kbn-ui-actions-browser/jest.config.js b/src/platform/packages/shared/kbn-ui-actions-browser/jest.config.js new file mode 100644 index 0000000000000..fa551cd8a900e --- /dev/null +++ b/src/platform/packages/shared/kbn-ui-actions-browser/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-ui-actions-browser'], +}; diff --git a/packages/kbn-ui-actions-browser/kibana.jsonc b/src/platform/packages/shared/kbn-ui-actions-browser/kibana.jsonc similarity index 100% rename from packages/kbn-ui-actions-browser/kibana.jsonc rename to src/platform/packages/shared/kbn-ui-actions-browser/kibana.jsonc diff --git a/packages/kbn-ui-actions-browser/package.json b/src/platform/packages/shared/kbn-ui-actions-browser/package.json similarity index 100% rename from packages/kbn-ui-actions-browser/package.json rename to src/platform/packages/shared/kbn-ui-actions-browser/package.json diff --git a/packages/kbn-ui-actions-browser/src/index.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/index.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/index.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/index.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/default_trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/default_trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/default_trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/default_trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/index.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/index.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/index.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/index.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/types/index.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/types/index.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/types/index.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/types/index.ts diff --git a/packages/kbn-ui-actions-browser/src/types/presentable.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/types/presentable.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts diff --git a/packages/kbn-ui-actions-browser/tsconfig.json b/src/platform/packages/shared/kbn-ui-actions-browser/tsconfig.json similarity index 86% rename from packages/kbn-ui-actions-browser/tsconfig.json rename to src/platform/packages/shared/kbn-ui-actions-browser/tsconfig.json index ba72c1d931739..332c4b2fa1f5a 100644 --- a/packages/kbn-ui-actions-browser/tsconfig.json +++ b/src/platform/packages/shared/kbn-ui-actions-browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/platform/packages/shared/kbn-unified-data-table/src/components/column_header_truncate_container.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/column_header_truncate_container.tsx index 44f43a29b3362..f198edd3a2cbc 100644 --- a/src/platform/packages/shared/kbn-unified-data-table/src/components/column_header_truncate_container.tsx +++ b/src/platform/packages/shared/kbn-unified-data-table/src/components/column_header_truncate_container.tsx @@ -8,9 +8,8 @@ */ import React from 'react'; -import { EuiTextBlockTruncate } from '@elastic/eui'; +import { EuiTextBlockTruncate, useEuiTheme } from '@elastic/eui'; import { css } from '@emotion/react'; -import { euiThemeVars } from '@kbn/ui-theme'; const ColumnHeaderTruncateContainer = ({ headerRowHeight, @@ -19,11 +18,13 @@ const ColumnHeaderTruncateContainer = ({ headerRowHeight?: number; children: React.ReactNode; }) => { + const { euiTheme } = useEuiTheme(); + const headerCss = css` overflow-wrap: anywhere; white-space: normal; word-break: break-all; - line-height: ${euiThemeVars.euiSize}; + line-height: ${euiTheme.size.base}; text-align: left; .euiDataGridHeaderCell--numeric & { float: right; diff --git a/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_column_header.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_column_header.tsx index aec8df548ef1b..76b8f9bfb3365 100644 --- a/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_column_header.tsx +++ b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_column_header.tsx @@ -9,12 +9,11 @@ import React, { useMemo } from 'react'; import { css, CSSObject } from '@emotion/react'; -import { EuiIconTip } from '@elastic/eui'; +import { EuiIconTip, useEuiTheme } from '@elastic/eui'; import type { DataView, DataViewField } from '@kbn/data-views-plugin/common'; import { FieldIcon, getFieldIconProps, getTextBasedColumnIconType } from '@kbn/field-utils'; import { isNestedFieldParent } from '@kbn/discover-utils'; import { i18n } from '@kbn/i18n'; -import { euiThemeVars } from '@kbn/ui-theme'; import type { DataTableColumnsMeta } from '../types'; import ColumnHeaderTruncateContainer from './column_header_truncate_container'; @@ -52,15 +51,14 @@ export const DataTableColumnHeader: React.FC = ({ const DataTableColumnToken: React.FC< Pick > = (props) => { + const { euiTheme } = useEuiTheme(); const { columnName, columnsMeta, dataView } = props; const columnToken = useMemo( () => getRenderedToken({ columnName, columnsMeta, dataView }), [columnName, columnsMeta, dataView] ); - return columnToken ? ( - {columnToken} - ) : null; + return columnToken ? {columnToken} : null; }; const DataTableColumnTitle: React.FC> = ({ diff --git a/src/platform/packages/shared/kbn-unified-data-table/src/components/row_height_settings.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/row_height_settings.tsx index 8a90fc79689b4..7fd52bd245d8b 100644 --- a/src/platform/packages/shared/kbn-unified-data-table/src/components/row_height_settings.tsx +++ b/src/platform/packages/shared/kbn-unified-data-table/src/components/row_height_settings.tsx @@ -9,8 +9,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; -import { EuiButtonGroup, EuiFormRow, EuiRange, htmlIdGenerator } from '@elastic/eui'; -import { euiThemeVars } from '@kbn/ui-theme'; +import { EuiButtonGroup, EuiFormRow, EuiRange, htmlIdGenerator, useEuiTheme } from '@elastic/eui'; export enum RowHeightMode { auto = 'auto', @@ -40,6 +39,8 @@ export function RowHeightSettings({ maxRowHeight, ['data-test-subj']: dataTestSubj, }: RowHeightSettingsProps) { + const { euiTheme } = useEuiTheme(); + const rowHeightModeOptions = [ { id: `${idPrefix}${RowHeightMode.single}`, @@ -95,7 +96,7 @@ export function RowHeightSettings({ }} data-test-subj={`${dataTestSubj}_lineCountNumber`} css={{ - marginTop: compressed ? euiThemeVars.euiSizeXS : euiThemeVars.euiSizeM, + marginTop: compressed ? euiTheme.size.xs : euiTheme.size.m, }} /> ) : null} diff --git a/src/platform/packages/shared/kbn-unified-data-table/tsconfig.json b/src/platform/packages/shared/kbn-unified-data-table/tsconfig.json index 551456fc67b7e..b643bf4282b04 100644 --- a/src/platform/packages/shared/kbn-unified-data-table/tsconfig.json +++ b/src/platform/packages/shared/kbn-unified-data-table/tsconfig.json @@ -3,10 +3,14 @@ "compilerOptions": { "outDir": "target/types" }, - "include": ["*.ts", "**/*.tsx", "src/**/*", "__mocks__/**/*.ts"], - "exclude": [ - "target/**/*" + "include": [ + "*.ts", + "**/*.tsx", + "src/**/*", + "__mocks__/**/*.ts", + "../../../../../typings/emotion.d.ts" ], + "exclude": ["target/**/*"], "kbn_references": [ "@kbn/i18n", "@kbn/data-views-plugin", @@ -16,7 +20,6 @@ "@kbn/expressions-plugin", "@kbn/test-jest-helpers", "@kbn/i18n-react", - "@kbn/ui-theme", "@kbn/field-types", "@kbn/kibana-utils-plugin", "@kbn/cell-actions", @@ -39,6 +42,6 @@ "@kbn/unified-field-list", "@kbn/core-notifications-browser", "@kbn/core-capabilities-browser-mocks", - "@kbn/sort-predicates", + "@kbn/sort-predicates" ] } diff --git a/src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover.tsx index efa4d8d4c9e51..9ce7534babe5f 100644 --- a/src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover.tsx +++ b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover.tsx @@ -15,8 +15,9 @@ import { EuiPopoverProps, EuiPopoverTitle, } from '@elastic/eui'; +import { css } from '@emotion/react'; + import './field_popover.scss'; -import { euiThemeVars } from '@kbn/ui-theme'; export interface FieldPopoverProps extends EuiPopoverProps { renderHeader?: () => React.ReactNode; @@ -80,10 +81,10 @@ export const FieldPopover: React.FC = ({ {content ? ( css` + padding: ${euiTheme.size.base}; + margin: -${euiTheme.size.base}; + `} > {content} diff --git a/src/platform/packages/shared/kbn-unified-field-list/tsconfig.json b/src/platform/packages/shared/kbn-unified-field-list/tsconfig.json index dffff106aed28..69b92e913a4cc 100644 --- a/src/platform/packages/shared/kbn-unified-field-list/tsconfig.json +++ b/src/platform/packages/shared/kbn-unified-field-list/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "target/types" }, - "include": ["*.ts", "src/**/*", "__mocks__/**/*.ts"], + "include": ["*.ts", "src/**/*", "__mocks__/**/*.ts", "../../../../../typings/emotion.d.ts"], "kbn_references": [ "@kbn/i18n", "@kbn/data-views-plugin", @@ -34,8 +34,7 @@ "@kbn/visualization-utils", "@kbn/search-types", "@kbn/fields-metadata-plugin", - "@kbn/ui-theme", - "@kbn/esql-utils", + "@kbn/esql-utils" ], "exclude": ["target/**/*"] } 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-visualization-ui-components/jest.config.js b/src/platform/packages/shared/kbn-visualization-ui-components/jest.config.js similarity index 82% rename from packages/kbn-visualization-ui-components/jest.config.js rename to src/platform/packages/shared/kbn-visualization-ui-components/jest.config.js index 08b801fcbb173..1c68c8f7ae555 100644 --- a/packages/kbn-visualization-ui-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-visualization-ui-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/platform/packages/shared/response-ops/rule_params/common/utils.ts b/src/platform/packages/shared/response-ops/rule_params/common/utils.ts new file mode 100644 index 0000000000000..521621620dc29 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/common/utils.ts @@ -0,0 +1,41 @@ +/* + * 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". + */ + +import { schema } from '@kbn/config-schema'; +import { isEmpty } from 'lodash'; + +export const oneOfLiterals = (arrayOfLiterals: Readonly) => + schema.string({ + validate: (value) => + arrayOfLiterals.includes(value) ? undefined : `must be one of ${arrayOfLiterals.join(' | ')}`, + }); + +export const validateIsStringElasticsearchJSONFilter = (value: string) => { + if (value === '') { + // Allow clearing the filter. + return; + } + + const errorMessage = 'filterQuery must be a valid Elasticsearch filter expressed in JSON'; + try { + const parsedValue = JSON.parse(value); + if (!isEmpty(parsedValue.bool)) { + return undefined; + } + return errorMessage; + } catch (e) { + return errorMessage; + } +}; + +export type TimeUnitChar = 's' | 'm' | 'h' | 'd'; + +export enum LEGACY_COMPARATORS { + OUTSIDE_RANGE = 'outside', +} diff --git a/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/index.ts b/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/index.ts new file mode 100644 index 0000000000000..779a8d97d2905 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/index.ts @@ -0,0 +1,11 @@ +/* + * 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". + */ + +export { metricInventoryThresholdRuleParamsSchema } from './latest'; +export { metricInventoryThresholdRuleParamsSchema as metricInventoryThresholdRuleParamsSchemaV1 } from './v1'; diff --git a/src/plugins/event_annotation/common/content_management/latest.ts b/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/latest.ts similarity index 100% rename from src/plugins/event_annotation/common/content_management/latest.ts rename to src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/latest.ts diff --git a/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/v1.ts b/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/v1.ts new file mode 100644 index 0000000000000..59b74200f2f12 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/v1.ts @@ -0,0 +1,91 @@ +/* + * 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". + */ + +import { schema, Type } from '@kbn/config-schema'; +import { COMPARATORS } from '@kbn/alerting-comparators'; + +import { + LEGACY_COMPARATORS, + TimeUnitChar, + oneOfLiterals, + validateIsStringElasticsearchJSONFilter, +} from '../common/utils'; + +const SNAPSHOT_CUSTOM_AGGREGATIONS = ['avg', 'max', 'min', 'rate'] as const; +type SnapshotCustomAggregation = (typeof SNAPSHOT_CUSTOM_AGGREGATIONS)[number]; + +const SnapshotMetricTypeKeysArray = [ + 'count', + 'cpuV2', + 'cpu', + 'diskLatency', + 'diskSpaceUsage', + 'load', + 'memory', + 'memoryFree', + 'memoryTotal', + 'normalizedLoad1m', + 'tx', + 'rx', + 'txV2', + 'rxV2', + 'logRate', + 'diskIOReadBytes', + 'diskIOWriteBytes', + 's3TotalRequests', + 's3NumberOfObjects', + 's3BucketSize', + 's3DownloadBytes', + 's3UploadBytes', + 'rdsConnections', + 'rdsQueriesExecuted', + 'rdsActiveTransactions', + 'rdsLatency', + 'sqsMessagesVisible', + 'sqsMessagesDelayed', + 'sqsMessagesSent', + 'sqsMessagesEmpty', + 'sqsOldestMessage', + 'custom', +]; +type SnapshotMetricTypeKeys = (typeof SNAPSHOT_CUSTOM_AGGREGATIONS)[number]; + +const comparators = Object.values({ ...COMPARATORS, ...LEGACY_COMPARATORS }); + +export const metricInventoryThresholdRuleParamsSchema = schema.object( + { + criteria: schema.arrayOf( + schema.object({ + threshold: schema.arrayOf(schema.number()), + comparator: oneOfLiterals(comparators) as Type, + timeUnit: schema.string() as Type, + timeSize: schema.number(), + metric: oneOfLiterals(SnapshotMetricTypeKeysArray) as Type, + warningThreshold: schema.maybe(schema.arrayOf(schema.number())), + warningComparator: schema.maybe(oneOfLiterals(comparators)), + customMetric: schema.maybe( + schema.object({ + type: schema.literal('custom'), + id: schema.string(), + field: schema.string(), + aggregation: oneOfLiterals( + SNAPSHOT_CUSTOM_AGGREGATIONS + ) as Type, + label: schema.maybe(schema.string()), + }) + ), + }) + ), + nodeType: schema.string(), + filterQuery: schema.maybe(schema.string({ validate: validateIsStringElasticsearchJSONFilter })), + sourceId: schema.string(), + alertOnNoData: schema.maybe(schema.boolean()), + }, + { unknowns: 'allow' } +); diff --git a/src/platform/plugins/shared/embeddable/public/lib/index.ts b/src/platform/packages/shared/response-ops/rule_params/metric_threshold/index.ts similarity index 75% rename from src/platform/plugins/shared/embeddable/public/lib/index.ts rename to src/platform/packages/shared/response-ops/rule_params/metric_threshold/index.ts index 3c816f15095b3..a3110ba721272 100644 --- a/src/platform/plugins/shared/embeddable/public/lib/index.ts +++ b/src/platform/packages/shared/response-ops/rule_params/metric_threshold/index.ts @@ -7,7 +7,5 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -export * from './errors'; -export * from './types'; -export * from './triggers'; -export * from './state_transfer'; +export { metricThresholdRuleParamsSchema } from './latest'; +export { metricThresholdRuleParamsSchema as metricThresholdRuleParamsSchemaV1 } from './v1'; diff --git a/src/plugins/visualizations/common/content_management/latest.ts b/src/platform/packages/shared/response-ops/rule_params/metric_threshold/latest.ts similarity index 100% rename from src/plugins/visualizations/common/content_management/latest.ts rename to src/platform/packages/shared/response-ops/rule_params/metric_threshold/latest.ts diff --git a/src/platform/packages/shared/response-ops/rule_params/metric_threshold/v1.ts b/src/platform/packages/shared/response-ops/rule_params/metric_threshold/v1.ts new file mode 100644 index 0000000000000..8c1790cc16238 --- /dev/null +++ b/src/platform/packages/shared/response-ops/rule_params/metric_threshold/v1.ts @@ -0,0 +1,99 @@ +/* + * 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". + */ + +import { schema } from '@kbn/config-schema'; +import { COMPARATORS } from '@kbn/alerting-comparators'; + +import { + LEGACY_COMPARATORS, + oneOfLiterals, + validateIsStringElasticsearchJSONFilter, +} from '../common/utils'; + +const METRIC_EXPLORER_AGGREGATIONS = [ + 'avg', + 'max', + 'min', + 'cardinality', + 'rate', + 'count', + 'sum', + 'p95', + 'p99', + 'custom', +] as const; + +const comparator = Object.values({ ...COMPARATORS, ...LEGACY_COMPARATORS }); + +const baseCriterion = { + threshold: schema.arrayOf(schema.number()), + comparator: oneOfLiterals(comparator), + timeUnit: schema.string(), + timeSize: schema.number(), + warningThreshold: schema.maybe(schema.arrayOf(schema.number())), + warningComparator: schema.maybe(oneOfLiterals(comparator)), +}; + +const nonCountCriterion = schema.object({ + ...baseCriterion, + metric: schema.string(), + aggType: oneOfLiterals(METRIC_EXPLORER_AGGREGATIONS), + customMetrics: schema.never(), + equation: schema.never(), + label: schema.never(), +}); + +const countCriterion = schema.object({ + ...baseCriterion, + aggType: schema.literal('count'), + metric: schema.never(), + customMetrics: schema.never(), + equation: schema.never(), + label: schema.never(), +}); + +const customCriterion = schema.object({ + ...baseCriterion, + aggType: schema.literal('custom'), + metric: schema.never(), + customMetrics: schema.arrayOf( + schema.oneOf([ + schema.object({ + name: schema.string(), + aggType: oneOfLiterals(['avg', 'sum', 'max', 'min', 'cardinality']), + field: schema.string(), + filter: schema.never(), + }), + schema.object({ + name: schema.string(), + aggType: schema.literal('count'), + filter: schema.maybe(schema.string()), + field: schema.never(), + }), + ]) + ), + equation: schema.maybe(schema.string()), + label: schema.maybe(schema.string()), +}); + +export const metricThresholdRuleParamsSchema = schema.object( + { + criteria: schema.arrayOf(schema.oneOf([countCriterion, nonCountCriterion, customCriterion])), + groupBy: schema.maybe(schema.oneOf([schema.string(), schema.arrayOf(schema.string())])), + filterQuery: schema.maybe( + schema.string({ + validate: validateIsStringElasticsearchJSONFilter, + }) + ), + sourceId: schema.string(), + alertOnNoData: schema.maybe(schema.boolean()), + alertOnGroupDisappear: schema.maybe(schema.boolean()), + }, + { unknowns: 'allow' } +); diff --git a/src/platform/packages/shared/response-ops/rule_params/tsconfig.json b/src/platform/packages/shared/response-ops/rule_params/tsconfig.json index 47b4f90bb2813..c8de98d29c211 100644 --- a/src/platform/packages/shared/response-ops/rule_params/tsconfig.json +++ b/src/platform/packages/shared/response-ops/rule_params/tsconfig.json @@ -6,5 +6,9 @@ }, "include": ["**/*.ts"], "exclude": ["target/**/*"], - "kbn_references": ["@kbn/config-schema", "@kbn/ml-anomaly-utils"] + "kbn_references": [ + "@kbn/config-schema", + "@kbn/ml-anomaly-utils", + "@kbn/alerting-comparators", + ] } 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/platform/plugins/shared/embeddable/public/lib/triggers/index.ts b/src/platform/plugins/private/event_annotation/common/content_management/latest.ts similarity index 94% rename from src/platform/plugins/shared/embeddable/public/lib/triggers/index.ts rename to src/platform/plugins/private/event_annotation/common/content_management/latest.ts index 33dd4d10b00c1..f278309c22b03 100644 --- a/src/platform/plugins/shared/embeddable/public/lib/triggers/index.ts +++ b/src/platform/plugins/private/event_annotation/common/content_management/latest.ts @@ -7,4 +7,4 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -export * from './triggers'; +export * from './v1'; 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/platform/plugins/private/image_embeddable/public/actions/create_image_action.ts b/src/platform/plugins/private/image_embeddable/public/actions/create_image_action.ts index c18b25f7a8179..62e542697dd74 100644 --- a/src/platform/plugins/private/image_embeddable/public/actions/create_image_action.ts +++ b/src/platform/plugins/private/image_embeddable/public/actions/create_image_action.ts @@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n'; import { CanAddNewPanel } from '@kbn/presentation-containers'; import { EmbeddableApiContext } from '@kbn/presentation-publishing'; -import { COMMON_EMBEDDABLE_GROUPING } from '@kbn/embeddable-plugin/public'; +import { ADD_PANEL_ANNOTATION_GROUP } from '@kbn/embeddable-plugin/public'; import { IncompatibleActionError, ADD_PANEL_TRIGGER } from '@kbn/ui-actions-plugin/public'; import { ADD_IMAGE_EMBEDDABLE_ACTION_ID, @@ -48,7 +48,7 @@ export const registerCreateImageAction = () => { // swallow the rejection, since this just means the user closed without saving } }, - grouping: [COMMON_EMBEDDABLE_GROUPING.annotation], + grouping: [ADD_PANEL_ANNOTATION_GROUP], getDisplayName: () => i18n.translate('imageEmbeddable.imageEmbeddableFactory.displayName', { defaultMessage: 'Image', diff --git a/src/platform/plugins/private/links/public/actions/create_links_panel_action.ts b/src/platform/plugins/private/links/public/actions/create_links_panel_action.ts index 666e650d6d586..3fa64383eb797 100644 --- a/src/platform/plugins/private/links/public/actions/create_links_panel_action.ts +++ b/src/platform/plugins/private/links/public/actions/create_links_panel_action.ts @@ -9,7 +9,7 @@ import { EmbeddableApiContext } from '@kbn/presentation-publishing'; import { ADD_PANEL_TRIGGER, IncompatibleActionError } from '@kbn/ui-actions-plugin/public'; -import { COMMON_EMBEDDABLE_GROUPING } from '@kbn/embeddable-plugin/public'; +import { ADD_PANEL_ANNOTATION_GROUP } from '@kbn/embeddable-plugin/public'; import { APP_ICON, APP_NAME, CONTENT_ID } from '../../common'; import { uiActions } from '../services/kibana_services'; @@ -38,7 +38,7 @@ export const registerCreateLinksPanelAction = () => { initialState: runtimeState, }); }, - grouping: [COMMON_EMBEDDABLE_GROUPING.annotation], + grouping: [ADD_PANEL_ANNOTATION_GROUP], getDisplayName: () => APP_NAME, }); uiActions.attachAction(ADD_PANEL_TRIGGER, ADD_LINKS_PANEL_ACTION_ID); diff --git a/src/platform/plugins/private/maps_ems/server/plugin.ts b/src/platform/plugins/private/maps_ems/server/plugin.ts index b30ee5fa9ec72..98bbb2c3e913d 100644 --- a/src/platform/plugins/private/maps_ems/server/plugin.ts +++ b/src/platform/plugins/private/maps_ems/server/plugin.ts @@ -54,5 +54,7 @@ export class MapsEmsPlugin implements Plugin { }; } - public start() {} + public start() { + return {}; + } } 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 3c980d413b1c5..9680724ab5516 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 ec1ac8ee94edc..944b8d93a6d7a 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 485c561bda281..e9fafe7144774 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 5ffa2904e04b4..a56c669fdae2f 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 711f38b7d92f7..dd223e50a4e19 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/decrease_opacity.test.ts b/src/platform/plugins/shared/charts/public/services/palettes/decrease_opacity.test.ts similarity index 100% rename from src/plugins/charts/public/services/palettes/decrease_opacity.test.ts rename to src/platform/plugins/shared/charts/public/services/palettes/decrease_opacity.test.ts diff --git a/src/plugins/charts/public/services/palettes/decrease_opacity.ts b/src/platform/plugins/shared/charts/public/services/palettes/decrease_opacity.ts similarity index 100% rename from src/plugins/charts/public/services/palettes/decrease_opacity.ts rename to src/platform/plugins/shared/charts/public/services/palettes/decrease_opacity.ts 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 91% rename from src/plugins/charts/tsconfig.json rename to src/platform/plugins/shared/charts/tsconfig.json index 0bd9814e55579..5d736a68caf83 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/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/add_panel_action_menu_items.ts b/src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/add_panel_action_menu_items.ts index b91320e321f88..fe1d1e73e5a96 100644 --- a/src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/add_panel_action_menu_items.ts +++ b/src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/add_panel_action_menu_items.ts @@ -13,7 +13,7 @@ import { addPanelMenuTrigger, } from '@kbn/ui-actions-plugin/public'; import { PresentationContainer } from '@kbn/presentation-containers'; -import { COMMON_EMBEDDABLE_GROUPING } from '@kbn/embeddable-plugin/public'; +import { ADD_PANEL_OTHER_GROUP } from '@kbn/embeddable-plugin/public'; import type { IconType, CommonProps } from '@elastic/eui'; import React, { type MouseEventHandler } from 'react'; @@ -98,12 +98,12 @@ export const getAddPanelActionMenuItemsGroup = ( }); } else { // use other group as the default for definitions that don't have a group - const fallbackGroup = COMMON_EMBEDDABLE_GROUPING.other; + const fallbackGroup = ADD_PANEL_OTHER_GROUP; if (!grouped[fallbackGroup.id]) { grouped[fallbackGroup.id] = { id: fallbackGroup.id, - title: fallbackGroup.getDisplayName?.({ embeddable: api }) || '', + title: fallbackGroup.getDisplayName?.() || '', 'data-test-subj': `dashboardEditorMenu-${fallbackGroup.id}Group`, order: fallbackGroup.order || 0, items: [], diff --git a/src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/use_get_dashboard_panels.test.ts b/src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/use_get_dashboard_panels.test.ts index 0bd8d95dc7916..7965403a6b01a 100644 --- a/src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/use_get_dashboard_panels.test.ts +++ b/src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/use_get_dashboard_panels.test.ts @@ -7,7 +7,7 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -import { COMMON_EMBEDDABLE_GROUPING } from '@kbn/embeddable-plugin/public'; +import { ADD_PANEL_ANNOTATION_GROUP, ADD_PANEL_LEGACY_GROUP } from '@kbn/embeddable-plugin/public'; import type { PresentationContainer } from '@kbn/presentation-containers'; import type { Action, UiActionsService } from '@kbn/ui-actions-plugin/public'; import { ADD_PANEL_TRIGGER } from '@kbn/ui-actions-plugin/public'; @@ -92,8 +92,8 @@ describe('Get dashboard panels hook', () => { describe('augmenting ui action group items with dashboard visualization types', () => { it.each([ ['visualizations', VisGroups.PROMOTED], - [COMMON_EMBEDDABLE_GROUPING.legacy.id, VisGroups.LEGACY], - [COMMON_EMBEDDABLE_GROUPING.annotation.id, VisGroups.TOOLS], + [ADD_PANEL_LEGACY_GROUP.id, VisGroups.LEGACY], + [ADD_PANEL_ANNOTATION_GROUP.id, VisGroups.TOOLS], ])( 'includes in the ui action %s group, %s dashboard visualization group types', async (uiActionGroupId, dashboardVisualizationGroupId) => { diff --git a/src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/use_get_dashboard_panels.ts b/src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/use_get_dashboard_panels.ts index 4556991816c99..8d26c2a3b5708 100644 --- a/src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/use_get_dashboard_panels.ts +++ b/src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/add_new_panel/use_get_dashboard_panels.ts @@ -10,7 +10,7 @@ import { useCallback, useMemo, useRef } from 'react'; import { AsyncSubject, defer, from, lastValueFrom, map, type Subscription } from 'rxjs'; -import { COMMON_EMBEDDABLE_GROUPING } from '@kbn/embeddable-plugin/public'; +import { ADD_PANEL_ANNOTATION_GROUP, ADD_PANEL_LEGACY_GROUP } from '@kbn/embeddable-plugin/public'; import { PresentationContainer } from '@kbn/presentation-containers'; import { ADD_PANEL_TRIGGER } from '@kbn/ui-actions-plugin/public'; import { VisGroups, type BaseVisType, type VisTypeAlias } from '@kbn/visualizations-plugin/public'; @@ -155,7 +155,7 @@ export const useGetDashboardPanels = ({ api, createNewVisType }: UseGetDashboard ), }; } - case COMMON_EMBEDDABLE_GROUPING.legacy.id: { + case ADD_PANEL_LEGACY_GROUP.id: { return { ...panelGroup, items: sortGroupPanelsByOrder( @@ -165,7 +165,7 @@ export const useGetDashboardPanels = ({ api, createNewVisType }: UseGetDashboard ), }; } - case COMMON_EMBEDDABLE_GROUPING.annotation.id: { + case ADD_PANEL_ANNOTATION_GROUP.id: { return { ...panelGroup, items: sortGroupPanelsByOrder( diff --git a/src/platform/plugins/shared/dashboard/server/plugin.ts b/src/platform/plugins/shared/dashboard/server/plugin.ts index 7762e7da0da96..6ca274635f6d4 100644 --- a/src/platform/plugins/shared/dashboard/server/plugin.ts +++ b/src/platform/plugins/shared/dashboard/server/plugin.ts @@ -45,7 +45,7 @@ interface StartDeps { } export class DashboardPlugin - implements Plugin + implements Plugin { private readonly logger: Logger; @@ -53,7 +53,7 @@ export class DashboardPlugin this.logger = initializerContext.logger.get(); } - public setup(core: CoreSetup, plugins: SetupDeps) { + public setup(core: CoreSetup, plugins: SetupDeps) { this.logger.debug('dashboard: Setup'); core.savedObjects.registerType( 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/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 99% rename from src/plugins/data/server/search/search_service.ts rename to src/platform/plugins/shared/data/server/search/search_service.ts index f52a94c8bf429..6387b80defb2c 100644 --- a/src/plugins/data/server/search/search_service.ts +++ b/src/platform/plugins/shared/data/server/search/search_service.ts @@ -15,7 +15,6 @@ import { CoreStart, KibanaRequest, Logger, - Plugin, PluginInitializerContext, SharedGlobalConfig, StartServicesAccessor, @@ -121,7 +120,7 @@ export interface SearchRouteDependencies { globalConfig$: Observable; } -export class SearchService implements Plugin { +export class SearchService { private readonly aggsService = new AggsService(); private readonly searchSourceService = new SearchSourceService(); private searchStrategies: StrategyMap = {}; 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 8683afafceb47..1edc83a23e05e 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/platform/plugins/shared/discover/public/application/context/context_app_content.test.tsx b/src/platform/plugins/shared/discover/public/application/context/context_app_content.test.tsx index 47fb1d57ea43f..bad964fcafd31 100644 --- a/src/platform/plugins/shared/discover/public/application/context/context_app_content.test.tsx +++ b/src/platform/plugins/shared/discover/public/application/context/context_app_content.test.tsx @@ -8,6 +8,7 @@ */ import React from 'react'; +import { EuiProvider } from '@elastic/eui'; import { mountWithIntl } from '@kbn/test-jest-helpers'; import { findTestSubject } from '@elastic/eui/lib/test'; import { GetStateReturn } from './services/context_state'; @@ -73,7 +74,9 @@ describe('ContextAppContent test', () => { const component = mountWithIntl( - + + + ); await act(async () => { diff --git a/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_documents.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_documents.test.tsx index effa9f99d6c4b..5ebe81da80a79 100644 --- a/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_documents.test.tsx +++ b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_documents.test.tsx @@ -9,6 +9,7 @@ import React from 'react'; import { act } from 'react-dom/test-utils'; +import { EuiProvider } from '@elastic/eui'; import { BehaviorSubject } from 'rxjs'; import { findTestSubject } from '@elastic/eui/lib/test'; import { mountWithIntl } from '@kbn/test-jest-helpers'; @@ -59,7 +60,9 @@ async function mountComponent(fetchStatus: FetchStatus, hits: EsHitRecord[]) { - + + + diff --git a/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.test.tsx index 13a8e2c9c402a..c0b94760b61d3 100644 --- a/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.test.tsx +++ b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.test.tsx @@ -8,6 +8,7 @@ */ import React from 'react'; +import { EuiProvider } from '@elastic/eui'; import { BehaviorSubject, of } from 'rxjs'; import { EuiPageSidebar } from '@elastic/eui'; import { mountWithIntl } from '@kbn/test-jest-helpers'; @@ -123,7 +124,9 @@ async function mountComponent( const component = mountWithIntl( - + + + , mountOptions diff --git a/src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav_inline.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav_inline.tsx index 399fa909d48ab..6db06ee830427 100644 --- a/src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav_inline.tsx +++ b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav_inline.tsx @@ -8,9 +8,8 @@ */ import React from 'react'; -import { EuiHeader, EuiHeaderSection, EuiHeaderSectionItem } from '@elastic/eui'; +import { EuiHeader, EuiHeaderSection, EuiHeaderSectionItem, useEuiTheme } from '@elastic/eui'; import { TopNavMenuBadges, TopNavMenuItems } from '@kbn/navigation-plugin/public'; -import { euiThemeVars } from '@kbn/ui-theme'; import { useDiscoverTopNav } from './use_discover_topnav'; import type { DiscoverStateContainer } from '../../state_management/discover_state'; @@ -21,6 +20,7 @@ export const DiscoverTopNavInline = ({ stateContainer: DiscoverStateContainer; hideNavMenuItems?: boolean; }) => { + const { euiTheme } = useEuiTheme(); const { customizationContext } = stateContainer; const { topNavBadges, topNavMenu } = useDiscoverTopNav({ stateContainer }); @@ -33,7 +33,7 @@ export const DiscoverTopNavInline = ({ return ( {!hideNavMenuItems && ( diff --git a/src/platform/plugins/shared/discover/public/components/data_types/logs/service_name_cell.tsx b/src/platform/plugins/shared/discover/public/components/data_types/logs/service_name_cell.tsx index 3d543f7f0c954..060f99344ce41 100644 --- a/src/platform/plugins/shared/discover/public/components/data_types/logs/service_name_cell.tsx +++ b/src/platform/plugins/shared/discover/public/components/data_types/logs/service_name_cell.tsx @@ -8,13 +8,12 @@ */ import React from 'react'; -import { EuiToolTip } from '@elastic/eui'; +import { EuiToolTip, UseEuiTheme } from '@elastic/eui'; import type { AgentName } from '@kbn/elastic-agent-utils'; import { dynamic } from '@kbn/shared-ux-utility'; import type { DataGridCellValueElementProps } from '@kbn/unified-data-table'; import { css } from '@emotion/react'; import { getFieldValue } from '@kbn/discover-utils'; -import { euiThemeVars } from '@kbn/ui-theme'; import { ServiceNameBadgeWithActions } from '@kbn/discover-contextual-components'; import { useDiscoverServices } from '../../../hooks/use_discover_services'; import { CellRenderersExtensionParams } from '../../../context_awareness'; @@ -22,8 +21,9 @@ import { AGENT_NAME_FIELD } from '../../../../common/data_types/logs/constants'; const AgentIcon = dynamic(() => import('@kbn/custom-icons/src/components/agent_icon')); const dataTestSubj = 'serviceNameCell'; -const agentIconStyle = css` - margin-right: ${euiThemeVars.euiSizeXS}; + +const agentIconStyle = ({ euiTheme }: UseEuiTheme) => css` + margin-right: ${euiTheme.size.xs}; `; export const getServiceNameCell = diff --git a/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_data_source_profile/profile.tsx b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_data_source_profile/profile.tsx index 07c836b127843..16a57877c2ca5 100644 --- a/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_data_source_profile/profile.tsx +++ b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_data_source_profile/profile.tsx @@ -16,7 +16,6 @@ import { } from '@kbn/discover-utils'; import { isOfAggregateQueryType } from '@kbn/es-query'; import { getIndexPatternFromESQLQuery } from '@kbn/esql-utils'; -import { euiThemeVars } from '@kbn/ui-theme'; import { capitalize } from 'lodash'; import React from 'react'; import { DataSourceType, isDataSourceType } from '../../../../../common/data_sources'; @@ -37,7 +36,9 @@ export const createExampleDataSourceProfileProvider = (): DataSourceProfileProvi if (!level) { return ( ({ + color: euiTheme.colors.textSubdued, + })} data-test-subj="exampleDataSourceProfileLogLevelEmpty" > (None) diff --git a/src/platform/plugins/shared/discover/tsconfig.json b/src/platform/plugins/shared/discover/tsconfig.json index 672692569cbd1..ad6498e95171d 100644 --- a/src/platform/plugins/shared/discover/tsconfig.json +++ b/src/platform/plugins/shared/discover/tsconfig.json @@ -50,7 +50,6 @@ "@kbn/test-jest-helpers", "@kbn/shared-ux-page-analytics-no-data", "@kbn/alerting-plugin", - "@kbn/ui-theme", "@kbn/config-schema", "@kbn/storybook", "@kbn/shared-ux-router", @@ -101,7 +100,5 @@ "@kbn/esql-ast", "@kbn/discover-shared-plugin" ], - "exclude": [ - "target/**/*" - ] + "exclude": ["target/**/*"] } diff --git a/src/platform/plugins/shared/embeddable/public/index.ts b/src/platform/plugins/shared/embeddable/public/index.ts index b388427f402bc..88dafd108e5ea 100644 --- a/src/platform/plugins/shared/embeddable/public/index.ts +++ b/src/platform/plugins/shared/embeddable/public/index.ts @@ -12,12 +12,13 @@ import { EmbeddablePublicPlugin } from './plugin'; export { useAddFromLibraryTypes } from './add_from_library/registry'; export { openAddFromLibraryFlyout } from './add_from_library/open_add_from_library_flyout'; +export { PanelNotFoundError, PanelIncompatibleError } from './react_embeddable_system'; +export { EmbeddableStateTransfer } from './state_transfer'; export { cellValueTrigger, CELL_VALUE_TRIGGER, contextMenuTrigger, CONTEXT_MENU_TRIGGER, - EmbeddableStateTransfer, isMultiValueClickTriggerContext, isRangeSelectTriggerContext, isRowClickTriggerContext, @@ -25,26 +26,22 @@ export { MULTI_VALUE_CLICK_TRIGGER, panelBadgeTrigger, panelHoverTrigger, - PanelNotFoundError, - PanelIncompatibleError, panelNotificationTrigger, PANEL_BADGE_TRIGGER, PANEL_HOVER_TRIGGER, PANEL_NOTIFICATION_TRIGGER, SELECT_RANGE_TRIGGER, VALUE_CLICK_TRIGGER, - ViewMode, -} from './lib'; +} from './ui_actions/triggers'; +export { ViewMode } from '../common/types'; export type { CellValueContext, ChartActionContext, - EmbeddableEditorState, - EmbeddablePackageState, MultiValueClickContext, - PropertySpec, RangeSelectContext, ValueClickContext, -} from './lib'; +} from './ui_actions/triggers'; +export type { EmbeddableEditorState, EmbeddablePackageState } from './state_transfer'; export type { EmbeddableSetup, EmbeddableStart } from './types'; export type { EnhancementRegistryDefinition } from './enhancements/types'; @@ -58,4 +55,8 @@ export function plugin(initializerContext: PluginInitializerContext) { return new EmbeddablePublicPlugin(initializerContext); } -export { COMMON_EMBEDDABLE_GROUPING } from './lib/embeddables/common/constants'; +export { + ADD_PANEL_ANNOTATION_GROUP, + ADD_PANEL_OTHER_GROUP, + ADD_PANEL_LEGACY_GROUP, +} from './ui_actions/add_panel_groups'; diff --git a/src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts b/src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts deleted file mode 100644 index eec876216da47..0000000000000 --- a/src/platform/plugins/shared/embeddable/public/lib/embeddables/common/constants.ts +++ /dev/null @@ -1,39 +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". - */ - -import { i18n } from '@kbn/i18n'; -import { UiActionsPresentableGroup } from '@kbn/ui-actions-plugin/public'; - -export const COMMON_EMBEDDABLE_GROUPING: { [key: string]: UiActionsPresentableGroup } = { - annotation: { - id: 'annotation-and-navigation', - getDisplayName: () => - i18n.translate('embeddableApi.common.constants.grouping.annotations', { - defaultMessage: 'Annotations and Navigation', - }), - order: 900, // This is the order of the group in the context menu - }, - other: { - id: 'other', - getDisplayName: () => - i18n.translate('embeddableApi.common.constants.grouping.other', { - defaultMessage: 'Other', - }), - getIconType: () => 'empty', - order: -1, // Given an item that doesn't specify a group is assigned zero, this forces other to come after all intentionally grouped section - }, - legacy: { - id: 'legacy', - getDisplayName: () => - i18n.translate('embeddableApi.common.constants.grouping.legacy', { - defaultMessage: 'Legacy', - }), - order: -2, // Given an item that doesn't specify a group is assigned zero, this forces it to the bottom of the list - }, -}; diff --git a/src/platform/plugins/shared/embeddable/public/lib/errors.test.ts b/src/platform/plugins/shared/embeddable/public/lib/errors.test.ts deleted file mode 100644 index ebac7371acd51..0000000000000 --- a/src/platform/plugins/shared/embeddable/public/lib/errors.test.ts +++ /dev/null @@ -1,35 +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". - */ - -import { IncompatibleActionError } from '@kbn/ui-actions-plugin/public'; -import { PanelNotFoundError } from './errors'; - -describe('IncompatibleActionError', () => { - test('is instance of error', () => { - const error = new IncompatibleActionError(); - expect(error).toBeInstanceOf(Error); - }); - - test('has INCOMPATIBLE_ACTION code', () => { - const error = new IncompatibleActionError(); - expect(error.code).toBe('INCOMPATIBLE_ACTION'); - }); -}); - -describe('PanelNotFoundError', () => { - test('is instance of error', () => { - const error = new PanelNotFoundError(); - expect(error).toBeInstanceOf(Error); - }); - - test('has PANEL_NOT_FOUND code', () => { - const error = new PanelNotFoundError(); - expect(error.code).toBe('PANEL_NOT_FOUND'); - }); -}); diff --git a/src/platform/plugins/shared/embeddable/public/lib/types.ts b/src/platform/plugins/shared/embeddable/public/lib/types.ts deleted file mode 100644 index 9a3f98891235d..0000000000000 --- a/src/platform/plugins/shared/embeddable/public/lib/types.ts +++ /dev/null @@ -1,29 +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". - */ - -export interface Trigger { - id: string; - title?: string; - description?: string; -} - -export interface PropertySpec { - displayName: string; - accessPath: string; - id: string; - description: string; - value?: string; -} -export { ViewMode } from '../../common/types'; - -export interface CommonlyUsedRange { - from: string; - to: string; - display: string; -} diff --git a/src/platform/plugins/shared/embeddable/public/plugin.tsx b/src/platform/plugins/shared/embeddable/public/plugin.tsx index 84ea1676dd018..288f91f2145fd 100644 --- a/src/platform/plugins/shared/embeddable/public/plugin.tsx +++ b/src/platform/plugins/shared/embeddable/public/plugin.tsx @@ -17,8 +17,8 @@ import { } from '@kbn/core/public'; import { Storage } from '@kbn/kibana-utils-plugin/public'; import { migrateToLatest } from '@kbn/kibana-utils-plugin/common'; -import { bootstrap } from './bootstrap'; -import { EmbeddableStateTransfer } from './lib/state_transfer'; +import { registerTriggers } from './ui_actions/register_triggers'; +import { EmbeddableStateTransfer } from './state_transfer'; import { EmbeddableStateWithType, CommonEmbeddableStartContract } from '../common/types'; import { getExtractFunction, @@ -47,7 +47,7 @@ export class EmbeddablePublicPlugin implements Plugin + i18n.translate('embeddableApi.common.constants.grouping.annotations', { + defaultMessage: 'Annotations and Navigation', + }), + order: 900, // This is the order of the group in the context menu +}; + +export const ADD_PANEL_OTHER_GROUP = { + id: 'other', + getDisplayName: () => + i18n.translate('embeddableApi.common.constants.grouping.other', { + defaultMessage: 'Other', + }), + getIconType: () => 'empty', + order: -1, // Given an item that doesn't specify a group is assigned zero, this forces other to come after all intentionally grouped section +}; + +export const ADD_PANEL_LEGACY_GROUP = { + id: 'legacy', + getDisplayName: () => + i18n.translate('embeddableApi.common.constants.grouping.legacy', { + defaultMessage: 'Legacy', + }), + order: -2, // Given an item that doesn't specify a group is assigned zero, this forces it to the bottom of the list +}; diff --git a/src/platform/plugins/shared/embeddable/public/bootstrap.ts b/src/platform/plugins/shared/embeddable/public/ui_actions/register_triggers.ts similarity index 86% rename from src/platform/plugins/shared/embeddable/public/bootstrap.ts rename to src/platform/plugins/shared/embeddable/public/ui_actions/register_triggers.ts index 1ab5e0b7eac3f..97d2cf0f58399 100644 --- a/src/platform/plugins/shared/embeddable/public/bootstrap.ts +++ b/src/platform/plugins/shared/embeddable/public/ui_actions/register_triggers.ts @@ -17,13 +17,9 @@ import { valueClickTrigger, cellValueTrigger, panelHoverTrigger, -} from './lib'; +} from './triggers'; -/** - * This method initializes Embeddable plugin with initial set of - * triggers and actions. - */ -export const bootstrap = (uiActions: UiActionsSetup) => { +export const registerTriggers = (uiActions: UiActionsSetup) => { uiActions.registerTrigger(contextMenuTrigger); uiActions.registerTrigger(panelHoverTrigger); uiActions.registerTrigger(panelBadgeTrigger); diff --git a/src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts b/src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts similarity index 100% rename from src/platform/plugins/shared/embeddable/public/lib/triggers/triggers.ts rename to src/platform/plugins/shared/embeddable/public/ui_actions/triggers.ts 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/kibana_react/public/page_template/index.ts b/src/platform/plugins/shared/kibana_react/public/page_template/index.ts index c00f89f4cf7d9..84fa55abc5a8d 100644 --- a/src/platform/plugins/shared/kibana_react/public/page_template/index.ts +++ b/src/platform/plugins/shared/kibana_react/public/page_template/index.ts @@ -7,5 +7,5 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -export { KibanaPageTemplateSolutionNavAvatar, KibanaPageTemplateSolutionNav } from './solution_nav'; +export { KibanaPageTemplateSolutionNavAvatar } from './solution_nav'; export * from './no_data_page'; diff --git a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav.test.tsx.snap b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav.test.tsx.snap deleted file mode 100644 index 6b33a8fb664d0..0000000000000 --- a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav.test.tsx.snap +++ /dev/null @@ -1,274 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`KibanaPageTemplateSolutionNav accepts EuiSideNavProps 1`] = ` - - - - Solution - - - } - isOpenOnMobile={false} - items={ - Array [ - Object { - "id": "1", - "items": Array [ - Object { - "id": "1.1", - "items": undefined, - "name": "Ingest Node Pipelines", - "tabIndex": -1, - }, - Object { - "id": "1.2", - "items": undefined, - "name": "Logstash Pipelines", - "tabIndex": -1, - }, - Object { - "id": "1.3", - "items": undefined, - "name": "Beats Central Management", - "tabIndex": -1, - }, - ], - "name": "Ingest", - "tabIndex": -1, - }, - Object { - "id": "2", - "items": Array [ - Object { - "id": "2.1", - "items": undefined, - "name": "Index Management", - "tabIndex": -1, - }, - Object { - "id": "2.2", - "items": undefined, - "name": "Index Lifecycle Policies", - "tabIndex": -1, - }, - Object { - "id": "2.3", - "items": undefined, - "name": "Snapshot and Restore", - "tabIndex": -1, - }, - ], - "name": "Data", - "tabIndex": -1, - }, - ] - } - mobileTitle={ - - - - } - toggleOpenOnMobile={[Function]} - /> - - -`; - -exports[`KibanaPageTemplateSolutionNav renders 1`] = ` - - - - Solution - - - } - isOpenOnMobile={false} - items={ - Array [ - Object { - "id": "1", - "items": Array [ - Object { - "id": "1.1", - "items": undefined, - "name": "Ingest Node Pipelines", - "tabIndex": -1, - }, - Object { - "id": "1.2", - "items": undefined, - "name": "Logstash Pipelines", - "tabIndex": -1, - }, - Object { - "id": "1.3", - "items": undefined, - "name": "Beats Central Management", - "tabIndex": -1, - }, - ], - "name": "Ingest", - "tabIndex": -1, - }, - Object { - "id": "2", - "items": Array [ - Object { - "id": "2.1", - "items": undefined, - "name": "Index Management", - "tabIndex": -1, - }, - Object { - "id": "2.2", - "items": undefined, - "name": "Index Lifecycle Policies", - "tabIndex": -1, - }, - Object { - "id": "2.3", - "items": undefined, - "name": "Snapshot and Restore", - "tabIndex": -1, - }, - ], - "name": "Data", - "tabIndex": -1, - }, - ] - } - mobileTitle={ - - - - } - toggleOpenOnMobile={[Function]} - /> - - -`; - -exports[`KibanaPageTemplateSolutionNav renders with icon 1`] = ` - - - - - Solution - - - } - isOpenOnMobile={false} - items={ - Array [ - Object { - "id": "1", - "items": Array [ - Object { - "id": "1.1", - "items": undefined, - "name": "Ingest Node Pipelines", - "tabIndex": -1, - }, - Object { - "id": "1.2", - "items": undefined, - "name": "Logstash Pipelines", - "tabIndex": -1, - }, - Object { - "id": "1.3", - "items": undefined, - "name": "Beats Central Management", - "tabIndex": -1, - }, - ], - "name": "Ingest", - "tabIndex": -1, - }, - Object { - "id": "2", - "items": Array [ - Object { - "id": "2.1", - "items": undefined, - "name": "Index Management", - "tabIndex": -1, - }, - Object { - "id": "2.2", - "items": undefined, - "name": "Index Lifecycle Policies", - "tabIndex": -1, - }, - Object { - "id": "2.3", - "items": undefined, - "name": "Snapshot and Restore", - "tabIndex": -1, - }, - ], - "name": "Data", - "tabIndex": -1, - }, - ] - } - mobileTitle={ - - - - - } - toggleOpenOnMobile={[Function]} - /> - - -`; diff --git a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav_avatar.test.tsx.snap b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav_avatar.test.tsx.snap index ede09c5652c31..283a0ce2f196a 100644 --- a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav_avatar.test.tsx.snap +++ b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav_avatar.test.tsx.snap @@ -2,8 +2,24 @@ exports[`KibanaPageTemplateSolutionNavAvatar renders 1`] = ` diff --git a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/index.ts b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/index.ts index f7fb6efed9e71..7fd7137ec6464 100644 --- a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/index.ts +++ b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/index.ts @@ -7,9 +7,5 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -export type { KibanaPageTemplateSolutionNavProps } from './solution_nav'; -export { KibanaPageTemplateSolutionNav } from './solution_nav'; export type { KibanaPageTemplateSolutionNavAvatarProps } from './solution_nav_avatar'; export { KibanaPageTemplateSolutionNavAvatar } from './solution_nav_avatar'; -export type { KibanaPageTemplateSolutionNavCollapseButtonProps } from './solution_nav_collapse_button'; -export { KibanaPageTemplateSolutionNavCollapseButton } from './solution_nav_collapse_button'; diff --git a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.scss b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.scss deleted file mode 100644 index af40e4d14ff2d..0000000000000 --- a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.scss +++ /dev/null @@ -1,26 +0,0 @@ -// Put the page background color in the flyout version too -.kbnPageTemplateSolutionNav__flyout { - background-color: $euiPageBackgroundColor; -} - -.kbnPageTemplateSolutionNav { - @include euiYScroll; - - @include euiBreakpoint('m' ,'l', 'xl') { - width: 248px; - padding: $euiSizeL; - } - - .kbnPageTemplateSolutionNavAvatar { - margin-right: $euiSize; - } -} - -.kbnPageTemplateSolutionNav--hidden { - pointer-events: none; - opacity: 0; - - @include euiCanAnimate { - transition: opacity $euiAnimSpeedFast $euiAnimSlightResistance; - } -} diff --git a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.test.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.test.tsx deleted file mode 100644 index 2f7e515f201fa..0000000000000 --- a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.test.tsx +++ /dev/null @@ -1,72 +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". - */ - -import React from 'react'; -import { shallow } from 'enzyme'; -import { KibanaPageTemplateSolutionNav, KibanaPageTemplateSolutionNavProps } from './solution_nav'; - -const items: KibanaPageTemplateSolutionNavProps['items'] = [ - { - name: 'Ingest', - id: '1', - items: [ - { - name: 'Ingest Node Pipelines', - id: '1.1', - }, - { - name: 'Logstash Pipelines', - id: '1.2', - }, - { - name: 'Beats Central Management', - id: '1.3', - }, - ], - }, - { - name: 'Data', - id: '2', - items: [ - { - name: 'Index Management', - id: '2.1', - }, - { - name: 'Index Lifecycle Policies', - id: '2.2', - }, - { - name: 'Snapshot and Restore', - id: '2.3', - }, - ], - }, -]; - -describe('KibanaPageTemplateSolutionNav', () => { - test('renders', () => { - const component = shallow(); - expect(component).toMatchSnapshot(); - }); - - test('renders with icon', () => { - const component = shallow( - - ); - expect(component).toMatchSnapshot(); - }); - - test('accepts EuiSideNavProps', () => { - const component = shallow( - - ); - expect(component).toMatchSnapshot(); - }); -}); diff --git a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.tsx deleted file mode 100644 index 09d01f885c7b4..0000000000000 --- a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.tsx +++ /dev/null @@ -1,162 +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". - */ - -import './solution_nav.scss'; - -import React, { FunctionComponent, useState, Fragment } from 'react'; -import { FormattedMessage } from '@kbn/i18n-react'; - -import { - EuiFlyout, - EuiSideNav, - EuiSideNavItemType, - EuiSideNavProps, - useIsWithinBreakpoints, -} from '@elastic/eui'; - -import classNames from 'classnames'; -import { - KibanaPageTemplateSolutionNavAvatar, - KibanaPageTemplateSolutionNavAvatarProps, -} from './solution_nav_avatar'; -import { KibanaPageTemplateSolutionNavCollapseButton } from './solution_nav_collapse_button'; - -export type KibanaPageTemplateSolutionNavProps = EuiSideNavProps<{}> & { - /** - * Name of the solution, i.e. "Observability" - */ - name: KibanaPageTemplateSolutionNavAvatarProps['name']; - /** - * Solution logo, i.e. "logoObservability" - */ - icon?: KibanaPageTemplateSolutionNavAvatarProps['iconType']; - /** - * Control the collapsed state - */ - isOpenOnDesktop?: boolean; - onCollapse?: () => void; -}; - -const setTabIndex = (items: Array>, isHidden: boolean) => { - return items.map((item) => { - // @ts-ignore-next-line Can be removed on close of https://github.com/elastic/eui/issues/4925 - item.tabIndex = isHidden ? -1 : undefined; - item.items = item.items && setTabIndex(item.items, isHidden); - return item; - }); -}; - -/** - * A wrapper around EuiSideNav but also creates the appropriate title with optional solution logo - */ -export const KibanaPageTemplateSolutionNav: FunctionComponent< - KibanaPageTemplateSolutionNavProps -> = ({ name, icon, items, isOpenOnDesktop = false, onCollapse, ...rest }) => { - // The EuiShowFor and EuiHideFor components are not in sync with the euiBreakpoint() function :( - const isSmallerBreakpoint = useIsWithinBreakpoints(['xs', 's']); - const isMediumBreakpoint = useIsWithinBreakpoints(['m']); - const isLargerBreakpoint = useIsWithinBreakpoints(['l', 'xl']); - - // This is used for both the EuiSideNav and EuiFlyout toggling - const [isSideNavOpenOnMobile, setIsSideNavOpenOnMobile] = useState(false); - const toggleOpenOnMobile = () => { - setIsSideNavOpenOnMobile(!isSideNavOpenOnMobile); - }; - - const isHidden = isLargerBreakpoint && !isOpenOnDesktop; - - /** - * Create the avatar - */ - let solutionAvatar; - if (icon) { - solutionAvatar = ; - } - - /** - * Create the titles - */ - const titleText = ( - - {solutionAvatar} - {name} - - ); - const mobileTitleText = ( - - ); - - /** - * Create the side nav component - */ - let sideNav; - if (items) { - const sideNavClasses = classNames('kbnPageTemplateSolutionNav', { - 'kbnPageTemplateSolutionNav--hidden': isHidden, - }); - - sideNav = ( - - {solutionAvatar} - {mobileTitleText} - - } - toggleOpenOnMobile={toggleOpenOnMobile} - isOpenOnMobile={isSideNavOpenOnMobile} - items={setTabIndex(items, isHidden)} - {...rest} - /> - ); - } - - return ( - - {isSmallerBreakpoint && sideNav} - {isMediumBreakpoint && ( - - {isSideNavOpenOnMobile && ( - setIsSideNavOpenOnMobile(false)} - side="left" - size={248} - closeButtonPosition="outside" - className="kbnPageTemplateSolutionNav__flyout" - > - {sideNav} - - )} - - - )} - {isLargerBreakpoint && ( - - {sideNav} - - - )} - - ); -}; diff --git a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.scss b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.scss deleted file mode 100644 index 73b4241c8a18b..0000000000000 --- a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.scss +++ /dev/null @@ -1,14 +0,0 @@ -.kbnPageTemplateSolutionNavAvatar { - @include euiBottomShadowSmall; - - &.kbnPageTemplateSolutionNavAvatar--xxl { - @include euiBottomShadowMedium; - @include size(100px); - line-height: 100px; - border-radius: 100px; - display: inline-block; - background: $euiColorEmptyShade url('../../assets/texture.svg') no-repeat; - background-size: cover, 125%; - text-align: center; - } -} diff --git a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.tsx index 1a45d15ff82ff..bcbb92049e1a0 100644 --- a/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.tsx +++ b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.tsx @@ -7,12 +7,16 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -import './solution_nav_avatar.scss'; - +import { css } from '@emotion/react'; import React, { FunctionComponent } from 'react'; -import classNames from 'classnames'; -import { DistributiveOmit, EuiAvatar, EuiAvatarProps } from '@elastic/eui'; +import { + DistributiveOmit, + EuiAvatar, + EuiAvatarProps, + useEuiTheme, + useEuiShadow, +} from '@elastic/eui'; export type KibanaPageTemplateSolutionNavAvatarProps = DistributiveOmit & { /** @@ -27,16 +31,31 @@ export type KibanaPageTemplateSolutionNavAvatarProps = DistributiveOmit = ({ className, size, ...rest }) => { + const { euiTheme } = useEuiTheme(); + + const pageTemplateSolutionNavAvatarStyles = { + base: css(useEuiShadow('s')), + xxl: css` + ${useEuiShadow('m')}; + width: 100px; + height: 100px; + line-height: 100px; + border-radius: 100px; + display: inline-block; + background: ${euiTheme.colors.backgroundBasePlain} url('../../assets/texture.svg') no-repeat; + background-size: cover, 125%; + text-align: center; + `, + }; + return ( - // @ts-ignore Complains about ExclusiveUnion between `iconSize` and `iconType`, but works fine + // @ts-expect-error Complains about ExclusiveUnion between `iconSize` and `iconType`, but works fine & { - /** - * Boolean state of current collapsed status - */ - isCollapsed: boolean; - }; - -/** - * Creates the styled icon button for showing/hiding solution nav - */ -export const KibanaPageTemplateSolutionNavCollapseButton: FunctionComponent< - KibanaPageTemplateSolutionNavCollapseButtonProps -> = ({ className, isCollapsed, ...rest }) => { - const classes = classNames( - 'kbnPageTemplateSolutionNavCollapseButton', - { - 'kbnPageTemplateSolutionNavCollapseButton-isCollapsed': isCollapsed, - }, - className - ); - - const collapseLabel = i18n.translate('kibana-react.solutionNav.collapsibleLabel', { - defaultMessage: 'Collapse side navigation', - }); - - const openLabel = i18n.translate('kibana-react.solutionNav.openLabel', { - defaultMessage: 'Open side navigation', - }); - - return ( - - ); -}; diff --git a/src/platform/plugins/shared/kibana_react/public/url_template_editor/styles.scss b/src/platform/plugins/shared/kibana_react/public/url_template_editor/styles.scss deleted file mode 100644 index 1bff881958076..0000000000000 --- a/src/platform/plugins/shared/kibana_react/public/url_template_editor/styles.scss +++ /dev/null @@ -1,5 +0,0 @@ -.urlTemplateEditor__container { - .monaco-editor .lines-content.monaco-editor-background { - margin: 0 $euiSizeS; - } -} diff --git a/src/platform/plugins/shared/kibana_react/public/url_template_editor/url_template_editor.tsx b/src/platform/plugins/shared/kibana_react/public/url_template_editor/url_template_editor.tsx index 86e7fe91d322a..0f3f97c3ee776 100644 --- a/src/platform/plugins/shared/kibana_react/public/url_template_editor/url_template_editor.tsx +++ b/src/platform/plugins/shared/kibana_react/public/url_template_editor/url_template_editor.tsx @@ -7,12 +7,12 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ +import { css } from '@emotion/react'; import * as React from 'react'; +import { useEuiTheme } from '@elastic/eui'; import { monaco } from '@kbn/monaco'; import { CodeEditor, HandlebarsLang, type CodeEditorProps } from '@kbn/code-editor'; -import './styles.scss'; - export interface UrlTemplateEditorVariable { label: string; title?: string; @@ -125,8 +125,15 @@ export const UrlTemplateEditor: React.FC = ({ }; }, [variables]); + const { euiTheme } = useEuiTheme(); + const editorStyle = css({ + '.monaco-editor .lines-content.monaco-editor-background': { + margin: `0 ${euiTheme.size.s}`, + }, + }); + return ( -

+
{ describe('useShareTabsContext', () => { it('throws an error if used outside of ShareMenuProvider tree', () => { - const { result } = renderHook(() => useShareTabsContext()); - - expect(result.error?.message).toEqual( - expect.stringContaining( - 'Failed to call `useShareTabsContext` because the context from ShareMenuProvider is missing.' - ) + expect(() => renderHook(() => useShareTabsContext())).toThrow( + /^Failed to call `useShareTabsContext` because the context from ShareMenuProvider is missing./ ); }); }); diff --git a/src/platform/plugins/shared/telemetry/schema/kbn_packages.json b/src/platform/plugins/shared/telemetry/schema/kbn_packages.json index 7e2c3aad5c59f..d5b0514b64918 100644 --- a/src/platform/plugins/shared/telemetry/schema/kbn_packages.json +++ b/src/platform/plugins/shared/telemetry/schema/kbn_packages.json @@ -1,36 +1,3 @@ { - "properties": { - "favorites": { - "properties": { - "DYNAMIC_KEY": { - "properties": { - "total": { - "type": "long", - "_meta": { - "description": "Total favorite object count in this deployment" - } - }, - "total_users_spaces": { - "type": "long", - "_meta": { - "description": "Total users per space that have favorited an object of this type in this deployment" - } - }, - "avg_per_user_per_space": { - "type": "double", - "_meta": { - "description": "Average favorite objects count of this type per user per space for this deployment, only counts users who have favorited at least one object of this type" - } - }, - "max_per_user_per_space": { - "type": "long", - "_meta": { - "description": "Max favorite objects count of this type per user per space for this deployment" - } - } - } - } - } - } - } + "properties": {} } diff --git a/src/platform/plugins/shared/telemetry/schema/oss_platform.json b/src/platform/plugins/shared/telemetry/schema/oss_platform.json index 2bd3174ba35d3..505773de2b392 100644 --- a/src/platform/plugins/shared/telemetry/schema/oss_platform.json +++ b/src/platform/plugins/shared/telemetry/schema/oss_platform.json @@ -9927,6 +9927,38 @@ } } }, + "favorites": { + "properties": { + "DYNAMIC_KEY": { + "properties": { + "total": { + "type": "long", + "_meta": { + "description": "Total favorite object count in this deployment" + } + }, + "total_users_spaces": { + "type": "long", + "_meta": { + "description": "Total users per space that have favorited an object of this type in this deployment" + } + }, + "avg_per_user_per_space": { + "type": "double", + "_meta": { + "description": "Average favorite objects count of this type per user per space for this deployment, only counts users who have favorited at least one object of this type" + } + }, + "max_per_user_per_space": { + "type": "long", + "_meta": { + "description": "Max favorite objects count of this type per user per space for this deployment" + } + } + } + } + } + }, "files": { "properties": { "countByExtension": { @@ -10139,6 +10171,19 @@ } } }, + "kql": { + "properties": { + "optInCount": { + "type": "long" + }, + "optOutCount": { + "type": "long" + }, + "defaultQueryLanguage": { + "type": "keyword" + } + } + }, "localization": { "properties": { "locale": { @@ -10237,6 +10282,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/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.test.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.test.tsx index 56c8189479306..43d9667e1ad77 100644 --- a/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.test.tsx +++ b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.test.tsx @@ -8,6 +8,7 @@ */ import React from 'react'; +import { EuiProvider } from '@elastic/eui'; import { render, screen } from '@testing-library/react'; import { LogsOverview } from './logs_overview'; import { DataView } from '@kbn/data-views-plugin/common'; @@ -131,11 +132,17 @@ setUnifiedDocViewerServices( const renderLogsOverview = (props: Partial = {}) => { const { rerender: baseRerender, ...tools } = render( - + + + ); const rerender = (rerenderProps: Partial) => - baseRerender(); + baseRerender( + + + + ); return { rerender, ...tools }; }; 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 88% rename from src/plugins/unified_search/server/plugin.ts rename to src/platform/plugins/shared/unified_search/server/plugin.ts index c9182374b0f35..0361827a04487 100644 --- a/src/plugins/unified_search/server/plugin.ts +++ b/src/platform/plugins/shared/unified_search/server/plugin.ts @@ -25,7 +25,15 @@ export interface UnifiedSearchServerPluginSetupDependencies {} // eslint-disable-next-line @typescript-eslint/no-empty-interface export interface UnifiedSearchServerPluginStartDependencies {} -export class UnifiedSearchServerPlugin implements Plugin { +export class UnifiedSearchServerPlugin + implements + Plugin< + UnifiedSearchServerPluginSetup, + UnifiedSearchServerPluginStart, + UnifiedSearchServerPluginSetupDependencies, + UnifiedSearchServerPluginStartDependencies + > +{ private readonly autocompleteService: AutocompleteService; constructor(initializerContext: PluginInitializerContext) { 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: ( Promise; } -export class VisTypeTimeseriesPlugin implements Plugin { +export class VisTypeTimeseriesPlugin + implements + Plugin< + VisTypeTimeseriesSetup, + void, + VisTypeTimeseriesPluginSetupDependencies, + VisTypeTimeseriesPluginStartDependencies + > +{ constructor(private readonly initializerContext: PluginInitializerContext) { this.initializerContext = initializerContext; } diff --git a/src/plugins/vis_types/timeseries/server/routes/fields.ts b/src/platform/plugins/shared/vis_types/timeseries/server/routes/fields.ts similarity index 100% rename from src/plugins/vis_types/timeseries/server/routes/fields.ts rename to src/platform/plugins/shared/vis_types/timeseries/server/routes/fields.ts diff --git a/src/plugins/vis_types/timeseries/server/routes/vis.ts b/src/platform/plugins/shared/vis_types/timeseries/server/routes/vis.ts similarity index 100% rename from src/plugins/vis_types/timeseries/server/routes/vis.ts rename to src/platform/plugins/shared/vis_types/timeseries/server/routes/vis.ts diff --git a/src/plugins/vis_types/timeseries/server/types.ts b/src/platform/plugins/shared/vis_types/timeseries/server/types.ts similarity index 100% rename from src/plugins/vis_types/timeseries/server/types.ts rename to src/platform/plugins/shared/vis_types/timeseries/server/types.ts diff --git a/src/plugins/vis_types/timeseries/server/ui_settings.ts b/src/platform/plugins/shared/vis_types/timeseries/server/ui_settings.ts similarity index 100% rename from src/plugins/vis_types/timeseries/server/ui_settings.ts rename to src/platform/plugins/shared/vis_types/timeseries/server/ui_settings.ts diff --git a/src/plugins/vis_types/timeseries/tsconfig.json b/src/platform/plugins/shared/vis_types/timeseries/tsconfig.json similarity index 93% rename from src/plugins/vis_types/timeseries/tsconfig.json rename to src/platform/plugins/shared/vis_types/timeseries/tsconfig.json index 2ac2cc6798ded..4b621bfa1b89b 100644 --- a/src/plugins/vis_types/timeseries/tsconfig.json +++ b/src/platform/plugins/shared/vis_types/timeseries/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "allowJs": true @@ -8,7 +8,7 @@ "common/**/*", "public/**/*", "server/**/*", - "../../../../typings/**/*", + "../../../../../../typings/**/*", "*.ts" ], "kbn_references": [ diff --git a/src/plugins/visualizations/common/constants.ts b/src/platform/plugins/shared/visualizations/common/constants.ts similarity index 100% rename from src/plugins/visualizations/common/constants.ts rename to src/platform/plugins/shared/visualizations/common/constants.ts diff --git a/src/plugins/visualizations/common/content_management/constants.ts b/src/platform/plugins/shared/visualizations/common/content_management/constants.ts similarity index 100% rename from src/plugins/visualizations/common/content_management/constants.ts rename to src/platform/plugins/shared/visualizations/common/content_management/constants.ts diff --git a/src/plugins/visualizations/common/content_management/index.ts b/src/platform/plugins/shared/visualizations/common/content_management/index.ts similarity index 100% rename from src/plugins/visualizations/common/content_management/index.ts rename to src/platform/plugins/shared/visualizations/common/content_management/index.ts diff --git a/src/platform/plugins/shared/embeddable/public/lib/ui_actions.ts b/src/platform/plugins/shared/visualizations/common/content_management/latest.ts similarity index 90% rename from src/platform/plugins/shared/embeddable/public/lib/ui_actions.ts rename to src/platform/plugins/shared/visualizations/common/content_management/latest.ts index 27c7992cea05e..f278309c22b03 100644 --- a/src/platform/plugins/shared/embeddable/public/lib/ui_actions.ts +++ b/src/platform/plugins/shared/visualizations/common/content_management/latest.ts @@ -7,4 +7,4 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -export * from '@kbn/ui-actions-plugin/public'; +export * from './v1'; diff --git a/src/plugins/visualizations/common/content_management/types.ts b/src/platform/plugins/shared/visualizations/common/content_management/types.ts similarity index 100% rename from src/plugins/visualizations/common/content_management/types.ts rename to src/platform/plugins/shared/visualizations/common/content_management/types.ts diff --git a/src/plugins/visualizations/common/content_management/v1/index.ts b/src/platform/plugins/shared/visualizations/common/content_management/v1/index.ts similarity index 100% rename from src/plugins/visualizations/common/content_management/v1/index.ts rename to src/platform/plugins/shared/visualizations/common/content_management/v1/index.ts diff --git a/src/plugins/visualizations/common/content_management/v1/types.ts b/src/platform/plugins/shared/visualizations/common/content_management/v1/types.ts similarity index 100% rename from src/plugins/visualizations/common/content_management/v1/types.ts rename to src/platform/plugins/shared/visualizations/common/content_management/v1/types.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/constants.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/constants.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/constants.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/constants.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/index.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/index.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/index.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/index.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/buckets/index.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/buckets/index.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/buckets/index.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/buckets/index.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/buckets/index.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/buckets/index.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/buckets/index.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/buckets/index.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/configurations/index.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/index.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/configurations/index.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/index.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/configurations/palette.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/palette.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/configurations/palette.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/palette.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/configurations/palette.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/palette.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/configurations/palette.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/palette.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/configurations/percentage_mode.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/percentage_mode.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/configurations/percentage_mode.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/percentage_mode.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/configurations/percentage_mode.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/percentage_mode.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/configurations/percentage_mode.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/percentage_mode.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/configurations/types.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/types.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/configurations/types.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/configurations/types.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/column.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/column.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/column.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/column.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/column.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/column.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/column.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/column.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/constants.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/constants.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/constants.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/constants.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/date_histogram.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/date_histogram.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/date_histogram.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/date_histogram.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/date_histogram.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/date_histogram.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/date_histogram.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/date_histogram.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/filters.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/filters.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/filters.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/filters.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/filters.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/filters.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/filters.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/filters.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/formula.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/formula.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/formula.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/formula.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/formula.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/formula.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/formula.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/formula.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/index.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/index.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/index.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/index.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/last_value.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/last_value.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/last_value.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/last_value.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/last_value.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/last_value.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/last_value.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/last_value.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/metric.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/metric.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/metric.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/metric.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/metric.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/metric.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/metric.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/metric.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/parent_pipeline.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/parent_pipeline.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/parent_pipeline.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/parent_pipeline.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/parent_pipeline.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/parent_pipeline.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/parent_pipeline.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/parent_pipeline.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/percentage_mode.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentage_mode.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/percentage_mode.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentage_mode.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/percentage_mode.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentage_mode.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/percentage_mode.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentage_mode.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/percentile.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentile.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/percentile.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentile.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/percentile.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentile.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/percentile.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentile.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/percentile_rank.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentile_rank.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/percentile_rank.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentile_rank.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/percentile_rank.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentile_rank.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/percentile_rank.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/percentile_rank.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/range.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/range.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/range.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/range.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/range.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/range.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/range.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/range.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/sibling_pipeline.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/sibling_pipeline.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/sibling_pipeline.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/sibling_pipeline.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/sibling_pipeline.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/sibling_pipeline.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/sibling_pipeline.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/sibling_pipeline.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/static_value.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/static_value.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/static_value.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/static_value.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/std_deviation.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/std_deviation.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/std_deviation.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/std_deviation.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/std_deviation.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/std_deviation.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/std_deviation.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/std_deviation.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/supported_metrics.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/supported_metrics.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/supported_metrics.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/supported_metrics.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/terms.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/terms.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/terms.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/terms.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/terms.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/terms.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/terms.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/terms.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/convert/types.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/types.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/convert/types.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/convert/types.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/index.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/index.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/index.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/index.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/metrics/formula.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/formula.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/metrics/formula.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/formula.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/metrics/formula.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/formula.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/metrics/formula.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/formula.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/metrics/index.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/index.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/metrics/index.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/index.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/metrics/metrics.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/metrics.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/metrics/metrics.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/metrics.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/metrics/metrics.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/metrics.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/metrics/metrics.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/metrics.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/metrics/percentage_formula.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/percentage_formula.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/metrics/percentage_formula.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/percentage_formula.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/metrics/percentage_formula.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/percentage_formula.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/metrics/percentage_formula.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/metrics/percentage_formula.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/utils.test.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/utils.test.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/utils.test.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/utils.test.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/lib/utils.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/utils.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/lib/utils.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/lib/utils.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/types/columns.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/types/columns.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/types/columns.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/types/columns.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/types/common.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/types/common.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/types/common.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/types/common.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/types/configurations.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/types/configurations.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/types/configurations.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/types/configurations.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/types/context.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/types/context.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/types/context.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/types/context.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/types/index.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/types/index.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/types/index.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/types/index.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/types/operations.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/types/operations.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/types/operations.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/types/operations.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/types/params.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/types/params.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/types/params.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/types/params.ts diff --git a/src/plugins/visualizations/common/convert_to_lens/utils.ts b/src/platform/plugins/shared/visualizations/common/convert_to_lens/utils.ts similarity index 100% rename from src/plugins/visualizations/common/convert_to_lens/utils.ts rename to src/platform/plugins/shared/visualizations/common/convert_to_lens/utils.ts diff --git a/src/plugins/visualizations/common/expression_functions/index.ts b/src/platform/plugins/shared/visualizations/common/expression_functions/index.ts similarity index 100% rename from src/plugins/visualizations/common/expression_functions/index.ts rename to src/platform/plugins/shared/visualizations/common/expression_functions/index.ts diff --git a/src/plugins/visualizations/common/expression_functions/range.ts b/src/platform/plugins/shared/visualizations/common/expression_functions/range.ts similarity index 100% rename from src/plugins/visualizations/common/expression_functions/range.ts rename to src/platform/plugins/shared/visualizations/common/expression_functions/range.ts diff --git a/src/plugins/visualizations/common/expression_functions/vis_dimension.test.ts b/src/platform/plugins/shared/visualizations/common/expression_functions/vis_dimension.test.ts similarity index 100% rename from src/plugins/visualizations/common/expression_functions/vis_dimension.test.ts rename to src/platform/plugins/shared/visualizations/common/expression_functions/vis_dimension.test.ts diff --git a/src/plugins/visualizations/common/expression_functions/vis_dimension.ts b/src/platform/plugins/shared/visualizations/common/expression_functions/vis_dimension.ts similarity index 100% rename from src/plugins/visualizations/common/expression_functions/vis_dimension.ts rename to src/platform/plugins/shared/visualizations/common/expression_functions/vis_dimension.ts diff --git a/src/plugins/visualizations/common/expression_functions/xy_dimension.ts b/src/platform/plugins/shared/visualizations/common/expression_functions/xy_dimension.ts similarity index 100% rename from src/plugins/visualizations/common/expression_functions/xy_dimension.ts rename to src/platform/plugins/shared/visualizations/common/expression_functions/xy_dimension.ts diff --git a/src/plugins/visualizations/common/index.ts b/src/platform/plugins/shared/visualizations/common/index.ts similarity index 94% rename from src/plugins/visualizations/common/index.ts rename to src/platform/plugins/shared/visualizations/common/index.ts index 1bdec4caa2070..353adcef8603f 100644 --- a/src/plugins/visualizations/common/index.ts +++ b/src/platform/plugins/shared/visualizations/common/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/110891 -/* eslint-disable @kbn/eslint/no_export_all */ /** @public types */ export * from './types'; diff --git a/src/plugins/visualizations/common/locator.test.ts b/src/platform/plugins/shared/visualizations/common/locator.test.ts similarity index 100% rename from src/plugins/visualizations/common/locator.test.ts rename to src/platform/plugins/shared/visualizations/common/locator.test.ts diff --git a/src/plugins/visualizations/common/locator.ts b/src/platform/plugins/shared/visualizations/common/locator.ts similarity index 100% rename from src/plugins/visualizations/common/locator.ts rename to src/platform/plugins/shared/visualizations/common/locator.ts diff --git a/src/plugins/visualizations/common/locator_location.ts b/src/platform/plugins/shared/visualizations/common/locator_location.ts similarity index 100% rename from src/plugins/visualizations/common/locator_location.ts rename to src/platform/plugins/shared/visualizations/common/locator_location.ts diff --git a/src/plugins/visualizations/common/types.ts b/src/platform/plugins/shared/visualizations/common/types.ts similarity index 100% rename from src/plugins/visualizations/common/types.ts rename to src/platform/plugins/shared/visualizations/common/types.ts diff --git a/src/plugins/visualizations/common/utils/accessors.ts b/src/platform/plugins/shared/visualizations/common/utils/accessors.ts similarity index 100% rename from src/plugins/visualizations/common/utils/accessors.ts rename to src/platform/plugins/shared/visualizations/common/utils/accessors.ts diff --git a/src/plugins/visualizations/common/utils/index.ts b/src/platform/plugins/shared/visualizations/common/utils/index.ts similarity index 100% rename from src/plugins/visualizations/common/utils/index.ts rename to src/platform/plugins/shared/visualizations/common/utils/index.ts diff --git a/src/plugins/visualizations/common/utils/palette.ts b/src/platform/plugins/shared/visualizations/common/utils/palette.ts similarity index 100% rename from src/plugins/visualizations/common/utils/palette.ts rename to src/platform/plugins/shared/visualizations/common/utils/palette.ts diff --git a/src/plugins/visualizations/common/utils/prepare_log_table.test.ts b/src/platform/plugins/shared/visualizations/common/utils/prepare_log_table.test.ts similarity index 100% rename from src/plugins/visualizations/common/utils/prepare_log_table.test.ts rename to src/platform/plugins/shared/visualizations/common/utils/prepare_log_table.test.ts diff --git a/src/plugins/visualizations/common/utils/prepare_log_table.ts b/src/platform/plugins/shared/visualizations/common/utils/prepare_log_table.ts similarity index 100% rename from src/plugins/visualizations/common/utils/prepare_log_table.ts rename to src/platform/plugins/shared/visualizations/common/utils/prepare_log_table.ts diff --git a/src/plugins/visualizations/common/vis_schemas.ts b/src/platform/plugins/shared/visualizations/common/vis_schemas.ts similarity index 100% rename from src/plugins/visualizations/common/vis_schemas.ts rename to src/platform/plugins/shared/visualizations/common/vis_schemas.ts diff --git a/src/platform/plugins/shared/visualizations/jest.config.js b/src/platform/plugins/shared/visualizations/jest.config.js new file mode 100644 index 0000000000000..a086d950bc5ac --- /dev/null +++ b/src/platform/plugins/shared/visualizations/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/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 94% 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 index f3dfe8807be27..cd3faa92d7787 100644 --- a/src/plugins/visualizations/public/actions/add_agg_vis_action.ts +++ b/src/platform/plugins/shared/visualizations/public/actions/add_agg_vis_action.ts @@ -14,7 +14,7 @@ import { HasType, HasAppContext, } from '@kbn/presentation-publishing'; -import { COMMON_EMBEDDABLE_GROUPING } from '@kbn/embeddable-plugin/public'; +import { ADD_PANEL_LEGACY_GROUP } from '@kbn/embeddable-plugin/public'; import { Action, IncompatibleActionError } from '@kbn/ui-actions-plugin/public'; import { apiHasType } from '@kbn/presentation-publishing'; import { apiCanAddNewPanel, CanAddNewPanel } from '@kbn/presentation-containers'; @@ -33,7 +33,7 @@ const isApiCompatible = (api: unknown | null): api is AddAggVisualizationPanelAc export class AddAggVisualizationPanelAction implements Action { public readonly type = ADD_AGG_VIS_ACTION_ID; public readonly id = ADD_AGG_VIS_ACTION_ID; - public readonly grouping = [COMMON_EMBEDDABLE_GROUPING.legacy]; + public readonly grouping = [ADD_PANEL_LEGACY_GROUP]; private readonly aggVisualizationCreationEnabled: boolean; public readonly order = 20; 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/test/functional/services/dashboard/drilldowns_manage.ts b/test/functional/services/dashboard/drilldowns_manage.ts index dcd428cf5dc56..c02728fc41f88 100644 --- a/test/functional/services/dashboard/drilldowns_manage.ts +++ b/test/functional/services/dashboard/drilldowns_manage.ts @@ -115,7 +115,9 @@ export function DashboardDrilldownsManageProvider({ getService }: FtrProviderCon } async fillInURLTemplate(destinationURLTemplate: string) { - const monaco = await find.byCssSelector('.urlTemplateEditor__container .monaco-editor'); + const monaco = await find.byCssSelector( + '[data-test-subj="url-template-editor-container"] .monaco-editor' + ); await monaco.clickMouseButton(); await this.eraseInput(300); await browser.pressKeys(destinationURLTemplate); diff --git a/tsconfig.base.json b/tsconfig.base.json index d13e38f233218..b4fc233599ff7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -118,8 +118,8 @@ "@kbn/bazel-runner/*": ["packages/kbn-bazel-runner/*"], "@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"], @@ -134,12 +134,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/charts-theme": ["packages/kbn-charts-theme"], "@kbn/charts-theme/*": ["packages/kbn-charts-theme/*"], "@kbn/check-mappings-update-cli": ["packages/kbn-check-mappings-update-cli"], @@ -188,8 +188,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"], @@ -198,32 +198,32 @@ "@kbn/config-schema/*": ["src/platform/packages/shared/kbn-config-schema/*"], "@kbn/console-plugin": ["src/platform/plugins/shared/console"], "@kbn/console-plugin/*": ["src/platform/plugins/shared/console/*"], - "@kbn/content-management-content-editor": ["packages/content-management/content_editor"], - "@kbn/content-management-content-editor/*": ["packages/content-management/content_editor/*"], - "@kbn/content-management-content-insights-public": ["packages/content-management/content_insights/content_insights_public"], - "@kbn/content-management-content-insights-public/*": ["packages/content-management/content_insights/content_insights_public/*"], - "@kbn/content-management-content-insights-server": ["packages/content-management/content_insights/content_insights_server"], - "@kbn/content-management-content-insights-server/*": ["packages/content-management/content_insights/content_insights_server/*"], + "@kbn/content-management-content-editor": ["src/platform/packages/shared/content-management/content_editor"], + "@kbn/content-management-content-editor/*": ["src/platform/packages/shared/content-management/content_editor/*"], + "@kbn/content-management-content-insights-public": ["src/platform/packages/shared/content-management/content_insights/content_insights_public"], + "@kbn/content-management-content-insights-public/*": ["src/platform/packages/shared/content-management/content_insights/content_insights_public/*"], + "@kbn/content-management-content-insights-server": ["src/platform/packages/shared/content-management/content_insights/content_insights_server"], + "@kbn/content-management-content-insights-server/*": ["src/platform/packages/shared/content-management/content_insights/content_insights_server/*"], "@kbn/content-management-examples-plugin": ["examples/content_management_examples"], "@kbn/content-management-examples-plugin/*": ["examples/content_management_examples/*"], - "@kbn/content-management-favorites-common": ["packages/content-management/favorites/favorites_common"], - "@kbn/content-management-favorites-common/*": ["packages/content-management/favorites/favorites_common/*"], - "@kbn/content-management-favorites-public": ["packages/content-management/favorites/favorites_public"], - "@kbn/content-management-favorites-public/*": ["packages/content-management/favorites/favorites_public/*"], - "@kbn/content-management-favorites-server": ["packages/content-management/favorites/favorites_server"], - "@kbn/content-management-favorites-server/*": ["packages/content-management/favorites/favorites_server/*"], + "@kbn/content-management-favorites-common": ["src/platform/packages/shared/content-management/favorites/favorites_common"], + "@kbn/content-management-favorites-common/*": ["src/platform/packages/shared/content-management/favorites/favorites_common/*"], + "@kbn/content-management-favorites-public": ["src/platform/packages/shared/content-management/favorites/favorites_public"], + "@kbn/content-management-favorites-public/*": ["src/platform/packages/shared/content-management/favorites/favorites_public/*"], + "@kbn/content-management-favorites-server": ["src/platform/packages/shared/content-management/favorites/favorites_server"], + "@kbn/content-management-favorites-server/*": ["src/platform/packages/shared/content-management/favorites/favorites_server/*"], "@kbn/content-management-plugin": ["src/platform/plugins/shared/content_management"], "@kbn/content-management-plugin/*": ["src/platform/plugins/shared/content_management/*"], - "@kbn/content-management-tabbed-table-list-view": ["packages/content-management/tabbed_table_list_view"], - "@kbn/content-management-tabbed-table-list-view/*": ["packages/content-management/tabbed_table_list_view/*"], - "@kbn/content-management-table-list-view": ["packages/content-management/table_list_view"], - "@kbn/content-management-table-list-view/*": ["packages/content-management/table_list_view/*"], - "@kbn/content-management-table-list-view-common": ["packages/content-management/table_list_view_common"], - "@kbn/content-management-table-list-view-common/*": ["packages/content-management/table_list_view_common/*"], - "@kbn/content-management-table-list-view-table": ["packages/content-management/table_list_view_table"], - "@kbn/content-management-table-list-view-table/*": ["packages/content-management/table_list_view_table/*"], - "@kbn/content-management-user-profiles": ["packages/content-management/user_profiles"], - "@kbn/content-management-user-profiles/*": ["packages/content-management/user_profiles/*"], + "@kbn/content-management-tabbed-table-list-view": ["src/platform/packages/shared/content-management/tabbed_table_list_view"], + "@kbn/content-management-tabbed-table-list-view/*": ["src/platform/packages/shared/content-management/tabbed_table_list_view/*"], + "@kbn/content-management-table-list-view": ["src/platform/packages/shared/content-management/table_list_view"], + "@kbn/content-management-table-list-view/*": ["src/platform/packages/shared/content-management/table_list_view/*"], + "@kbn/content-management-table-list-view-common": ["src/platform/packages/shared/content-management/table_list_view_common"], + "@kbn/content-management-table-list-view-common/*": ["src/platform/packages/shared/content-management/table_list_view_common/*"], + "@kbn/content-management-table-list-view-table": ["src/platform/packages/shared/content-management/table_list_view_table"], + "@kbn/content-management-table-list-view-table/*": ["src/platform/packages/shared/content-management/table_list_view_table/*"], + "@kbn/content-management-user-profiles": ["src/platform/packages/shared/content-management/user_profiles"], + "@kbn/content-management-user-profiles/*": ["src/platform/packages/shared/content-management/user_profiles/*"], "@kbn/content-management-utils": ["src/platform/packages/shared/kbn-content-management-utils"], "@kbn/content-management-utils/*": ["src/platform/packages/shared/kbn-content-management-utils/*"], "@kbn/controls-example-plugin": ["examples/controls_example"], @@ -286,26 +286,26 @@ "@kbn/core-capabilities-server-mocks/*": ["packages/core/capabilities/core-capabilities-server-mocks/*"], "@kbn/core-chrome-browser": ["packages/core/chrome/core-chrome-browser"], "@kbn/core-chrome-browser/*": ["packages/core/chrome/core-chrome-browser/*"], - "@kbn/core-chrome-browser-internal": ["packages/core/chrome/core-chrome-browser-internal"], - "@kbn/core-chrome-browser-internal/*": ["packages/core/chrome/core-chrome-browser-internal/*"], + "@kbn/core-chrome-browser-internal": ["src/core/packages/chrome/browser-internal"], + "@kbn/core-chrome-browser-internal/*": ["src/core/packages/chrome/browser-internal/*"], "@kbn/core-chrome-browser-mocks": ["packages/core/chrome/core-chrome-browser-mocks"], "@kbn/core-chrome-browser-mocks/*": ["packages/core/chrome/core-chrome-browser-mocks/*"], "@kbn/core-config-server-internal": ["src/core/packages/config/server-internal"], "@kbn/core-config-server-internal/*": ["src/core/packages/config/server-internal/*"], - "@kbn/core-custom-branding-browser": ["packages/core/custom-branding/core-custom-branding-browser"], - "@kbn/core-custom-branding-browser/*": ["packages/core/custom-branding/core-custom-branding-browser/*"], - "@kbn/core-custom-branding-browser-internal": ["packages/core/custom-branding/core-custom-branding-browser-internal"], - "@kbn/core-custom-branding-browser-internal/*": ["packages/core/custom-branding/core-custom-branding-browser-internal/*"], - "@kbn/core-custom-branding-browser-mocks": ["packages/core/custom-branding/core-custom-branding-browser-mocks"], - "@kbn/core-custom-branding-browser-mocks/*": ["packages/core/custom-branding/core-custom-branding-browser-mocks/*"], - "@kbn/core-custom-branding-common": ["packages/core/custom-branding/core-custom-branding-common"], - "@kbn/core-custom-branding-common/*": ["packages/core/custom-branding/core-custom-branding-common/*"], - "@kbn/core-custom-branding-server": ["packages/core/custom-branding/core-custom-branding-server"], - "@kbn/core-custom-branding-server/*": ["packages/core/custom-branding/core-custom-branding-server/*"], - "@kbn/core-custom-branding-server-internal": ["packages/core/custom-branding/core-custom-branding-server-internal"], - "@kbn/core-custom-branding-server-internal/*": ["packages/core/custom-branding/core-custom-branding-server-internal/*"], - "@kbn/core-custom-branding-server-mocks": ["packages/core/custom-branding/core-custom-branding-server-mocks"], - "@kbn/core-custom-branding-server-mocks/*": ["packages/core/custom-branding/core-custom-branding-server-mocks/*"], + "@kbn/core-custom-branding-browser": ["src/core/packages/custom-branding/browser"], + "@kbn/core-custom-branding-browser/*": ["src/core/packages/custom-branding/browser/*"], + "@kbn/core-custom-branding-browser-internal": ["src/core/packages/custom-branding/browser-internal"], + "@kbn/core-custom-branding-browser-internal/*": ["src/core/packages/custom-branding/browser-internal/*"], + "@kbn/core-custom-branding-browser-mocks": ["src/core/packages/custom-branding/browser-mocks"], + "@kbn/core-custom-branding-browser-mocks/*": ["src/core/packages/custom-branding/browser-mocks/*"], + "@kbn/core-custom-branding-common": ["src/core/packages/custom-branding/common"], + "@kbn/core-custom-branding-common/*": ["src/core/packages/custom-branding/common/*"], + "@kbn/core-custom-branding-server": ["src/core/packages/custom-branding/server"], + "@kbn/core-custom-branding-server/*": ["src/core/packages/custom-branding/server/*"], + "@kbn/core-custom-branding-server-internal": ["src/core/packages/custom-branding/server-internal"], + "@kbn/core-custom-branding-server-internal/*": ["src/core/packages/custom-branding/server-internal/*"], + "@kbn/core-custom-branding-server-mocks": ["src/core/packages/custom-branding/server-mocks"], + "@kbn/core-custom-branding-server-mocks/*": ["src/core/packages/custom-branding/server-mocks/*"], "@kbn/core-deprecations-browser": ["src/core/packages/deprecations/browser"], "@kbn/core-deprecations-browser/*": ["src/core/packages/deprecations/browser/*"], "@kbn/core-deprecations-browser-internal": ["src/core/packages/deprecations/browser-internal"], @@ -636,18 +636,18 @@ "@kbn/core-theme-browser-internal/*": ["src/core/packages/theme/browser-internal/*"], "@kbn/core-theme-browser-mocks": ["packages/core/theme/core-theme-browser-mocks"], "@kbn/core-theme-browser-mocks/*": ["packages/core/theme/core-theme-browser-mocks/*"], - "@kbn/core-ui-settings-browser": ["packages/core/ui-settings/core-ui-settings-browser"], - "@kbn/core-ui-settings-browser/*": ["packages/core/ui-settings/core-ui-settings-browser/*"], - "@kbn/core-ui-settings-browser-internal": ["packages/core/ui-settings/core-ui-settings-browser-internal"], - "@kbn/core-ui-settings-browser-internal/*": ["packages/core/ui-settings/core-ui-settings-browser-internal/*"], + "@kbn/core-ui-settings-browser": ["src/core/packages/ui-settings/browser"], + "@kbn/core-ui-settings-browser/*": ["src/core/packages/ui-settings/browser/*"], + "@kbn/core-ui-settings-browser-internal": ["src/core/packages/ui-settings/browser-internal"], + "@kbn/core-ui-settings-browser-internal/*": ["src/core/packages/ui-settings/browser-internal/*"], "@kbn/core-ui-settings-browser-mocks": ["packages/core/ui-settings/core-ui-settings-browser-mocks"], "@kbn/core-ui-settings-browser-mocks/*": ["packages/core/ui-settings/core-ui-settings-browser-mocks/*"], - "@kbn/core-ui-settings-common": ["packages/core/ui-settings/core-ui-settings-common"], - "@kbn/core-ui-settings-common/*": ["packages/core/ui-settings/core-ui-settings-common/*"], - "@kbn/core-ui-settings-server": ["packages/core/ui-settings/core-ui-settings-server"], - "@kbn/core-ui-settings-server/*": ["packages/core/ui-settings/core-ui-settings-server/*"], - "@kbn/core-ui-settings-server-internal": ["packages/core/ui-settings/core-ui-settings-server-internal"], - "@kbn/core-ui-settings-server-internal/*": ["packages/core/ui-settings/core-ui-settings-server-internal/*"], + "@kbn/core-ui-settings-common": ["src/core/packages/ui-settings/common"], + "@kbn/core-ui-settings-common/*": ["src/core/packages/ui-settings/common/*"], + "@kbn/core-ui-settings-server": ["src/core/packages/ui-settings/server"], + "@kbn/core-ui-settings-server/*": ["src/core/packages/ui-settings/server/*"], + "@kbn/core-ui-settings-server-internal": ["src/core/packages/ui-settings/server-internal"], + "@kbn/core-ui-settings-server-internal/*": ["src/core/packages/ui-settings/server-internal/*"], "@kbn/core-ui-settings-server-mocks": ["packages/core/ui-settings/core-ui-settings-server-mocks"], "@kbn/core-ui-settings-server-mocks/*": ["packages/core/ui-settings/core-ui-settings-server-mocks/*"], "@kbn/core-usage-data-base-server-internal": ["src/core/packages/usage-data/base-server-internal"], @@ -700,14 +700,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"], @@ -990,8 +990,8 @@ "@kbn/generate/*": ["packages/kbn-generate/*"], "@kbn/generate-console-definitions": ["packages/kbn-generate-console-definitions"], "@kbn/generate-console-definitions/*": ["packages/kbn-generate-console-definitions/*"], - "@kbn/generate-csv": ["packages/kbn-generate-csv"], - "@kbn/generate-csv/*": ["packages/kbn-generate-csv/*"], + "@kbn/generate-csv": ["src/platform/packages/private/kbn-generate-csv"], + "@kbn/generate-csv/*": ["src/platform/packages/private/kbn-generate-csv/*"], "@kbn/get-repo-files": ["packages/kbn-get-repo-files"], "@kbn/get-repo-files/*": ["packages/kbn-get-repo-files/*"], "@kbn/global-search-bar-plugin": ["x-pack/platform/plugins/private/global_search_bar"], @@ -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"], @@ -1142,12 +1142,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"], @@ -1180,8 +1180,8 @@ "@kbn/logs-shared-plugin/*": ["x-pack/platform/plugins/shared/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"], @@ -1260,8 +1260,6 @@ "@kbn/ml-is-defined/*": ["x-pack/platform/packages/private/ml/is_defined/*"], "@kbn/ml-is-populated-object": ["x-pack/platform/packages/private/ml/is_populated_object"], "@kbn/ml-is-populated-object/*": ["x-pack/platform/packages/private/ml/is_populated_object/*"], - "@kbn/ml-kibana-theme": ["x-pack/platform/packages/private/ml/kibana_theme"], - "@kbn/ml-kibana-theme/*": ["x-pack/platform/packages/private/ml/kibana_theme/*"], "@kbn/ml-local-storage": ["x-pack/platform/packages/private/ml/local_storage"], "@kbn/ml-local-storage/*": ["x-pack/platform/packages/private/ml/local_storage/*"], "@kbn/ml-nested-property": ["x-pack/platform/packages/private/ml/nested_property"], @@ -1314,10 +1312,10 @@ "@kbn/no-data-page-plugin/*": ["src/platform/plugins/private/no_data_page/*"], "@kbn/notifications-plugin": ["x-pack/platform/plugins/shared/notifications"], "@kbn/notifications-plugin/*": ["x-pack/platform/plugins/shared/notifications/*"], - "@kbn/object-versioning": ["packages/kbn-object-versioning"], - "@kbn/object-versioning/*": ["packages/kbn-object-versioning/*"], - "@kbn/object-versioning-utils": ["packages/kbn-object-versioning-utils"], - "@kbn/object-versioning-utils/*": ["packages/kbn-object-versioning-utils/*"], + "@kbn/object-versioning": ["src/platform/packages/shared/kbn-object-versioning"], + "@kbn/object-versioning/*": ["src/platform/packages/shared/kbn-object-versioning/*"], + "@kbn/object-versioning-utils": ["src/platform/packages/shared/kbn-object-versioning-utils"], + "@kbn/object-versioning-utils/*": ["src/platform/packages/shared/kbn-object-versioning-utils/*"], "@kbn/observability-ai-assistant-app-plugin": ["x-pack/solutions/observability/plugins/observability_ai_assistant_app"], "@kbn/observability-ai-assistant-app-plugin/*": ["x-pack/solutions/observability/plugins/observability_ai_assistant_app/*"], "@kbn/observability-ai-assistant-management-plugin": ["x-pack/solutions/observability/plugins/observability_ai_assistant_management"], @@ -1422,8 +1420,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"], @@ -1442,8 +1440,8 @@ "@kbn/react-kibana-mount/*": ["packages/react/kibana_mount/*"], "@kbn/react-mute-legacy-root-warning": ["packages/kbn-react-mute-legacy-root-warning"], "@kbn/react-mute-legacy-root-warning/*": ["packages/kbn-react-mute-legacy-root-warning/*"], - "@kbn/recently-accessed": ["packages/kbn-recently-accessed"], - "@kbn/recently-accessed/*": ["packages/kbn-recently-accessed/*"], + "@kbn/recently-accessed": ["src/platform/packages/shared/kbn-recently-accessed"], + "@kbn/recently-accessed/*": ["src/platform/packages/shared/kbn-recently-accessed/*"], "@kbn/relocate": ["packages/kbn-relocate"], "@kbn/relocate/*": ["packages/kbn-relocate/*"], "@kbn/remote-clusters-plugin": ["x-pack/platform/plugins/private/remote_clusters"], @@ -1464,30 +1462,30 @@ "@kbn/repo-source-classifier/*": ["packages/kbn-repo-source-classifier/*"], "@kbn/repo-source-classifier-cli": ["packages/kbn-repo-source-classifier-cli"], "@kbn/repo-source-classifier-cli/*": ["packages/kbn-repo-source-classifier-cli/*"], - "@kbn/reporting-common": ["packages/kbn-reporting/common"], - "@kbn/reporting-common/*": ["packages/kbn-reporting/common/*"], - "@kbn/reporting-csv-share-panel": ["packages/kbn-reporting/get_csv_panel_actions"], - "@kbn/reporting-csv-share-panel/*": ["packages/kbn-reporting/get_csv_panel_actions/*"], - "@kbn/reporting-export-types-csv": ["packages/kbn-reporting/export_types/csv"], - "@kbn/reporting-export-types-csv/*": ["packages/kbn-reporting/export_types/csv/*"], - "@kbn/reporting-export-types-csv-common": ["packages/kbn-reporting/export_types/csv_common"], - "@kbn/reporting-export-types-csv-common/*": ["packages/kbn-reporting/export_types/csv_common/*"], - "@kbn/reporting-export-types-pdf": ["packages/kbn-reporting/export_types/pdf"], - "@kbn/reporting-export-types-pdf/*": ["packages/kbn-reporting/export_types/pdf/*"], - "@kbn/reporting-export-types-pdf-common": ["packages/kbn-reporting/export_types/pdf_common"], - "@kbn/reporting-export-types-pdf-common/*": ["packages/kbn-reporting/export_types/pdf_common/*"], - "@kbn/reporting-export-types-png": ["packages/kbn-reporting/export_types/png"], - "@kbn/reporting-export-types-png/*": ["packages/kbn-reporting/export_types/png/*"], - "@kbn/reporting-export-types-png-common": ["packages/kbn-reporting/export_types/png_common"], - "@kbn/reporting-export-types-png-common/*": ["packages/kbn-reporting/export_types/png_common/*"], - "@kbn/reporting-mocks-server": ["packages/kbn-reporting/mocks_server"], - "@kbn/reporting-mocks-server/*": ["packages/kbn-reporting/mocks_server/*"], + "@kbn/reporting-common": ["src/platform/packages/private/kbn-reporting/common"], + "@kbn/reporting-common/*": ["src/platform/packages/private/kbn-reporting/common/*"], + "@kbn/reporting-csv-share-panel": ["src/platform/packages/private/kbn-reporting/get_csv_panel_actions"], + "@kbn/reporting-csv-share-panel/*": ["src/platform/packages/private/kbn-reporting/get_csv_panel_actions/*"], + "@kbn/reporting-export-types-csv": ["src/platform/packages/private/kbn-reporting/export_types/csv"], + "@kbn/reporting-export-types-csv/*": ["src/platform/packages/private/kbn-reporting/export_types/csv/*"], + "@kbn/reporting-export-types-csv-common": ["src/platform/packages/private/kbn-reporting/export_types/csv_common"], + "@kbn/reporting-export-types-csv-common/*": ["src/platform/packages/private/kbn-reporting/export_types/csv_common/*"], + "@kbn/reporting-export-types-pdf": ["src/platform/packages/private/kbn-reporting/export_types/pdf"], + "@kbn/reporting-export-types-pdf/*": ["src/platform/packages/private/kbn-reporting/export_types/pdf/*"], + "@kbn/reporting-export-types-pdf-common": ["src/platform/packages/private/kbn-reporting/export_types/pdf_common"], + "@kbn/reporting-export-types-pdf-common/*": ["src/platform/packages/private/kbn-reporting/export_types/pdf_common/*"], + "@kbn/reporting-export-types-png": ["src/platform/packages/private/kbn-reporting/export_types/png"], + "@kbn/reporting-export-types-png/*": ["src/platform/packages/private/kbn-reporting/export_types/png/*"], + "@kbn/reporting-export-types-png-common": ["src/platform/packages/private/kbn-reporting/export_types/png_common"], + "@kbn/reporting-export-types-png-common/*": ["src/platform/packages/private/kbn-reporting/export_types/png_common/*"], + "@kbn/reporting-mocks-server": ["src/platform/packages/private/kbn-reporting/mocks_server"], + "@kbn/reporting-mocks-server/*": ["src/platform/packages/private/kbn-reporting/mocks_server/*"], "@kbn/reporting-plugin": ["x-pack/platform/plugins/private/reporting"], "@kbn/reporting-plugin/*": ["x-pack/platform/plugins/private/reporting/*"], - "@kbn/reporting-public": ["packages/kbn-reporting/public"], - "@kbn/reporting-public/*": ["packages/kbn-reporting/public/*"], - "@kbn/reporting-server": ["packages/kbn-reporting/server"], - "@kbn/reporting-server/*": ["packages/kbn-reporting/server/*"], + "@kbn/reporting-public": ["src/platform/packages/private/kbn-reporting/public"], + "@kbn/reporting-public/*": ["src/platform/packages/private/kbn-reporting/public/*"], + "@kbn/reporting-server": ["src/platform/packages/private/kbn-reporting/server"], + "@kbn/reporting-server/*": ["src/platform/packages/private/kbn-reporting/server/*"], "@kbn/resizable-layout": ["src/platform/packages/shared/kbn-resizable-layout"], "@kbn/resizable-layout/*": ["src/platform/packages/shared/kbn-resizable-layout/*"], "@kbn/resizable-layout-examples-plugin": ["examples/resizable_layout_examples"], @@ -1550,8 +1548,8 @@ "@kbn/saved-objects-settings/*": ["packages/kbn-saved-objects-settings/*"], "@kbn/saved-objects-tagging-oss-plugin": ["src/platform/plugins/shared/saved_objects_tagging_oss"], "@kbn/saved-objects-tagging-oss-plugin/*": ["src/platform/plugins/shared/saved_objects_tagging_oss/*"], - "@kbn/saved-objects-tagging-plugin": ["x-pack/platform/plugins/private/saved_objects_tagging"], - "@kbn/saved-objects-tagging-plugin/*": ["x-pack/platform/plugins/private/saved_objects_tagging/*"], + "@kbn/saved-objects-tagging-plugin": ["x-pack/platform/plugins/shared/saved_objects_tagging"], + "@kbn/saved-objects-tagging-plugin/*": ["x-pack/platform/plugins/shared/saved_objects_tagging/*"], "@kbn/saved-search-component": ["packages/kbn-saved-search-component"], "@kbn/saved-search-component/*": ["packages/kbn-saved-search-component/*"], "@kbn/saved-search-plugin": ["src/platform/plugins/shared/saved_search"], @@ -1570,8 +1568,8 @@ "@kbn/screenshotting-example-plugin/*": ["x-pack/examples/screenshotting_example/*"], "@kbn/screenshotting-plugin": ["x-pack/platform/plugins/shared/screenshotting"], "@kbn/screenshotting-plugin/*": ["x-pack/platform/plugins/shared/screenshotting/*"], - "@kbn/screenshotting-server": ["packages/kbn-screenshotting-server"], - "@kbn/screenshotting-server/*": ["packages/kbn-screenshotting-server/*"], + "@kbn/screenshotting-server": ["src/platform/packages/private/kbn-screenshotting-server"], + "@kbn/screenshotting-server/*": ["src/platform/packages/private/kbn-screenshotting-server/*"], "@kbn/search-api-keys-components": ["x-pack/solutions/search/packages/kbn-search-api-keys-components"], "@kbn/search-api-keys-components/*": ["x-pack/solutions/search/packages/kbn-search-api-keys-components/*"], "@kbn/search-api-keys-server": ["x-pack/solutions/search/packages/kbn-search-api-keys-server"], @@ -1848,8 +1846,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"], @@ -1938,20 +1936,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"], @@ -1966,8 +1964,8 @@ "@kbn/ts-type-check-cli/*": ["packages/kbn-ts-type-check-cli/*"], "@kbn/typed-react-router-config": ["src/platform/packages/shared/kbn-typed-react-router-config"], "@kbn/typed-react-router-config/*": ["src/platform/packages/shared/kbn-typed-react-router-config/*"], - "@kbn/ui-actions-browser": ["packages/kbn-ui-actions-browser"], - "@kbn/ui-actions-browser/*": ["packages/kbn-ui-actions-browser/*"], + "@kbn/ui-actions-browser": ["src/platform/packages/shared/kbn-ui-actions-browser"], + "@kbn/ui-actions-browser/*": ["src/platform/packages/shared/kbn-ui-actions-browser/*"], "@kbn/ui-actions-enhanced-examples-plugin": ["x-pack/examples/ui_actions_enhanced_examples"], "@kbn/ui-actions-enhanced-examples-plugin/*": ["x-pack/examples/ui_actions_enhanced_examples/*"], "@kbn/ui-actions-enhanced-plugin": ["src/platform/plugins/shared/ui_actions_enhanced"], @@ -2000,8 +1998,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"], @@ -2012,8 +2010,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"], @@ -2038,38 +2036,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 9b858ffa6271d..e90a31e284c07 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", @@ -159,7 +159,7 @@ "xpack.snapshotRestore": "platform/plugins/private/snapshot_restore", "xpack.spaces": "platform/plugins/shared/spaces", "xpack.savedObjectsTagging": [ - "platform/plugins/private/saved_objects_tagging" + "platform/plugins/shared/saved_objects_tagging" ], "xpack.taskManager": "legacy/platform/plugins/shared/task_manager", "xpack.threatIntelligence": "solutions/security/plugins/threat_intelligence", diff --git a/x-pack/examples/gen_ai_streaming_response_example/server/plugin.ts b/x-pack/examples/gen_ai_streaming_response_example/server/plugin.ts index 02be370d08e25..9dcb8c1873efb 100644 --- a/x-pack/examples/gen_ai_streaming_response_example/server/plugin.ts +++ b/x-pack/examples/gen_ai_streaming_response_example/server/plugin.ts @@ -26,7 +26,9 @@ interface MessageBody { messages: Message[]; } -export class GenAiStreamingResponseExamplePlugin implements Plugin { +export class GenAiStreamingResponseExamplePlugin + implements Plugin +{ public setup({ http, getStartServices }: CoreSetup) { const router = http.createRouter(); diff --git a/x-pack/examples/screenshotting_example/server/plugin.ts b/x-pack/examples/screenshotting_example/server/plugin.ts index ff21ce947140b..32c9ccd606eac 100644 --- a/x-pack/examples/screenshotting_example/server/plugin.ts +++ b/x-pack/examples/screenshotting_example/server/plugin.ts @@ -15,7 +15,7 @@ interface StartDeps { screenshotting: ScreenshottingStart; } -export class ScreenshottingExamplePlugin implements Plugin { +export class ScreenshottingExamplePlugin implements Plugin { setup({ http, getStartServices }: CoreSetup) { const router = http.createRouter(); 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-streams-schema/src/helpers/type_guards.ts b/x-pack/packages/kbn-streams-schema/src/helpers/type_guards.ts index 557513fa74bb2..6e3fb3418b853 100644 --- a/x-pack/packages/kbn-streams-schema/src/helpers/type_guards.ts +++ b/x-pack/packages/kbn-streams-schema/src/helpers/type_guards.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ZodSchema } from '@kbn/zod'; +import { ZodSchema, custom } from '@kbn/zod'; import { AndCondition, conditionSchema, @@ -63,18 +63,24 @@ export function isStream(subject: any): subject is StreamDefinition { return isSchema(streamDefintionSchema, subject); } -export function isIngestStream( - subject: IngestStreamDefinition | WiredStreamDefinition -): subject is IngestStreamDefinition { +export function isIngestStream(subject: StreamDefinition): subject is IngestStreamDefinition { return isSchema(ingestStreamDefinitonSchema, subject); } -export function isWiredStream( - subject: IngestStreamDefinition | WiredStreamDefinition -): subject is WiredStreamDefinition { +export function isWiredStream(subject: StreamDefinition): subject is WiredStreamDefinition { return isSchema(wiredStreamDefinitonSchema, subject); } +const rootStreamSchema = custom<'RootStreamSchema'>((val) => { + return val?.name?.split('.').length === 1; +}); + +export function isRootStream(subject: any) { + return ( + (isWiredStream(subject) || isWiredReadStream(subject)) && isSchema(rootStreamSchema, subject) + ); +} + export function isWiredStreamConfig(subject: any): subject is WiredStreamConfigDefinition { return isSchema(wiredStreamConfigDefinitonSchema, subject); } diff --git a/x-pack/packages/kbn-streams-schema/src/models/streams/ingest_stream.ts b/x-pack/packages/kbn-streams-schema/src/models/streams/ingest_stream.ts index d21f11d869929..6c283c38c201f 100644 --- a/x-pack/packages/kbn-streams-schema/src/models/streams/ingest_stream.ts +++ b/x-pack/packages/kbn-streams-schema/src/models/streams/ingest_stream.ts @@ -14,6 +14,7 @@ export const ingestStreamDefinitonSchema = z name: z.string(), elasticsearch_assets: z.optional(elasticsearchAssetSchema), stream: ingestStreamConfigDefinitonSchema, + dashboards: z.optional(z.array(z.string())), }) .strict(); diff --git a/x-pack/packages/kbn-streams-schema/src/models/streams/wired_stream.ts b/x-pack/packages/kbn-streams-schema/src/models/streams/wired_stream.ts index 0374472673cdb..8a75a1a1c6a4f 100644 --- a/x-pack/packages/kbn-streams-schema/src/models/streams/wired_stream.ts +++ b/x-pack/packages/kbn-streams-schema/src/models/streams/wired_stream.ts @@ -14,6 +14,7 @@ export const wiredStreamDefinitonSchema = z name: z.string(), elasticsearch_assets: z.optional(elasticsearchAssetSchema), stream: wiredStreamConfigDefinitonSchema, + dashboards: z.optional(z.array(z.string())), }) .strict(); 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_picker/src/components/date_picker_wrapper.tsx b/x-pack/platform/packages/private/ml/date_picker/src/components/date_picker_wrapper.tsx index 060b0ee997d00..861831970d91e 100644 --- a/x-pack/platform/packages/private/ml/date_picker/src/components/date_picker_wrapper.tsx +++ b/x-pack/platform/packages/private/ml/date_picker/src/components/date_picker_wrapper.tsx @@ -129,6 +129,7 @@ export const DatePickerWrapper: FC = (props) => { notifications: { toasts }, uiSettings: config, uiSettingsKeys, + userProfile, theme, i18n: i18nStart, } = useDatePickerContext(); @@ -221,7 +222,7 @@ export const DatePickerWrapper: FC = (props) => { }} /> , - { theme, i18n: i18nStart } + { theme, i18n: i18nStart, userProfile } ), }, { toastLifeTimeMs: 30000 } diff --git a/x-pack/platform/packages/private/ml/date_picker/src/hooks/use_date_picker_context.tsx b/x-pack/platform/packages/private/ml/date_picker/src/hooks/use_date_picker_context.tsx index e544ad9826226..e59f6790821fb 100644 --- a/x-pack/platform/packages/private/ml/date_picker/src/hooks/use_date_picker_context.tsx +++ b/x-pack/platform/packages/private/ml/date_picker/src/hooks/use_date_picker_context.tsx @@ -9,7 +9,13 @@ import React, { createContext, useContext, type FC, type PropsWithChildren } fro import type { UI_SETTINGS } from '@kbn/data-plugin/common'; import type { DataPublicPluginStart } from '@kbn/data-plugin/public'; -import type { CoreSetup, I18nStart, IUiSettingsClient, ThemeServiceStart } from '@kbn/core/public'; +import type { + CoreSetup, + I18nStart, + IUiSettingsClient, + ThemeServiceStart, + UserProfileService, +} from '@kbn/core/public'; import type { HttpStart } from '@kbn/core/public'; /** @@ -28,6 +34,10 @@ export interface DatePickerDependencies { * notifications service */ notifications: CoreSetup['notifications']; + /** + * Kibana Security User Profile Service + */ + userProfile: UserProfileService; /** * EUI theme */ 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/platform/packages/private/ml/kibana_theme/README.md b/x-pack/platform/packages/private/ml/kibana_theme/README.md deleted file mode 100644 index a61492e4e7b8d..0000000000000 --- a/x-pack/platform/packages/private/ml/kibana_theme/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# @kbn/ml-kibana-theme - -Provides hooks to retrieve currently applied theme and EUI theme variables. diff --git a/x-pack/platform/packages/private/ml/kibana_theme/kibana.jsonc b/x-pack/platform/packages/private/ml/kibana_theme/kibana.jsonc deleted file mode 100644 index cbd58ef1489a6..0000000000000 --- a/x-pack/platform/packages/private/ml/kibana_theme/kibana.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "type": "shared-common", - "id": "@kbn/ml-kibana-theme", - "owner": [ - "@elastic/ml-ui" - ], - "group": "platform", - "visibility": "private" -} \ No newline at end of file diff --git a/x-pack/platform/packages/private/ml/kibana_theme/package.json b/x-pack/platform/packages/private/ml/kibana_theme/package.json deleted file mode 100644 index 02eb5de15712f..0000000000000 --- a/x-pack/platform/packages/private/ml/kibana_theme/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@kbn/ml-kibana-theme", - "private": true, - "version": "1.0.0", - "license": "Elastic License 2.0" -} \ No newline at end of file diff --git a/x-pack/platform/packages/private/ml/kibana_theme/src/hooks.ts b/x-pack/platform/packages/private/ml/kibana_theme/src/hooks.ts deleted file mode 100644 index 68aa5bb4129a5..0000000000000 --- a/x-pack/platform/packages/private/ml/kibana_theme/src/hooks.ts +++ /dev/null @@ -1,27 +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. - */ - -import { useMemo } from 'react'; -import { of } from 'rxjs'; -import useObservable from 'react-use/lib/useObservable'; -import type { ThemeServiceStart } from '@kbn/core-theme-browser'; - -const themeDefault = { darkMode: false }; - -/** - * Indicates if the currently applied theme is either dark or light. - * @return {boolean} - Returns true if the currently applied theme is dark. - */ -export function useIsDarkTheme(theme: ThemeServiceStart): boolean { - const themeObservable$ = useMemo(() => { - return theme?.theme$ ?? of(themeDefault); - }, [theme]); - - const { darkMode } = useObservable(themeObservable$, themeDefault); - - return darkMode; -} diff --git a/x-pack/platform/packages/shared/ai-infra/inference-common/index.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/index.ts index 0c6d254c0f527..b466d6ac6879b 100644 --- a/x-pack/platform/packages/shared/ai-infra/inference-common/index.ts +++ b/x-pack/platform/packages/shared/ai-infra/inference-common/index.ts @@ -10,6 +10,9 @@ export { ChatCompletionEventType, ToolChoiceType, type Message, + type MessageContentImage, + type MessageContentText, + type MessageContent, type AssistantMessage, type ToolMessage, type UserMessage, diff --git a/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/index.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/index.ts index cedc8297d75bc..227e72d93ca92 100644 --- a/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/index.ts +++ b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/index.ts @@ -29,6 +29,9 @@ export { } from './events'; export { MessageRole, + type MessageContent, + type MessageContentImage, + type MessageContentText, type Message, type AssistantMessage, type UserMessage, diff --git a/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts index 43d03cf130c01..54b9b76d2bd8c 100644 --- a/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts +++ b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts @@ -23,14 +23,26 @@ interface MessageBase { role: TRole; } +export interface MessageContentText { + type: 'text'; + text: string; +} + +export interface MessageContentImage { + type: 'image'; + source: { data: string; mimeType: string }; +} + +export type MessageContent = string | Array; + /** * Represents a message from the user. */ export type UserMessage = MessageBase & { /** - * The text content of the user message + * The text or image content of the user message */ - content: string; + content: MessageContent; }; /** diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.test.tsx index 73d0ddb976861..077f992e4124c 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.test.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { act, renderHook } from '@testing-library/react-hooks'; +import { renderHook, act } from '@testing-library/react'; import { useCreateKnowledgeBaseEntry, UseCreateKnowledgeBaseEntryParams, diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.test.tsx index 6003b1f81f435..439460862e6d4 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.test.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { act, renderHook } from '@testing-library/react-hooks'; +import { renderHook, act } from '@testing-library/react'; import { useDeleteKnowledgeBaseEntries, UseDeleteKnowledgeEntriesParams, diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.test.ts index f298258800d35..b2fcafe00031e 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.test.ts +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook, waitFor } from '@testing-library/react'; import { useKnowledgeBaseEntries } from './use_knowledge_base_entries'; import { HttpSetup } from '@kbn/core/public'; import { IToasts } from '@kbn/core-notifications-browser'; @@ -27,7 +27,7 @@ describe('useKnowledgeBaseEntries', () => { data: [{ id: '1', title: 'Entry 1' }], }); - const { result, waitForNextUpdate } = renderHook( + const { result } = renderHook( () => useKnowledgeBaseEntries({ http: httpMock, enabled: true }), { wrapper: TestProviders, @@ -35,32 +35,32 @@ describe('useKnowledgeBaseEntries', () => { ); expect(result.current.fetchStatus).toEqual('fetching'); - await waitForNextUpdate(); - - expect(result.current.data).toEqual({ - page: 1, - perPage: 100, - total: 1, - data: [{ id: '1', title: 'Entry 1' }], - }); + await waitFor(() => + expect(result.current.data).toEqual({ + page: 1, + perPage: 100, + total: 1, + data: [{ id: '1', title: 'Entry 1' }], + }) + ); }); it('handles fetch error', async () => { const error = new Error('Fetch error'); (httpMock.fetch as jest.Mock).mockRejectedValue(error); - const { waitForNextUpdate } = renderHook( + renderHook( () => useKnowledgeBaseEntries({ http: httpMock, toasts: toastsMock, enabled: true }), { wrapper: TestProviders, } ); - await waitForNextUpdate(); - - expect(toastsMock.addError).toHaveBeenCalledWith(error, { - title: 'Error fetching Knowledge Base entries', - }); + await waitFor(() => + expect(toastsMock.addError).toHaveBeenCalledWith(error, { + title: 'Error fetching Knowledge Base entries', + }) + ); }); it('does not fetch when disabled', async () => { diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.test.tsx index 0c35727846a01..141ea5b47a8b1 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.test.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { act, renderHook } from '@testing-library/react-hooks'; +import { renderHook, act } from '@testing-library/react'; import { useUpdateKnowledgeBaseEntries, UseUpdateKnowledgeBaseEntriesParams, diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_animated_icon.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_animated_icon.tsx deleted file mode 100644 index f3990dd0b7362..0000000000000 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_animated_icon.tsx +++ /dev/null @@ -1,135 +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. - */ - -import React from 'react'; -import styled from '@emotion/styled'; -import { AssistantAvatar } from './assistant_avatar/assistant_avatar'; - -const Container = styled.div` - display: inline-block; - position: relative; - width: 56px; - height: 56px; - display: flex; - justify-content: center; - align-items: center; - margin-top: ${({ theme }) => theme.euiTheme.size.xxl}; - margin-bottom: ${({ theme }) => theme.euiTheme.size.l}; - - :before, - :after { - content: ''; - position: absolute; - } -`; - -const Animation = styled.div` - width: 99%; - height: 99%; - border-radius: 50px; - z-index: 1; - position: relative; - - &:before, - &:after { - content: ''; - position: absolute; - width: 100%; - height: 100%; - border: inherit; - top: 0; - left: 0; - z-index: 0; - border: 1px solid ${(props) => props.theme.euiTheme.colors.borderBasePlain}; - border-radius: inherit; - animation: 4s cubic-bezier(0.42, 0, 0.37, 1) 0.5s infinite normal none running pulsing; - } - &:after { - animation: 4s cubic-bezier(0.42, 0, 0.37, 1) 0.5s infinite normal none running pulsing1; - } - - @keyframes pulsing { - 0% { - opacity: 1; - transform: scaleY(1) scaleX(1); - } - 20% { - opacity: 0.5; - } - 70% { - opacity: 0.2; - transform: scaleY(2) scaleX(2); - } - 80% { - opacity: 0; - transform: scaleY(2) scaleX(2); - } - 90% { - opacity: 0; - transform: scaleY(1) scaleX(1); - } - } - @keyframes pulsing1 { - 0% { - opacity: 1; - transform: scaleY(1) scaleX(1); - } - 15% { - opacity: 1; - transform: scaleY(1) scaleX(1); - } - 40% { - opacity: 0.5; - } - 70% { - opacity: 0.2; - transform: scaleY(1.5) scaleX(1.5); - } - 80% { - opacity: 0; - transform: scaleY(1.5) scaleX(1.5); - } - 90% { - opacity: 0; - transform: scaleY(1) scaleX(1); - } - } -`; - -const AvatarWrapper = styled.span` - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - z-index: 2; - background: #fff; - display: flex; - align-items: center; - justify-content: center; - border-radius: 50%; - - :before, - :after { - content: ''; - position: absolute; - } -`; - -/** - * @deprecated This component will soon be replaced by `AssistantBeacon` from `@kbn/ai-assistant-icon`. - */ -export const AssistantAnimatedIcon = React.memo(() => ( - - - - - - -)); - -AssistantAnimatedIcon.displayName = 'AssistantAnimatedIcon'; diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_avatar/assistant_avatar.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_avatar/assistant_avatar.tsx deleted file mode 100644 index 205a2c7b7bac3..0000000000000 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_avatar/assistant_avatar.tsx +++ /dev/null @@ -1,49 +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. - */ - -import React, { ReactNode } from 'react'; - -export interface AssistantAvatarProps { - size?: keyof typeof sizeMap; - // Required for EuiAvatar `iconType` prop - // eslint-disable-next-line react/no-unused-prop-types - children?: ReactNode; - className?: string; -} - -export const sizeMap = { - xl: 64, - l: 48, - m: 32, - s: 24, - xs: 16, - xxs: 12, -}; - -/** - * Default Elastic AI Assistant logo - * - * @deprecated This component will soon be replaced by `AssistantIcon` from `@kbn/ai-assistant-icon`. - */ -export const AssistantAvatar = ({ className, size = 's' }: AssistantAvatarProps) => ( - - - - - - -); diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.test.tsx index e7ce435cf2556..1363a29fc9671 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.test.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.test.tsx @@ -15,6 +15,8 @@ import { DEFAULT_CONVERSATION_TITLE } from '../../use_conversation/translations' import { TestProviders } from '../../../mock/test_providers/test_providers'; import { WELCOME_CONVERSATION } from '../../use_conversation/sample_conversations'; import { PromptResponse } from '@kbn/elastic-assistant-common'; +import { chromeServiceMock } from '@kbn/core-chrome-browser-mocks'; +import { of } from 'rxjs'; const BASE_CONVERSATION: Conversation = { ...WELCOME_CONVERSATION, @@ -36,6 +38,13 @@ const mockUseAssistantContext = { setConversations: jest.fn(), setAllSystemPrompts: jest.fn(), allSystemPrompts: mockSystemPrompts, + chrome: { + getChromeStyle$: jest.fn(() => of('classic')), + navControls: chromeServiceMock.createStartContract().navControls, + }, + assistantAvailability: { + hasAssistantPrivilege: true, + }, }; jest.mock('../../../assistant_context', () => { diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.test.tsx index 73712fefa3504..3153a57f0f7c6 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.test.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.test.tsx @@ -11,6 +11,8 @@ import { QuickPromptSettings } from './quick_prompt_settings'; import { TestProviders } from '../../../mock/test_providers/test_providers'; import { MOCK_QUICK_PROMPTS } from '../../../mock/quick_prompt'; import { mockPromptContexts } from '../../../mock/prompt_context'; +import { chromeServiceMock } from '@kbn/core-chrome-browser-mocks'; +import { of } from 'rxjs'; const onSelectedQuickPromptChange = jest.fn(); const setPromptsBulkActions = jest.fn(); @@ -28,6 +30,13 @@ const testProps = { }; const mockContext = { basePromptContexts: MOCK_QUICK_PROMPTS, + chrome: { + getChromeStyle$: jest.fn(() => of('classic')), + navControls: chromeServiceMock.createStartContract().navControls, + }, + assistantAvailability: { + hasAssistantPrivilege: true, + }, }; jest.mock('../../../assistant_context', () => ({ diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.test.tsx index c3927a939af92..ee90b2edb20b8 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.test.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.test.tsx @@ -11,6 +11,8 @@ import { TestProviders } from '../../mock/test_providers/test_providers'; import { MOCK_QUICK_PROMPTS } from '../../mock/quick_prompt'; import { QUICK_PROMPTS_TAB } from '../settings/const'; import { QuickPrompts } from './quick_prompts'; +import { of } from 'rxjs'; +import { chromeServiceMock } from '@kbn/core-chrome-browser-mocks'; const setInput = jest.fn(); const setIsSettingsModalVisible = jest.fn(); @@ -26,6 +28,13 @@ const mockUseAssistantContext = { setSelectedSettingsTab, promptContexts: {}, allQuickPrompts: MOCK_QUICK_PROMPTS, + chrome: { + getChromeStyle$: jest.fn(() => of('classic')), + navControls: chromeServiceMock.createStartContract().navControls, + }, + assistantAvailability: { + hasAssistantPrivilege: true, + }, }; const testTitle = 'SPL_QUERY_CONVERSION_TITLE'; diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/assistant_nav_link.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/assistant_nav_link.test.tsx new file mode 100644 index 0000000000000..3637bc6387d0a --- /dev/null +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/assistant_nav_link.test.tsx @@ -0,0 +1,161 @@ +/* + * 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. + */ + +import React from 'react'; +import { render, renderHook } from '@testing-library/react'; +import { AssistantNavLink } from './assistant_nav_link'; +import { chromeServiceMock } from '@kbn/core-chrome-browser-mocks'; +import { ChromeNavControl } from '@kbn/core/public'; +import { createHtmlPortalNode, OutPortal } from 'react-reverse-portal'; +import { of } from 'rxjs'; +import { useAssistantContext } from '.'; + +const MockNavigationBar = OutPortal; + +const mockShowAssistantOverlay = jest.fn(); +const mockNavControls = chromeServiceMock.createStartContract().navControls; +const mockGetChromeStyle = jest.fn(); + +const mockAssistantContext = { + chrome: { + getChromeStyle$: mockGetChromeStyle, + navControls: mockNavControls, + }, + showAssistantOverlay: mockShowAssistantOverlay, + assistantAvailability: { + hasAssistantPrivilege: true, + }, +}; + +jest.mock('.', () => { + return { + ...jest.requireActual('.'), + useAssistantContext: jest.fn(), + }; +}); + +describe('AssistantNavLink', () => { + beforeEach(() => { + jest.clearAllMocks(); + mockGetChromeStyle.mockReturnValue(of('classic')); + (useAssistantContext as jest.Mock).mockReturnValue({ + ...mockAssistantContext, + }); + }); + + it('should register link in nav bar', () => { + render(); + expect(mockNavControls.registerRight).toHaveBeenCalledTimes(1); + }); + + it('button has transparent background in project navigation', () => { + const { result: portalNode } = renderHook(() => + React.useMemo(() => createHtmlPortalNode(), []) + ); + + mockGetChromeStyle.mockReturnValue(of('project')); + + mockNavControls.registerRight.mockImplementation((chromeNavControl: ChromeNavControl) => { + chromeNavControl.mount(portalNode.current.element); + }); + + const { queryByTestId } = render( + <> + + + + ); + expect(queryByTestId('assistantNavLink')).not.toHaveStyle( + 'background-color: rgb(204, 228, 245)' + ); + }); + + it('button has opaque background in classic navigation', () => { + const { result: portalNode } = renderHook(() => + React.useMemo(() => createHtmlPortalNode(), []) + ); + + mockGetChromeStyle.mockReturnValue(of('classic')); + + mockNavControls.registerRight.mockImplementation((chromeNavControl: ChromeNavControl) => { + chromeNavControl.mount(portalNode.current.element); + }); + + const { queryByTestId } = render( + <> + + + + ); + expect(queryByTestId('assistantNavLink')).toHaveStyle('background-color: rgb(204, 228, 245)'); + }); + + it('should render the header link text', () => { + const { result: portalNode } = renderHook(() => + React.useMemo(() => createHtmlPortalNode(), []) + ); + + mockNavControls.registerRight.mockImplementation((chromeNavControl: ChromeNavControl) => { + chromeNavControl.mount(portalNode.current.element); + }); + + const { queryByText, queryByTestId } = render( + <> + + + + ); + expect(queryByTestId('assistantNavLink')).toBeInTheDocument(); + expect(queryByText('AI Assistant')).toBeInTheDocument(); + }); + + it('should not render the header link if not authorized', () => { + const { result: portalNode } = renderHook(() => + React.useMemo(() => createHtmlPortalNode(), []) + ); + + mockNavControls.registerRight.mockImplementation((chromeNavControl: ChromeNavControl) => { + chromeNavControl.mount(portalNode.current.element); + }); + + (useAssistantContext as jest.Mock).mockReturnValue({ + ...mockAssistantContext, + assistantAvailability: { + hasAssistantPrivilege: false, + }, + }); + + const { queryByText, queryByTestId } = render( + <> + + + + ); + expect(queryByTestId('assistantNavLink')).not.toBeInTheDocument(); + expect(queryByText('AI Assistant')).not.toBeInTheDocument(); + }); + + it('should call the assistant overlay to show on click', () => { + const { result: portalNode } = renderHook(() => + React.useMemo(() => createHtmlPortalNode(), []) + ); + + mockNavControls.registerRight.mockImplementation((chromeNavControl: ChromeNavControl) => { + chromeNavControl.mount(portalNode.current.element); + }); + + const { queryByTestId } = render( + <> + + + + ); + queryByTestId('assistantNavLink')?.click(); + expect(mockShowAssistantOverlay).toHaveBeenCalledTimes(1); + expect(mockShowAssistantOverlay).toHaveBeenCalledWith({ showOverlay: true }); + }); +}); diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/assistant_nav_link.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/assistant_nav_link.tsx new file mode 100644 index 0000000000000..8545a1dc6e616 --- /dev/null +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/assistant_nav_link.tsx @@ -0,0 +1,94 @@ +/* + * 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. + */ + +import type { FC } from 'react'; +import React, { useCallback, useEffect, useState } from 'react'; +import ReactDOM from 'react-dom'; +import { createHtmlPortalNode, OutPortal, InPortal } from 'react-reverse-portal'; +import { EuiToolTip, EuiButton, EuiFlexGroup, EuiFlexItem, EuiButtonEmpty } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { ChromeStyle } from '@kbn/core-chrome-browser'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; +import { useAssistantContext } from '.'; + +const isMac = navigator.platform.toLowerCase().indexOf('mac') >= 0; + +const TOOLTIP_CONTENT = i18n.translate( + 'xpack.elasticAssistant.assistantContext.assistantNavLinkShortcutTooltip', + { + values: { keyboardShortcut: isMac ? '⌘ ;' : 'Ctrl ;' }, + defaultMessage: 'Keyboard shortcut {keyboardShortcut}', + } +); +const LINK_LABEL = i18n.translate('xpack.elasticAssistant.assistantContext.assistantNavLink', { + defaultMessage: 'AI Assistant', +}); + +export const AssistantNavLink: FC = () => { + const { chrome, showAssistantOverlay, assistantAvailability, currentAppId } = + useAssistantContext(); + const portalNode = React.useMemo(() => createHtmlPortalNode(), []); + const [chromeStyle, setChromeStyle] = useState(undefined); + + // useObserverable would change the order of re-renders that are tested against closely. + useEffect(() => { + const s = chrome.getChromeStyle$().subscribe(setChromeStyle); + return () => s.unsubscribe(); + }, [chrome]); + + useEffect(() => { + const registerPortalNode = () => { + chrome.navControls.registerRight({ + mount: (element: HTMLElement) => { + ReactDOM.render(, element); + return () => ReactDOM.unmountComponentAtNode(element); + }, + // right before the user profile + order: 1001, + }); + }; + + if ( + assistantAvailability.hasAssistantPrivilege && + chromeStyle && + currentAppId !== 'management' + ) { + registerPortalNode(); + } + }, [chrome, portalNode, assistantAvailability.hasAssistantPrivilege, chromeStyle, currentAppId]); + + const showOverlay = useCallback( + () => showAssistantOverlay({ showOverlay: true }), + [showAssistantOverlay] + ); + + if (!assistantAvailability.hasAssistantPrivilege || !chromeStyle) { + return null; + } + + const EuiButtonBasicOrEmpty = chromeStyle === 'project' ? EuiButtonEmpty : EuiButton; + + return ( + + + + + + + + {LINK_LABEL} + + + + + ); +}; diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/index.tsx index 9ac817e03973a..8be635f9be0bf 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/index.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/index.tsx @@ -14,7 +14,7 @@ import useLocalStorage from 'react-use/lib/useLocalStorage'; import useSessionStorage from 'react-use/lib/useSessionStorage'; import type { DocLinksStart } from '@kbn/core-doc-links-browser'; import { AssistantFeatures, defaultAssistantFeatures } from '@kbn/elastic-assistant-common'; -import { NavigateToAppOptions, UserProfileService } from '@kbn/core/public'; +import { ChromeStart, NavigateToAppOptions, UserProfileService } from '@kbn/core/public'; import { useQuery } from '@tanstack/react-query'; import { updatePromptContexts } from './helpers'; import type { @@ -43,6 +43,7 @@ import { import { useCapabilities } from '../assistant/api/capabilities/use_capabilities'; import { WELCOME_CONVERSATION_TITLE } from '../assistant/use_conversation/translations'; import { SettingsTabs } from '../assistant/settings/types'; +import { AssistantNavLink } from './assistant_nav_link'; export interface ShowAssistantOverlayProps { showOverlay: boolean; @@ -77,6 +78,7 @@ export interface AssistantProviderProps { toasts?: IToasts; currentAppId: string; userProfileService: UserProfileService; + chrome: ChromeStart; } export interface UserAvatar { @@ -128,6 +130,7 @@ export interface UseAssistantContext { currentAppId: string; codeBlockRef: React.MutableRefObject<(codeBlock: string) => void>; userProfileService: UserProfileService; + chrome: ChromeStart; } const AssistantContext = React.createContext(undefined); @@ -151,6 +154,7 @@ export const AssistantProvider: React.FC = ({ toasts, currentAppId, userProfileService, + chrome, }) => { /** * Session storage for traceOptions, including APM URL and LangSmith Project/API Key @@ -303,6 +307,7 @@ export const AssistantProvider: React.FC = ({ currentAppId, codeBlockRef, userProfileService, + chrome, }), [ actionTypeRegistry, @@ -338,10 +343,16 @@ export const AssistantProvider: React.FC = ({ currentAppId, codeBlockRef, userProfileService, + chrome, ] ); - return {children}; + return ( + + + {children} + + ); }; export const useAssistantContext = () => { diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.test.tsx index e94546ef4ce28..342549f202513 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.test.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.test.tsx @@ -11,6 +11,8 @@ import { render } from '@testing-library/react'; import { TestProviders } from '../../../mock/test_providers/test_providers'; import { AnonymizationSettings } from '.'; import type { Props } from '.'; +import { chromeServiceMock } from '@kbn/core-chrome-browser-mocks'; +import { of } from 'rxjs'; const props: Props = { anonymizationFields: { @@ -78,6 +80,7 @@ const mockUseAssistantContext = { assistantAvailability: { hasUpdateAIAssistantAnonymization: true, hasManageGlobalKnowledgeBase: true, + hasAssistantPrivilege: true, }, baseAllow: ['@timestamp', 'event.category', 'user.name'], baseAllowReplacement: ['user.name', 'host.ip'], @@ -86,6 +89,10 @@ const mockUseAssistantContext = { setAllSystemPrompts: jest.fn(), setDefaultAllow: jest.fn(), setDefaultAllowReplacement: jest.fn(), + chrome: { + getChromeStyle$: jest.fn(() => of('classic')), + navControls: chromeServiceMock.createStartContract().navControls, + }, }; jest.mock('../../../assistant_context', () => { const original = jest.requireActual('../../../assistant_context'); diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.test.tsx index b44dc682218d0..14267ffb60868 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.test.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.test.tsx @@ -14,6 +14,8 @@ import { TestProviders } from '../mock/test_providers/test_providers'; import { useKnowledgeBaseStatus } from '../assistant/api/knowledge_base/use_knowledge_base_status'; import { mockSystemPrompts } from '../mock/system_prompt'; import { defaultAssistantFeatures } from '@kbn/elastic-assistant-common'; +import { chromeServiceMock } from '@kbn/core-chrome-browser-mocks'; +import { of } from 'rxjs'; const mockUseAssistantContext = { allSystemPrompts: mockSystemPrompts, @@ -28,6 +30,11 @@ const mockUseAssistantContext = { setConversations: jest.fn(), assistantAvailability: { isAssistantEnabled: true, + hasAssistantPrivilege: true, + }, + chrome: { + getChromeStyle$: jest.fn(() => of('classic')), + navControls: chromeServiceMock.createStartContract().navControls, }, }; diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx index d19dd7ff70890..c058e30e2dddc 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx @@ -14,6 +14,8 @@ import { EuiThemeProvider as ThemeProvider } from '@elastic/eui'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { UserProfileService } from '@kbn/core/public'; +import { chromeServiceMock } from '@kbn/core-chrome-browser-mocks'; +import { of } from 'rxjs'; import { AssistantProvider, AssistantProviderProps } from '../../assistant_context'; import { AssistantAvailability } from '../../assistant_context/types'; @@ -64,6 +66,9 @@ export const TestProvidersComponent: React.FC = ({ }, }); + const chrome = chromeServiceMock.createStartContract(); + chrome.getChromeStyle$.mockReturnValue(of('classic')); + return ( @@ -84,6 +89,7 @@ export const TestProvidersComponent: React.FC = ({ {...providerContext} currentAppId={'test'} userProfileService={jest.fn() as unknown as UserProfileService} + chrome={chrome} > {children} diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json b/x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json index 0995166fb095b..c3513b4537f68 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json @@ -34,6 +34,8 @@ "@kbn/zod", "@kbn/data-views-plugin", "@kbn/user-profile-components", + "@kbn/core-chrome-browser-mocks", + "@kbn/core-chrome-browser", "@kbn/ai-assistant-icon", ] } diff --git a/x-pack/platform/plugins/private/canvas/server/plugin.ts b/x-pack/platform/plugins/private/canvas/server/plugin.ts index bf15dd31100ba..51f70f4b5f9ed 100644 --- a/x-pack/platform/plugins/private/canvas/server/plugin.ts +++ b/x-pack/platform/plugins/private/canvas/server/plugin.ts @@ -40,7 +40,7 @@ interface PluginsStart { data: DataPluginStart; } -export class CanvasPlugin implements Plugin { +export class CanvasPlugin implements Plugin { private readonly logger: Logger; constructor(public readonly initializerContext: PluginInitializerContext) { diff --git a/x-pack/platform/plugins/private/data_visualizer/public/application/data_drift/data_drift_app_state.tsx b/x-pack/platform/plugins/private/data_visualizer/public/application/data_drift/data_drift_app_state.tsx index 24c995ec0652d..e1d525a0250d7 100644 --- a/x-pack/platform/plugins/private/data_visualizer/public/application/data_drift/data_drift_app_state.tsx +++ b/x-pack/platform/plugins/private/data_visualizer/public/application/data_drift/data_drift_app_state.tsx @@ -88,9 +88,17 @@ export const DataDriftDetectionAppState: FC = ( charts, unifiedSearch, }; - const startServices = pick(coreStart, 'analytics', 'i18n', 'theme'); + const startServices = pick(coreStart, 'analytics', 'i18n', 'theme', 'userProfile'); const datePickerDeps = { - ...pick(services, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(services, [ + 'data', + 'http', + 'notifications', + 'i18n', + 'theme', + 'userProfile', + 'uiSettings', + ]), uiSettingsKeys: UI_SETTINGS, }; const location = useLocation(); diff --git a/x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/embeddables/grid_embeddable/field_stats_wrapper.tsx b/x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/embeddables/grid_embeddable/field_stats_wrapper.tsx index d991f02fb3958..f80766ae1ee78 100644 --- a/x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/embeddables/grid_embeddable/field_stats_wrapper.tsx +++ b/x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/embeddables/grid_embeddable/field_stats_wrapper.tsx @@ -150,7 +150,7 @@ const FieldStatisticsWrapper = (props: FieldStatisticTableEmbeddableProps) => { const { overridableServices } = props; const kibanaRenderServices = useMemo( - () => pick(coreStart, 'analytics', 'i18n', 'theme'), + () => pick(coreStart, 'analytics', 'i18n', 'theme', 'userProfile'), // eslint-disable-next-line react-hooks/exhaustive-deps [] ); @@ -168,6 +168,7 @@ const FieldStatisticsWrapper = (props: FieldStatisticTableEmbeddableProps) => { 'notifications', 'theme', 'uiSettings', + 'userProfile', 'i18n', ]), uiSettingsKeys: UI_SETTINGS, diff --git a/x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/index_data_visualizer.tsx b/x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/index_data_visualizer.tsx index 6573afe24c862..db9b47917a39f 100644 --- a/x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/index_data_visualizer.tsx +++ b/x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/index_data_visualizer.tsx @@ -328,9 +328,17 @@ export const IndexDataVisualizer: FC = ({ unifiedSearch, }; - const startServices = pick(coreStart, 'analytics', 'i18n', 'theme'); + const startServices = pick(coreStart, 'analytics', 'i18n', 'theme', 'userProfile'); const datePickerDeps: DatePickerDependencies = { - ...pick(services, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(services, [ + 'data', + 'http', + 'notifications', + 'theme', + 'uiSettings', + 'userProfile', + 'i18n', + ]), uiSettingsKeys: UI_SETTINGS, showFrozenDataTierChoice, }; diff --git a/x-pack/platform/plugins/private/data_visualizer/server/plugin.ts b/x-pack/platform/plugins/private/data_visualizer/server/plugin.ts index 7a279d6c01ef8..721c805ec5f16 100644 --- a/x-pack/platform/plugins/private/data_visualizer/server/plugin.ts +++ b/x-pack/platform/plugins/private/data_visualizer/server/plugin.ts @@ -17,7 +17,7 @@ import { registerWithCustomIntegrations } from './register_custom_integration'; import { routes } from './routes'; import type { ConfigSchema } from '../common/app'; -export class DataVisualizerPlugin implements Plugin { +export class DataVisualizerPlugin implements Plugin { private readonly _logger: Logger; constructor(initializerContext: PluginInitializerContext) { 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/index_lifecycle_management/__jest__/__snapshots__/extend_index_management.test.tsx.snap b/x-pack/platform/plugins/private/index_lifecycle_management/__jest__/__snapshots__/extend_index_management.test.tsx.snap index 096b56da2fe6f..d5f44f5b24be6 100644 --- a/x-pack/platform/plugins/private/index_lifecycle_management/__jest__/__snapshots__/extend_index_management.test.tsx.snap +++ b/x-pack/platform/plugins/private/index_lifecycle_management/__jest__/__snapshots__/extend_index_management.test.tsx.snap @@ -72,6 +72,7 @@ Array [ "type": "field_value_selection", }, Object { + "autoSortOptions": false, "field": "ilm.phase", "multiSelect": "or", "name": "Lifecycle phase", diff --git a/x-pack/platform/plugins/private/index_lifecycle_management/public/extend_index_management/index.tsx b/x-pack/platform/plugins/private/index_lifecycle_management/public/extend_index_management/index.tsx index 2466020deb06d..ed8cafd207a85 100644 --- a/x-pack/platform/plugins/private/index_lifecycle_management/public/extend_index_management/index.tsx +++ b/x-pack/platform/plugins/private/index_lifecycle_management/public/extend_index_management/index.tsx @@ -186,6 +186,7 @@ export const ilmFilterExtension = (indices: Index[]) => { defaultMessage: 'Lifecycle phase', }), multiSelect: 'or', + autoSortOptions: false, options: [ { value: 'hot', diff --git a/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_plugins.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_plugins.json index f33b6b66da1f9..d5b0514b64918 100644 --- a/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_plugins.json +++ b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_plugins.json @@ -1,4 +1,3 @@ { - "properties": { - } + "properties": {} } diff --git a/x-pack/platform/plugins/private/transform/public/app/__mocks__/app_dependencies.tsx b/x-pack/platform/plugins/private/transform/public/app/__mocks__/app_dependencies.tsx index 49bd43232c9f5..663ac2a9dbc47 100644 --- a/x-pack/platform/plugins/private/transform/public/app/__mocks__/app_dependencies.tsx +++ b/x-pack/platform/plugins/private/transform/public/app/__mocks__/app_dependencies.tsx @@ -27,6 +27,7 @@ import type { AppDependencies } from '../app_dependencies'; import type { SavedObjectsManagementPluginStart } from '@kbn/saved-objects-management-plugin/public'; import { settingsServiceMock } from '@kbn/core-ui-settings-browser-mocks'; import { unifiedSearchPluginMock } from '@kbn/unified-search-plugin/public/mocks'; +import { userProfileServiceMock } from '@kbn/core-user-profile-browser-mocks'; const coreSetup = coreMock.createSetup(); const coreStart = coreMock.createStart(); @@ -92,6 +93,7 @@ const appDependencies: AppDependencies = { storage: { get: jest.fn() } as unknown as Storage, overlays: coreStart.overlays, theme: themeServiceMock.createStartContract(), + userProfile: userProfileServiceMock.createStart(), http: coreSetup.http, history: {} as ScopedHistory, share: { urlGenerators: { getUrlGenerator: jest.fn() } } as unknown as SharePluginStart, diff --git a/x-pack/platform/plugins/private/transform/public/app/app_dependencies.tsx b/x-pack/platform/plugins/private/transform/public/app/app_dependencies.tsx index 9033540ee0d4c..d097b6209052f 100644 --- a/x-pack/platform/plugins/private/transform/public/app/app_dependencies.tsx +++ b/x-pack/platform/plugins/private/transform/public/app/app_dependencies.tsx @@ -18,6 +18,7 @@ import type { SavedObjectsStart, ScopedHistory, ThemeServiceStart, + UserProfileService, } from '@kbn/core/public'; import type { DataPublicPluginStart } from '@kbn/data-plugin/public'; import type { DataViewsPublicPluginStart } from '@kbn/data-views-plugin/public'; @@ -57,6 +58,7 @@ export interface AppDependencies { storage: Storage; overlays: OverlayStart; theme: ThemeServiceStart; + userProfile: UserProfileService; history: ScopedHistory; share: SharePluginStart; spaces?: SpacesPluginStart; diff --git a/x-pack/platform/plugins/private/transform/public/app/common/time_zone_utils.ts b/x-pack/platform/plugins/private/transform/public/app/common/time_zone_utils.ts index 5d8d5b61b7686..23afbf1ce085b 100644 --- a/x-pack/platform/plugins/private/transform/public/app/common/time_zone_utils.ts +++ b/x-pack/platform/plugins/private/transform/public/app/common/time_zone_utils.ts @@ -8,7 +8,7 @@ import moment from 'moment-timezone'; import { isDefined } from '@kbn/ml-is-defined'; -// Partial list of packages/core/ui-settings/core-ui-settings-common/src/timezones.ts +// Partial list of src/core/packages/ui-settings/common/src/timezones.ts export const ACCEPTED_TIMEZONES = new Set([ ...moment.tz .names() diff --git a/x-pack/platform/plugins/private/transform/public/app/mount_management_section.ts b/x-pack/platform/plugins/private/transform/public/app/mount_management_section.ts index 35ae95feb9a44..4fffc76ff4107 100644 --- a/x-pack/platform/plugins/private/transform/public/app/mount_management_section.ts +++ b/x-pack/platform/plugins/private/transform/public/app/mount_management_section.ts @@ -39,6 +39,7 @@ export async function mountManagementSection( i18n, overlays, theme, + userProfile, savedObjects, uiSettings, settings, @@ -79,6 +80,7 @@ export async function mountManagementSection( notifications, overlays, theme, + userProfile, savedObjects, storage: localStorage, uiSettings, diff --git a/x-pack/platform/plugins/private/transform/public/app/sections/create_transform/components/wizard/wizard.tsx b/x-pack/platform/plugins/private/transform/public/app/sections/create_transform/components/wizard/wizard.tsx index ab2865b85eb8a..e55e97c3da318 100644 --- a/x-pack/platform/plugins/private/transform/public/app/sections/create_transform/components/wizard/wizard.tsx +++ b/x-pack/platform/plugins/private/transform/public/app/sections/create_transform/components/wizard/wizard.tsx @@ -225,7 +225,15 @@ export const Wizard: FC = React.memo(({ cloneConfig, searchItems }) const stepsConfig = [stepDefine, stepDetails, stepCreate]; const datePickerDeps: DatePickerDependencies = { - ...pick(appDependencies, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(appDependencies, [ + 'data', + 'http', + 'notifications', + 'theme', + 'uiSettings', + 'userProfile', + 'i18n', + ]), uiSettingsKeys: UI_SETTINGS, showFrozenDataTierChoice: showNodeInfo, }; diff --git a/x-pack/platform/plugins/private/transform/tsconfig.json b/x-pack/platform/plugins/private/transform/tsconfig.json index da992737fba2a..424a0506a6499 100644 --- a/x-pack/platform/plugins/private/transform/tsconfig.json +++ b/x-pack/platform/plugins/private/transform/tsconfig.json @@ -78,7 +78,8 @@ "@kbn/monaco", "@kbn/json-schemas", "@kbn/ml-field-stats-flyout", - "@kbn/ml-validators" + "@kbn/ml-validators", + "@kbn/core-user-profile-browser-mocks" ], "exclude": [ "target/**/*", diff --git a/x-pack/platform/plugins/private/translations/translations/fr-FR.json b/x-pack/platform/plugins/private/translations/translations/fr-FR.json index b50e86caf21ac..a0856a9d8de8d 100644 --- a/x-pack/platform/plugins/private/translations/translations/fr-FR.json +++ b/x-pack/platform/plugins/private/translations/translations/fr-FR.json @@ -5581,9 +5581,6 @@ "kibana-react.pageFooter.changeDefaultRouteSuccessToast": "Page de destination mise à jour", "kibana-react.pageFooter.changeHomeRouteLink": "Afficher une page différente à la connexion", "kibana-react.pageFooter.makeDefaultRouteLink": "Choisir comme page de destination", - "kibana-react.solutionNav.collapsibleLabel": "Réduire la navigation latérale", - "kibana-react.solutionNav.mobileTitleText": "Menu {solutionName}", - "kibana-react.solutionNav.openLabel": "Ouvrir la navigation latérale", "kibanaOverview.addData.sampleDataButtonLabel": "Essayer l’exemple de données", "kibanaOverview.addData.sectionTitle": "Ingérer des données", "kibanaOverview.apps.title": "Explorer les applications", @@ -17076,7 +17073,6 @@ "xpack.enterpriseSearch.connectors.more.ariaLabel": "Plus d'options", "xpack.enterpriseSearch.connectors.newConnectorButtonLabel": "Nouveau connecteur", "xpack.enterpriseSearch.connectors.newConnectorsClientButtonLabel": "Nouveau connecteur autogéré", - "xpack.enterpriseSearch.connectors.newCrawlerButtonLabel": "Nouveau robot d'indexation", "xpack.enterpriseSearch.connectors.newNativeConnectorButtonLabel": "Nouveau connecteur géré par Elastic", "xpack.enterpriseSearch.connectors.title": "Connecteurs Elasticsearch", "xpack.enterpriseSearch.connectorsTable.euiSearchBar.filterConnectorsLabel": "Filtrer les connecteurs", @@ -18001,10 +17997,6 @@ "xpack.enterpriseSearch.crawler.startCrawlContextMenu.crawlCustomSettingsMenuLabel": "Indexation avec des paramètres personnalisés", "xpack.enterpriseSearch.crawler.startCrawlContextMenu.reapplyCrawlRulesMenuLabel": "Réappliquer les règles d'indexation", "xpack.enterpriseSearch.crawler.urlComboBox.invalidUrlErrorMessage": "Veuillez entrer une URL valide", - "xpack.enterpriseSearch.crawlerEmptyState.h2.createYourFirstWebLabel": "Créer votre premier robot d'indexation", - "xpack.enterpriseSearch.crawlerEmptyState.newWebCrawlerButtonLabel": "Nouveau robot d'indexation", - "xpack.enterpriseSearch.crawlerEmptyState.openSourceCrawlerButtonLabel": "Code source", - "xpack.enterpriseSearch.crawlerEmptyState.p.discoverExtractAndIndexLabel": "Découvrir, extraire et indexer du contenu interrogeable provenant de sites web et de bases de connaissances", "xpack.enterpriseSearch.crawlers.title": "Robot d'indexation Elasticsearch", "xpack.enterpriseSearch.createConnector..breadcrumb": "Nouveau connecteur", "xpack.enterpriseSearch.createConnector..title": "Créer un connecteur", @@ -22356,7 +22348,6 @@ "xpack.idxMgmt.indexActionsMenu.showIndexOverviewLabel": "Afficher l'aperçu des index", "xpack.idxMgmt.indexActionsMenu.showIndexSettingsLabel": "Afficher les paramètres des index", "xpack.idxMgmt.indexActionsMenu.showIndexStatsLabel": "Afficher les statistiques des index", - "xpack.idxMgmt.indexActionsMenu.unfreezeIndexLabel": "Dégeler {selectedIndexCount, plural, one {l'index} other {les index} }", "xpack.idxMgmt.indexDetails.backToIndicesButtonLabel": "Retour aux index", "xpack.idxMgmt.indexDetails.errorDescription": "Une erreur s'est produite lors du chargement des données pour l'index {indexName}. Assurez-vous que le nom de l'index dans l'URL est correct, puis réessayez.", "xpack.idxMgmt.indexDetails.errorTitle": "Impossible de charger les détails d'index", @@ -23256,8 +23247,6 @@ "xpack.idxMgmt.templateValidation.templateNameRequiredError": "Nom de modèle obligatoire.", "xpack.idxMgmt.templateValidation.templateNameSpacesError": "Les espaces ne sont pas autorisés dans un nom de modèle.", "xpack.idxMgmt.templateValidation.templateNameUnderscoreError": "Un nom de modèle ne doit pas commencer par un trait de soulignement.", - "xpack.idxMgmt.unfreezeIndicesAction.indexUnfrozenMessage": "L'index {indexNames} a été débloqué.", - "xpack.idxMgmt.unfreezeIndicesAction.successfullyUnfrozeIndicesMessage": "Déverrouillage terminé : [{indexNames}]", "xpack.idxMgmt.validators.string.invalidJSONError": "Format JSON non valide.", "xpack.indexLifecycleMgmt.addLifecyclePolicyActionButtonLabel": "Ajouter une stratégie de cycle de vie", "xpack.indexLifecycleMgmt.appTitle": "Stratégies de cycle de vie des index", @@ -40661,8 +40650,6 @@ "xpack.securitySolution.getStarted.landingCards.box.siemCard.title": "SIEM pour le centre opérationnel de sécurité moderne", "xpack.securitySolution.getStarted.landingCards.box.unify.desc": "Elastic Security modernise les opérations de sécurité en facilitant l'analyse des données collectées au fil des ans, en automatisant les principaux processus et en protégeant chaque hôte.", "xpack.securitySolution.getStarted.landingCards.box.unify.title": "Unification du SIEM, de la sécurité aux points de terminaison et de la sécurité cloud", - "xpack.securitySolution.globalHeader.assistantHeaderLink": "Assistant d'intelligence artificielle", - "xpack.securitySolution.globalHeader.assistantHeaderLinkShortcutTooltip": "Raccourci clavier {keyboardShortcut}", "xpack.securitySolution.globalHeader.buttonAddData": "Ajouter des intégrations", "xpack.securitySolution.goToDocumentationButton": "Afficher la documentation", "xpack.securitySolution.guideConfig.addDataStep.description": "Installez un agent sur l'un de vos ordinateurs et configurez-le avec l'intégration Elastic Defend. Grâce à cette intégration, l'agent pourra collecter et envoyer les données système à Elastic Security en temps réel.", diff --git a/x-pack/platform/plugins/private/translations/translations/ja-JP.json b/x-pack/platform/plugins/private/translations/translations/ja-JP.json index 199ec0b9d8054..08a6b2022e08f 100644 --- a/x-pack/platform/plugins/private/translations/translations/ja-JP.json +++ b/x-pack/platform/plugins/private/translations/translations/ja-JP.json @@ -5575,9 +5575,6 @@ "kibana-react.pageFooter.changeDefaultRouteSuccessToast": "ランディングページが更新されました", "kibana-react.pageFooter.changeHomeRouteLink": "ログイン時に別のページを表示", "kibana-react.pageFooter.makeDefaultRouteLink": "これをランディングページにする", - "kibana-react.solutionNav.collapsibleLabel": "サイドナビゲーションを折りたたむ", - "kibana-react.solutionNav.mobileTitleText": "{solutionName}メニュー", - "kibana-react.solutionNav.openLabel": "サイドナビゲーションを開く", "kibanaOverview.addData.sampleDataButtonLabel": "サンプルデータを試す", "kibanaOverview.addData.sectionTitle": "データを取り込む", "kibanaOverview.apps.title": "これらのアプリを検索", @@ -16937,7 +16934,6 @@ "xpack.enterpriseSearch.connectors.more.ariaLabel": "その他のオプション", "xpack.enterpriseSearch.connectors.newConnectorButtonLabel": "新しいコネクター", "xpack.enterpriseSearch.connectors.newConnectorsClientButtonLabel": "新しいセルフマネージドコネクター", - "xpack.enterpriseSearch.connectors.newCrawlerButtonLabel": "新しいWebクローラー", "xpack.enterpriseSearch.connectors.newNativeConnectorButtonLabel": "新しいElasticマネージドコネクター", "xpack.enterpriseSearch.connectors.title": "Elasticsearchコネクター", "xpack.enterpriseSearch.connectorsTable.euiSearchBar.filterConnectorsLabel": "コネクターをフィルター", @@ -17861,10 +17857,6 @@ "xpack.enterpriseSearch.crawler.startCrawlContextMenu.crawlCustomSettingsMenuLabel": "カスタム設定でクロール", "xpack.enterpriseSearch.crawler.startCrawlContextMenu.reapplyCrawlRulesMenuLabel": "クローリングルールを再適用", "xpack.enterpriseSearch.crawler.urlComboBox.invalidUrlErrorMessage": "有効なURLを入力してください", - "xpack.enterpriseSearch.crawlerEmptyState.h2.createYourFirstWebLabel": "最初のWebクローラーを作成", - "xpack.enterpriseSearch.crawlerEmptyState.newWebCrawlerButtonLabel": "新しいWebクローラー", - "xpack.enterpriseSearch.crawlerEmptyState.openSourceCrawlerButtonLabel": "ソースコード", - "xpack.enterpriseSearch.crawlerEmptyState.p.discoverExtractAndIndexLabel": "Webサイトやナレッジベースから検索可能なコンテンツを検出、抽出、インデックス化します", "xpack.enterpriseSearch.crawlers.title": "Elasticsearch Webクローラー", "xpack.enterpriseSearch.createConnector..breadcrumb": "新しいコネクター", "xpack.enterpriseSearch.createConnector..title": "コネクターを作成する", @@ -22214,7 +22206,6 @@ "xpack.idxMgmt.indexActionsMenu.showIndexOverviewLabel": "インデックス概要を表示", "xpack.idxMgmt.indexActionsMenu.showIndexSettingsLabel": "インデックス設定を表示", "xpack.idxMgmt.indexActionsMenu.showIndexStatsLabel": "インデックス統計を表示", - "xpack.idxMgmt.indexActionsMenu.unfreezeIndexLabel": "{selectedIndexCount, plural, other {個のインデックス} }の凍結を解除", "xpack.idxMgmt.indexDetails.backToIndicesButtonLabel": "インデックスに戻る", "xpack.idxMgmt.indexDetails.errorDescription": "インデックス{indexName}のデータを読み込む際にエラーが発生しました。URLのインデックス名が正しいことを確認し、もう一度試してください。", "xpack.idxMgmt.indexDetails.errorTitle": "インデックス詳細を読み込めません", @@ -23115,8 +23106,6 @@ "xpack.idxMgmt.templateValidation.templateNameRequiredError": "テンプレート名が必要です。", "xpack.idxMgmt.templateValidation.templateNameSpacesError": "テンプレート名にスペースは使用できません。", "xpack.idxMgmt.templateValidation.templateNameUnderscoreError": "テンプレート名はアンダーラインで始めることはできません。", - "xpack.idxMgmt.unfreezeIndicesAction.indexUnfrozenMessage": "インデックス{indexNames}が凍結解除されました。", - "xpack.idxMgmt.unfreezeIndicesAction.successfullyUnfrozeIndicesMessage": "[{indexNames}] の凍結が解除されました", "xpack.idxMgmt.validators.string.invalidJSONError": "無効な JSON フォーマット。", "xpack.indexLifecycleMgmt.addLifecyclePolicyActionButtonLabel": "ライフサイクルポリシーを追加", "xpack.indexLifecycleMgmt.appTitle": "インデックスライフサイクルポリシー", @@ -40518,8 +40507,6 @@ "xpack.securitySolution.getStarted.landingCards.box.siemCard.title": "最先端を行くSOCのSIEM", "xpack.securitySolution.getStarted.landingCards.box.unify.desc": "Elasticセキュリティは数年分に及ぶデータの分析を可能にするほか、主要プロセスを自動化し、全ホストを保護して、最先端のセキュリティ運用を実現します。", "xpack.securitySolution.getStarted.landingCards.box.unify.title": "SIEM、エンドポイントセキュリティ、クラウドセキュリティを一体化", - "xpack.securitySolution.globalHeader.assistantHeaderLink": "AI Assistant", - "xpack.securitySolution.globalHeader.assistantHeaderLinkShortcutTooltip": "キーボードショートカット{keyboardShortcut}", "xpack.securitySolution.globalHeader.buttonAddData": "統合の追加", "xpack.securitySolution.goToDocumentationButton": "ドキュメンテーションを表示", "xpack.securitySolution.guideConfig.addDataStep.description": "コンピューターのいずれかにエージェントをインストールし、Elastic Defend統合を構成します。この統合により、エージェントはシステムデータをリアルタイムで収集し、Elastic Securityに送信できます。", diff --git a/x-pack/platform/plugins/private/translations/translations/zh-CN.json b/x-pack/platform/plugins/private/translations/translations/zh-CN.json index 0ca08b7a1d89c..1f522395a38b2 100644 --- a/x-pack/platform/plugins/private/translations/translations/zh-CN.json +++ b/x-pack/platform/plugins/private/translations/translations/zh-CN.json @@ -5531,9 +5531,6 @@ "kibana-react.pageFooter.changeDefaultRouteSuccessToast": "登陆页面已更新", "kibana-react.pageFooter.changeHomeRouteLink": "登录时显示不同页面", "kibana-react.pageFooter.makeDefaultRouteLink": "将此设为我的登陆页面", - "kibana-react.solutionNav.collapsibleLabel": "折叠侧边导航", - "kibana-react.solutionNav.mobileTitleText": "{solutionName} 菜单", - "kibana-react.solutionNav.openLabel": "打开侧边导航", "kibanaOverview.addData.sampleDataButtonLabel": "试用我们的样例数据", "kibanaOverview.addData.sectionTitle": "采集您的数据", "kibanaOverview.apps.title": "浏览这些应用", @@ -16642,7 +16639,6 @@ "xpack.enterpriseSearch.connectors.more.ariaLabel": "更多选项", "xpack.enterpriseSearch.connectors.newConnectorButtonLabel": "新连接器", "xpack.enterpriseSearch.connectors.newConnectorsClientButtonLabel": "全新自管型连接器", - "xpack.enterpriseSearch.connectors.newCrawlerButtonLabel": "新网络爬虫", "xpack.enterpriseSearch.connectors.newNativeConnectorButtonLabel": "全新 Elastic 托管连接器", "xpack.enterpriseSearch.connectors.title": "Elasticsearch 连接器", "xpack.enterpriseSearch.connectorsTable.euiSearchBar.filterConnectorsLabel": "筛选连接器", @@ -17561,10 +17557,6 @@ "xpack.enterpriseSearch.crawler.startCrawlContextMenu.crawlCustomSettingsMenuLabel": "使用定制设置执行爬网", "xpack.enterpriseSearch.crawler.startCrawlContextMenu.reapplyCrawlRulesMenuLabel": "重新应用爬网规则", "xpack.enterpriseSearch.crawler.urlComboBox.invalidUrlErrorMessage": "请输入有效 URL", - "xpack.enterpriseSearch.crawlerEmptyState.h2.createYourFirstWebLabel": "创建您的首个网络爬虫", - "xpack.enterpriseSearch.crawlerEmptyState.newWebCrawlerButtonLabel": "新网络爬虫", - "xpack.enterpriseSearch.crawlerEmptyState.openSourceCrawlerButtonLabel": "源代码", - "xpack.enterpriseSearch.crawlerEmptyState.p.discoverExtractAndIndexLabel": "发现、提取和索引网站和知识库中的可搜索内容", "xpack.enterpriseSearch.crawlers.title": "Elasticsearch 网络爬虫", "xpack.enterpriseSearch.createConnector..breadcrumb": "新连接器", "xpack.enterpriseSearch.createConnector..title": "创建连接器", @@ -21859,7 +21851,6 @@ "xpack.idxMgmt.indexActionsMenu.showIndexOverviewLabel": "显示索引概览", "xpack.idxMgmt.indexActionsMenu.showIndexSettingsLabel": "显示索引设置", "xpack.idxMgmt.indexActionsMenu.showIndexStatsLabel": "显示索引统计信息", - "xpack.idxMgmt.indexActionsMenu.unfreezeIndexLabel": "取消冻结{selectedIndexCount, plural, other {索引} }", "xpack.idxMgmt.indexDetails.backToIndicesButtonLabel": "返回到索引", "xpack.idxMgmt.indexDetails.errorDescription": "加载索引 {indexName} 的数据时出现错误。请确保 URL 中的索引名称正确,然后重试。", "xpack.idxMgmt.indexDetails.errorTitle": "无法加载索引详情", @@ -22752,8 +22743,6 @@ "xpack.idxMgmt.templateValidation.templateNameRequiredError": "模板名称必填。", "xpack.idxMgmt.templateValidation.templateNameSpacesError": "模板名称不允许包含空格。", "xpack.idxMgmt.templateValidation.templateNameUnderscoreError": "模板名称不得以下划线开头。", - "xpack.idxMgmt.unfreezeIndicesAction.indexUnfrozenMessage": "索引 {indexNames} 已取消冻结。", - "xpack.idxMgmt.unfreezeIndicesAction.successfullyUnfrozeIndicesMessage": "成功取消冻结:[{indexNames}]", "xpack.idxMgmt.validators.string.invalidJSONError": "JSON 格式无效。", "xpack.indexLifecycleMgmt.addLifecyclePolicyActionButtonLabel": "添加生命周期策略", "xpack.indexLifecycleMgmt.appTitle": "索引生命周期策略", @@ -39922,8 +39911,6 @@ "xpack.securitySolution.getStarted.landingCards.box.siemCard.title": "适用于现代 SOC 的 SIEM", "xpack.securitySolution.getStarted.landingCards.box.unify.desc": "Elastic Security 实现了安全运营现代化,能够对多年的数据进行分析,自动执行关键流程,并保护每台主机。", "xpack.securitySolution.getStarted.landingCards.box.unify.title": "集 SIEM、Endpoint Security 和云安全于一体", - "xpack.securitySolution.globalHeader.assistantHeaderLink": "AI 助手", - "xpack.securitySolution.globalHeader.assistantHeaderLinkShortcutTooltip": "快捷键 {keyboardShortcut}", "xpack.securitySolution.globalHeader.buttonAddData": "添加集成", "xpack.securitySolution.goToDocumentationButton": "查看文档", "xpack.securitySolution.guideConfig.addDataStep.description": "在您的计算机之一上安装代理,并使用 Elastic Defend 集成对其进行配置。使用此集成,该代理将能够实时收集系统数据并将其发送到 Elastic Security。", 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/platform/plugins/shared/actions/server/plugin.ts b/x-pack/platform/plugins/shared/actions/server/plugin.ts index 012f602398e64..9385eb9bc08bc 100644 --- a/x-pack/platform/plugins/shared/actions/server/plugin.ts +++ b/x-pack/platform/plugins/shared/actions/server/plugin.ts @@ -201,7 +201,10 @@ const includedHiddenTypes = [ CONNECTOR_TOKEN_SAVED_OBJECT_TYPE, ]; -export class ActionsPlugin implements Plugin { +export class ActionsPlugin + implements + Plugin +{ private readonly logger: Logger; private readonly actionsConfig: ActionsConfig; private taskRunnerFactory?: TaskRunnerFactory; @@ -230,7 +233,7 @@ export class ActionsPlugin implements Plugin, + core: CoreSetup, plugins: ActionsPluginsSetup ): PluginSetupContract { this.licenseState = new LicenseState(plugins.licensing.license$); diff --git a/x-pack/platform/plugins/shared/actions/server/saved_objects/mappings.ts b/x-pack/platform/plugins/shared/actions/server/saved_objects/mappings.ts index 70e3e7447a6a0..856431198c73a 100644 --- a/x-pack/platform/plugins/shared/actions/server/saved_objects/mappings.ts +++ b/x-pack/platform/plugins/shared/actions/server/saved_objects/mappings.ts @@ -40,6 +40,9 @@ export const actionMappings: SavedObjectsTypeMappingDefinition = { export const actionTaskParamsMappings: SavedObjectsTypeMappingDefinition = { dynamic: false, properties: { + apiKeyId: { + type: 'keyword', + }, // NO NEED TO BE INDEXED // actionId: { // type: 'keyword', diff --git a/x-pack/platform/plugins/shared/actions/server/saved_objects/model_versions/action_task_params_model_versions.ts b/x-pack/platform/plugins/shared/actions/server/saved_objects/model_versions/action_task_params_model_versions.ts index 570ebff743c17..ebd87cdcb0915 100644 --- a/x-pack/platform/plugins/shared/actions/server/saved_objects/model_versions/action_task_params_model_versions.ts +++ b/x-pack/platform/plugins/shared/actions/server/saved_objects/model_versions/action_task_params_model_versions.ts @@ -6,13 +6,28 @@ */ import { SavedObjectsModelVersionMap } from '@kbn/core-saved-objects-server'; -import { actionTaskParamsSchemaV1 } from '../schemas/action_task_params'; +import { actionTaskParamsSchemaV1, actionTaskParamsSchemaV2 } from '../schemas/action_task_params'; export const actionTaskParamsModelVersions: SavedObjectsModelVersionMap = { '1': { changes: [], schemas: { + forwardCompatibility: actionTaskParamsSchemaV1.extends({}, { unknowns: 'ignore' }), create: actionTaskParamsSchemaV1, }, }, + '2': { + changes: [ + { + type: 'mappings_addition', + addedMappings: { + apiKeyId: { type: 'keyword' }, + }, + }, + ], + schemas: { + forwardCompatibility: actionTaskParamsSchemaV2.extends({}, { unknowns: 'ignore' }), + create: actionTaskParamsSchemaV2, + }, + }, }; diff --git a/x-pack/platform/plugins/shared/actions/server/saved_objects/schemas/action_task_params/index.ts b/x-pack/platform/plugins/shared/actions/server/saved_objects/schemas/action_task_params/index.ts index 4ce0e679adf5e..cd49049abdfbc 100644 --- a/x-pack/platform/plugins/shared/actions/server/saved_objects/schemas/action_task_params/index.ts +++ b/x-pack/platform/plugins/shared/actions/server/saved_objects/schemas/action_task_params/index.ts @@ -6,3 +6,4 @@ */ export { actionTaskParamsSchema as actionTaskParamsSchemaV1 } from './v1'; +export { actionTaskParamsSchema as actionTaskParamsSchemaV2 } from './v2'; diff --git a/x-pack/platform/plugins/shared/actions/server/saved_objects/schemas/action_task_params/v2.ts b/x-pack/platform/plugins/shared/actions/server/saved_objects/schemas/action_task_params/v2.ts new file mode 100644 index 0000000000000..b0fd0c3b9f3b4 --- /dev/null +++ b/x-pack/platform/plugins/shared/actions/server/saved_objects/schemas/action_task_params/v2.ts @@ -0,0 +1,13 @@ +/* + * 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. + */ + +import { schema } from '@kbn/config-schema'; +import { actionTaskParamsSchema as actionTaskParamsSchemaV1 } from './v1'; + +export const actionTaskParamsSchema = actionTaskParamsSchemaV1.extends({ + apiKeyId: schema.maybe(schema.string()), +}); diff --git a/x-pack/platform/plugins/shared/aiops/public/components/change_point_detection/change_point_detection_root.tsx b/x-pack/platform/plugins/shared/aiops/public/components/change_point_detection/change_point_detection_root.tsx index 1ca4d0449a6c8..f66d547ad9c21 100644 --- a/x-pack/platform/plugins/shared/aiops/public/components/change_point_detection/change_point_detection_root.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/components/change_point_detection/change_point_detection_root.tsx @@ -64,7 +64,15 @@ export const ChangePointDetectionAppState: FC showFrozenDataTierChoice = true, }) => { const datePickerDeps: DatePickerDependencies = { - ...pick(appContextValue, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(appContextValue, [ + 'data', + 'http', + 'notifications', + 'theme', + 'uiSettings', + 'userProfile', + 'i18n', + ]), uiSettingsKeys: UI_SETTINGS, showFrozenDataTierChoice, }; diff --git a/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/format_category.test.tsx b/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/format_category.test.tsx index fa2d7830de3f3..97469547a7e5d 100644 --- a/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/format_category.test.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/format_category.test.tsx @@ -9,10 +9,6 @@ import type { Category } from '@kbn/aiops-log-pattern-analysis/types'; import { useCreateFormattedExample } from './format_category'; import { renderHook } from '@testing-library/react'; -jest.mock('../../hooks/use_is_dark_theme', () => ({ - useIsDarkTheme: () => false, -})); - const categoryData: Array<{ category: Category; elementCount: number; diff --git a/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/format_category.tsx b/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/format_category.tsx index bd8c16f8f8f76..bb2c7f6206ca4 100644 --- a/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/format_category.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/format_category.tsx @@ -7,11 +7,10 @@ import type { FC, PropsWithChildren } from 'react'; import React, { useCallback, useMemo } from 'react'; -import { EuiText, EuiHorizontalRule } from '@elastic/eui'; +import { useEuiTheme, EuiText, EuiHorizontalRule } from '@elastic/eui'; import type { SerializedStyles } from '@emotion/react'; import { css } from '@emotion/react'; import type { Category } from '@kbn/aiops-log-pattern-analysis/types'; -import { useIsDarkTheme } from '../../hooks/use_is_dark_theme'; interface Props { category: Category; @@ -38,7 +37,8 @@ interface Styles { } const useStyles = (): Styles => { - const isDarkTheme = useIsDarkTheme(); + const { colorMode } = useEuiTheme(); + const isDarkTheme = colorMode === 'DARK'; return useMemo( () => diff --git a/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/log_categorization_app_state.tsx b/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/log_categorization_app_state.tsx index 073316455cb53..5fa57cb2b7e06 100644 --- a/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/log_categorization_app_state.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/log_categorization_app_state.tsx @@ -55,7 +55,15 @@ export const LogCategorizationAppState: FC = ({ } const datePickerDeps: DatePickerDependencies = { - ...pick(appContextValue, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(appContextValue, [ + 'data', + 'http', + 'notifications', + 'theme', + 'uiSettings', + 'userProfile', + 'i18n', + ]), uiSettingsKeys: UI_SETTINGS, showFrozenDataTierChoice, }; diff --git a/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/log_categorization_for_embeddable/log_categorization_for_discover_wrapper.tsx b/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/log_categorization_for_embeddable/log_categorization_for_discover_wrapper.tsx index 6582ba5333b40..ffdced46592a3 100644 --- a/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/log_categorization_for_embeddable/log_categorization_for_discover_wrapper.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/components/log_categorization/log_categorization_for_embeddable/log_categorization_for_discover_wrapper.tsx @@ -34,7 +34,15 @@ export const LogCategorizationDiscoverWrapper: FC = ({ const casesPermissions = appContextValue.cases?.helpers.canUseCases(); const datePickerDeps: DatePickerDependencies = { - ...pick(appContextValue, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(appContextValue, [ + 'data', + 'http', + 'notifications', + 'theme', + 'uiSettings', + 'userProfile', + 'i18n', + ]), uiSettingsKeys: UI_SETTINGS, showFrozenDataTierChoice, }; diff --git a/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis/log_rate_analysis_content/log_rate_analysis_content_wrapper.tsx b/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis/log_rate_analysis_content/log_rate_analysis_content_wrapper.tsx index 5ba8849474aae..358224d990854 100644 --- a/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis/log_rate_analysis_content/log_rate_analysis_content_wrapper.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/components/log_rate_analysis/log_rate_analysis_content/log_rate_analysis_content_wrapper.tsx @@ -80,7 +80,15 @@ export const LogRateAnalysisContentWrapper: FC = ({ } = appContextValue; const datePickerDeps: DatePickerDependencies = { - ...pick(appContextValue, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(appContextValue, [ + 'data', + 'http', + 'notifications', + 'theme', + 'uiSettings', + 'userProfile', + 'i18n', + ]), uiSettingsKeys: UI_SETTINGS, }; diff --git a/x-pack/platform/plugins/shared/aiops/public/hooks/use_aiops_app_context.ts b/x-pack/platform/plugins/shared/aiops/public/hooks/use_aiops_app_context.ts index c240ec90bc1df..3710908045e6e 100644 --- a/x-pack/platform/plugins/shared/aiops/public/hooks/use_aiops_app_context.ts +++ b/x-pack/platform/plugins/shared/aiops/public/hooks/use_aiops_app_context.ts @@ -22,6 +22,7 @@ import type { HttpStart, IUiSettingsClient, ThemeServiceStart, + UserProfileService, } from '@kbn/core/public'; import type { LensPublicStart } from '@kbn/lens-plugin/public'; import type { EmbeddableStart } from '@kbn/embeddable-plugin/public'; @@ -90,6 +91,10 @@ export interface AiopsAppContextValue { * Usage collection. */ usageCollection?: UsageCollectionSetup; + /** + * User profile service. + */ + userProfile: UserProfileService; /** * Used to create deep links to other plugins. */ diff --git a/x-pack/platform/plugins/shared/aiops/public/shared_components/change_point_detection.tsx b/x-pack/platform/plugins/shared/aiops/public/shared_components/change_point_detection.tsx index 53997219fd639..97c7b4bf03e15 100644 --- a/x-pack/platform/plugins/shared/aiops/public/shared_components/change_point_detection.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/shared_components/change_point_detection.tsx @@ -101,7 +101,7 @@ const ChangePointDetectionWrapper: FC = ({ }, [coreStart, pluginStart]); const datePickerDeps = { - ...pick(deps, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(deps, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'userProfile', 'i18n']), uiSettingsKeys: UI_SETTINGS, }; diff --git a/x-pack/platform/plugins/shared/aiops/public/shared_components/log_rate_analysis_embeddable_wrapper.tsx b/x-pack/platform/plugins/shared/aiops/public/shared_components/log_rate_analysis_embeddable_wrapper.tsx index f08f4f0e68bd9..5a8140b155745 100644 --- a/x-pack/platform/plugins/shared/aiops/public/shared_components/log_rate_analysis_embeddable_wrapper.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/shared_components/log_rate_analysis_embeddable_wrapper.tsx @@ -90,7 +90,7 @@ const LogRateAnalysisEmbeddableWrapperWithDeps: FC }, [coreStart, pluginStart]); const datePickerDeps = { - ...pick(deps, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(deps, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'userProfile', 'i18n']), uiSettingsKeys: UI_SETTINGS, }; diff --git a/x-pack/platform/plugins/shared/aiops/public/shared_components/pattern_analysis.tsx b/x-pack/platform/plugins/shared/aiops/public/shared_components/pattern_analysis.tsx index f601474a5707f..3578f7a14570a 100644 --- a/x-pack/platform/plugins/shared/aiops/public/shared_components/pattern_analysis.tsx +++ b/x-pack/platform/plugins/shared/aiops/public/shared_components/pattern_analysis.tsx @@ -98,7 +98,7 @@ const PatternAnalysisWrapper: FC = ({ }, [coreStart, pluginStart]); const datePickerDeps = { - ...pick(deps, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(deps, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'userProfile', 'i18n']), uiSettingsKeys: UI_SETTINGS, }; diff --git a/x-pack/platform/plugins/shared/aiops/tsconfig.json b/x-pack/platform/plugins/shared/aiops/tsconfig.json index 1069dfde96226..08b9f8720e814 100644 --- a/x-pack/platform/plugins/shared/aiops/tsconfig.json +++ b/x-pack/platform/plugins/shared/aiops/tsconfig.json @@ -49,7 +49,6 @@ "@kbn/ml-in-memory-table", "@kbn/ml-is-defined", "@kbn/ml-is-populated-object", - "@kbn/ml-kibana-theme", "@kbn/ml-local-storage", "@kbn/ml-number-utils", "@kbn/ml-query-utils", diff --git a/x-pack/platform/plugins/shared/alerting/common/routes/backfill/apis/schedule/schemas/v1.ts b/x-pack/platform/plugins/shared/alerting/common/routes/backfill/apis/schedule/schemas/v1.ts index 527134a2b5138..527de165db993 100644 --- a/x-pack/platform/plugins/shared/alerting/common/routes/backfill/apis/schedule/schemas/v1.ts +++ b/x-pack/platform/plugins/shared/alerting/common/routes/backfill/apis/schedule/schemas/v1.ts @@ -15,6 +15,7 @@ export const scheduleBodySchema = schema.arrayOf( rule_id: schema.string(), start: schema.string(), end: schema.maybe(schema.string()), + run_actions: schema.maybe(schema.boolean()), }, { validate({ start, end }) { diff --git a/x-pack/platform/plugins/shared/alerting/common/routes/r_rule/request/schemas/v1.ts b/x-pack/platform/plugins/shared/alerting/common/routes/r_rule/request/schemas/v1.ts index 78f8f24221a59..42d238b5a9d59 100644 --- a/x-pack/platform/plugins/shared/alerting/common/routes/r_rule/request/schemas/v1.ts +++ b/x-pack/platform/plugins/shared/alerting/common/routes/r_rule/request/schemas/v1.ts @@ -40,17 +40,28 @@ export const rRuleRequestSchema = schema.object({ }) ), byweekday: schema.maybe( - schema.arrayOf(schema.string(), { - validate: createValidateRecurrenceByV1('byweekday'), - }) + schema.arrayOf( + schema.oneOf([ + schema.literal('MO'), + schema.literal('TU'), + schema.literal('WE'), + schema.literal('TH'), + schema.literal('FR'), + schema.literal('SA'), + schema.literal('SU'), + ]), + { + validate: createValidateRecurrenceByV1('byweekday'), + } + ) ), bymonthday: schema.maybe( - schema.arrayOf(schema.number(), { + schema.arrayOf(schema.number({ min: 1, max: 31 }), { validate: createValidateRecurrenceByV1('bymonthday'), }) ), bymonth: schema.maybe( - schema.arrayOf(schema.number(), { + schema.arrayOf(schema.number({ min: 1, max: 12 }), { validate: createValidateRecurrenceByV1('bymonth'), }) ), diff --git a/x-pack/platform/plugins/shared/alerting/server/alerts_service/alerts_service.test.ts b/x-pack/platform/plugins/shared/alerting/server/alerts_service/alerts_service.test.ts index cba4b5e573b33..abf1d3d6c4307 100644 --- a/x-pack/platform/plugins/shared/alerting/server/alerts_service/alerts_service.test.ts +++ b/x-pack/platform/plugins/shared/alerting/server/alerts_service/alerts_service.test.ts @@ -144,7 +144,10 @@ const getIndexTemplatePutBody = (opts?: GetIndexTemplatePutBodyOpts) => { const indexPatterns = useDataStream ? [`.alerts-${context ? context : 'test'}.alerts-${namespace}`] - : [`.internal.alerts-${context ? context : 'test'}.alerts-${namespace}-*`]; + : [ + `.internal.alerts-${context ? context : 'test'}.alerts-${namespace}-*`, + `.reindexed-v8-internal.alerts-${context ? context : 'test'}.alerts-${namespace}-*`, + ]; return { name: `.alerts-${context ? context : 'test'}.alerts-${namespace}-index-template`, body: { @@ -564,7 +567,10 @@ describe('Alerts Service', () => { }, }); expect(clusterClient.indices.getAlias).toHaveBeenCalledWith({ - index: '.internal.alerts-test.alerts-default-*', + index: [ + '.internal.alerts-test.alerts-default-*', + `.reindexed-v8-internal.alerts-test.alerts-default-*`, + ], name: '.alerts-test.alerts-*', }); } @@ -627,7 +633,10 @@ describe('Alerts Service', () => { }, }); expect(clusterClient.indices.getAlias).toHaveBeenCalledWith({ - index: '.internal.alerts-test.alerts-default-*', + index: [ + '.internal.alerts-test.alerts-default-*', + `.reindexed-v8-internal.alerts-test.alerts-default-*`, + ], name: '.alerts-test.alerts-*', }); } @@ -686,7 +695,10 @@ describe('Alerts Service', () => { }, }); expect(clusterClient.indices.getAlias).toHaveBeenCalledWith({ - index: '.internal.alerts-test.alerts-default-*', + index: [ + '.internal.alerts-test.alerts-default-*', + `.reindexed-v8-internal.alerts-test.alerts-default-*`, + ], name: '.alerts-test.alerts-*', }); } @@ -728,7 +740,10 @@ describe('Alerts Service', () => { }, }); expect(clusterClient.indices.getAlias).toHaveBeenNthCalledWith(1, { - index: '.internal.alerts-test.alerts-default-*', + index: [ + '.internal.alerts-test.alerts-default-*', + `.reindexed-v8-internal.alerts-test.alerts-default-*`, + ], name: '.alerts-test.alerts-*', }); } @@ -792,7 +807,10 @@ describe('Alerts Service', () => { }, }); expect(clusterClient.indices.getAlias).toHaveBeenNthCalledWith(2, { - index: '.internal.alerts-test.alerts-another-namespace-*', + index: [ + '.internal.alerts-test.alerts-another-namespace-*', + '.reindexed-v8-internal.alerts-test.alerts-another-namespace-*', + ], name: '.alerts-test.alerts-*', }); } @@ -826,7 +844,10 @@ describe('Alerts Service', () => { }) ); expect(clusterClient.indices.getAlias).toHaveBeenCalledWith({ - index: '.internal.alerts-test.alerts-default-*', + index: [ + '.internal.alerts-test.alerts-default-*', + '.reindexed-v8-internal.alerts-test.alerts-default-*', + ], name: '.alerts-test.alerts-*', }); expect(clusterClient.indices.putSettings).toHaveBeenCalledTimes(2); @@ -871,11 +892,12 @@ describe('Alerts Service', () => { const template = { name: `.alerts-empty.alerts-default-index-template`, body: { - index_patterns: [ - useDataStreamForAlerts - ? `.alerts-empty.alerts-default` - : `.internal.alerts-empty.alerts-default-*`, - ], + index_patterns: useDataStreamForAlerts + ? [`.alerts-empty.alerts-default`] + : [ + `.internal.alerts-empty.alerts-default-*`, + `.reindexed-v8-internal.alerts-empty.alerts-default-*`, + ], composed_of: ['.alerts-framework-mappings'], ...(useDataStreamForAlerts ? { data_stream: { hidden: true } } : {}), priority: 7, @@ -931,7 +953,10 @@ describe('Alerts Service', () => { }, }); expect(clusterClient.indices.getAlias).toHaveBeenCalledWith({ - index: '.internal.alerts-empty.alerts-default-*', + index: [ + '.internal.alerts-empty.alerts-default-*', + '.reindexed-v8-internal.alerts-empty.alerts-default-*', + ], name: '.alerts-empty.alerts-*', }); } diff --git a/x-pack/platform/plugins/shared/alerting/server/alerts_service/lib/create_or_update_index_template.ts b/x-pack/platform/plugins/shared/alerting/server/alerts_service/lib/create_or_update_index_template.ts index 503e3848fa658..0a1b4951bcc9a 100644 --- a/x-pack/platform/plugins/shared/alerting/server/alerts_service/lib/create_or_update_index_template.ts +++ b/x-pack/platform/plugins/shared/alerting/server/alerts_service/lib/create_or_update_index_template.ts @@ -43,10 +43,12 @@ export const getIndexTemplate = ({ namespace, }; - const dataStreamFields = dataStreamAdapter.getIndexTemplateFields( - indexPatterns.alias, - indexPatterns.pattern - ); + const patterns: string[] = [indexPatterns.pattern]; + if (indexPatterns.reindexedPattern) { + patterns.push(indexPatterns.reindexedPattern); + } + + const dataStreamFields = dataStreamAdapter.getIndexTemplateFields(indexPatterns.alias, patterns); const indexLifecycle = { name: ilmPolicyName, diff --git a/x-pack/platform/plugins/shared/alerting/server/alerts_service/lib/data_stream_adapter.ts b/x-pack/platform/plugins/shared/alerting/server/alerts_service/lib/data_stream_adapter.ts index 98cd0b67ff05a..a4805cd95c5ff 100644 --- a/x-pack/platform/plugins/shared/alerting/server/alerts_service/lib/data_stream_adapter.ts +++ b/x-pack/platform/plugins/shared/alerting/server/alerts_service/lib/data_stream_adapter.ts @@ -16,7 +16,7 @@ import { retryTransientEsErrors } from './retry_transient_es_errors'; export interface DataStreamAdapter { isUsingDataStreams(): boolean; - getIndexTemplateFields(alias: string, pattern: string): IndexTemplateFields; + getIndexTemplateFields(alias: string, patterns: string[]): IndexTemplateFields; createStream(opts: CreateConcreteWriteIndexOpts): Promise; } @@ -48,7 +48,7 @@ class DataStreamImplementation implements DataStreamAdapter { return true; } - getIndexTemplateFields(alias: string, pattern: string): IndexTemplateFields { + getIndexTemplateFields(alias: string, patterns: string[]): IndexTemplateFields { return { data_stream: { hidden: true }, index_patterns: [alias], @@ -66,9 +66,9 @@ class AliasImplementation implements DataStreamAdapter { return false; } - getIndexTemplateFields(alias: string, pattern: string): IndexTemplateFields { + getIndexTemplateFields(alias: string, patterns: string[]): IndexTemplateFields { return { - index_patterns: [pattern], + index_patterns: patterns, rollover_alias: alias, }; } @@ -134,10 +134,15 @@ async function createAliasStream(opts: CreateConcreteWriteIndexOpts): Promise esClient.indices.getAlias({ - index: indexPatterns.pattern, + index: patterns, name: indexPatterns.basePattern, }), { logger } @@ -151,7 +156,7 @@ async function createAliasStream(opts: CreateConcreteWriteIndexOpts): Promise `Found ${concreteIndices.length} concrete indices for ${ indexPatterns.name diff --git a/x-pack/platform/plugins/shared/alerting/server/alerts_service/resource_installer_utils.test.ts b/x-pack/platform/plugins/shared/alerting/server/alerts_service/resource_installer_utils.test.ts index 1672f1c32941f..590673c0d6c5b 100644 --- a/x-pack/platform/plugins/shared/alerting/server/alerts_service/resource_installer_utils.test.ts +++ b/x-pack/platform/plugins/shared/alerting/server/alerts_service/resource_installer_utils.test.ts @@ -36,14 +36,17 @@ describe('getIndexTemplateAndPattern', () => { expect(getIndexTemplateAndPattern({ context: 'test' })).toEqual({ template: '.alerts-test.alerts-default-index-template', pattern: '.internal.alerts-test.alerts-default-*', + reindexedPattern: '.reindexed-v8-internal.alerts-test.alerts-default-*', basePattern: '.alerts-test.alerts-*', alias: '.alerts-test.alerts-default', validPrefixes: [ '.ds-.alerts-', - '.internal.alerts-', '.alerts-', - '.internal.preview.alerts-', + '.internal.alerts-', + '.reindexed-v8-internal.alerts-', '.preview.alerts-', + '.internal.preview.alerts-', + '.reindexed-v8-internal.preview.alerts-', ], name: '.internal.alerts-test.alerts-default-000001', }); @@ -53,14 +56,17 @@ describe('getIndexTemplateAndPattern', () => { expect(getIndexTemplateAndPattern({ context: 'test', namespace: 'special' })).toEqual({ template: '.alerts-test.alerts-special-index-template', pattern: '.internal.alerts-test.alerts-special-*', + reindexedPattern: '.reindexed-v8-internal.alerts-test.alerts-special-*', basePattern: '.alerts-test.alerts-*', alias: '.alerts-test.alerts-special', validPrefixes: [ '.ds-.alerts-', - '.internal.alerts-', '.alerts-', - '.internal.preview.alerts-', + '.internal.alerts-', + '.reindexed-v8-internal.alerts-', '.preview.alerts-', + '.internal.preview.alerts-', + '.reindexed-v8-internal.preview.alerts-', ], name: '.internal.alerts-test.alerts-special-000001', }); @@ -76,15 +82,18 @@ describe('getIndexTemplateAndPattern', () => { ).toEqual({ template: '.alerts-test.alerts-special-index-template', pattern: '.internal.alerts-test.alerts-special-*', + reindexedPattern: '.reindexed-v8-internal.alerts-test.alerts-special-*', basePattern: '.alerts-test.alerts-*', alias: '.alerts-test.alerts-special', name: '.internal.alerts-test.alerts-special-000001', validPrefixes: [ '.ds-.alerts-', - '.internal.alerts-', '.alerts-', - '.internal.preview.alerts-', + '.internal.alerts-', + '.reindexed-v8-internal.alerts-', '.preview.alerts-', + '.internal.preview.alerts-', + '.reindexed-v8-internal.preview.alerts-', ], secondaryAlias: `siem.signals-special`, }); diff --git a/x-pack/platform/plugins/shared/alerting/server/alerts_service/resource_installer_utils.ts b/x-pack/platform/plugins/shared/alerting/server/alerts_service/resource_installer_utils.ts index d1c2c2c6e734e..fe510bd4df1de 100644 --- a/x-pack/platform/plugins/shared/alerting/server/alerts_service/resource_installer_utils.ts +++ b/x-pack/platform/plugins/shared/alerting/server/alerts_service/resource_installer_utils.ts @@ -13,12 +13,15 @@ interface GetComponentTemplateNameOpts { context?: string; name?: string; } + export const VALID_ALERT_INDEX_PREFIXES = [ '.ds-.alerts-', - '.internal.alerts-', '.alerts-', - '.internal.preview.alerts-', + '.internal.alerts-', + '.reindexed-v8-internal.alerts-', '.preview.alerts-', + '.internal.preview.alerts-', + '.reindexed-v8-internal.preview.alerts-', ]; export const getComponentTemplateName = ({ context, name }: GetComponentTemplateNameOpts = {}) => @@ -27,6 +30,7 @@ export const getComponentTemplateName = ({ context, name }: GetComponentTemplate export interface IIndexPatternString { template: string; pattern: string; + reindexedPattern?: string; alias: string; name: string; basePattern: string; @@ -51,6 +55,7 @@ export const getIndexTemplateAndPattern = ({ return { template: `.alerts-${patternWithNamespace}-index-template`, pattern: `.internal.alerts-${patternWithNamespace}-*`, + reindexedPattern: `.reindexed-v8-internal.alerts-${patternWithNamespace}-*`, basePattern: `.alerts-${pattern}-*`, name: `.internal.alerts-${patternWithNamespace}-000001`, alias: `.alerts-${patternWithNamespace}`, diff --git a/x-pack/platform/plugins/shared/alerting/server/application/r_rule/schemas/r_rule_request_schema.ts b/x-pack/platform/plugins/shared/alerting/server/application/r_rule/schemas/r_rule_request_schema.ts index 1868abc1703af..978d000b137ab 100644 --- a/x-pack/platform/plugins/shared/alerting/server/application/r_rule/schemas/r_rule_request_schema.ts +++ b/x-pack/platform/plugins/shared/alerting/server/application/r_rule/schemas/r_rule_request_schema.ts @@ -35,17 +35,28 @@ export const rRuleRequestSchema = schema.object({ }) ), byweekday: schema.maybe( - schema.arrayOf(schema.string(), { - validate: createValidateRecurrenceBy('byweekday'), - }) + schema.arrayOf( + schema.oneOf([ + schema.literal('MO'), + schema.literal('TU'), + schema.literal('WE'), + schema.literal('TH'), + schema.literal('FR'), + schema.literal('SA'), + schema.literal('SU'), + ]), + { + validate: createValidateRecurrenceBy('byweekday'), + } + ) ), bymonthday: schema.maybe( - schema.arrayOf(schema.number(), { + schema.arrayOf(schema.number({ min: 1, max: 31 }), { validate: createValidateRecurrenceBy('bymonthday'), }) ), bymonth: schema.maybe( - schema.arrayOf(schema.number(), { + schema.arrayOf(schema.number({ min: 1, max: 12 }), { validate: createValidateRecurrenceBy('bymonth'), }) ), diff --git a/x-pack/platform/plugins/shared/alerting/server/application/rule/methods/find/schemas/find_rules_schemas.ts b/x-pack/platform/plugins/shared/alerting/server/application/rule/methods/find/schemas/find_rules_schemas.ts index aec95d7f2c061..4ea4afa8b0c79 100644 --- a/x-pack/platform/plugins/shared/alerting/server/application/rule/methods/find/schemas/find_rules_schemas.ts +++ b/x-pack/platform/plugins/shared/alerting/server/application/rule/methods/find/schemas/find_rules_schemas.ts @@ -7,6 +7,11 @@ import { schema } from '@kbn/config-schema'; +const savedObjectReferenceSchema = schema.object({ + type: schema.string(), + id: schema.string(), +}); + export const findRulesOptionsSchema = schema.object( { perPage: schema.maybe(schema.number()), @@ -19,10 +24,7 @@ export const findRulesOptionsSchema = schema.object( sortField: schema.maybe(schema.string()), sortOrder: schema.maybe(schema.oneOf([schema.literal('asc'), schema.literal('desc')])), hasReference: schema.maybe( - schema.object({ - type: schema.string(), - id: schema.string(), - }) + schema.oneOf([savedObjectReferenceSchema, schema.arrayOf(savedObjectReferenceSchema)]) ), fields: schema.maybe(schema.arrayOf(schema.string())), filter: schema.maybe( diff --git a/x-pack/platform/plugins/shared/alerting/server/lib/snooze/is_snooze_active.test.ts b/x-pack/platform/plugins/shared/alerting/server/lib/snooze/is_snooze_active.test.ts index 9fdce331a7da9..da3915facc460 100644 --- a/x-pack/platform/plugins/shared/alerting/server/lib/snooze/is_snooze_active.test.ts +++ b/x-pack/platform/plugins/shared/alerting/server/lib/snooze/is_snooze_active.test.ts @@ -230,4 +230,25 @@ describe('isSnoozeActive', () => { expect(isSnoozeActive(snoozeA)).toMatchInlineSnapshot(`null`); fakeTimer.restore(); }); + + test('snooze still works with invalid bymonth value', () => { + // Set the current time as: + // - Feb 27 2023 08:15:00 GMT+0000 - Monday + fakeTimer = sinon.useFakeTimers(new Date('2023-02-09T08:15:00.000Z')); + + const snoozeA = { + duration: moment('2023-01', 'YYYY-MM').daysInMonth() * 24 * 60 * 60 * 1000, // 1 month + rRule: { + freq: Frequency.YEARLY, + interval: 1, + bymonthday: [1], + bymonth: [0], + tzid: 'Europe/Madrid', + dtstart: '2023-01-01T00:00:00.000Z', + } as RRuleRecord, + id: '9141dc1f-ed85-4656-91e4-119173105432', + }; + expect(isSnoozeActive(snoozeA)).toMatchInlineSnapshot(`null`); + fakeTimer.restore(); + }); }); diff --git a/x-pack/platform/plugins/shared/alerting/server/saved_objects/model_versions/ad_hoc_run_params_model_versions.ts b/x-pack/platform/plugins/shared/alerting/server/saved_objects/model_versions/ad_hoc_run_params_model_versions.ts index 95f544be5c8e2..91a8418a42a37 100644 --- a/x-pack/platform/plugins/shared/alerting/server/saved_objects/model_versions/ad_hoc_run_params_model_versions.ts +++ b/x-pack/platform/plugins/shared/alerting/server/saved_objects/model_versions/ad_hoc_run_params_model_versions.ts @@ -6,7 +6,10 @@ */ import { SavedObjectsModelVersionMap } from '@kbn/core-saved-objects-server'; -import { rawAdHocRunParamsSchemaV1 } from '../schemas/raw_ad_hoc_run_params'; +import { + rawAdHocRunParamsSchemaV1, + rawAdHocRunParamsSchemaV2, +} from '../schemas/raw_ad_hoc_run_params'; export const adHocRunParamsModelVersions: SavedObjectsModelVersionMap = { '1': { @@ -16,4 +19,11 @@ export const adHocRunParamsModelVersions: SavedObjectsModelVersionMap = { create: rawAdHocRunParamsSchemaV1, }, }, + '2': { + changes: [], + schemas: { + forwardCompatibility: rawAdHocRunParamsSchemaV2.extends({}, { unknowns: 'ignore' }), + create: rawAdHocRunParamsSchemaV2, + }, + }, }; diff --git a/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/index.ts b/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/index.ts index 977a13f3a7e4b..17907c6405830 100644 --- a/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/index.ts +++ b/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/index.ts @@ -6,3 +6,4 @@ */ export { rawAdHocRunParamsSchema as rawAdHocRunParamsSchemaV1 } from './v1'; +export { rawAdHocRunParamsSchema as rawAdHocRunParamsSchemaV2 } from './v2'; diff --git a/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/latest.ts b/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/latest.ts new file mode 100644 index 0000000000000..03c55b706231d --- /dev/null +++ b/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/latest.ts @@ -0,0 +1,11 @@ +/* + * 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. + */ + +import { TypeOf } from '@kbn/config-schema'; +import { rawAdHocRunParamsSchema } from './v2'; + +export type RawAdHocRunParams = TypeOf; diff --git a/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/v1.ts b/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/v1.ts index 8676c2c606912..5970599492422 100644 --- a/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/v1.ts +++ b/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/v1.ts @@ -21,7 +21,7 @@ const rawAdHocRunSchedule = schema.object({ runAt: schema.string(), }); -const rawAdHocRunParamsRuleSchema = schema.object({ +export const rawAdHocRunParamsRuleSchema = schema.object({ name: schema.string(), tags: schema.arrayOf(schema.string()), alertTypeId: schema.string(), diff --git a/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/v2.ts b/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/v2.ts new file mode 100644 index 0000000000000..f8505d1f5f4ba --- /dev/null +++ b/x-pack/platform/plugins/shared/alerting/server/saved_objects/schemas/raw_ad_hoc_run_params/v2.ts @@ -0,0 +1,99 @@ +/* + * 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. + */ + +import { schema } from '@kbn/config-schema'; +import { FilterStateStore } from '@kbn/es-query'; +import { + rawAdHocRunParamsSchema as rawAdHocRunParamsSchemaV1, + rawAdHocRunParamsRuleSchema as rawAdHocRunParamsRuleSchemaV1, +} from './v1'; + +const ISOWeekdaysSchema = schema.oneOf([ + schema.literal(1), + schema.literal(2), + schema.literal(3), + schema.literal(4), + schema.literal(5), + schema.literal(6), + schema.literal(7), +]); + +const rawRuleAlertsFilterSchema = schema.object({ + query: schema.maybe( + schema.object({ + kql: schema.string(), + filters: schema.arrayOf( + schema.object({ + query: schema.maybe(schema.recordOf(schema.string(), schema.any())), + meta: schema.object({ + alias: schema.maybe(schema.nullable(schema.string())), + disabled: schema.maybe(schema.boolean()), + negate: schema.maybe(schema.boolean()), + controlledBy: schema.maybe(schema.string()), + group: schema.maybe(schema.string()), + index: schema.maybe(schema.string()), + isMultiIndex: schema.maybe(schema.boolean()), + type: schema.maybe(schema.string()), + key: schema.maybe(schema.string()), + params: schema.maybe(schema.any()), + value: schema.maybe(schema.string()), + field: schema.maybe(schema.string()), + relation: schema.maybe(schema.oneOf([schema.literal('OR'), schema.literal('AND')])), + }), + $state: schema.maybe( + schema.object({ + store: schema.oneOf([ + schema.literal(FilterStateStore.APP_STATE), // change + schema.literal(FilterStateStore.GLOBAL_STATE), // change + ]), + }) + ), + }) + ), + dsl: schema.string(), // change + }) + ), + timeframe: schema.maybe( + schema.object({ + days: schema.arrayOf(ISOWeekdaysSchema), + hours: schema.object({ + start: schema.string(), + end: schema.string(), + }), + timezone: schema.string(), + }) + ), +}); + +const rawAdHocRunParamsRuleActionSchema = schema.object({ + uuid: schema.string(), + group: schema.maybe(schema.string()), + actionRef: schema.string(), + actionTypeId: schema.string(), + params: schema.recordOf(schema.string(), schema.any()), + frequency: schema.maybe( + schema.object({ + summary: schema.boolean(), + notifyWhen: schema.oneOf([ + schema.literal('onActionGroupChange'), + schema.literal('onActiveAlert'), + schema.literal('onThrottleInterval'), + ]), + throttle: schema.nullable(schema.string()), + }) + ), + alertsFilter: schema.maybe(rawRuleAlertsFilterSchema), + useAlertDataForTemplate: schema.maybe(schema.boolean()), +}); + +const rawAdHocRunParamsRuleSchema = rawAdHocRunParamsRuleSchemaV1.extends({ + actions: schema.maybe(schema.arrayOf(rawAdHocRunParamsRuleActionSchema)), +}); + +export const rawAdHocRunParamsSchema = rawAdHocRunParamsSchemaV1.extends({ + rule: rawAdHocRunParamsRuleSchema, +}); diff --git a/x-pack/platform/plugins/shared/cases/public/components/actions/status/use_should_disable_status.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/actions/status/use_should_disable_status.test.tsx index 37957c9fe1f8e..f8360e64a533b 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/actions/status/use_should_disable_status.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/actions/status/use_should_disable_status.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { CaseStatuses } from '../../../../common/types/domain'; import { useUserPermissions } from '../../user_actions/use_user_permissions'; import { useShouldDisableStatus } from './use_should_disable_status'; diff --git a/x-pack/platform/plugins/shared/cases/public/components/case_view/use_case_observables.test.ts b/x-pack/platform/plugins/shared/cases/public/components/case_view/use_case_observables.test.ts index 183619786deea..8598660670bb7 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/case_view/use_case_observables.test.ts +++ b/x-pack/platform/plugins/shared/cases/public/components/case_view/use_case_observables.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useCaseObservables } from './use_case_observables'; import { useGetCaseConfiguration } from '../../containers/configure/use_get_case_configuration'; import { OBSERVABLE_TYPES_BUILTIN_KEYS } from '../../../common/constants'; diff --git a/x-pack/platform/plugins/shared/cases/public/components/user_actions/use_user_permissions.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/user_actions/use_user_permissions.test.tsx index e7c712b0df590..bb4c2eed838d2 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/user_actions/use_user_permissions.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/user_actions/use_user_permissions.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useCasesContext } from '../cases_context/use_cases_context'; import { useUserPermissions } from './use_user_permissions'; import type { UserActivityParams } from '../user_actions_activity_bar/types'; diff --git a/x-pack/platform/plugins/shared/cases/public/containers/use_delete_observables.test.tsx b/x-pack/platform/plugins/shared/cases/public/containers/use_delete_observables.test.tsx index adf0921820e72..ee241a1cce4ed 100644 --- a/x-pack/platform/plugins/shared/cases/public/containers/use_delete_observables.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/containers/use_delete_observables.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook, act } from '@testing-library/react-hooks'; +import { renderHook, act, waitFor } from '@testing-library/react'; import { useDeleteObservable } from './use_delete_observables'; import { deleteObservable } from './api'; import { useCasesToast } from '../common/use_cases_toast'; @@ -35,7 +35,7 @@ describe('useDeleteObservable', () => { it('should call deleteObservable and show success toast on success', async () => { (deleteObservable as jest.Mock).mockResolvedValue({}); - const { result, waitFor } = renderHook(() => useDeleteObservable(caseId, observableId), { + const { result } = renderHook(() => useDeleteObservable(caseId, observableId), { wrapper: appMockRender.AppWrapper, }); @@ -52,7 +52,7 @@ describe('useDeleteObservable', () => { const error = new Error('Failed to delete observable'); (deleteObservable as jest.Mock).mockRejectedValue(error); - const { result, waitFor } = renderHook(() => useDeleteObservable(caseId, observableId), { + const { result } = renderHook(() => useDeleteObservable(caseId, observableId), { wrapper: appMockRender.AppWrapper, }); diff --git a/x-pack/platform/plugins/shared/cases/public/containers/use_get_similar_cases.test.tsx b/x-pack/platform/plugins/shared/cases/public/containers/use_get_similar_cases.test.tsx index 25bcadec2e7af..c934d691b5aa9 100644 --- a/x-pack/platform/plugins/shared/cases/public/containers/use_get_similar_cases.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/containers/use_get_similar_cases.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook, waitFor } from '@testing-library/react'; import * as api from './api'; import type { AppMockRenderer } from '../common/mock'; import { createAppMockRenderer } from '../common/mock'; @@ -30,12 +30,9 @@ describe('useGetSimilarCases', () => { it('calls getSimilarCases with correct arguments', async () => { const spyOnGetCases = jest.spyOn(api, 'getSimilarCases'); - const { waitFor } = renderHook( - () => useGetSimilarCases({ caseId: mockCase.id, perPage: 10, page: 0 }), - { - wrapper: appMockRender.AppWrapper, - } - ); + renderHook(() => useGetSimilarCases({ caseId: mockCase.id, perPage: 10, page: 0 }), { + wrapper: appMockRender.AppWrapper, + }); await waitFor(() => { expect(spyOnGetCases).toBeCalled(); @@ -58,12 +55,9 @@ describe('useGetSimilarCases', () => { const addError = jest.fn(); (useToasts as jest.Mock).mockReturnValue({ addSuccess, addError }); - const { waitFor } = renderHook( - () => useGetSimilarCases({ caseId: mockCase.id, perPage: 10, page: 0 }), - { - wrapper: appMockRender.AppWrapper, - } - ); + renderHook(() => useGetSimilarCases({ caseId: mockCase.id, perPage: 10, page: 0 }), { + wrapper: appMockRender.AppWrapper, + }); await waitFor(() => { expect(addError).toHaveBeenCalled(); diff --git a/x-pack/platform/plugins/shared/cases/public/containers/use_patch_observables.test.tsx b/x-pack/platform/plugins/shared/cases/public/containers/use_patch_observables.test.tsx index 98f1d50e77658..bcf3f88bf3914 100644 --- a/x-pack/platform/plugins/shared/cases/public/containers/use_patch_observables.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/containers/use_patch_observables.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook, act } from '@testing-library/react-hooks'; +import { renderHook, act, waitFor } from '@testing-library/react'; import { usePatchObservable } from './use_patch_observables'; import { patchObservable } from './api'; import { useCasesToast } from '../common/use_cases_toast'; @@ -41,7 +41,7 @@ describe('usePatchObservable', () => { it('should call patchObservable and show success toast on success', async () => { (patchObservable as jest.Mock).mockResolvedValue({}); - const { result, waitFor } = renderHook(() => usePatchObservable(caseId, observableId), { + const { result } = renderHook(() => usePatchObservable(caseId, observableId), { wrapper: appMockRender.AppWrapper, }); @@ -60,7 +60,7 @@ describe('usePatchObservable', () => { const error = new Error('Failed to patch observable'); (patchObservable as jest.Mock).mockRejectedValue(error); - const { result, waitFor } = renderHook(() => usePatchObservable(caseId, observableId), { + const { result } = renderHook(() => usePatchObservable(caseId, observableId), { wrapper: appMockRender.AppWrapper, }); diff --git a/x-pack/platform/plugins/shared/cases/public/containers/use_post_observables.test.tsx b/x-pack/platform/plugins/shared/cases/public/containers/use_post_observables.test.tsx index 177b18d6b36de..1bd78f16d6dd6 100644 --- a/x-pack/platform/plugins/shared/cases/public/containers/use_post_observables.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/containers/use_post_observables.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook, act } from '@testing-library/react-hooks'; +import { renderHook, act, waitFor } from '@testing-library/react'; import * as api from './api'; import { useToasts } from '../common/lib/kibana'; import type { AppMockRenderer } from '../common/mock'; @@ -41,7 +41,7 @@ describe('usePostObservables', () => { it('calls the api when invoked with the correct parameters', async () => { const spy = jest.spyOn(api, 'postObservable'); - const { waitForNextUpdate, result } = renderHook(() => usePostObservable(mockCase.id), { + const { result } = renderHook(() => usePostObservable(mockCase.id), { wrapper: appMockRender.AppWrapper, }); @@ -49,14 +49,14 @@ describe('usePostObservables', () => { result.current.mutate(observableMock); }); - await waitForNextUpdate(); - - expect(spy).toHaveBeenCalledWith({ observable: observableMock.observable }, mockCase.id); + await waitFor(() => + expect(spy).toHaveBeenCalledWith({ observable: observableMock.observable }, mockCase.id) + ); }); it('invalidates the queries correctly', async () => { const queryClientSpy = jest.spyOn(appMockRender.queryClient, 'invalidateQueries'); - const { waitForNextUpdate, result } = renderHook(() => usePostObservable(mockCase.id), { + const { result } = renderHook(() => usePostObservable(mockCase.id), { wrapper: appMockRender.AppWrapper, }); @@ -64,13 +64,11 @@ describe('usePostObservables', () => { result.current.mutate(observableMock); }); - await waitForNextUpdate(); - - expect(queryClientSpy).toHaveBeenCalledWith(casesQueriesKeys.caseView()); + await waitFor(() => expect(queryClientSpy).toHaveBeenCalledWith(casesQueriesKeys.caseView())); }); it('does shows a success toaster', async () => { - const { waitForNextUpdate, result } = renderHook(() => usePostObservable(mockCase.id), { + const { result } = renderHook(() => usePostObservable(mockCase.id), { wrapper: appMockRender.AppWrapper, }); @@ -78,9 +76,7 @@ describe('usePostObservables', () => { result.current.mutate(observableMock); }); - await waitForNextUpdate(); - - expect(addSuccess).toHaveBeenCalled(); + await waitFor(() => expect(addSuccess).toHaveBeenCalled()); }); it('shows a toast error when the api return an error', async () => { @@ -88,7 +84,7 @@ describe('usePostObservables', () => { .spyOn(api, 'postObservable') .mockRejectedValue(new Error('usePostObservables: Test error')); - const { waitForNextUpdate, result } = renderHook(() => usePostObservable(mockCase.id), { + const { result } = renderHook(() => usePostObservable(mockCase.id), { wrapper: appMockRender.AppWrapper, }); @@ -96,8 +92,6 @@ describe('usePostObservables', () => { result.current.mutate(observableMock); }); - await waitForNextUpdate(); - - expect(addError).toHaveBeenCalled(); + await waitFor(() => expect(addError).toHaveBeenCalled()); }); }); diff --git a/x-pack/platform/plugins/shared/dataset_quality/server/plugin.ts b/x-pack/platform/plugins/shared/dataset_quality/server/plugin.ts index 86f89d3c0d146..209be46cba29c 100644 --- a/x-pack/platform/plugins/shared/dataset_quality/server/plugin.ts +++ b/x-pack/platform/plugins/shared/dataset_quality/server/plugin.ts @@ -12,12 +12,21 @@ import { getDatasetQualityServerRouteRepository } from './routes'; import { registerRoutes } from './routes/register_routes'; import { DatasetQualityRouteHandlerResources } from './routes/types'; import { + DatasetQualityPluginSetup, DatasetQualityPluginSetupDependencies, DatasetQualityPluginStart, DatasetQualityPluginStartDependencies, } from './types'; -export class DatasetQualityServerPlugin implements Plugin { +export class DatasetQualityServerPlugin + implements + Plugin< + DatasetQualityPluginSetup, + DatasetQualityPluginStart, + DatasetQualityPluginSetupDependencies, + DatasetQualityPluginStartDependencies + > +{ private readonly logger: Logger; private readonly dataTelemetryService: DataTelemetryService; diff --git a/x-pack/platform/plugins/shared/fleet/common/types/models/agent.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/agent.ts index 33d22c32acdde..ba1872bc4478f 100644 --- a/x-pack/platform/plugins/shared/fleet/common/types/models/agent.ts +++ b/x-pack/platform/plugins/shared/fleet/common/types/models/agent.ts @@ -92,6 +92,7 @@ interface AgentBase { enrolled_at: string; unenrolled_at?: string; unenrollment_started_at?: string; + audit_unenrolled_reason?: string; upgraded_at?: string | null; upgrade_started_at?: string | null; upgrade_details?: AgentUpgradeDetails; @@ -255,6 +256,10 @@ export interface FleetServerAgent { /** * Date/time the Elastic Agent was last upgraded */ + audit_unenrolled_reason?: string; + /** + * Reason for agent unenrollment + */ upgraded_at?: string | null; /** * Date/time the Elastic Agent started the current upgrade diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/overview.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/overview.tsx index 83cde5745071a..f0a75cff90cd4 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/overview.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/overview.tsx @@ -22,7 +22,7 @@ import { FormattedMessage } from '@kbn/i18n-react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { AVCResultsBanner2024, useIsStillYear2024 } from '@kbn/avc-banner'; +import { AVCResultsBanner, useIsStillYear2025 } from '@kbn/avc-banner'; import { isIntegrationPolicyTemplate, @@ -336,9 +336,9 @@ export const OverviewPage: React.FC = memo( {isUnverified && } - {useIsStillYear2024() && isElasticDefend && showAVCBanner && ( + {useIsStillYear2025() && isElasticDefend && showAVCBanner && ( <> - + )} diff --git a/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_permissions.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_permissions.ts index 914cde14e1797..f1d8bfab82510 100644 --- a/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_permissions.ts +++ b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_permissions.ts @@ -52,6 +52,16 @@ export const ELASTIC_CONNECTORS_INDEX_PERMISSIONS = [ 'view_index_metadata', ]; +export const AGENTLESS_INDEX_PERMISSIONS = [ + 'read', + 'write', + 'monitor', + 'create_index', + 'auto_configure', + 'maintenance', + 'view_index_metadata', +]; + export function storedPackagePoliciesToAgentPermissions( packageInfoCache: Map, agentPolicyNamespace: string, @@ -173,13 +183,10 @@ export function storedPackagePoliciesToAgentPermissions( } // namespace is either the package policy's or the agent policy one const namespace = packagePolicy?.namespace || agentPolicyNamespace; - return [ - packagePolicy.id, - { - indices: dataStreamsForPermissions.map((ds) => getDataStreamPrivileges(ds, namespace)), - ...clusterRoleDescriptor, - }, - ]; + return maybeAddAgentlessPermissions(packagePolicy, { + indices: dataStreamsForPermissions.map((ds) => getDataStreamPrivileges(ds, namespace)), + ...clusterRoleDescriptor, + }); }); return Object.fromEntries(permissionEntries); @@ -244,6 +251,20 @@ function universalProfilingPermissions(packagePolicyId: string): [string, Securi ]; } +function maybeAddAgentlessPermissions( + packagePolicy: PackagePolicy, + existing: SecurityRoleDescriptor +): [string, SecurityRoleDescriptor] { + if (!packagePolicy.supports_agentless) { + return [packagePolicy.id, existing]; + } + existing.indices!.push({ + names: ['agentless-*'], + privileges: AGENTLESS_INDEX_PERMISSIONS, + }); + return [packagePolicy.id, existing]; +} + function apmPermissions(packagePolicyId: string): [string, SecurityRoleDescriptor] { return [ packagePolicyId, diff --git a/x-pack/platform/plugins/shared/fleet/server/services/agents/crud.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/crud.ts index bc3a9cb6028ff..bdc90ead11143 100644 --- a/x-pack/platform/plugins/shared/fleet/server/services/agents/crud.ts +++ b/x-pack/platform/plugins/shared/fleet/server/services/agents/crud.ts @@ -112,7 +112,6 @@ export async function getAgents( } else { throw new FleetError('Either options.agentIds or options.kuery are required to get agents'); } - return agents; } @@ -490,7 +489,6 @@ async function _filterAgents( appContextService.getLogger().error(`Error querying agents: ${JSON.stringify(err)}`); throw err; } - const agents = res.hits.hits.map(searchHitToAgent); const total = res.hits.total as number; diff --git a/x-pack/platform/plugins/shared/fleet/server/services/agents/helpers.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/helpers.ts index d6af80c747789..8dc8e64781a65 100644 --- a/x-pack/platform/plugins/shared/fleet/server/services/agents/helpers.ts +++ b/x-pack/platform/plugins/shared/fleet/server/services/agents/helpers.ts @@ -65,6 +65,7 @@ export function searchHitToAgent( enrolled_at: hit._source?.enrolled_at!, unenrolled_at: hit._source?.unenrolled_at!, unenrollment_started_at: hit._source?.unenrollment_started_at, + audit_unenrolled_reason: hit._source?.audit_unenrolled_reason!, upgraded_at: hit._source?.upgraded_at, upgrade_started_at: hit._source?.upgrade_started_at, upgrade_details: hit._source?.upgrade_details, @@ -106,7 +107,6 @@ export function searchHitToAgent( } else { agent.status = hit.fields.status[0]; } - return agent; } diff --git a/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/parse.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/parse.ts index 136bceb9355aa..28c700bd53c4d 100644 --- a/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/parse.ts +++ b/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/parse.ts @@ -125,6 +125,7 @@ const optionalArchivePackageProps: readonly OptionalPackageProp[] = [ 'screenshots', 'icons', 'policy_templates', + 'policy_templates_behavior', 'release', 'agent', 'elasticsearch', diff --git a/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent.ts index 64d3f79b2e9e6..981bcc7e18959 100644 --- a/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent.ts +++ b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent.ts @@ -135,6 +135,7 @@ export const AgentResponseSchema = schema.object({ enrolled_at: schema.string(), unenrolled_at: schema.maybe(schema.string()), unenrollment_started_at: schema.maybe(schema.string()), + audit_unenrolled_reason: schema.maybe(schema.string()), upgraded_at: schema.maybe(schema.oneOf([schema.literal(null), schema.string()])), upgrade_started_at: schema.maybe(schema.oneOf([schema.literal(null), schema.string()])), upgrade_details: schema.maybe( diff --git a/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/helpers/test_subjects.ts b/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/helpers/test_subjects.ts index b623d2e754b61..bfb59bcab973d 100644 --- a/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/helpers/test_subjects.ts +++ b/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/helpers/test_subjects.ts @@ -60,7 +60,6 @@ export type TestSubjects = | 'templatesTab' | 'templateTable' | 'title' - | 'unfreezeIndexMenuButton' | 'updateEditIndexSettingsButton' | 'updateIndexSettingsErrorCallout' | 'viewButton' diff --git a/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/home/indices_tab.test.tsx b/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/home/indices_tab.test.tsx index a8256a2e00b27..5bc5a4e6282f6 100644 --- a/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/home/indices_tab.test.tsx +++ b/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/home/indices_tab.test.tsx @@ -336,38 +336,6 @@ describe('', () => { ); }); - test('should be able to unfreeze a frozen index', async () => { - const { actions, exists, find } = testBed; - - httpRequestsMockHelpers.setReloadIndicesResponse([{ ...indexMockA, isFrozen: false }]); - - // Open context menu - await actions.clickManageContextMenuButton(); - // Check that the unfreeze action exists for the current index and unfreeze it - expect(exists('unfreezeIndexMenuButton')).toBe(true); - await actions.clickContextMenuOption('unfreezeIndexMenuButton'); - - // After the index is unfrozen, we imediately do a reload. So we need to expect to see - // a reload server call also. - expect(httpSetup.post).toHaveBeenCalledWith( - `${API_BASE_PATH}/indices/unfreeze`, - expect.anything() - ); - expect(httpSetup.post).toHaveBeenCalledWith( - `${API_BASE_PATH}/indices/reload`, - expect.anything() - ); - - find('indexTableRowCheckbox') - .at(0) - .simulate('change', { target: { checked: true } }); - - // Open context menu once again, since clicking an action will close it. - await actions.clickManageContextMenuButton(); - // The unfreeze action should not be present anymore - expect(exists('unfreezeIndexMenuButton')).toBe(false); - }); - test('should be able to force merge an index', async () => { const { actions, exists } = testBed; diff --git a/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/index_details_page/index_details_page.test.tsx b/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/index_details_page/index_details_page.test.tsx index 4badcc04540b1..1c252fa96fffc 100644 --- a/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/index_details_page/index_details_page.test.tsx +++ b/x-pack/platform/plugins/shared/index_management/__jest__/client_integration/index_details_page/index_details_page.test.tsx @@ -1203,29 +1203,6 @@ describe('', () => { expect(testBed.routerMock.history.push).toHaveBeenCalledTimes(1); expect(testBed.routerMock.history.push).toHaveBeenCalledWith('/indices'); }); - - it(`unfreezes a frozen index`, async () => { - httpRequestsMockHelpers.setLoadIndexDetailsResponse(testIndexName, { - ...testIndexMock, - isFrozen: true, - }); - - await act(async () => { - testBed = await setup({ httpSetup }); - }); - testBed.component.update(); - - // already sent 6 requests while setting up the component - const numberOfRequests = 6; - expect(httpSetup.get).toHaveBeenCalledTimes(numberOfRequests); - - await testBed.actions.contextMenu.clickManageIndexButton(); - await testBed.actions.contextMenu.clickIndexAction('unfreezeIndexMenuButton'); - expect(httpSetup.post).toHaveBeenCalledWith(`${API_BASE_PATH}/indices/unfreeze`, { - body: JSON.stringify({ indices: [testIndexName] }), - }); - expect(httpSetup.get).toHaveBeenCalledTimes(numberOfRequests + 1); - }); }); describe('index name with a percent sign', () => { diff --git a/x-pack/platform/plugins/shared/index_management/__jest__/components/index_table.test.js b/x-pack/platform/plugins/shared/index_management/__jest__/components/index_table.test.js index 0a59fef7be6e6..2e0040eff87b1 100644 --- a/x-pack/platform/plugins/shared/index_management/__jest__/components/index_table.test.js +++ b/x-pack/platform/plugins/shared/index_management/__jest__/components/index_table.test.js @@ -492,7 +492,6 @@ describe('index table', () => { expect(findTestSubject(rendered, 'refreshIndexMenuButton').length).toBe(0); expect(findTestSubject(rendered, 'clearCacheIndexMenuButton').length).toBe(0); expect(findTestSubject(rendered, 'flushIndexMenuButton').length).toBe(0); - expect(findTestSubject(rendered, 'unfreezeIndexMenuButton').length).toBe(0); }); }); }); diff --git a/x-pack/platform/plugins/shared/index_management/common/constants/index.ts b/x-pack/platform/plugins/shared/index_management/common/constants/index.ts index 81e50fa8b75be..42a65429363de 100644 --- a/x-pack/platform/plugins/shared/index_management/common/constants/index.ts +++ b/x-pack/platform/plugins/shared/index_management/common/constants/index.ts @@ -36,8 +36,6 @@ export { UIM_INDEX_OPEN_MANY, UIM_INDEX_REFRESH, UIM_INDEX_REFRESH_MANY, - UIM_INDEX_UNFREEZE, - UIM_INDEX_UNFREEZE_MANY, UIM_INDEX_SETTINGS_EDIT, UIM_TEMPLATE_LIST_LOAD, UIM_TEMPLATE_DELETE, diff --git a/x-pack/platform/plugins/shared/index_management/common/constants/ui_metric.ts b/x-pack/platform/plugins/shared/index_management/common/constants/ui_metric.ts index 26a8a5e65c739..5914b85c7e86f 100644 --- a/x-pack/platform/plugins/shared/index_management/common/constants/ui_metric.ts +++ b/x-pack/platform/plugins/shared/index_management/common/constants/ui_metric.ts @@ -24,8 +24,6 @@ export const UIM_INDEX_OPEN_MANY = 'index_open_many'; export const UIM_INDEX_REFRESH = 'index_refresh'; export const UIM_INDEX_REFRESH_MANY = 'index_refresh_many'; export const UIM_INDEX_SETTINGS_EDIT = 'index_settings_edit'; -export const UIM_INDEX_UNFREEZE = 'index_unfreeze'; -export const UIM_INDEX_UNFREEZE_MANY = 'index_unfreeze_many'; export const UIM_TEMPLATE_LIST_LOAD = 'template_list_load'; export const UIM_TEMPLATE_DELETE = 'template_delete'; export const UIM_TEMPLATE_DELETE_MANY = 'template_delete_many'; diff --git a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/details_page/manage_index_button.tsx b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/details_page/manage_index_button.tsx index 7de07493ef78e..aedd0315c5aa0 100644 --- a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/details_page/manage_index_button.tsx +++ b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/details_page/manage_index_button.tsx @@ -18,7 +18,6 @@ import { forcemergeIndices as forcemergeIndicesRequest, openIndices as openIndicesRequest, refreshIndices as refreshIndicesRequest, - unfreezeIndices as unfreezeIndicesRequest, } from '../../../../services'; import { notificationService } from '../../../../services/notification'; import { httpService } from '../../../../services/http'; @@ -162,24 +161,6 @@ export const ManageIndexButton: FunctionComponent = ({ } }, [reloadIndices, indexNames]); - const unfreezeIndices = useCallback(async () => { - setIsLoading(true); - try { - await unfreezeIndicesRequest(indexNames); - await reloadIndices(); - setIsLoading(false); - notificationService.showSuccessToast( - i18n.translate('xpack.idxMgmt.unfreezeIndicesAction.indexUnfrozenMessage', { - defaultMessage: 'The index {indexNames} was unfrozen.', - values: { indexNames: indexNames.join(', ') }, - }) - ); - } catch (error) { - setIsLoading(false); - notificationService.showDangerToast(error.body.message); - } - }, [reloadIndices, indexNames]); - const forcemergeIndices = useCallback( async (maxNumSegments: string) => { setIsLoading(true); @@ -251,7 +232,6 @@ export const ManageIndexButton: FunctionComponent = ({ flushIndices={flushIndices} refreshIndices={refreshIndices} clearCacheIndices={clearCacheIndices} - unfreezeIndices={unfreezeIndices} forcemergeIndices={forcemergeIndices} deleteIndices={deleteIndices} performExtensionAction={performExtensionAction} diff --git a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.container.js b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.container.js index 4b41c5929d7a0..8630788bd60d7 100644 --- a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.container.js +++ b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.container.js @@ -17,7 +17,6 @@ import { refreshIndices, performExtensionAction, reloadIndices, - unfreezeIndices, } from '../../../../store/actions'; import { getIndexStatusByIndexName, getIndicesByName } from '../../../../store/selectors'; @@ -53,9 +52,6 @@ const mapDispatchToProps = (dispatch, { indexNames }) => { refreshIndices: () => { dispatch(refreshIndices({ indexNames })); }, - unfreezeIndices: () => { - dispatch(unfreezeIndices({ indexNames })); - }, forcemergeIndices: (maxNumSegments) => { dispatch(forcemergeIndices({ indexNames, maxNumSegments })); }, diff --git a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.d.ts b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.d.ts index eeff487e22f3a..fd84d2fca4c7f 100644 --- a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.d.ts +++ b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.d.ts @@ -33,7 +33,6 @@ export interface IndexActionsContextMenuProps { flushIndices: () => Promise; refreshIndices: () => Promise; clearCacheIndices: () => Promise; - unfreezeIndices: () => Promise; forcemergeIndices: (maxNumSegments: string) => Promise; deleteIndices: () => Promise; diff --git a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js index d733fdfd2f6e6..21f77ae11337d 100644 --- a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js +++ b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js @@ -67,13 +67,12 @@ export class IndexActionsContextMenu extends Component { performExtensionAction, indices, reloadIndices, - unfreezeIndices, indicesListURLParams, } = this.props; const allOpen = every(indexNames, (indexName) => { return indexStatusByName[indexName] === INDEX_OPEN; }); - const allFrozen = every(indices, (index) => index.isFrozen); + const selectedIndexCount = indexNames.length; const items = []; if (isOnListView && selectedIndexCount === 1) { @@ -191,18 +190,6 @@ export class IndexActionsContextMenu extends Component { this.closePopoverAndExecute(flushIndices); }, }); - if (allFrozen) { - items.push({ - 'data-test-subj': 'unfreezeIndexMenuButton', - name: i18n.translate('xpack.idxMgmt.indexActionsMenu.unfreezeIndexLabel', { - defaultMessage: 'Unfreeze {selectedIndexCount, plural, one {index} other {indices} }', - values: { selectedIndexCount }, - }), - onClick: () => { - this.closePopoverAndExecute(unfreezeIndices); - }, - }); - } } else if (!allOpen && enableIndexActions) { items.push({ 'data-test-subj': 'openIndexMenuButton', diff --git a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/template_list/template_details/tabs/tab_summary.tsx b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/template_list/template_details/tabs/tab_summary.tsx index 6958a32845fe6..a6fbe93642813 100644 --- a/x-pack/platform/plugins/shared/index_management/public/application/sections/home/template_list/template_details/tabs/tab_summary.tsx +++ b/x-pack/platform/plugins/shared/index_management/public/application/sections/home/template_list/template_details/tabs/tab_summary.tsx @@ -234,7 +234,7 @@ export const TabSummary: React.FunctionComponent = ({ templateDetails }) defaultMessage="Index mode" /> - + {indexModeLabels[indexMode]} diff --git a/x-pack/platform/plugins/shared/index_management/public/application/services/api.ts b/x-pack/platform/plugins/shared/index_management/public/application/services/api.ts index f2600220612e7..78f8942ba72fa 100644 --- a/x-pack/platform/plugins/shared/index_management/public/application/services/api.ts +++ b/x-pack/platform/plugins/shared/index_management/public/application/services/api.ts @@ -28,8 +28,6 @@ import { UIM_INDEX_OPEN_MANY, UIM_INDEX_REFRESH, UIM_INDEX_REFRESH_MANY, - UIM_INDEX_UNFREEZE, - UIM_INDEX_UNFREEZE_MANY, UIM_TEMPLATE_DELETE, UIM_TEMPLATE_DELETE_MANY, UIM_TEMPLATE_CREATE, @@ -214,17 +212,6 @@ export async function clearCacheIndices(indices: string[]) { return response; } -export async function unfreezeIndices(indices: string[]) { - const body = JSON.stringify({ - indices, - }); - const response = await httpService.httpClient.post(`${API_BASE_PATH}/indices/unfreeze`, { body }); - // Only track successful requests. - const eventName = indices.length > 1 ? UIM_INDEX_UNFREEZE_MANY : UIM_INDEX_UNFREEZE; - uiMetricService.trackMetric(METRIC_TYPE.COUNT, eventName); - return response; -} - export async function loadIndexSettings(indexName: string) { const response = await httpService.httpClient.get( `${API_BASE_PATH}/settings/${encodeURIComponent(indexName)}` diff --git a/x-pack/platform/plugins/shared/index_management/public/application/services/index.ts b/x-pack/platform/plugins/shared/index_management/public/application/services/index.ts index 5c34d83186c6a..09d9065b2b729 100644 --- a/x-pack/platform/plugins/shared/index_management/public/application/services/index.ts +++ b/x-pack/platform/plugins/shared/index_management/public/application/services/index.ts @@ -15,7 +15,6 @@ export { flushIndices, forcemergeIndices, clearCacheIndices, - unfreezeIndices, loadIndexSettings, updateIndexSettings, loadIndexStats, diff --git a/x-pack/platform/plugins/shared/index_management/public/application/store/actions/index.js b/x-pack/platform/plugins/shared/index_management/public/application/store/actions/index.js index 63c15854ceb89..24f5112b494a0 100644 --- a/x-pack/platform/plugins/shared/index_management/public/application/store/actions/index.js +++ b/x-pack/platform/plugins/shared/index_management/public/application/store/actions/index.js @@ -14,7 +14,6 @@ export * from './forcemerge_indices'; export * from './load_indices'; export * from './open_indices'; export * from './refresh_indices'; -export * from './unfreeze_indices'; export * from './reload_indices'; export * from './table_state'; export * from './extension_action'; diff --git a/x-pack/platform/plugins/shared/index_management/public/application/store/actions/unfreeze_indices.js b/x-pack/platform/plugins/shared/index_management/public/application/store/actions/unfreeze_indices.js deleted file mode 100644 index dd2c18a1ae810..0000000000000 --- a/x-pack/platform/plugins/shared/index_management/public/application/store/actions/unfreeze_indices.js +++ /dev/null @@ -1,33 +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. - */ - -import { createAction } from 'redux-actions'; -import { i18n } from '@kbn/i18n'; -import { unfreezeIndices as request } from '../../services'; -import { clearRowStatus, reloadIndices } from '.'; -import { notificationService } from '../../services/notification'; - -export const unfreezeIndicesStart = createAction('INDEX_MANAGEMENT_UNFREEZE_INDICES_START'); - -export const unfreezeIndices = - ({ indexNames }) => - async (dispatch) => { - dispatch(unfreezeIndicesStart({ indexNames })); - try { - await request(indexNames); - } catch (error) { - notificationService.showDangerToast(error.body.message); - return dispatch(clearRowStatus({ indexNames })); - } - dispatch(reloadIndices(indexNames)); - notificationService.showSuccessToast( - i18n.translate('xpack.idxMgmt.unfreezeIndicesAction.successfullyUnfrozeIndicesMessage', { - defaultMessage: 'Successfully unfroze: [{indexNames}]', - values: { indexNames: indexNames.join(', ') }, - }) - ); - }; diff --git a/x-pack/platform/plugins/shared/index_management/server/routes/api/indices/register_indices_routes.ts b/x-pack/platform/plugins/shared/index_management/server/routes/api/indices/register_indices_routes.ts index 5e9a8fd56442e..b4be8054daeeb 100644 --- a/x-pack/platform/plugins/shared/index_management/server/routes/api/indices/register_indices_routes.ts +++ b/x-pack/platform/plugins/shared/index_management/server/routes/api/indices/register_indices_routes.ts @@ -16,7 +16,6 @@ import { registerOpenRoute } from './register_open_route'; import { registerRefreshRoute } from './register_refresh_route'; import { registerReloadRoute } from './register_reload_route'; import { registerDeleteRoute } from './register_delete_route'; -import { registerUnfreezeRoute } from './register_unfreeze_route'; import { registerGetRoute } from './register_get_route'; import { registerCreateRoute } from './register_create_route'; @@ -30,7 +29,6 @@ export function registerIndicesRoutes(dependencies: RouteDependencies) { registerRefreshRoute(dependencies); registerReloadRoute(dependencies); registerDeleteRoute(dependencies); - registerUnfreezeRoute(dependencies); registerGetRoute(dependencies); registerCreateRoute(dependencies); } diff --git a/x-pack/platform/plugins/shared/index_management/server/routes/api/indices/register_unfreeze_route.ts b/x-pack/platform/plugins/shared/index_management/server/routes/api/indices/register_unfreeze_route.ts deleted file mode 100644 index 49967f8684a2f..0000000000000 --- a/x-pack/platform/plugins/shared/index_management/server/routes/api/indices/register_unfreeze_route.ts +++ /dev/null @@ -1,43 +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. - */ - -import { schema } from '@kbn/config-schema'; - -import { RouteDependencies } from '../../../types'; -import { addBasePath } from '..'; - -const bodySchema = schema.object({ - indices: schema.arrayOf(schema.string()), -}); - -export function registerUnfreezeRoute({ router, lib: { handleEsError } }: RouteDependencies) { - router.post( - { - path: addBasePath('/indices/unfreeze'), - security: { - authz: { - enabled: false, - reason: 'Relies on es client for authorization', - }, - }, - validate: { body: bodySchema }, - }, - async (context, request, response) => { - const { client } = (await context.core).elasticsearch; - const { indices = [] } = request.body as typeof bodySchema.type; - - try { - await client.asCurrentUser.indices.unfreeze({ - index: indices.join(','), - }); - return response.ok(); - } catch (error) { - return handleEsError({ error, response }); - } - } - ); -} diff --git a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts index c6114c3b09e95..b0a5bcbc71bca 100644 --- a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts +++ b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts @@ -256,6 +256,92 @@ describe('bedrockClaudeAdapter', () => { expect(system).toEqual('Some system message'); }); + it('correctly formats messages with content parts', () => { + bedrockClaudeAdapter.chatComplete({ + executor: executorMock, + logger, + messages: [ + { + role: MessageRole.User, + content: [ + { + type: 'text', + text: 'question', + }, + ], + }, + { + role: MessageRole.Assistant, + content: 'answer', + }, + { + role: MessageRole.User, + content: [ + { + type: 'image', + source: { + data: 'aaaaaa', + mimeType: 'image/png', + }, + }, + { + type: 'image', + source: { + data: 'bbbbbb', + mimeType: 'image/png', + }, + }, + ], + }, + ], + }); + + expect(executorMock.invoke).toHaveBeenCalledTimes(1); + + const { messages } = getCallParams(); + expect(messages).toEqual([ + { + rawContent: [ + { + text: 'question', + type: 'text', + }, + ], + role: 'user', + }, + { + rawContent: [ + { + text: 'answer', + type: 'text', + }, + ], + role: 'assistant', + }, + { + rawContent: [ + { + type: 'image', + source: { + data: 'aaaaaa', + mediaType: 'image/png', + type: 'base64', + }, + }, + { + type: 'image', + source: { + data: 'bbbbbb', + mediaType: 'image/png', + type: 'base64', + }, + }, + ], + role: 'user', + }, + ]); + }); + it('correctly format tool choice', () => { bedrockClaudeAdapter.chatComplete({ executor: executorMock, diff --git a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts index e34605a4c96ad..3500d12dc69fa 100644 --- a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts +++ b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts @@ -17,7 +17,7 @@ import { } from '@kbn/inference-common'; import { parseSerdeChunkMessage } from './serde_utils'; import { InferenceConnectorAdapter } from '../../types'; -import type { BedRockMessage, BedrockToolChoice } from './types'; +import type { BedRockImagePart, BedRockMessage, BedRockTextPart, BedrockToolChoice } from './types'; import { BedrockChunkMember, serdeEventstreamIntoObservable, @@ -153,7 +153,24 @@ const messagesToBedrock = (messages: Message[]): BedRockMessage[] => { case MessageRole.User: return { role: 'user' as const, - rawContent: [{ type: 'text' as const, text: message.content }], + rawContent: (typeof message.content === 'string' + ? [message.content] + : message.content + ).map((contentPart) => { + if (typeof contentPart === 'string') { + return { text: contentPart, type: 'text' } satisfies BedRockTextPart; + } else if (contentPart.type === 'text') { + return { text: contentPart.text, type: 'text' } satisfies BedRockTextPart; + } + return { + type: 'image', + source: { + data: contentPart.source.data, + mediaType: contentPart.source.mimeType, + type: 'base64', + }, + } satisfies BedRockImagePart; + }), }; case MessageRole.Assistant: return { diff --git a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/types.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/types.ts index f0937a8d8ec18..805ee17c096e1 100644 --- a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/types.ts +++ b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/types.ts @@ -17,15 +17,38 @@ export interface BedRockMessage { /** * Bedrock message parts */ +export interface BedRockTextPart { + type: 'text'; + text: string; +} + +export interface BedRockToolUsePart { + type: 'tool_use'; + id: string; + name: string; + input: Record; +} + +export interface BedRockToolResultPart { + type: 'tool_result'; + tool_use_id: string; + content: string; +} + +export interface BedRockImagePart { + type: 'image'; + source: { + type: 'base64'; + mediaType: string; + data: string; + }; +} + export type BedRockMessagePart = - | { type: 'text'; text: string } - | { - type: 'tool_use'; - id: string; - name: string; - input: Record; - } - | { type: 'tool_result'; tool_use_id: string; content: string }; + | BedRockTextPart + | BedRockToolUsePart + | BedRockToolResultPart + | BedRockImagePart; export type BedrockToolChoice = { type: 'auto' } | { type: 'any' } | { type: 'tool'; name: string }; diff --git a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts index 5024bd1f4c87e..e7eb75453e778 100644 --- a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts +++ b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts @@ -239,6 +239,86 @@ describe('geminiAdapter', () => { ]); }); + it('correctly formats content parts', () => { + geminiAdapter.chatComplete({ + executor: executorMock, + logger, + messages: [ + { + role: MessageRole.User, + content: [ + { + type: 'text', + text: 'question', + }, + ], + }, + { + role: MessageRole.Assistant, + content: 'answer', + }, + { + role: MessageRole.User, + content: [ + { + type: 'image', + source: { + data: 'aaaaaa', + mimeType: 'image/png', + }, + }, + { + type: 'image', + source: { + data: 'bbbbbb', + mimeType: 'image/png', + }, + }, + ], + }, + ], + }); + + expect(executorMock.invoke).toHaveBeenCalledTimes(1); + + const { messages } = getCallParams(); + expect(messages).toEqual([ + { + parts: [ + { + text: 'question', + }, + ], + role: 'user', + }, + { + parts: [ + { + text: 'answer', + }, + ], + role: 'assistant', + }, + { + parts: [ + { + inlineData: { + data: 'aaaaaa', + mimeType: 'image/png', + }, + }, + { + inlineData: { + data: 'bbbbbb', + mimeType: 'image/png', + }, + }, + ], + role: 'user', + }, + ]); + }); + it('groups messages from the same user', () => { geminiAdapter.chatComplete({ logger, diff --git a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts index aa62f7006eac7..29b663be146d2 100644 --- a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts +++ b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts @@ -196,11 +196,21 @@ function messageToGeminiMapper() { case MessageRole.User: const userMessage: GeminiMessage = { role: 'user', - parts: [ - { - text: message.content, - }, - ], + parts: (typeof message.content === 'string' ? [message.content] : message.content).map( + (contentPart) => { + if (typeof contentPart === 'string') { + return { text: contentPart } satisfies Gemini.TextPart; + } else if (contentPart.type === 'text') { + return { text: contentPart.text } satisfies Gemini.TextPart; + } + return { + inlineData: { + data: contentPart.source.data, + mimeType: contentPart.source.mimeType, + }, + } satisfies Gemini.InlineDataPart; + } + ), }; return userMessage; diff --git a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts index d93dee627ec18..c9699f006d96b 100644 --- a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts +++ b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts @@ -118,6 +118,86 @@ describe('openAIAdapter', () => { ]); }); + it('correctly formats messages with content parts', () => { + openAIAdapter.chatComplete({ + executor: executorMock, + logger, + messages: [ + { + role: MessageRole.User, + content: [ + { + type: 'text', + text: 'question', + }, + ], + }, + { + role: MessageRole.Assistant, + content: 'answer', + }, + { + role: MessageRole.User, + content: [ + { + type: 'image', + source: { + data: 'aaaaaa', + mimeType: 'image/png', + }, + }, + { + type: 'image', + source: { + data: 'bbbbbb', + mimeType: 'image/png', + }, + }, + ], + }, + ], + }); + + expect(executorMock.invoke).toHaveBeenCalledTimes(1); + + const { + body: { messages }, + } = getRequest(); + + expect(messages).toEqual([ + { + content: [ + { + text: 'question', + type: 'text', + }, + ], + role: 'user', + }, + { + content: 'answer', + role: 'assistant', + }, + { + content: [ + { + type: 'image_url', + image_url: { + url: 'aaaaaa', + }, + }, + { + type: 'image_url', + image_url: { + url: 'bbbbbb', + }, + }, + ], + role: 'user', + }, + ]); + }); + it('correctly formats tools and tool choice', () => { openAIAdapter.chatComplete({ ...defaultArgs, diff --git a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/to_openai.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/to_openai.ts index 709b1fd4c6bfe..66792963c425f 100644 --- a/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/to_openai.ts +++ b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/to_openai.ts @@ -8,6 +8,8 @@ import type OpenAI from 'openai'; import type { ChatCompletionAssistantMessageParam, + ChatCompletionContentPartImage, + ChatCompletionContentPartText, ChatCompletionMessageParam, ChatCompletionSystemMessageParam, ChatCompletionToolMessageParam, @@ -90,7 +92,23 @@ export function messagesToOpenAI({ case MessageRole.User: const userMessage: ChatCompletionUserMessageParam = { role: 'user', - content: message.content, + content: + typeof message.content === 'string' + ? message.content + : message.content.map((contentPart) => { + if (contentPart.type === 'image') { + return { + type: 'image_url', + image_url: { + url: contentPart.source.data, + }, + } satisfies ChatCompletionContentPartImage; + } + return { + text: contentPart.text, + type: 'text', + } satisfies ChatCompletionContentPartText; + }), }; return userMessage; diff --git a/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts index d2cb0bfae4999..8c207617e9bf4 100644 --- a/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts +++ b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts @@ -52,9 +52,25 @@ export function wrapWithSimulatedFunctionCalling({ return message; }) .map((message) => { + let content = message.content; + + if (typeof content === 'string') { + content = replaceFunctionsWithTools(content); + } else if (Array.isArray(content)) { + content = content.map((contentPart) => { + if (contentPart.type === 'text') { + return { + ...contentPart, + text: replaceFunctionsWithTools(contentPart.text), + }; + } + return contentPart; + }); + } + return { ...message, - content: message.content ? replaceFunctionsWithTools(message.content) : message.content, + content, }; }); diff --git a/x-pack/platform/plugins/shared/integration_assistant/server/plugin.ts b/x-pack/platform/plugins/shared/integration_assistant/server/plugin.ts index bf972f04a61a5..6361e916f9c44 100644 --- a/x-pack/platform/plugins/shared/integration_assistant/server/plugin.ts +++ b/x-pack/platform/plugins/shared/integration_assistant/server/plugin.ts @@ -13,29 +13,36 @@ import type { Logger, CustomRequestHandlerContext, } from '@kbn/core/server'; -import type { PluginStartContract as ActionsPluginsStart } from '@kbn/actions-plugin/server/plugin'; import { MINIMUM_LICENSE_TYPE } from '../common/constants'; import { registerRoutes } from './routes'; import type { IntegrationAssistantPluginSetup, IntegrationAssistantPluginStart, IntegrationAssistantPluginStartDependencies, + IntegrationAssistantPluginSetupDependencies, } from './types'; import { parseExperimentalConfigValue } from '../common/experimental_features'; import { IntegrationAssistantConfigType } from './config'; export type IntegrationAssistantRouteHandlerContext = CustomRequestHandlerContext<{ integrationAssistant: { - getStartServices: CoreSetup<{ - actions: ActionsPluginsStart; - }>['getStartServices']; + getStartServices: CoreSetup< + IntegrationAssistantPluginStartDependencies, + IntegrationAssistantPluginStart + >['getStartServices']; isAvailable: () => boolean; logger: Logger; }; }>; export class IntegrationAssistantPlugin - implements Plugin + implements + Plugin< + IntegrationAssistantPluginSetup, + IntegrationAssistantPluginStart, + IntegrationAssistantPluginSetupDependencies, + IntegrationAssistantPluginStartDependencies + > { private readonly logger: Logger; private readonly config: IntegrationAssistantConfigType; @@ -50,9 +57,7 @@ export class IntegrationAssistantPlugin } public setup( - core: CoreSetup<{ - actions: ActionsPluginsStart; - }> + core: CoreSetup ): IntegrationAssistantPluginSetup { core.http.registerRouteHandlerContext< IntegrationAssistantRouteHandlerContext, diff --git a/x-pack/platform/plugins/shared/integration_assistant/server/types.ts b/x-pack/platform/plugins/shared/integration_assistant/server/types.ts index df054c40a9ef3..8e9c707176c03 100644 --- a/x-pack/platform/plugins/shared/integration_assistant/server/types.ts +++ b/x-pack/platform/plugins/shared/integration_assistant/server/types.ts @@ -12,6 +12,10 @@ import { ActionsClientSimpleChatModel, } from '@kbn/langchain/server'; import type { LicensingPluginSetup, LicensingPluginStart } from '@kbn/licensing-plugin/server'; +import type { + PluginStartContract as ActionsPluginStart, + PluginSetupContract as ActionsPluginSetup, +} from '@kbn/actions-plugin/server/plugin'; import { ESProcessorItem, SamplesFormat } from '../common'; export interface IntegrationAssistantPluginSetup { @@ -22,9 +26,11 @@ export interface IntegrationAssistantPluginStart {} export interface IntegrationAssistantPluginSetupDependencies { licensing: LicensingPluginSetup; + actions: ActionsPluginSetup; } export interface IntegrationAssistantPluginStartDependencies { licensing: LicensingPluginStart; + actions: ActionsPluginStart; } export interface SimplifiedProcessor { 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 97% 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 index 773276710f48d..15dc932ee8bfc 100644 --- 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 @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook, act } from '@testing-library/react-hooks'; +import { renderHook, act } from '@testing-library/react'; import { faker } from '@faker-js/faker'; import { UseNavigateBackToAppProps, useNavigateBackToApp } from './app_helpers'; import { defaultDoc, makeDefaultServices } from '../mocks/services_mock'; 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.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 97% rename from x-pack/plugins/lens/server/plugin.tsx rename to x-pack/platform/plugins/shared/lens/server/plugin.tsx index c7584474dfc2b..ab683555d70c2 100644 --- a/x-pack/plugins/lens/server/plugin.tsx +++ b/x-pack/platform/plugins/shared/lens/server/plugin.tsx @@ -61,7 +61,9 @@ export interface LensServerPluginSetup { ) => void; } -export class LensServerPlugin implements Plugin { +export class LensServerPlugin + implements Plugin +{ private customVisualizationMigrations: CustomVisualizationMigrations = {}; constructor(private initializerContext: PluginInitializerContext) {} 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 ca1a9b8fd0b16..c74a55a56ea88 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/maps/server/plugin.ts b/x-pack/platform/plugins/shared/maps/server/plugin.ts index 9d82aa0cc931e..097b59715cb76 100644 --- a/x-pack/platform/plugins/shared/maps/server/plugin.ts +++ b/x-pack/platform/plugins/shared/maps/server/plugin.ts @@ -35,7 +35,7 @@ import { registerIntegrations } from './register_integrations'; import { StartDeps, SetupDeps } from './types'; import { MapsStorage } from './content_management'; -export class MapsPlugin implements Plugin { +export class MapsPlugin implements Plugin { readonly _initializerContext: PluginInitializerContext; private readonly _logger: Logger; diff --git a/x-pack/platform/plugins/shared/ml/public/application/aiops/change_point_detection.tsx b/x-pack/platform/plugins/shared/ml/public/application/aiops/change_point_detection.tsx index 2d4c06321e8da..f5662677a5ba1 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/aiops/change_point_detection.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/aiops/change_point_detection.tsx @@ -72,6 +72,7 @@ export const ChangePointDetectionPage: FC = () => { 'uiSettings', 'unifiedSearch', 'usageCollection', + 'userProfile', ]), fieldStats: { useFieldStatsTrigger, FieldStatsFlyoutProvider }, }} diff --git a/x-pack/platform/plugins/shared/ml/public/application/aiops/log_categorization.tsx b/x-pack/platform/plugins/shared/ml/public/application/aiops/log_categorization.tsx index 2dc34ba80a080..6ee92eb71b1d8 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/aiops/log_categorization.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/aiops/log_categorization.tsx @@ -63,6 +63,7 @@ export const LogCategorizationPage: FC = () => { 'uiActions', 'uiSettings', 'unifiedSearch', + 'userProfile', 'embeddable', 'cases', ]), diff --git a/x-pack/platform/plugins/shared/ml/public/application/aiops/log_rate_analysis.tsx b/x-pack/platform/plugins/shared/ml/public/application/aiops/log_rate_analysis.tsx index 01f4d2d7be74f..2346a128a5a75 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/aiops/log_rate_analysis.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/aiops/log_rate_analysis.tsx @@ -57,6 +57,7 @@ export const LogRateAnalysisPage: FC = () => { 'theme', 'uiActions', 'uiSettings', + 'userProfile', 'unifiedSearch', 'observabilityAIAssistant', 'embeddable', diff --git a/x-pack/platform/plugins/shared/ml/public/application/app.tsx b/x-pack/platform/plugins/shared/ml/public/application/app.tsx index d2bc17ab210b9..37e1c6e186d1f 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/app.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/app.tsx @@ -122,9 +122,17 @@ const App: FC = ({ if (!licenseReady || !mlCapabilities) return null; - const startServices = pick(coreStart, 'analytics', 'i18n', 'theme'); + const startServices = pick(coreStart, 'analytics', 'i18n', 'theme', 'userProfile'); const datePickerDeps: DatePickerDependencies = { - ...pick(services, ['data', 'http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(services, [ + 'data', + 'http', + 'notifications', + 'theme', + 'uiSettings', + 'userProfile', + 'i18n', + ]), uiSettingsKeys: UI_SETTINGS, showFrozenDataTierChoice: !isServerless, }; diff --git a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/expanded_row.tsx b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/expanded_row.tsx index 2ca4409c3a98a..3cd99f7bfdebd 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/expanded_row.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/expanded_row.tsx @@ -155,9 +155,23 @@ export const ExpandedRow: FC = ({ item }) => { defaultMessage: 'Overall', }), items: [ - { title: 'badge', description: stateValues.state }, { - title: 'Create time', + title: i18n.translate( + 'xpack.ml.dataframe.analyticsList.expandedRow.tabs.jobSettings.status', + { + defaultMessage: 'Status', + } + ), + type: 'badge', + description: stateValues.state, + }, + { + title: i18n.translate( + 'xpack.ml.dataframe.analyticsList.expandedRow.tabs.jobSettings.createTime', + { + defaultMessage: 'Create time', + } + ), description: formatHumanReadableDateTimeSeconds( moment(item.config.create_time).unix() * 1000 ), diff --git a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/expanded_row_details_pane.tsx b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/expanded_row_details_pane.tsx index a2d759d21e77f..8c63f3bbc2894 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/expanded_row_details_pane.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/expanded_row_details_pane.tsx @@ -10,8 +10,8 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { + EuiBadge, EuiBasicTable, - EuiBetaBadge, EuiDescriptionListDescription, EuiDescriptionListTitle, EuiFlexGroup, @@ -25,6 +25,7 @@ import { export interface SectionItem { title: string; + type?: 'plain' | 'badge'; description: string | ReactElement; } export interface SectionConfig { @@ -41,35 +42,28 @@ export const OverallDetails: FC<{ overallDetails: SectionConfig; }> = ({ overallDetails }) => ( - {overallDetails.items.map((item) => { - const key = item.title; - if (item.title === 'badge') { - return ( - - + {overallDetails.items.map((item) => ( + + + + + {item.title} + - ); - } - - return ( - - - - - {item.title} - - - - + + + {item.type === 'badge' ? ( + {item.description} + ) : (
{item.description}
-
-
-
-
- ); - })} + )} + +
+
+
+ ))} ); diff --git a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/job_map/components/cytoscape.tsx b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/job_map/components/cytoscape.tsx index de890ad9f9f98..77affc598066a 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/job_map/components/cytoscape.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/job_map/components/cytoscape.tsx @@ -108,7 +108,7 @@ export function Cytoscape({ return () => { if (cy) { - cy.removeListener('data', undefined, dataHandler as cytoscape.EventHandler); + cy.removeListener('data', dataHandler); } }; // eslint-disable-next-line react-hooks/exhaustive-deps 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/explorer/swimlane_container.tsx b/x-pack/platform/plugins/shared/ml/public/application/explorer/swimlane_container.tsx index 7c1118b33cb6d..b0bd6270c205f 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/explorer/swimlane_container.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/explorer/swimlane_container.tsx @@ -51,7 +51,6 @@ import { ML_SEVERITY_COLORS, } from '@kbn/ml-anomaly-utils'; import { formatHumanReadableDateTime } from '@kbn/ml-date-utils'; -import { useIsDarkTheme } from '@kbn/ml-kibana-theme'; import type { TimeBuckets as TimeBucketsClass } from '@kbn/ml-time-buckets'; import { SwimLanePagination } from './swimlane_pagination'; import type { @@ -66,7 +65,6 @@ import { FormattedTooltip } from '../components/chart_tooltip/chart_tooltip'; import './_explorer.scss'; import { EMPTY_FIELD_VALUE_LABEL } from '../timeseriesexplorer/components/entity_control/entity_control'; import { SWIM_LANE_LABEL_WIDTH, Y_AXIS_LABEL_PADDING } from './constants'; -import { useMlKibana } from '../contexts/kibana'; declare global { interface Window { @@ -204,12 +202,8 @@ export const SwimlaneContainer: FC = ({ }) => { const [chartWidth, setChartWidth] = useState(0); - const { - services: { theme: themeService }, - } = useMlKibana(); - - const isDarkTheme = useIsDarkTheme(themeService); - const { euiTheme } = useEuiTheme(); + const { colorMode, euiTheme } = useEuiTheme(); + const isDarkTheme = colorMode === 'DARK'; // Holds the container height for previously fetched data const containerHeightRef = useRef(); diff --git a/x-pack/platform/plugins/shared/ml/public/application/model_management/deployment_setup.tsx b/x-pack/platform/plugins/shared/ml/public/application/model_management/deployment_setup.tsx index c5b38feb4c799..72032dbd49768 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/model_management/deployment_setup.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/model_management/deployment_setup.tsx @@ -840,7 +840,7 @@ export const StartUpdateDeploymentModal: FC = ({ export const getUserInputModelDeploymentParamsProvider = ( overlays: OverlayStart, - startServices: Pick, + startServices: Pick, startModelDeploymentDocUrl: string, cloudInfo: CloudInfo, showNodeInfo: boolean, diff --git a/x-pack/platform/plugins/shared/ml/public/application/model_management/force_stop_dialog.tsx b/x-pack/platform/plugins/shared/ml/public/application/model_management/force_stop_dialog.tsx index 8685ba63b51d5..ffa69d64e6de5 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/model_management/force_stop_dialog.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/model_management/force_stop_dialog.tsx @@ -219,7 +219,10 @@ export const StopModelDeploymentsConfirmDialog: FC) => + ( + overlays: OverlayStart, + startServices: Pick + ) => async (forceStopModel: NLPModelItem): Promise => { return new Promise(async (resolve, reject) => { try { 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/platform/plugins/shared/ml/public/shared_components/single_metric_viewer/single_metric_viewer.tsx b/x-pack/platform/plugins/shared/ml/public/shared_components/single_metric_viewer/single_metric_viewer.tsx index 1ab62d914078f..2918fe412a37e 100644 --- a/x-pack/platform/plugins/shared/ml/public/shared_components/single_metric_viewer/single_metric_viewer.tsx +++ b/x-pack/platform/plugins/shared/ml/public/shared_components/single_metric_viewer/single_metric_viewer.tsx @@ -123,9 +123,9 @@ const SingleMetricViewerWrapper: FC = ({ const isMounted = useMountedState(); const { mlApi, mlTimeSeriesExplorerService, toastNotificationService } = mlServices; - const startServices = pick(coreStart, 'analytics', 'i18n', 'theme'); + const startServices = pick(coreStart, 'analytics', 'i18n', 'theme', 'userProfile'); const datePickerDeps: DatePickerDependencies = { - ...pick(coreStart, ['http', 'notifications', 'theme', 'uiSettings', 'i18n']), + ...pick(coreStart, ['http', 'notifications', 'theme', 'uiSettings', 'userProfile', 'i18n']), data: pluginStart.data, uiSettingsKeys: UI_SETTINGS, showFrozenDataTierChoice: false, diff --git a/x-pack/platform/plugins/shared/ml/tsconfig.json b/x-pack/platform/plugins/shared/ml/tsconfig.json index 4d5a3668403eb..03656667353cf 100644 --- a/x-pack/platform/plugins/shared/ml/tsconfig.json +++ b/x-pack/platform/plugins/shared/ml/tsconfig.json @@ -86,7 +86,6 @@ "@kbn/ml-in-memory-table", "@kbn/ml-is-defined", "@kbn/ml-is-populated-object", - "@kbn/ml-kibana-theme", "@kbn/ml-local-storage", "@kbn/ml-nested-property", "@kbn/ml-number-utils", diff --git a/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/assistant_avatar.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/assistant_avatar.tsx deleted file mode 100644 index 083b97748bf7c..0000000000000 --- a/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/assistant_avatar.tsx +++ /dev/null @@ -1,49 +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. - */ -import { useEuiTheme } from '@elastic/eui'; -import React, { ReactNode } from 'react'; - -export interface AssistantAvatarProps { - size?: keyof typeof sizeMap; - children?: ReactNode; - css?: React.SVGProps['css']; - className?: string; -} - -export const sizeMap = { - xl: 64, - l: 48, - m: 32, - s: 24, - xs: 16, -}; - -/** @deprecated This component will soon be replaced by `AssistantIcon` from `@kbn/ai-assistant-icon`. */ -export function AssistantAvatar({ size = 's', css, className }: AssistantAvatarProps) { - const { euiTheme } = useEuiTheme(); - const sizePx = sizeMap[size]; - - return ( - - - - - - - ); -} diff --git a/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/index.ts index f8ca9709a6e20..156932c7e75a2 100644 --- a/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/index.ts +++ b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/index.ts @@ -32,7 +32,6 @@ export type { }; export { aiAssistantCapabilities } from '../common/capabilities'; -export { AssistantAvatar } from './components/assistant_avatar'; export { ConnectorSelectorBase } from './components/connector_selector/connector_selector_base'; export { useAbortableAsync, type AbortableAsyncState } from './hooks/use_abortable_async'; export { useGenAIConnectorsWithoutContext } from './hooks/use_genai_connectors'; diff --git a/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/recall_from_search_connectors.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/recall_from_search_connectors.ts index 5abd6d850a8f4..b8a0a7d9267bc 100644 --- a/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/recall_from_search_connectors.ts +++ b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/recall_from_search_connectors.ts @@ -155,12 +155,11 @@ async function recallFromLegacyConnectors({ bool: { should: [ { - text_expansion: { - [vectorField]: { - model_text: text, - model_id: modelId, - boost, - }, + sparse_vector: { + field: vectorField, + query: text, + inference_id: modelId, + boost, }, }, ], diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/README.md b/x-pack/platform/plugins/shared/saved_objects_tagging/README.md similarity index 85% rename from x-pack/platform/plugins/private/saved_objects_tagging/README.md rename to x-pack/platform/plugins/shared/saved_objects_tagging/README.md index 68ac5fe507767..b62528b9d0c0a 100644 --- a/x-pack/platform/plugins/private/saved_objects_tagging/README.md +++ b/x-pack/platform/plugins/shared/saved_objects_tagging/README.md @@ -38,7 +38,7 @@ features.registerKibanaFeature({ ### Update the SOT telemetry collector schema to add the new type -The schema is located here: `x-pack/platform/plugins/private/saved_objects_tagging/server/usage/schema.ts`. You +The schema is located here: `x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/schema.ts`. You just need to add the name of the SO type you are adding. ```ts @@ -54,5 +54,5 @@ export const tagUsageCollectorSchema: MakeSchemaFrom = { ### Update the `taggableTypes` constant to add your type -Edit the `taggableTypes` list in `x-pack/platform/plugins/private/saved_objects_tagging/common/constants.ts` to add +Edit the `taggableTypes` list in `x-pack/platform/plugins/shared/saved_objects_tagging/common/constants.ts` to add the name of the type you are adding. diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/assignments.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/assignments.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/assignments.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/assignments.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/capabilities.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/constants.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/constants.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/constants.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/constants.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/http_api_types.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/http_api_types.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/http_api_types.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/http_api_types.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/references.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/references.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/references.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/references.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/references.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/test_utils/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/test_utils/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/test_utils/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/test_utils/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/types.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/types.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/types.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/types.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/validation.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/validation.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/common/validation.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/jest.config.js b/x-pack/platform/plugins/shared/saved_objects_tagging/jest.config.js similarity index 68% rename from x-pack/platform/plugins/private/saved_objects_tagging/jest.config.js rename to x-pack/platform/plugins/shared/saved_objects_tagging/jest.config.js index c2e776e813317..ae42c0c9fea22 100644 --- a/x-pack/platform/plugins/private/saved_objects_tagging/jest.config.js +++ b/x-pack/platform/plugins/shared/saved_objects_tagging/jest.config.js @@ -8,11 +8,11 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', - roots: ['/x-pack/platform/plugins/private/saved_objects_tagging'], + roots: ['/x-pack/platform/plugins/shared/saved_objects_tagging'], coverageDirectory: - '/target/kibana-coverage/jest/x-pack/platform/plugins/private/saved_objects_tagging', + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/saved_objects_tagging', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/platform/plugins/private/saved_objects_tagging/{common,public,server}/**/*.{ts,tsx}', + '/x-pack/platform/plugins/shared/saved_objects_tagging/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/kibana.jsonc b/x-pack/platform/plugins/shared/saved_objects_tagging/kibana.jsonc similarity index 94% rename from x-pack/platform/plugins/private/saved_objects_tagging/kibana.jsonc rename to x-pack/platform/plugins/shared/saved_objects_tagging/kibana.jsonc index 3a2cdef308de0..599c9557e681f 100644 --- a/x-pack/platform/plugins/private/saved_objects_tagging/kibana.jsonc +++ b/x-pack/platform/plugins/shared/saved_objects_tagging/kibana.jsonc @@ -5,7 +5,7 @@ "@elastic/appex-sharedux" ], "group": "platform", - "visibility": "private", + "visibility": "shared", "plugin": { "id": "savedObjectsTagging", "browser": true, @@ -25,4 +25,4 @@ ], "requiredBundles": [] } -} \ No newline at end of file +} diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/assign_flyout.scss b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/assign_flyout.scss similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/assign_flyout.scss rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/assign_flyout.scss diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/assign_flyout.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/assign_flyout.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/assign_flyout.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/assign_flyout.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/action_bar.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/action_bar.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/action_bar.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/action_bar.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/footer.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/footer.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/footer.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/footer.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/header.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/header.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/header.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/header.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/result_list.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/result_list.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/result_list.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/result_list.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/search_bar.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/search_bar.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/search_bar.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/components/search_bar.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/lib/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/lib/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/open_assign_flyout.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/open_assign_flyout.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/open_assign_flyout.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/open_assign_flyout.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/types.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/types.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/types.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/types.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/utils.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/utils.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/utils.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/utils.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/utils.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/utils.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/utils.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/assign_flyout/utils.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_badge.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/tag_badge.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_badge.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/tag_badge.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_list.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/tag_list.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_list.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/tag_list.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_searchbar_option.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/tag_searchbar_option.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_searchbar_option.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/tag_searchbar_option.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_selector.test.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/tag_selector.test.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_selector.test.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/tag_selector.test.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_selector.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/tag_selector.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_selector.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/base/tag_selector.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/connected/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/connected/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/saved_object_save_modal_tag_selector.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/connected/saved_object_save_modal_tag_selector.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/saved_object_save_modal_tag_selector.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/connected/saved_object_save_modal_tag_selector.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/tag_list.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/connected/tag_list.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/tag_list.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/connected/tag_list.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/tag_selector.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/connected/tag_selector.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/tag_selector.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/connected/tag_selector.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_modal.test.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/create_modal.test.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_modal.test.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/create_modal.test.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_modal.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/create_modal.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_modal.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/create_modal.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_or_edit_modal.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/create_or_edit_modal.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_or_edit_modal.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/create_or_edit_modal.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/edit_modal.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/edit_modal.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/edit_modal.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/edit_modal.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/open_modal.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/open_modal.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/open_modal.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/open_modal.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/use_validation.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/use_validation.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/use_validation.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/use_validation.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/utils.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/utils.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/utils.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/edition_modal/utils.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/components/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/components/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/components/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/components/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/config.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/config.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/config.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/config.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/assign.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/assign.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/assign.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/assign.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/delete.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/delete.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/delete.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/delete.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/edit.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/edit.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/edit.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/edit.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/index.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/index.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/index.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/index.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/types.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/types.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/types.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/actions/types.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_assign.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/bulk_assign.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_assign.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/bulk_assign.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_delete.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/bulk_delete.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_delete.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/bulk_delete.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_delete.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/bulk_delete.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_delete.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/bulk_delete.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/clear_selection.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/clear_selection.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/clear_selection.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/clear_selection.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/index.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/index.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/index.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/index.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/bulk_actions/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/_action_bar.scss b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/components/_action_bar.scss similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/_action_bar.scss rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/components/_action_bar.scss diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/action_bar.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/components/action_bar.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/action_bar.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/components/action_bar.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/header.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/components/header.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/header.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/components/header.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/components/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/components/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/table.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/components/table.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/table.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/components/table.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/mount_section.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/mount_section.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/mount_section.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/mount_section.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/tag_management_page.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/tag_management_page.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/tag_management_page.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/tag_management_page.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/types.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/types.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/types.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/types.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/get_tag_connections_url.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/utils/get_tag_connections_url.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/get_tag_connections_url.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/utils/get_tag_connections_url.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/get_tag_connections_url.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/utils/get_tag_connections_url.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/get_tag_connections_url.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/utils/get_tag_connections_url.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/management/utils/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/management/utils/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/mocks.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/mocks.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/mocks.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/mocks.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/plugin.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/plugin.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/plugin.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/plugin.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/plugin.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/plugin.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/plugin.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/plugin.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.mock.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/assignments/assignment_service.mock.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.mock.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/assignments/assignment_service.mock.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/assignments/assignment_service.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/assignments/assignment_service.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/assignments/assignment_service.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/assignments/assignment_service.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/assignments/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/assignments/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/errors.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/errors.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/errors.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/errors.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.mock.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_cache.mock.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.mock.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_cache.mock.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_cache.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_cache.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_cache.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_cache.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.mock.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_client.mock.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.mock.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_client.mock.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_client.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_client.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_client.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/services/tags/tags_client.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/types.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/types.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/types.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/types.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/components.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/components.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/components.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/components.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/convert_name_to_reference.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/convert_name_to_reference.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/convert_name_to_reference.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/convert_name_to_reference.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_search_bar_filter.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_search_bar_filter.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_search_bar_filter.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_search_bar_filter.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_search_bar_filter.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_search_bar_filter.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_search_bar_filter.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_search_bar_filter.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx b/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_tag_list.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_tag_list.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_tag_list.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_tag_list.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_tag_list.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_tag_list.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_tag_list.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/get_tag_list.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/parse_search_query.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/parse_search_query.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/parse_search_query.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/parse_search_query.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/parse_search_query.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/parse_search_query.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/parse_search_query.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/ui_api/parse_search_query.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/public/utils.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/config.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/config.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/config.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/config.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/features.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/features.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/features.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/features.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/mocks.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/mocks.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/mocks.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/mocks.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.test.mocks.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/plugin.test.mocks.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.test.mocks.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/plugin.test.mocks.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/plugin.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/plugin.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/plugin.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/plugin.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/request_handler_context.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/request_handler_context.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/request_handler_context.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/request_handler_context.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/find_assignable_objects.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/assignments/find_assignable_objects.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/find_assignable_objects.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/assignments/find_assignable_objects.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/get_assignable_types.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/assignments/get_assignable_types.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/get_assignable_types.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/assignments/get_assignable_types.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/assignments/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/assignments/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/update_tags_assignments.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/assignments/update_tags_assignments.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/update_tags_assignments.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/assignments/update_tags_assignments.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/bulk_delete.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/internal/bulk_delete.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/bulk_delete.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/internal/bulk_delete.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/find_tags.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/internal/find_tags.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/find_tags.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/internal/find_tags.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/internal/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/internal/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/lib/get_connection_count.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/lib/get_connection_count.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/lib/get_connection_count.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/lib/get_connection_count.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/lib/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/lib/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/lib/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/lib/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/create_tag.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/create_tag.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/create_tag.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/create_tag.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/delete_tag.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/delete_tag.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/delete_tag.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/delete_tag.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/get_all_tags.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/get_all_tags.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/get_all_tags.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/get_all_tags.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/get_tag.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/get_tag.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/get_tag.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/get_tag.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/update_tag.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/update_tag.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/update_tag.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/routes/tags/update_tag.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/saved_objects/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/saved_objects/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/saved_objects/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/saved_objects/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/saved_objects/tag.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/saved_objects/tag.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/saved_objects/tag.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/saved_objects/tag.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.mock.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/assignment_service.mock.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.mock.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/assignment_service.mock.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.test.mocks.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/assignment_service.test.mocks.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.test.mocks.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/assignment_service.test.mocks.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/assignment_service.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/assignment_service.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/assignment_service.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/assignment_service.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/errors.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/errors.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/errors.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/errors.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/errors.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/errors.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/errors.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/errors.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/get_updatable_types.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/get_updatable_types.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/get_updatable_types.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/get_updatable_types.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/utils.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/utils.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/utils.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/utils.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/utils.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/utils.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/utils.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/assignments/utils.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/errors.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/errors.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/errors.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/errors.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/errors.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/errors.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/errors.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/errors.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.mock.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/tags_client.mock.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.mock.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/tags_client.mock.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.test.mocks.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/tags_client.test.mocks.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.test.mocks.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/tags_client.test.mocks.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/tags_client.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/tags_client.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/tags_client.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/tags_client.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/utils.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/utils.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/utils.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/utils.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.test.mocks.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/validate_tag.test.mocks.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.test.mocks.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/validate_tag.test.mocks.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/validate_tag.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/validate_tag.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/validate_tag.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/services/tags/validate_tag.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/types.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/types.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/fetch_tag_usage_data.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/fetch_tag_usage_data.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/usage/fetch_tag_usage_data.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/fetch_tag_usage_data.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/index.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/index.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/usage/index.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/index.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/schema.test.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/schema.test.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/usage/schema.test.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/schema.test.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/schema.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/schema.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/usage/schema.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/schema.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/tag_usage_collector.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/tag_usage_collector.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/usage/tag_usage_collector.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/tag_usage_collector.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/types.ts b/x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/types.ts similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/server/usage/types.ts rename to x-pack/platform/plugins/shared/saved_objects_tagging/server/usage/types.ts diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/tsconfig.json b/x-pack/platform/plugins/shared/saved_objects_tagging/tsconfig.json similarity index 100% rename from x-pack/platform/plugins/private/saved_objects_tagging/tsconfig.json rename to x-pack/platform/plugins/shared/saved_objects_tagging/tsconfig.json diff --git a/x-pack/platform/plugins/shared/security/server/authentication/authentication_service.ts b/x-pack/platform/plugins/shared/security/server/authentication/authentication_service.ts index cf99084d4d0bc..5498175cfd93b 100644 --- a/x-pack/platform/plugins/shared/security/server/authentication/authentication_service.ts +++ b/x-pack/platform/plugins/shared/security/server/authentication/authentication_service.ts @@ -194,9 +194,7 @@ export class AuthenticationService { } const isAuthRoute = request.route.options.tags.includes(ROUTE_TAG_AUTH_FLOW); - const isLogoutRoute = - request.route.path === '/api/security/logout' || - request.route.path === '/api/v1/security/logout'; + const isLogoutRoute = request.route.path === '/api/security/logout'; // If users can eventually re-login we want to redirect them directly to the page they tried // to access initially, but we only want to do that for routes that aren't part of the various diff --git a/x-pack/platform/plugins/shared/security/server/authentication/providers/saml.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/saml.test.ts index 15ff615af9ad2..1674ea3479860 100644 --- a/x-pack/platform/plugins/shared/security/server/authentication/providers/saml.test.ts +++ b/x-pack/platform/plugins/shared/security/server/authentication/providers/saml.test.ts @@ -788,7 +788,7 @@ describe('SAMLAuthenticationProvider', () => { method: 'POST', path: '/_security/saml/prepare', body: { - acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/v1/saml', + acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/saml/callback', }, }); @@ -830,7 +830,7 @@ describe('SAMLAuthenticationProvider', () => { method: 'POST', path: '/_security/saml/prepare', body: { - acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/v1/saml', + acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/saml/callback', }, }); @@ -900,7 +900,7 @@ describe('SAMLAuthenticationProvider', () => { method: 'POST', path: '/_security/saml/prepare', body: { - acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/v1/saml', + acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/saml/callback', }, }); }); @@ -1003,7 +1003,7 @@ describe('SAMLAuthenticationProvider', () => { method: 'POST', path: '/_security/saml/prepare', body: { - acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/v1/saml', + acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/saml/callback', }, }); }); @@ -1294,7 +1294,7 @@ describe('SAMLAuthenticationProvider', () => { path: '/_security/saml/invalidate', body: { query_string: 'SAMLRequest=xxx%20yyy', - acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/v1/saml', + acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/saml/callback', }, }); }); @@ -1408,7 +1408,7 @@ describe('SAMLAuthenticationProvider', () => { path: '/_security/saml/invalidate', body: { query_string: 'SAMLRequest=xxx%20yyy', - acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/v1/saml', + acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/saml/callback', }, }); }); @@ -1430,7 +1430,7 @@ describe('SAMLAuthenticationProvider', () => { path: '/_security/saml/invalidate', body: { query_string: 'SAMLRequest=xxx%20yyy', - acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/v1/saml', + acs: 'test-protocol://test-hostname:1234/mock-server-basepath/api/security/saml/callback', }, }); }); diff --git a/x-pack/platform/plugins/shared/security/server/authentication/providers/saml.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/saml.ts index 56dbd78b2ef34..5f8545003d04a 100644 --- a/x-pack/platform/plugins/shared/security/server/authentication/providers/saml.ts +++ b/x-pack/platform/plugins/shared/security/server/authentication/providers/saml.ts @@ -659,7 +659,7 @@ export class SAMLAuthenticationProvider extends BaseAuthenticationProvider { private getACS() { return `${this.options.getServerBaseURL()}${ this.options.basePath.serverBasePath - }/api/security/v1/saml`; + }/api/security/saml/callback`; } /** diff --git a/x-pack/platform/plugins/shared/security/server/routes/authentication/common.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/common.test.ts index 88b55f1801f69..377c2e5a802e0 100644 --- a/x-pack/platform/plugins/shared/security/server/routes/authentication/common.test.ts +++ b/x-pack/platform/plugins/shared/security/server/routes/authentication/common.test.ts @@ -78,6 +78,16 @@ describe('Common authentication routes', () => { query: expect.any(Type), params: undefined, }); + expect(routeConfig.security).toEqual({ + authz: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party IdPs', + }, + authc: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party IdPs', + }, + }); const queryValidator = (routeConfig.validate as any).query as Type; expect(queryValidator.validate({ someRandomField: 'some-random' })).toEqual({ @@ -211,6 +221,17 @@ describe('Common authentication routes', () => { query: undefined, params: undefined, }); + expect(routeConfig.security).toEqual({ + authz: { + enabled: false, + reason: `This route provides basic and token login capability, which is delegated to the internal authentication service`, + }, + authc: { + enabled: false, + reason: + 'This route is used for authentication - it does not require existing authentication', + }, + }); const bodyValidator = (routeConfig.validate as any).body as Type; expect( diff --git a/x-pack/platform/plugins/shared/security/server/routes/authentication/common.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/common.ts index 5acc1efcca41a..9be214abe2e4a 100644 --- a/x-pack/platform/plugins/shared/security/server/routes/authentication/common.ts +++ b/x-pack/platform/plugins/shared/security/server/routes/authentication/common.ts @@ -7,7 +7,6 @@ import type { TypeOf } from '@kbn/config-schema'; import { schema } from '@kbn/config-schema'; -import { i18n } from '@kbn/i18n'; import { parseNextURL } from '@kbn/std'; import type { RouteDefinitionParams } from '..'; @@ -34,130 +33,71 @@ export function defineCommonRoutes({ license, logger, buildFlavor, - docLinks, }: RouteDefinitionParams) { - // Generate two identical routes with new and deprecated URL and issue a warning if route with deprecated URL is ever used. - // For a serverless build, do not register deprecated versioned routes - for (const path of [ - '/api/security/logout', - ...(buildFlavor !== 'serverless' ? ['/api/security/v1/logout'] : []), - ]) { - const isDeprecated = path === '/api/security/v1/logout'; - router.get( - { - path, - security: { - authz: { - enabled: false, - reason: 'This route must remain accessible to 3rd-party IdPs', - }, - authc: { - enabled: false, - reason: - 'This route is used for authentication - it does not require existing authentication', - }, + router.get( + { + path: '/api/security/logout', + security: { + authz: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party IdPs', }, - // Allow unknown query parameters as this endpoint can be hit by the 3rd-party with any - // set of query string parameters (e.g. SAML/OIDC logout request/response parameters). - validate: { query: schema.object({}, { unknowns: 'allow' }) }, - options: { - access: 'public', - excludeFromOAS: true, - tags: [ROUTE_TAG_CAN_REDIRECT, ROUTE_TAG_AUTH_FLOW], - ...(isDeprecated && { - deprecated: { - documentationUrl: docLinks.links.security.deprecatedV1Endpoints, - severity: 'warning', - message: i18n.translate('xpack.security.deprecations.logoutRouteMessage', { - defaultMessage: - 'The "{path}" URL is deprecated and will be removed in the next major version. Use "/api/security/logout" instead.', - values: { path }, - }), - reason: { - type: 'migrate', - newApiMethod: 'GET', - newApiPath: '/api/security/logout', - }, - }, - }), + authc: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party IdPs', }, }, - async (context, request, response) => { - const serverBasePath = basePath.serverBasePath; - if (isDeprecated) { - logger.warn( - `The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version. Use "${serverBasePath}/api/security/logout" URL instead.`, - { tags: ['deprecation'] } - ); - } + // Allow unknown query parameters as this endpoint can be hit by the 3rd-party with any + // set of query string parameters (e.g. SAML/OIDC logout request/response parameters). + validate: { query: schema.object({}, { unknowns: 'allow' }) }, + options: { + access: 'public', + excludeFromOAS: true, + tags: [ROUTE_TAG_CAN_REDIRECT, ROUTE_TAG_AUTH_FLOW], + }, + }, + async (context, request, response) => { + const serverBasePath = basePath.serverBasePath; + if (!canRedirectRequest(request)) { + return response.badRequest({ + body: 'Client should be able to process redirect response.', + }); + } - if (!canRedirectRequest(request)) { - return response.badRequest({ - body: 'Client should be able to process redirect response.', - }); + try { + const deauthenticationResult = await getAuthenticationService().logout(request); + if (deauthenticationResult.failed()) { + return response.customError(wrapIntoCustomErrorResponse(deauthenticationResult.error)); } - try { - const deauthenticationResult = await getAuthenticationService().logout(request); - if (deauthenticationResult.failed()) { - return response.customError(wrapIntoCustomErrorResponse(deauthenticationResult.error)); - } - - return response.redirected({ - headers: { location: deauthenticationResult.redirectURL || `${serverBasePath}/` }, - }); - } catch (error) { - return response.customError(wrapIntoCustomErrorResponse(error)); - } + return response.redirected({ + headers: { location: deauthenticationResult.redirectURL || `${serverBasePath}/` }, + }); + } catch (error) { + return response.customError(wrapIntoCustomErrorResponse(error)); } - ); - } + } + ); - // Generate two identical routes with new and deprecated URL and issue a warning if route with deprecated URL is ever used. - // For a serverless build, do not register deprecated versioned routes - for (const path of [ - '/internal/security/me', - ...(buildFlavor !== 'serverless' ? ['/api/security/v1/me'] : []), - ]) { - const isDeprecated = path === '/api/security/v1/me'; - router.get( - { - path, - security: { - authz: { - enabled: false, - reason: `This route delegates authorization to Core's security service; there must be an authenticated user for this route to return information`, - }, - }, - validate: false, - options: { - access: isDeprecated ? 'public' : 'internal', - ...(isDeprecated && { - deprecated: { - documentationUrl: docLinks.links.security.deprecatedV1Endpoints, - severity: 'warning', - message: i18n.translate('xpack.security.deprecations.meRouteMessage', { - defaultMessage: - 'The "{path}" endpoint is deprecated and will be removed in the next major version.', - values: { path }, - }), - reason: { type: 'remove' }, - }, - }), + router.get( + { + path: '/internal/security/me', + security: { + authz: { + enabled: false, + reason: `This route delegates authorization to Core's security service; there must be an authenticated user for this route to return information`, }, }, - createLicensedRouteHandler(async (context, request, response) => { - if (isDeprecated) { - logger.warn( - `The "${basePath.serverBasePath}${path}" endpoint is deprecated and will be removed in the next major version.`, - { tags: ['deprecation'] } - ); - } - const { security: coreSecurity } = await context.core; - return response.ok({ body: coreSecurity.authc.getCurrentUser()! }); - }) - ); - } + validate: false, + options: { + access: 'internal', + }, + }, + createLicensedRouteHandler(async (context, request, response) => { + const { security: coreSecurity } = await context.core; + return response.ok({ body: coreSecurity.authc.getCurrentUser()! }); + }) + ); const basicParamsSchema = schema.object({ username: schema.string({ minLength: 1 }), diff --git a/x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts index d1d31f4c49a69..7bca2ae8a5433 100644 --- a/x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts +++ b/x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts @@ -22,63 +22,44 @@ import { ROUTE_TAG_AUTH_FLOW, ROUTE_TAG_CAN_REDIRECT } from '../tags'; export function defineOIDCRoutes({ router, httpResources, - logger, getAuthenticationService, basePath, - docLinks, }: RouteDefinitionParams) { - // Generate two identical routes with new and deprecated URL and issue a warning if route with deprecated URL is ever used. - for (const path of ['/api/security/oidc/implicit', '/api/security/v1/oidc/implicit']) { - const isDeprecated = path === '/api/security/v1/oidc/implicit'; - /** - * The route should be configured as a redirect URI in OP when OpenID Connect implicit flow - * is used, so that we can extract authentication response from URL fragment and send it to - * the `/api/security/oidc/callback` route. - */ - httpResources.register( - { - path, - validate: false, - options: { - authRequired: false, - excludeFromOAS: true, - ...(isDeprecated && { - deprecated: { - documentationUrl: docLinks.links.security.deprecatedV1Endpoints, - severity: 'warning', - message: i18n.translate('xpack.security.deprecations.oidcImplicitRouteMessage', { - defaultMessage: - 'The "{path}" URL is deprecated and will be removed in the next major version. Use "/api/security/oidc/implicit" instead.', - values: { path }, - }), - reason: { - type: 'migrate', - newApiMethod: 'GET', - newApiPath: '/api/security/oidc/implicit', - }, - }, - }), + /** + * The route should be configured as a redirect URI in OP when OpenID Connect implicit flow + * is used, so that we can extract authentication response from URL fragment and send it to + * the `/api/security/oidc/callback` route. + */ + httpResources.register( + { + path: '/api/security/oidc/implicit', + validate: false, + security: { + authz: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party OIDC providers', + }, + authc: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party OIDC providers', }, }, - (context, request, response) => { - const serverBasePath = basePath.serverBasePath; - if (isDeprecated) { - logger.warn( - `The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version. Use "${serverBasePath}/api/security/oidc/implicit" URL instead.`, - { tags: ['deprecation'] } - ); - } - return response.renderHtml({ - body: ` + options: { + excludeFromOAS: true, + }, + }, + (context, request, response) => { + const serverBasePath = basePath.serverBasePath; + return response.renderHtml({ + body: ` Kibana OpenID Connect Login `, - }); - } - ); - } + }); + } + ); /** * The route that accompanies `/api/security/oidc/implicit` and renders a JavaScript snippet @@ -89,7 +70,17 @@ export function defineOIDCRoutes({ { path: '/internal/security/oidc/implicit.js', validate: false, - options: { authRequired: false, excludeFromOAS: true }, + security: { + authz: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party OIDC providers', + }, + authc: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party OIDC providers', + }, + }, + options: { excludeFromOAS: true }, }, (context, request, response) => { const serverBasePath = basePath.serverBasePath; @@ -103,183 +94,117 @@ export function defineOIDCRoutes({ } ); - // Generate two identical routes with new and deprecated URL and issue a warning if route with deprecated URL is ever used. - for (const path of ['/api/security/oidc/callback', '/api/security/v1/oidc']) { - const isDeprecated = path === '/api/security/v1/oidc'; - router.get( - { - path, - security: { - authz: { - enabled: false, - reason: 'This route must remain accessible to 3rd-party OIDC providers', - }, - }, - validate: { - query: schema.object( - { - authenticationResponseURI: schema.maybe(schema.uri()), - code: schema.maybe(schema.string()), - error: schema.maybe(schema.string()), - error_description: schema.maybe(schema.string()), - error_uri: schema.maybe(schema.uri()), - iss: schema.maybe(schema.uri({ scheme: ['https'] })), - login_hint: schema.maybe(schema.string()), - target_link_uri: schema.maybe(schema.uri()), - state: schema.maybe(schema.string()), - }, - // The client MUST ignore unrecognized response parameters according to - // https://openid.net/specs/openid-connect-core-1_0.html#AuthResponseValidation and - // https://tools.ietf.org/html/rfc6749#section-4.1.2. - { unknowns: 'allow' } - ), + router.get( + { + path: '/api/security/oidc/callback', + security: { + authz: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party OIDC providers', }, - options: { - access: 'public', - excludeFromOAS: true, - authRequired: false, - tags: [ROUTE_TAG_CAN_REDIRECT, ROUTE_TAG_AUTH_FLOW], - ...(isDeprecated && { - deprecated: { - documentationUrl: docLinks.links.security.deprecatedV1Endpoints, - severity: 'warning', - message: i18n.translate('xpack.security.deprecations.oidcCallbackRouteMessage', { - defaultMessage: - 'The "{path}" URL is deprecated and will be removed in the next major version. Use "/api/security/oidc/callback" instead.', - values: { path }, - }), - reason: { - type: 'migrate', - newApiMethod: 'GET', - newApiPath: '/api/security/oidc/callback', - }, - }, - }), + authc: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party OIDC providers', }, }, - createLicensedRouteHandler(async (context, request, response) => { - const serverBasePath = basePath.serverBasePath; - - // An HTTP GET request with a query parameter named `authenticationResponseURI` that includes URL fragment OpenID - // Connect Provider sent during implicit authentication flow to the Kibana own proxy page that extracted that URL - // fragment and put it into `authenticationResponseURI` query string parameter for this endpoint. See more details - // at https://openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth - let loginAttempt: ProviderLoginAttempt | undefined; - if (request.query.authenticationResponseURI) { - loginAttempt = { - type: OIDCLogin.LoginWithImplicitFlow, - authenticationResponseURI: request.query.authenticationResponseURI, - }; - } else if (request.query.code || request.query.error) { - if (isDeprecated) { - logger.warn( - `The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version. Use "${serverBasePath}/api/security/oidc/callback" URL instead.`, - { tags: ['deprecation'] } - ); - } - - // An HTTP GET request with a query parameter named `code` (or `error`) as the response to a successful (or - // failed) authentication from an OpenID Connect Provider during authorization code authentication flow. - // See more details at https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth. - loginAttempt = { - type: OIDCLogin.LoginWithAuthorizationCodeFlow, - // We pass the path only as we can't be sure of the full URL and Elasticsearch doesn't need it anyway. - authenticationResponseURI: request.url.pathname + request.url.search, - }; - } else if (request.query.iss) { - logger.warn( - `The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version. Use "${serverBasePath}/api/security/oidc/initiate_login" URL for Third-Party Initiated login instead.`, - { tags: ['deprecation'] } - ); - // An HTTP GET request with a query parameter named `iss` as part of a 3rd party initiated authentication. - // See more details at https://openid.net/specs/openid-connect-core-1_0.html#ThirdPartyInitiatedLogin - loginAttempt = { - type: OIDCLogin.LoginInitiatedBy3rdParty, - iss: request.query.iss, - loginHint: request.query.login_hint, - }; - } + validate: { + query: schema.object( + { + authenticationResponseURI: schema.maybe(schema.uri()), + code: schema.maybe(schema.string()), + error: schema.maybe(schema.string()), + error_description: schema.maybe(schema.string()), + error_uri: schema.maybe(schema.uri()), + state: schema.maybe(schema.string()), + }, + // The client MUST ignore unrecognized response parameters according to + // https://openid.net/specs/openid-connect-core-1_0.html#AuthResponseValidation and + // https://tools.ietf.org/html/rfc6749#section-4.1.2. + { unknowns: 'allow' } + ), + }, + options: { + access: 'public', + excludeFromOAS: true, + tags: [ROUTE_TAG_CAN_REDIRECT, ROUTE_TAG_AUTH_FLOW], + }, + }, + createLicensedRouteHandler(async (context, request, response) => { + // An HTTP GET request with a query parameter named `authenticationResponseURI` that includes URL fragment OpenID + // Connect Provider sent during implicit authentication flow to the Kibana own proxy page that extracted that URL + // fragment and put it into `authenticationResponseURI` query string parameter for this endpoint. See more details + // at https://openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth + let loginAttempt: ProviderLoginAttempt | undefined; + if (request.query.authenticationResponseURI) { + loginAttempt = { + type: OIDCLogin.LoginWithImplicitFlow, + authenticationResponseURI: request.query.authenticationResponseURI, + }; + } else if (request.query.code || request.query.error) { + // An HTTP GET request with a query parameter named `code` (or `error`) as the response to a successful (or + // failed) authentication from an OpenID Connect Provider during authorization code authentication flow. + // See more details at https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth. + loginAttempt = { + type: OIDCLogin.LoginWithAuthorizationCodeFlow, + // We pass the path only as we can't be sure of the full URL and Elasticsearch doesn't need it anyway. + authenticationResponseURI: request.url.pathname + request.url.search, + }; + } - if (!loginAttempt) { - return response.badRequest({ - body: 'Unrecognized login attempt.', - }); - } + if (!loginAttempt) { + return response.badRequest({ + body: 'Unrecognized login attempt.', + }); + } - return performOIDCLogin(request, response, loginAttempt); - }) - ); - } + return performOIDCLogin(request, response, loginAttempt); + }) + ); - // Generate two identical routes with new and deprecated URL and issue a warning if route with deprecated URL is ever used. - for (const path of ['/api/security/oidc/initiate_login', '/api/security/v1/oidc']) { - const isDeprecated = path === '/api/security/v1/oidc'; - /** - * An HTTP POST request with the payload parameter named `iss` as part of a 3rd party initiated authentication. - * See more details at https://openid.net/specs/openid-connect-core-1_0.html#ThirdPartyInitiatedLogin - */ - router.post( - { - path, - security: { - authz: { - enabled: false, - reason: 'This route must remain accessible to 3rd-party OIDC providers', - }, - }, - validate: { - body: schema.object( - { - iss: schema.uri({ scheme: ['https'] }), - login_hint: schema.maybe(schema.string()), - target_link_uri: schema.maybe(schema.uri()), - }, - // Other parameters MAY be sent, if defined by extensions. Any parameters used that are not understood MUST - // be ignored by the Client according to https://openid.net/specs/openid-connect-core-1_0.html#ThirdPartyInitiatedLogin. - { unknowns: 'allow' } - ), + /** + * An HTTP POST request with the payload parameter named `iss` as part of a 3rd party initiated authentication. + * See more details at https://openid.net/specs/openid-connect-core-1_0.html#ThirdPartyInitiatedLogin + */ + router.post( + { + path: '/api/security/oidc/initiate_login', + security: { + authz: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party OIDC providers', }, - options: { - access: 'public', - excludeFromOAS: true, - authRequired: false, - xsrfRequired: false, - tags: [ROUTE_TAG_CAN_REDIRECT, ROUTE_TAG_AUTH_FLOW], - ...(isDeprecated && { - deprecated: { - documentationUrl: docLinks.links.security.deprecatedV1Endpoints, - severity: 'warning', - message: i18n.translate('xpack.security.deprecations.oidcInitiateRouteMessage', { - defaultMessage: - 'The "{path}" URL is deprecated and will be removed in the next major version. Use "/api/security/oidc/initiate_login" instead.', - values: { path }, - }), - reason: { - type: 'migrate', - newApiMethod: 'POST', - newApiPath: '/api/security/oidc/initiate_login', - }, - }, - }), + authc: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party OIDC providers', }, }, - createLicensedRouteHandler(async (context, request, response) => { - const serverBasePath = basePath.serverBasePath; - if (isDeprecated) { - logger.warn( - `The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version. Use "${serverBasePath}/api/security/oidc/initiate_login" URL for Third-Party Initiated login instead.`, - { tags: ['deprecation'] } - ); - } - - return performOIDCLogin(request, response, { - type: OIDCLogin.LoginInitiatedBy3rdParty, - iss: request.body.iss, - loginHint: request.body.login_hint, - }); - }) - ); - } + validate: { + body: schema.object( + { + iss: schema.uri({ scheme: ['https'] }), + login_hint: schema.maybe(schema.string()), + target_link_uri: schema.maybe(schema.uri()), + }, + // Other parameters MAY be sent, if defined by extensions. Any parameters used that are not understood MUST + // be ignored by the Client according to https://openid.net/specs/openid-connect-core-1_0.html#ThirdPartyInitiatedLogin. + { unknowns: 'allow' } + ), + }, + options: { + access: 'public', + excludeFromOAS: true, + xsrfRequired: false, + tags: [ROUTE_TAG_CAN_REDIRECT, ROUTE_TAG_AUTH_FLOW], + }, + }, + createLicensedRouteHandler(async (context, request, response) => { + return performOIDCLogin(request, response, { + type: OIDCLogin.LoginInitiatedBy3rdParty, + iss: request.body.iss, + loginHint: request.body.login_hint, + }); + }) + ); /** * An HTTP GET request with the query string parameter named `iss` as part of a 3rd party initiated authentication. @@ -293,6 +218,10 @@ export function defineOIDCRoutes({ enabled: false, reason: 'This route must remain accessible to 3rd-party OIDC providers', }, + authc: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party OIDC providers', + }, }, validate: { query: schema.object( @@ -309,7 +238,6 @@ export function defineOIDCRoutes({ options: { access: 'public', excludeFromOAS: true, - authRequired: false, tags: [ROUTE_TAG_CAN_REDIRECT, ROUTE_TAG_AUTH_FLOW], }, }, diff --git a/x-pack/platform/plugins/shared/security/server/routes/authentication/saml.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/saml.test.ts index f693d20354e89..2abac75dd11a8 100644 --- a/x-pack/platform/plugins/shared/security/server/routes/authentication/saml.test.ts +++ b/x-pack/platform/plugins/shared/security/server/routes/authentication/saml.test.ts @@ -43,19 +43,9 @@ describe('SAML authentication routes', () => { routeHandler = acsRouteHandler; }); - it('additionally registers BWC route', () => { - expect( - router.post.mock.calls.find(([{ path }]) => path === '/api/security/saml/callback') - ).toBeDefined(); - expect( - router.post.mock.calls.find(([{ path }]) => path === '/api/security/v1/saml') - ).toBeDefined(); - }); - it('correctly defines route.', () => { expect(routeConfig.options).toEqual({ access: 'public', - authRequired: false, excludeFromOAS: true, xsrfRequired: false, tags: [ROUTE_TAG_CAN_REDIRECT, ROUTE_TAG_AUTH_FLOW], @@ -65,6 +55,16 @@ describe('SAML authentication routes', () => { query: undefined, params: undefined, }); + expect(routeConfig.security).toEqual({ + authz: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party SAML providers', + }, + authc: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party SAML providers', + }, + }); const bodyValidator = (routeConfig.validate as any).body as Type; expect(bodyValidator.validate({ SAMLResponse: 'saml-response' })).toEqual({ diff --git a/x-pack/platform/plugins/shared/security/server/routes/authentication/saml.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/saml.ts index c45f1eed3affd..b7929411a16c9 100644 --- a/x-pack/platform/plugins/shared/security/server/routes/authentication/saml.ts +++ b/x-pack/platform/plugins/shared/security/server/routes/authentication/saml.ts @@ -6,7 +6,6 @@ */ import { schema } from '@kbn/config-schema'; -import { i18n } from '@kbn/i18n'; import type { RouteDefinitionParams } from '..'; import { SAMLAuthenticationProvider, SAMLLogin } from '../../authentication'; @@ -15,87 +14,51 @@ import { ROUTE_TAG_AUTH_FLOW, ROUTE_TAG_CAN_REDIRECT } from '../tags'; /** * Defines routes required for SAML authentication. */ -export function defineSAMLRoutes({ - router, - getAuthenticationService, - basePath, - logger, - buildFlavor, - docLinks, -}: RouteDefinitionParams) { - // Generate two identical routes with new and deprecated URL and issue a warning if route with deprecated URL is ever used. - // For a serverless build, do not register deprecated versioned routes - for (const path of [ - '/api/security/saml/callback', - ...(buildFlavor !== 'serverless' ? ['/api/security/v1/saml'] : []), - ]) { - const isDeprecated = path === '/api/security/v1/saml'; - router.post( - { - path, - security: { - authz: { - enabled: false, - reason: 'This route must remain accessible to 3rd-party SAML providers', - }, +export function defineSAMLRoutes({ router, getAuthenticationService }: RouteDefinitionParams) { + router.post( + { + path: '/api/security/saml/callback', + security: { + authz: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party SAML providers', }, - validate: { - body: schema.object( - { SAMLResponse: schema.string(), RelayState: schema.maybe(schema.string()) }, - { unknowns: 'ignore' } - ), - }, - options: { - access: 'public', - excludeFromOAS: true, - authRequired: false, - xsrfRequired: false, - tags: [ROUTE_TAG_CAN_REDIRECT, ROUTE_TAG_AUTH_FLOW], - ...(isDeprecated && { - deprecated: { - documentationUrl: docLinks.links.security.deprecatedV1Endpoints, - severity: 'warning', - message: i18n.translate('xpack.security.deprecations.samlPostRouteMessage', { - defaultMessage: - 'The "{path}" URL is deprecated and will be removed in the next major version. Use "/api/security/saml/callback" instead.', - values: { path }, - }), - reason: { - type: 'migrate', - newApiMethod: 'POST', - newApiPath: '/api/security/saml/callback', - }, - }, - }), + authc: { + enabled: false, + reason: 'This route must remain accessible to 3rd-party SAML providers', }, }, - async (context, request, response) => { - if (isDeprecated) { - const serverBasePath = basePath.serverBasePath; - logger.warn( - // When authenticating using SAML we _expect_ to redirect to the SAML Identity provider. - `The "${serverBasePath}${path}" URL is deprecated and might stop working in a future release. Use "${serverBasePath}/api/security/saml/callback" URL instead.` - ); - } + validate: { + body: schema.object( + { SAMLResponse: schema.string(), RelayState: schema.maybe(schema.string()) }, + { unknowns: 'ignore' } + ), + }, + options: { + access: 'public', + excludeFromOAS: true, + xsrfRequired: false, + tags: [ROUTE_TAG_CAN_REDIRECT, ROUTE_TAG_AUTH_FLOW], + }, + }, + async (context, request, response) => { + // When authenticating using SAML we _expect_ to redirect to the Kibana target location. + const authenticationResult = await getAuthenticationService().login(request, { + provider: { type: SAMLAuthenticationProvider.type }, + value: { + type: SAMLLogin.LoginWithSAMLResponse, + samlResponse: request.body.SAMLResponse, + relayState: request.body.RelayState, + }, + }); - // When authenticating using SAML we _expect_ to redirect to the Kibana target location. - const authenticationResult = await getAuthenticationService().login(request, { - provider: { type: SAMLAuthenticationProvider.type }, - value: { - type: SAMLLogin.LoginWithSAMLResponse, - samlResponse: request.body.SAMLResponse, - relayState: request.body.RelayState, - }, + if (authenticationResult.redirected()) { + return response.redirected({ + headers: { location: authenticationResult.redirectURL! }, }); - - if (authenticationResult.redirected()) { - return response.redirected({ - headers: { location: authenticationResult.redirectURL! }, - }); - } - - return response.unauthorized({ body: authenticationResult.error }); } - ); - } + + return response.unauthorized({ body: authenticationResult.error }); + } + ); } diff --git a/x-pack/platform/plugins/shared/stack_connectors/common/experimental_features.ts b/x-pack/platform/plugins/shared/stack_connectors/common/experimental_features.ts index 56f3ba247554c..1833cf01a5372 100644 --- a/x-pack/platform/plugins/shared/stack_connectors/common/experimental_features.ts +++ b/x-pack/platform/plugins/shared/stack_connectors/common/experimental_features.ts @@ -17,6 +17,7 @@ export const allowedExperimentalValues = Object.freeze({ crowdstrikeConnectorOn: true, inferenceConnectorOn: false, crowdstrikeConnectorRTROn: false, + microsoftDefenderEndpointOn: false, }); export type ExperimentalConfigKeys = Array; diff --git a/x-pack/platform/plugins/shared/stack_connectors/common/microsoft_defender_endpoint/constants.ts b/x-pack/platform/plugins/shared/stack_connectors/common/microsoft_defender_endpoint/constants.ts new file mode 100644 index 0000000000000..bc78aa44ff91c --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/common/microsoft_defender_endpoint/constants.ts @@ -0,0 +1,17 @@ +/* + * 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. + */ + +export const MICROSOFT_DEFENDER_ENDPOINT_TITLE = 'Microsoft Defender for Endpoint'; +export const MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID = '.microsoft_defender_endpoint'; + +export enum MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION { + TEST_CONNECTOR = 'testConnector', + GET_AGENT_DETAILS = 'getAgentDetails', + ISOLATE_HOST = 'isolateHost', + RELEASE_HOST = 'releaseHost', + GET_ACTIONS = 'getActions', +} diff --git a/x-pack/platform/plugins/shared/stack_connectors/common/microsoft_defender_endpoint/schema.ts b/x-pack/platform/plugins/shared/stack_connectors/common/microsoft_defender_endpoint/schema.ts new file mode 100644 index 0000000000000..179b9cc26d550 --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/common/microsoft_defender_endpoint/schema.ts @@ -0,0 +1,132 @@ +/* + * 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. + */ + +import { schema } from '@kbn/config-schema'; +import { MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION } from './constants'; + +// ---------------------------------- +// Connector setup schemas +// ---------------------------------- +export const MicrosoftDefenderEndpointConfigSchema = schema.object({ + clientId: schema.string({ minLength: 1 }), + tenantId: schema.string({ minLength: 1 }), + oAuthServerUrl: schema.string({ minLength: 1 }), + oAuthScope: schema.string({ minLength: 1 }), + apiUrl: schema.string({ minLength: 1 }), +}); +export const MicrosoftDefenderEndpointSecretsSchema = schema.object({ + clientSecret: schema.string({ minLength: 1 }), +}); + +// ---------------------------------- +// Connector Methods +// ---------------------------------- +export const MicrosoftDefenderEndpointDoNotValidateResponseSchema = schema.any(); + +export const MicrosoftDefenderEndpointBaseApiResponseSchema = schema.maybe( + schema.object({}, { unknowns: 'allow' }) +); + +export const TestConnectorParamsSchema = schema.object({}); + +export const AgentDetailsParamsSchema = schema.object({ + id: schema.string({ minLength: 1 }), +}); + +export const IsolateHostParamsSchema = schema.object({ + id: schema.string({ minLength: 1 }), + comment: schema.string({ minLength: 1 }), +}); + +export const ReleaseHostParamsSchema = schema.object({ + id: schema.string({ minLength: 1 }), + comment: schema.string({ minLength: 1 }), +}); + +const MachineActionTypeSchema = schema.oneOf([ + schema.literal('RunAntiVirusScan'), + schema.literal('Offboard'), + schema.literal('LiveResponse'), + schema.literal('CollectInvestigationPackage'), + schema.literal('Isolate'), + schema.literal('Unisolate'), + schema.literal('StopAndQuarantineFile'), + schema.literal('RestrictCodeExecution'), + schema.literal('UnrestrictCodeExecution'), +]); + +const MachineActionStatusSchema = schema.oneOf([ + schema.literal('Pending'), + schema.literal('InProgress'), + schema.literal('Succeeded'), + schema.literal('Failed'), + schema.literal('TimeOut'), + schema.literal('Cancelled'), +]); + +export const GetActionsParamsSchema = schema.object({ + id: schema.maybe( + schema.oneOf([ + schema.string({ minLength: 1 }), + schema.arrayOf(schema.string({ minLength: 1 }), { minSize: 1 }), + ]) + ), + status: schema.maybe( + schema.oneOf([ + MachineActionStatusSchema, + schema.arrayOf(MachineActionStatusSchema, { minSize: 1 }), + ]) + ), + machineId: schema.maybe( + schema.oneOf([ + schema.string({ minLength: 1 }), + schema.arrayOf(schema.string({ minLength: 1 }), { minSize: 1 }), + ]) + ), + type: schema.maybe( + schema.oneOf([MachineActionTypeSchema, schema.arrayOf(MachineActionTypeSchema, { minSize: 1 })]) + ), + requestor: schema.maybe( + schema.oneOf([ + schema.string({ minLength: 1 }), + schema.arrayOf(schema.string({ minLength: 1 }), { minSize: 1 }), + ]) + ), + creationDateTimeUtc: schema.maybe( + schema.oneOf([ + schema.string({ minLength: 1 }), + schema.arrayOf(schema.string({ minLength: 1 }), { minSize: 1 }), + ]) + ), + page: schema.maybe(schema.number({ min: 1, defaultValue: 1 })), + pageSize: schema.maybe(schema.number({ min: 1, max: 1000, defaultValue: 20 })), +}); + +// ---------------------------------- +// Connector Sub-Actions +// ---------------------------------- + +const TestConnectorSchema = schema.object({ + subAction: schema.literal(MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.TEST_CONNECTOR), + subActionParams: TestConnectorParamsSchema, +}); + +const IsolateHostSchema = schema.object({ + subAction: schema.literal(MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.ISOLATE_HOST), + subActionParams: IsolateHostParamsSchema, +}); + +const ReleaseHostSchema = schema.object({ + subAction: schema.literal(MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.RELEASE_HOST), + subActionParams: ReleaseHostParamsSchema, +}); + +export const MicrosoftDefenderEndpointActionParamsSchema = schema.oneOf([ + TestConnectorSchema, + IsolateHostSchema, + ReleaseHostSchema, +]); diff --git a/x-pack/platform/plugins/shared/stack_connectors/common/microsoft_defender_endpoint/types.ts b/x-pack/platform/plugins/shared/stack_connectors/common/microsoft_defender_endpoint/types.ts new file mode 100644 index 0000000000000..e4bfbd6b51cec --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/common/microsoft_defender_endpoint/types.ts @@ -0,0 +1,177 @@ +/* + * 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. + */ + +import { TypeOf } from '@kbn/config-schema'; + +import { + MicrosoftDefenderEndpointSecretsSchema, + MicrosoftDefenderEndpointConfigSchema, + MicrosoftDefenderEndpointActionParamsSchema, + MicrosoftDefenderEndpointBaseApiResponseSchema, + IsolateHostParamsSchema, + ReleaseHostParamsSchema, + TestConnectorParamsSchema, + AgentDetailsParamsSchema, + GetActionsParamsSchema, +} from './schema'; + +export type MicrosoftDefenderEndpointConfig = TypeOf; + +export type MicrosoftDefenderEndpointSecrets = TypeOf< + typeof MicrosoftDefenderEndpointSecretsSchema +>; + +export type MicrosoftDefenderEndpointBaseApiResponse = TypeOf< + typeof MicrosoftDefenderEndpointBaseApiResponseSchema +>; + +export interface MicrosoftDefenderEndpointTestConnector { + results: string[]; +} + +export type MicrosoftDefenderEndpointAgentDetailsParams = TypeOf; + +export type MicrosoftDefenderEndpointGetActionsParams = TypeOf; + +export interface MicrosoftDefenderEndpointGetActionsResponse { + '@odata.context': string; + '@odata.count'?: number; + /** If value is `-1`, then API did not provide a total count */ + total: number; + page: number; + pageSize: number; + value: MicrosoftDefenderEndpointMachineAction[]; +} + +/** + * @see https://learn.microsoft.com/en-us/defender-endpoint/api/machine + */ +export interface MicrosoftDefenderEndpointMachine { + /** machine identity. */ + id: string; + /** machine fully qualified name. */ + computerDnsName: string; + /** First date and time where the machine was observed by Microsoft Defender for Endpoint. */ + firstSeen: string; + /** Time and date of the last received full device report. A device typically sends a full report every 24 hours. NOTE: This property doesn't correspond to the last seen value in the UI. It pertains to the last device update. */ + lastSeen: string; + /** Operating system platform. */ + osPlatform: string; + /** Status of machine onboarding. Possible values are: onboarded, CanBeOnboarded, Unsupported, and InsufficientInfo. */ + onboardingstatus: string; + /** Operating system processor. Use osArchitecture property instead. */ + osProcessor: string; + /** Operating system Version. */ + version: string; + /** Operating system build number. */ + osBuild?: number; + /** Last IP on local NIC on the machine. */ + lastIpAddress: string; + /** Last IP through which the machine accessed the internet. */ + lastExternalIpAddress: string; + /** machine health status. Possible values are: Active, Inactive, ImpairedCommunication, NoSensorData, NoSensorDataImpairedCommunication, and Unknown. */ + healthStatus: + | 'Active' + | 'Inactive' + | 'ImpairedCommunication' + | 'NoSensorData' + | 'NoSensorDataImpairedCommunication' + | 'Unknown'; + /** Machine group Name. */ + rbacGroupName: string; + /** Machine group ID. */ + rbacGroupId: string; + /** Risk score as evaluated by Microsoft Defender for Endpoint. Possible values are: None, Informational, Low, Medium, and High. */ + riskScore?: 'None' | 'Informational' | 'Low' | 'Medium' | 'High'; + /** Microsoft Entra Device ID (when machine is Microsoft Entra joined). */ + aadDeviceId?: string; + /** Set of machine tags. */ + machineTags: string[]; + /** Exposure level as evaluated by Microsoft Defender for Endpoint. Possible values are: None, Low, Medium, and High. */ + exposureLevel?: 'None' | 'Low' | 'Medium' | 'High'; + /** The value of the device. Possible values are: Normal, Low, and High. */ + deviceValue?: 'Normal' | 'Low' | 'High'; + /** Set of IpAddress objects. See Get machines API. */ + ipAddresses: Array<{ + ipAddress: string; + macAddress: string; + type: string; + operationalStatus: string; + }>; + /** Operating system architecture. Possible values are: 32-bit, 64-bit. Use this property instead of osProcessor. */ + osArchitecture: string; +} + +/** + * @see https://learn.microsoft.com/en-us/defender-endpoint/api/machineaction + */ +export interface MicrosoftDefenderEndpointMachineAction { + /** Identity of the Machine Action entity. */ + id: string; + /** Type of the action. Possible values are: RunAntiVirusScan, Offboard, LiveResponse, CollectInvestigationPackage, Isolate, Unisolate, StopAndQuarantineFile, RestrictCodeExecution, and UnrestrictCodeExecution. */ + type: + | 'RunAntiVirusScan' + | 'Offboard' + | 'LiveResponse' + | 'CollectInvestigationPackage' + | 'Isolate' + | 'Unisolate' + | 'StopAndQuarantineFile' + | 'RestrictCodeExecution' + | 'UnrestrictCodeExecution'; + /** Scope of the action. Full or Selective for Isolation, Quick or Full for antivirus scan. */ + scope?: string; + /** Identity of the person that executed the action. */ + requestor: string; + /** Id the customer can submit in the request for custom correlation. */ + externalID?: string; + /** The name of the user/application that submitted the action. */ + requestSource: string; + /** Commands to run. Allowed values are PutFile, RunScript, GetFile. */ + commands: Array<'PutFile' | 'RunScript' | 'GetFile'>; + /** Identity of the person that canceled the action. */ + cancellationRequestor: string; + /** Comment that was written when issuing the action. */ + requestorComment: string; + /** Comment that was written when canceling the action. */ + cancellationComment: string; + /** Current status of the command. Possible values are: Pending, InProgress, Succeeded, Failed, TimeOut, and Cancelled. */ + status: 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'TimeOut' | 'Cancelled'; + /** ID of the machine on which the action was executed. */ + machineId: string; + /** Name of the machine on which the action was executed. */ + computerDnsName: string; + /** The date and time when the action was created. */ + creationDateTimeUtc: string; + /** The date and time when the action was canceled. */ + cancellationDateTimeUtc: string; + /** The last date and time when the action status was updated. */ + lastUpdateDateTimeUtc: string; + /** Machine action title. */ + title: string; + /** Contains two Properties. string fileIdentifier, Enum fileIdentifierType with the possible values: Sha1, Sha256, and Md5. */ + relatedFileInfo?: { fileIdentifier: string; fileIdentifierType: 'Sha1' | 'Sha256' | 'Md5' }; + errorResult?: number; + troubleshootInfo?: string; +} + +export type MicrosoftDefenderEndpointTestConnectorParams = TypeOf; + +export type MicrosoftDefenderEndpointIsolateHostParams = TypeOf; + +export type MicrosoftDefenderEndpointReleaseHostParams = TypeOf; + +export type MicrosoftDefenderEndpointActionParams = TypeOf< + typeof MicrosoftDefenderEndpointActionParamsSchema +>; + +export interface MicrosoftDefenderEndpointApiTokenResponse { + token_type: 'bearer'; + /** The amount of time that an access token is valid (in seconds NOT milliseconds). */ + expires_in: number; + access_token: string; +} diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/common/index.ts b/x-pack/platform/plugins/shared/stack_connectors/public/common/index.ts index f4ef0e02d6c37..d699839a8d159 100644 --- a/x-pack/platform/plugins/shared/stack_connectors/public/common/index.ts +++ b/x-pack/platform/plugins/shared/stack_connectors/public/common/index.ts @@ -30,3 +30,5 @@ export { CrowdstrikeLogo }; export { BEDROCK_CONNECTOR_ID } from '../../common/bedrock/constants'; export { BedrockLogo }; + +export { MicrosoftDefenderEndpointLogo } from '../connector_types/microsoft_defender_endpoint/logo'; diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/index.ts b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/index.ts index 92c10bc6ccd57..fcb33f476e0b0 100644 --- a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/index.ts +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/index.ts @@ -7,6 +7,7 @@ import { ValidatedEmail, ValidateEmailAddressesOptions } from '@kbn/actions-plugin/common'; import { TriggersAndActionsUIPublicPluginSetup } from '@kbn/triggers-actions-ui-plugin/public'; +import { getMicrosoftDefenderEndpointConnectorType } from './microsoft_defender_endpoint'; import { getCasesWebhookConnectorType } from './cases_webhook'; import { getEmailConnectorType } from './email'; import { getIndexConnectorType } from './es_index'; @@ -84,4 +85,7 @@ export function registerConnectorTypes({ if (ExperimentalFeaturesService.get().inferenceConnectorOn) { connectorTypeRegistry.register(getInferenceConnectorType()); } + if (ExperimentalFeaturesService.get().microsoftDefenderEndpointOn) { + connectorTypeRegistry.register(getMicrosoftDefenderEndpointConnectorType()); + } } diff --git a/x-pack/platform/packages/private/ml/kibana_theme/jest.config.js b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/index.ts similarity index 61% rename from x-pack/platform/packages/private/ml/kibana_theme/jest.config.js rename to x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/index.ts index 98e6c95b278b3..9530bdc4b4871 100644 --- a/x-pack/platform/packages/private/ml/kibana_theme/jest.config.js +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/index.ts @@ -5,8 +5,4 @@ * 2.0. */ -module.exports = { - preset: '@kbn/test/jest_node', - rootDir: '../../../../../..', - roots: ['/x-pack/platform/packages/private/ml/kibana_theme'], -}; +export { getConnectorType as getMicrosoftDefenderEndpointConnectorType } from './microsoft_defender_endpoint'; diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/logo.tsx b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/logo.tsx new file mode 100644 index 0000000000000..a5f39dd571f7f --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/logo.tsx @@ -0,0 +1,35 @@ +/* + * 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. + */ + +import React, { memo } from 'react'; +import { EuiIcon, EuiIconProps } from '@elastic/eui'; + +const MicrosoftIconSvg = memo(() => { + return ( + + + + + + + ); +}); +MicrosoftIconSvg.displayName = 'MicrosoftIconSvg'; + +export const MicrosoftDefenderEndpointLogo = memo>((props) => { + return ; +}); +MicrosoftDefenderEndpointLogo.displayName = 'MicrosoftDefenderEndpointLogo'; + +// eslint-disable-next-line import/no-default-export +export { MicrosoftDefenderEndpointLogo as default }; diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpiont_connector.test.tsx b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpiont_connector.test.tsx new file mode 100644 index 0000000000000..eb76c72ae3158 --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpiont_connector.test.tsx @@ -0,0 +1,76 @@ +/* + * 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. + */ + +import React from 'react'; +import { type RenderResult } from '@testing-library/react'; +import { ConnectorFormTestProvider, createAppMockRenderer } from '../lib/test_utils'; +import MicrosoftDefenderEndpointActionConnectorFields from './microsoft_defender_endpoint_connector'; +import { ActionConnectorFieldsProps } from '@kbn/alerts-ui-shared'; +import { MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID } from '../../../common/microsoft_defender_endpoint/constants'; +import { ConnectorFormSchema } from '@kbn/triggers-actions-ui-plugin/public'; + +describe('Microsoft Defender for Endpoint Connector UI', () => { + let renderProps: ActionConnectorFieldsProps; + let render: () => RenderResult; + let connectorFormProps: ConnectorFormSchema; + + beforeEach(() => { + const appMockRenderer = createAppMockRenderer(); + + renderProps = { + readOnly: false, + isEdit: false, + registerPreSubmitValidator: jest.fn(), + }; + connectorFormProps = { + id: 'test', + name: 'email', + isDeprecated: false, + actionTypeId: MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID, + secrets: { + clientSecret: 'shhhh', + }, + config: { + clientId: 'client-a', + tenantId: 'tenant-1', + oAuthServerUrl: 'https://t_e_s_t.com', + oAuthScope: 'some-scope', + apiUrl: 'https://api.t_e_s_t.com', + }, + }; + + render = () => { + return appMockRenderer.render( + + + + ); + }; + }); + + it.each([ + 'config.clientId', + 'config.tenantId', + 'config.oAuthServerUrl', + 'config.oAuthScope', + 'config.apiUrl', + 'secrets.clientSecret', + ])('should display input for setting: %s', (field: string) => { + const { getByTestId } = render(); + + expect(getByTestId(`${field}-input`)).not.toBeNull(); + }); + + it.each(['config.oAuthServerUrl', 'config.oAuthScope', 'config.apiUrl'])( + 'should include default value for field: %s', + (field: string) => { + const { getByTestId } = render(); + + expect(getByTestId(`${field}-input`)).toHaveValue(); + } + ); +}); diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint.ts b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint.ts new file mode 100644 index 0000000000000..0e1c1f08b3bc5 --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint.ts @@ -0,0 +1,65 @@ +/* + * 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. + */ + +import { lazy } from 'react'; +import { i18n } from '@kbn/i18n'; +import type { + ActionTypeModel as ConnectorTypeModel, + GenericValidationResult, +} from '@kbn/triggers-actions-ui-plugin/public'; +import { + MICROSOFT_DEFENDER_ENDPOINT_TITLE, + MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID, + MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION, +} from '../../../common/microsoft_defender_endpoint/constants'; +import type { + MicrosoftDefenderEndpointConfig, + MicrosoftDefenderEndpointActionParams, + MicrosoftDefenderEndpointSecrets, +} from '../../../common/microsoft_defender_endpoint/types'; + +interface ValidationErrors { + subAction: string[]; +} + +export function getConnectorType(): ConnectorTypeModel< + MicrosoftDefenderEndpointConfig, + MicrosoftDefenderEndpointSecrets, + MicrosoftDefenderEndpointActionParams +> { + return { + id: MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID, + actionTypeTitle: MICROSOFT_DEFENDER_ENDPOINT_TITLE, + iconClass: lazy(() => import('./logo')), + isExperimental: true, + selectMessage: i18n.translate( + 'xpack.stackConnectors.security.MicrosoftDefenderEndpointSecrets.config.selectMessageText', + { + defaultMessage: 'Execute response actions against Microsoft Defender Endpoint hosts', + } + ), + validateParams: async ( + actionParams: MicrosoftDefenderEndpointActionParams + ): Promise> => { + const translations = await import('./translations'); + const errors: ValidationErrors = { + subAction: [], + }; + const { subAction } = actionParams; + + // The internal "subAction" param should always be valid, ensure it is only if "subActionParams" are valid + if (!subAction) { + errors.subAction.push(translations.ACTION_REQUIRED); + } else if (!Object.values(MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION).includes(subAction)) { + errors.subAction.push(translations.INVALID_ACTION); + } + return { errors }; + }, + actionConnectorFields: lazy(() => import('./microsoft_defender_endpoint_connector')), + actionParamsFields: lazy(() => import('./microsoft_defender_endpoint_params')), + }; +} diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint_connector.tsx b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint_connector.tsx new file mode 100644 index 0000000000000..b16ec08f4748b --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint_connector.tsx @@ -0,0 +1,71 @@ +/* + * 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. + */ + +import React from 'react'; + +import { + ActionConnectorFieldsProps, + ConfigFieldSchema, + SecretsFieldSchema, + SimpleConnectorForm, +} from '@kbn/triggers-actions-ui-plugin/public'; +import * as translations from './translations'; + +const configFormSchema: ConfigFieldSchema[] = [ + { + id: 'clientId', + label: translations.CLIENT_ID_LABEL, + isRequired: true, + }, + { + id: 'tenantId', + label: translations.TENANT_ID_LABEL, + isRequired: true, + }, + { + id: 'oAuthServerUrl', + label: translations.OAUTH_URL_LABEL, + isRequired: true, + isUrlField: true, + defaultValue: 'https://login.microsoftonline.com', + }, + { + id: 'oAuthScope', + label: translations.OAUTH_SCOPE, + isRequired: true, + defaultValue: 'https://securitycenter.onmicrosoft.com/windowsatpservice/.default', + }, + { + id: 'apiUrl', + label: translations.API_URL_LABEL, + isUrlField: true, + isRequired: true, + defaultValue: 'https://api.securitycenter.windows.com', + }, +]; + +const secretsFormSchema: SecretsFieldSchema[] = [ + { + id: 'clientSecret', + label: translations.CLIENT_SECRET_VALUE_LABEL, + isPasswordField: true, + }, +]; + +const MicrosoftDefenderEndpointActionConnectorFields: React.FunctionComponent< + ActionConnectorFieldsProps +> = ({ readOnly, isEdit }) => ( + +); + +// eslint-disable-next-line import/no-default-export +export { MicrosoftDefenderEndpointActionConnectorFields as default }; diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint_params.test.tsx b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint_params.test.tsx new file mode 100644 index 0000000000000..fcd5d471c0f53 --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint_params.test.tsx @@ -0,0 +1,39 @@ +/* + * 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. + */ +import { render as reactRender, type RenderResult } from '@testing-library/react'; +import MicrosoftDefenderEndpointParamsFields from './microsoft_defender_endpoint_params'; +import type { ActionParamsProps } from '@kbn/alerts-ui-shared'; +import { MicrosoftDefenderEndpointActionParams } from '../../../common/microsoft_defender_endpoint/types'; +import React from 'react'; +import { RUN_CONNECTOR_TEST_MESSAGE } from './translations'; + +describe('Microsoft Defender for Endpoint Params.', () => { + let renderProps: ActionParamsProps; + let render: () => RenderResult; + + beforeEach(() => { + renderProps = { + errors: {}, + editAction: jest.fn(), + actionParams: {}, + index: 0, + }; + render = () => reactRender(); + }); + + it('should render UI with expected message', () => { + const { getByTestId } = render(); + + expect(getByTestId('msDefenderParams')).toHaveTextContent(RUN_CONNECTOR_TEST_MESSAGE); + }); + + it('should set subAction to test_connector', () => { + render(); + + expect(renderProps.editAction).toHaveBeenCalledWith('subAction', 'testConnector', 0); + }); +}); diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint_params.tsx b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint_params.tsx new file mode 100644 index 0000000000000..6e6a64090d67e --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint_params.tsx @@ -0,0 +1,36 @@ +/* + * 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. + */ + +import React, { memo, useEffect } from 'react'; +import type { ActionParamsProps } from '@kbn/alerts-ui-shared'; +import { EuiFormRow, EuiText } from '@elastic/eui'; +import { MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION } from '../../../common/microsoft_defender_endpoint/constants'; +import { RUN_CONNECTOR_TEST_MESSAGE } from './translations'; +import { MicrosoftDefenderEndpointActionParams } from '../../../common/microsoft_defender_endpoint/types'; + +const MicrosoftDefenderEndpointParamsFields = memo< + ActionParamsProps +>(({ editAction, actionParams, index }) => { + useEffect(() => { + if (!actionParams.subAction) { + editAction('subAction', MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.TEST_CONNECTOR, index); + } + }, [actionParams.subAction, editAction, index]); + + return ( + <> + + + {RUN_CONNECTOR_TEST_MESSAGE} + + + + ); +}); + +// eslint-disable-next-line import/no-default-export +export { MicrosoftDefenderEndpointParamsFields as default }; diff --git a/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/translations.ts b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/translations.ts new file mode 100644 index 0000000000000..902a6a555ce8a --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/public/connector_types/microsoft_defender_endpoint/translations.ts @@ -0,0 +1,68 @@ +/* + * 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. + */ + +import { i18n } from '@kbn/i18n'; + +// config form +export const OAUTH_URL_LABEL = i18n.translate( + 'xpack.stackConnectors.security.MicrosoftDefenderEndpoint.config.oAuthUrlLabel', + { + defaultMessage: 'OAuth Server URL', + } +); +export const OAUTH_SCOPE = i18n.translate( + 'xpack.stackConnectors.security.MicrosoftDefenderEndpoint.config.oAuthScope', + { + defaultMessage: 'OAuth scope', + } +); +export const API_URL_LABEL = i18n.translate( + 'xpack.stackConnectors.security.MicrosoftDefenderEndpoint.config.apiUrlLabel', + { + defaultMessage: 'API URL', + } +); + +export const CLIENT_ID_LABEL = i18n.translate( + 'xpack.stackConnectors.security.MicrosoftDefenderEndpoint.config.clientIdLabel', + { + defaultMessage: 'Application client ID', + } +); + +export const CLIENT_SECRET_VALUE_LABEL = i18n.translate( + 'xpack.stackConnectors.security.MicrosoftDefenderEndpoint.config.clientSecretValueLabel', + { + defaultMessage: 'Client secret value', + } +); + +export const TENANT_ID_LABEL = i18n.translate( + 'xpack.stackConnectors.security.MicrosoftDefenderEndpoint.config.tenantIdLabel', + { + defaultMessage: 'Tenant ID', + } +); + +export const RUN_CONNECTOR_TEST_MESSAGE = i18n.translate( + 'xpack.stackConnectors.security.MicrosoftDefenderEndpoint.params.testMessage', + { defaultMessage: "Run a test to validate the connector's configuration" } +); + +export const ACTION_REQUIRED = i18n.translate( + 'xpack.stackConnectors.security.MicrosoftDefenderEndpoint.params.error.requiredActionText', + { + defaultMessage: 'Action is required.', + } +); + +export const INVALID_ACTION = i18n.translate( + 'xpack.stackConnectors.security.MicrosoftDefenderEndpoint.params.error.invalidActionText', + { + defaultMessage: 'Invalid action name.', + } +); diff --git a/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/index.ts b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/index.ts index 08b0331f1cf2f..8fe0bcd87455e 100644 --- a/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/index.ts +++ b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/index.ts @@ -7,6 +7,7 @@ import { PluginSetupContract as ActionsPluginSetupContract } from '@kbn/actions-plugin/server'; +import { getMicrosoftDefenderEndpointConnectorType } from './microsoft_defender_endpoint'; import { getConnectorType as getCasesWebhookConnectorType } from './cases_webhook'; import { getConnectorType as getJiraConnectorType } from './jira'; import { getServiceNowITSMConnectorType } from './servicenow_itsm'; @@ -123,4 +124,7 @@ export function registerConnectorTypes({ if (experimentalFeatures.inferenceConnectorOn) { actions.registerSubActionConnectorType(getInferenceConnectorType()); } + if (experimentalFeatures.microsoftDefenderEndpointOn) { + actions.registerSubActionConnectorType(getMicrosoftDefenderEndpointConnectorType()); + } } diff --git a/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/lib/mocks.ts b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/lib/mocks.ts new file mode 100644 index 0000000000000..ee2c2e7e23b4c --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/lib/mocks.ts @@ -0,0 +1,93 @@ +/* + * 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. + */ + +import { AxiosResponse } from 'axios'; +import { SubActionConnector } from '@kbn/actions-plugin/server'; +import { SubActionRequestParams } from '@kbn/actions-plugin/server/sub_action_framework/types'; +import { ConnectorUsageCollector } from '@kbn/actions-plugin/server/usage'; + +/** + * Create an Axios response object mock + * + * @param data + * @param status + * @param statusText + */ +export const createAxiosResponseMock = ( + data: R, + status = 200, + statusText = 'ok' +): AxiosResponse => { + return { + data, + status, + statusText, + headers: {}, + // @ts-expect-error + config: {}, + }; +}; + +export type ConnectorInstanceMock> = jest.Mocked< + T & { + // Protected methods that will also be exposed for testing purposes + request: SubActionConnector['request']; + } +>; + +/** + * Creates an instance of the Connector class that is passed in and wraps it in a `Proxy`, and + * intercepts calls to public methods (and a few protected methods) and wraps those in `jest.fn()` so + * that they can be mocked. + * + * For an example on the usage of this factory function, see the Mocks for Microsoft Defender for Endpoint connector. + * + * @param ConnectorClass + * @param constructorArguments + */ +export const createConnectorInstanceMock = >( + ConnectorClass: T, + constructorArguments: ConstructorParameters[0] +): ConnectorInstanceMock> => { + const requestMock = jest.fn(); + + const ConnectorClassExtended = + // @ts-expect-error + class extends ConnectorClass { + public async request( + params: SubActionRequestParams, + usageCollector: ConnectorUsageCollector + ): Promise> { + return requestMock(params, usageCollector); + } + }; + // @ts-expect-error + const instance = new ConnectorClassExtended(constructorArguments); + const mockedMethods: { [K in keyof InstanceType]?: jest.Mock } = { request: requestMock }; + const instanceAccessorHandler: ProxyHandler> = {}; + const proxiedInstance = new Proxy(instance, instanceAccessorHandler) as ConnectorInstanceMock< + InstanceType + >; + + instanceAccessorHandler.get = function (target, prop, receiver) { + if (typeof instance[prop] === 'function') { + if (!mockedMethods[prop as keyof InstanceType]) { + mockedMethods[prop as keyof InstanceType] = jest.fn( + instance[prop].bind(proxiedInstance) // << Magic sauce! + ); + } + + return mockedMethods[prop as keyof InstanceType]; + } + + // @ts-expect-error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter. + // eslint-disable-next-line prefer-rest-params + return Reflect.get(...arguments); + }; + + return proxiedInstance; +}; diff --git a/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/index.ts b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/index.ts new file mode 100644 index 0000000000000..7a7162d808837 --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/index.ts @@ -0,0 +1,62 @@ +/* + * 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. + */ + +import { + SubActionConnectorType, + ValidatorType, +} from '@kbn/actions-plugin/server/sub_action_framework/types'; +import { EndpointSecurityConnectorFeatureId } from '@kbn/actions-plugin/common'; +import { ActionExecutionSourceType, urlAllowListValidator } from '@kbn/actions-plugin/server'; +import { + ENDPOINT_SECURITY_EXECUTE_PRIVILEGE, + ENDPOINT_SECURITY_SUB_ACTIONS_EXECUTE_PRIVILEGE, +} from '@kbn/actions-plugin/server/feature'; +import { MicrosoftDefenderEndpointConnector } from './microsoft_defender_endpoint'; + +import { + MicrosoftDefenderEndpointConfig, + MicrosoftDefenderEndpointSecrets, +} from '../../../common/microsoft_defender_endpoint/types'; +import { + MicrosoftDefenderEndpointConfigSchema, + MicrosoftDefenderEndpointSecretsSchema, +} from '../../../common/microsoft_defender_endpoint/schema'; +import { + MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID, + MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION, + MICROSOFT_DEFENDER_ENDPOINT_TITLE, +} from '../../../common/microsoft_defender_endpoint/constants'; + +export const getMicrosoftDefenderEndpointConnectorType = (): SubActionConnectorType< + MicrosoftDefenderEndpointConfig, + MicrosoftDefenderEndpointSecrets +> => ({ + id: MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID, + name: MICROSOFT_DEFENDER_ENDPOINT_TITLE, + getService: (params) => new MicrosoftDefenderEndpointConnector(params), + schema: { + config: MicrosoftDefenderEndpointConfigSchema, + secrets: MicrosoftDefenderEndpointSecretsSchema, + }, + validators: [ + { type: ValidatorType.CONFIG, validator: urlAllowListValidator('oAuthServerUrl') }, + { type: ValidatorType.CONFIG, validator: urlAllowListValidator('apiUrl') }, + ], + supportedFeatureIds: [EndpointSecurityConnectorFeatureId], + minimumLicenseRequired: 'enterprise' as const, + subFeature: 'endpointSecurity', + getKibanaPrivileges: (args) => { + const privileges = [ENDPOINT_SECURITY_EXECUTE_PRIVILEGE]; + if ( + args?.source === ActionExecutionSourceType.HTTP_REQUEST && + args?.params?.subAction !== MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.TEST_CONNECTOR + ) { + privileges.push(ENDPOINT_SECURITY_SUB_ACTIONS_EXECUTE_PRIVILEGE); + } + return privileges; + }, +}); diff --git a/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint.test.ts b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint.test.ts new file mode 100644 index 0000000000000..fa5ae386da9eb --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint.test.ts @@ -0,0 +1,208 @@ +/* + * 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. + */ + +import { + CreateMicrosoftDefenderConnectorMockResponse, + microsoftDefenderEndpointConnectorMocks, +} from './mocks'; + +describe('Microsoft Defender for Endpoint Connector', () => { + let connectorMock: CreateMicrosoftDefenderConnectorMockResponse; + + beforeEach(() => { + connectorMock = microsoftDefenderEndpointConnectorMocks.create(); + }); + + describe('Access Token management', () => { + it('should call API to generate as new token', async () => { + await connectorMock.instanceMock.isolateHost( + { id: '1-2-3', comment: 'foo' }, + connectorMock.usageCollector + ); + + expect(connectorMock.instanceMock.request).toHaveBeenCalledWith( + expect.objectContaining({ + url: `${connectorMock.options.config.oAuthServerUrl}/${connectorMock.options.config.tenantId}/oauth2/v2.0/token`, + method: 'POST', + data: { + grant_type: 'client_credentials', + client_id: connectorMock.options.config.clientId, + scope: connectorMock.options.config.oAuthScope, + client_secret: connectorMock.options.secrets.clientSecret, + }, + }), + connectorMock.usageCollector + ); + }); + }); + + describe('#testConnector', () => { + it('should return expected response', async () => { + Object.entries(connectorMock.apiMock).forEach(([url, responseFn]) => { + connectorMock.apiMock[url.replace('1-2-3', 'elastic-connector-test')] = responseFn; + }); + + await expect( + connectorMock.instanceMock.testConnector({}, connectorMock.usageCollector) + ).resolves.toEqual({ + results: [ + 'API call to Machines API was successful', + 'API call to Machine Isolate was successful', + 'API call to Machine Release was successful', + 'API call to Machine Actions was successful', + ], + }); + + expect(connectorMock.instanceMock.request).toHaveBeenCalledWith( + expect.objectContaining({ + url: expect.stringMatching(/machines\/elastic-connector-test$/), + }), + connectorMock.usageCollector + ); + expect(connectorMock.instanceMock.request).toHaveBeenCalledWith( + expect.objectContaining({ + url: expect.stringMatching(/machines\/elastic-connector-test\/isolate$/), + }), + connectorMock.usageCollector + ); + expect(connectorMock.instanceMock.request).toHaveBeenCalledWith( + expect.objectContaining({ + url: expect.stringMatching(/machines\/elastic-connector-test\/unisolate$/), + }), + connectorMock.usageCollector + ); + expect(connectorMock.instanceMock.request).toHaveBeenCalledWith( + expect.objectContaining({ + url: expect.stringMatching(/\/machineactions/), + }), + connectorMock.usageCollector + ); + }); + }); + + describe('#isolate()', () => { + it('should call isolate api with comment', async () => { + await connectorMock.instanceMock.isolateHost( + { id: '1-2-3', comment: 'foo' }, + connectorMock.usageCollector + ); + + expect(connectorMock.instanceMock.request).toHaveBeenCalledWith( + expect.objectContaining({ + method: 'POST', + url: expect.stringMatching(/\/api\/machines\/1-2-3\/isolate$/), + data: { Comment: 'foo', IsolationType: 'Full' }, + headers: { Authorization: 'Bearer eyJN_token_JIE' }, + }), + connectorMock.usageCollector + ); + }); + + it('should return a Machine Action', async () => { + await expect( + connectorMock.instanceMock.isolateHost( + { id: '1-2-3', comment: 'foo' }, + connectorMock.usageCollector + ) + ).resolves.toEqual(microsoftDefenderEndpointConnectorMocks.createMachineActionMock()); + }); + }); + + describe('#release()', () => { + it('should call isolate api with comment', async () => { + await connectorMock.instanceMock.releaseHost( + { id: '1-2-3', comment: 'foo' }, + connectorMock.usageCollector + ); + + expect(connectorMock.instanceMock.request).toHaveBeenCalledWith( + expect.objectContaining({ + method: 'POST', + url: expect.stringMatching(/\/api\/machines\/1-2-3\/unisolate$/), + data: { Comment: 'foo' }, + }), + connectorMock.usageCollector + ); + }); + + it('should return a machine action object', async () => { + await expect( + connectorMock.instanceMock.isolateHost( + { id: '1-2-3', comment: 'foo' }, + connectorMock.usageCollector + ) + ).resolves.toEqual(microsoftDefenderEndpointConnectorMocks.createMachineActionMock()); + }); + }); + + describe('#getActions()', () => { + it('should return expected response', async () => { + await expect( + connectorMock.instanceMock.getActions({}, connectorMock.usageCollector) + ).resolves.toEqual({ + '@odata.context': + 'https://api-us3.securitycenter.microsoft.com/api/$metadata#MachineActions', + '@odata.count': 1, + page: 1, + pageSize: 20, + total: 1, + value: [ + { + cancellationComment: '', + cancellationDateTimeUtc: '', + cancellationRequestor: '', + commands: ['RunScript'], + computerDnsName: 'desktop-test', + creationDateTimeUtc: '2019-01-02T14:39:38.2262283Z', + externalID: 'abc', + id: '5382f7ea-7557-4ab7-9782-d50480024a4e', + lastUpdateDateTimeUtc: '2019-01-02T14:40:44.6596267Z', + machineId: '1-2-3', + requestSource: '', + requestor: 'Analyst@TestPrd.onmicrosoft.com', + requestorComment: 'test for docs', + scope: 'Selective', + status: 'Succeeded', + title: '', + type: 'Isolate', + }, + ], + }); + }); + + it('should call Microsoft API with expected query params', async () => { + await connectorMock.instanceMock.getActions({}, connectorMock.usageCollector); + + expect(connectorMock.instanceMock.request).toHaveBeenCalledWith( + expect.objectContaining({ + url: 'https://api.mock__microsoft.com/api/machineactions', + params: { $count: true, $top: 20 }, + }), + connectorMock.usageCollector + ); + }); + + it.each` + title | options | expectedParams + ${'single value filters'} | ${{ id: '123', status: 'Succeeded', machineId: 'abc', page: 2 }} | ${{ $count: true, $filter: 'id eq 123 AND status eq Succeeded AND machineId eq abc', $skip: 20, $top: 20 }} + ${'multiple value filters'} | ${{ id: ['123', '321'], type: ['Isolate', 'Unisolate'], page: 1, pageSize: 100 }} | ${{ $count: true, $filter: "id in ('123','321') AND type in ('Isolate','Unisolate')", $top: 100 }} + ${'page and page size'} | ${{ id: ['123', '321'], type: ['Isolate', 'Unisolate'], page: 3, pageSize: 100 }} | ${{ $count: true, $filter: "id in ('123','321') AND type in ('Isolate','Unisolate')", $skip: 200, $top: 100 }} + `( + 'should correctly build the oData URL params: $title', + async ({ options, expectedParams }) => { + await connectorMock.instanceMock.getActions(options, connectorMock.usageCollector); + + expect(connectorMock.instanceMock.request).toHaveBeenCalledWith( + expect.objectContaining({ + params: expectedParams, + }), + connectorMock.usageCollector + ); + } + ); + }); +}); diff --git a/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint.ts b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint.ts new file mode 100644 index 0000000000000..137d1f1dcc053 --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/microsoft_defender_endpoint.ts @@ -0,0 +1,313 @@ +/* + * 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. + */ + +import { ServiceParams, SubActionConnector } from '@kbn/actions-plugin/server'; +import type { AxiosError } from 'axios'; +import { SubActionRequestParams } from '@kbn/actions-plugin/server/sub_action_framework/types'; +import { ConnectorUsageCollector } from '@kbn/actions-plugin/server/types'; +import { OAuthTokenManager } from './o_auth_token_manager'; +import { MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION } from '../../../common/microsoft_defender_endpoint/constants'; +import { + IsolateHostParamsSchema, + ReleaseHostParamsSchema, + TestConnectorParamsSchema, + MicrosoftDefenderEndpointDoNotValidateResponseSchema, + GetActionsParamsSchema, + AgentDetailsParamsSchema, +} from '../../../common/microsoft_defender_endpoint/schema'; +import { + MicrosoftDefenderEndpointAgentDetailsParams, + MicrosoftDefenderEndpointIsolateHostParams, + MicrosoftDefenderEndpointBaseApiResponse, + MicrosoftDefenderEndpointConfig, + MicrosoftDefenderEndpointSecrets, + MicrosoftDefenderEndpointReleaseHostParams, + MicrosoftDefenderEndpointTestConnectorParams, + MicrosoftDefenderEndpointMachine, + MicrosoftDefenderEndpointMachineAction, + MicrosoftDefenderEndpointTestConnector, + MicrosoftDefenderEndpointGetActionsParams, + MicrosoftDefenderEndpointGetActionsResponse, +} from '../../../common/microsoft_defender_endpoint/types'; + +export class MicrosoftDefenderEndpointConnector extends SubActionConnector< + MicrosoftDefenderEndpointConfig, + MicrosoftDefenderEndpointSecrets +> { + private readonly oAuthToken: OAuthTokenManager; + + private readonly urls: { + machines: string; + machineActions: string; + }; + + constructor( + params: ServiceParams + ) { + super(params); + + this.oAuthToken = new OAuthTokenManager({ + ...params, + apiRequest: async (...args) => this.request(...args), + }); + + this.urls = { + machines: `${this.config.apiUrl}/api/machines`, + // API docs: https://learn.microsoft.com/en-us/defender-endpoint/api/get-machineactions-collection + machineActions: `${this.config.apiUrl}/api/machineactions`, + }; + + this.registerSubActions(); + } + + private registerSubActions() { + this.registerSubAction({ + name: MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.GET_AGENT_DETAILS, + method: 'getAgentDetails', + schema: AgentDetailsParamsSchema, + }); + + this.registerSubAction({ + name: MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.ISOLATE_HOST, + method: 'isolateHost', + schema: IsolateHostParamsSchema, + }); + + this.registerSubAction({ + name: MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.RELEASE_HOST, + method: 'releaseHost', + schema: ReleaseHostParamsSchema, + }); + + this.registerSubAction({ + name: MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.TEST_CONNECTOR, + method: 'testConnector', + schema: TestConnectorParamsSchema, + }); + + this.registerSubAction({ + name: MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.GET_ACTIONS, + method: 'getActions', + schema: GetActionsParamsSchema, + }); + } + + private async fetchFromMicrosoft( + req: Omit, 'responseSchema'>, + connectorUsageCollector: ConnectorUsageCollector + ): Promise { + this.logger.debug(() => `Request:\n${JSON.stringify(req, null, 2)}`); + + const bearerAccessToken = await this.oAuthToken.get(connectorUsageCollector); + const response = await this.request( + { + ...req, + // We don't validate responses from Microsoft API's because we do not want failures for cases + // where the external system might add/remove/change values in the response that we have no + // control over. + responseSchema: + MicrosoftDefenderEndpointDoNotValidateResponseSchema as unknown as SubActionRequestParams['responseSchema'], + headers: { Authorization: `Bearer ${bearerAccessToken}` }, + }, + connectorUsageCollector + ); + + return response.data; + } + + protected getResponseErrorMessage(error: AxiosError): string { + const appendResponseBody = (message: string): string => { + const responseBody = JSON.stringify(error.response?.data ?? {}); + + if (responseBody) { + return `${message}\nURL called: ${error.response?.config?.url}\nResponse body: ${responseBody}`; + } + + return message; + }; + + if (!error.response?.status) { + return appendResponseBody(error.message ?? 'Unknown API Error'); + } + + if (error.response.status === 401) { + return appendResponseBody('Unauthorized API Error (401)'); + } + + return appendResponseBody(`API Error: [${error.response?.statusText}] ${error.message}`); + } + + private buildODataUrlParams({ + filter = {}, + page = 1, + pageSize = 20, + }: { + filter: Record; + page: number; + pageSize: number; + }): Partial { + const oDataQueryOptions: Partial = { + $count: true, + }; + + if (pageSize) { + oDataQueryOptions.$top = pageSize; + } + + if (page > 1) { + oDataQueryOptions.$skip = page * pageSize - pageSize; + } + + const filterEntries = Object.entries(filter); + + if (filterEntries.length > 0) { + oDataQueryOptions.$filter = ''; + + for (const [key, value] of filterEntries) { + const isArrayValue = Array.isArray(value); + + if (oDataQueryOptions.$filter) { + oDataQueryOptions.$filter += ' AND '; + } + + oDataQueryOptions.$filter += `${key} ${isArrayValue ? 'in' : 'eq'} ${ + isArrayValue + ? '(' + value.map((valueString) => `'${valueString}'`).join(',') + ')' + : value + }`; + } + } + + return oDataQueryOptions; + } + + public async testConnector( + _: MicrosoftDefenderEndpointTestConnectorParams, + connectorUsageCollector: ConnectorUsageCollector + ): Promise { + const results: string[] = []; + + const catchErrorAndIgnoreExpectedErrors = (err: Error) => { + if (err.message.includes('ResourceNotFound')) { + return ''; + } + throw err; + }; + + await this.getAgentDetails({ id: 'elastic-connector-test' }, connectorUsageCollector) + .catch(catchErrorAndIgnoreExpectedErrors) + .then(() => { + results.push('API call to Machines API was successful'); + }); + + await this.isolateHost( + { id: 'elastic-connector-test', comment: 'connector test' }, + connectorUsageCollector + ) + .catch(catchErrorAndIgnoreExpectedErrors) + .then(() => { + results.push('API call to Machine Isolate was successful'); + }); + + await this.releaseHost( + { id: 'elastic-connector-test', comment: 'connector test' }, + connectorUsageCollector + ) + .catch(catchErrorAndIgnoreExpectedErrors) + .then(() => { + results.push('API call to Machine Release was successful'); + }); + + await this.getActions({ pageSize: 1 }, connectorUsageCollector) + .catch(catchErrorAndIgnoreExpectedErrors) + .then(() => { + results.push('API call to Machine Actions was successful'); + }); + + return { results }; + } + + public async getAgentDetails( + { id }: MicrosoftDefenderEndpointAgentDetailsParams, + connectorUsageCollector: ConnectorUsageCollector + ): Promise { + // API Reference: https://learn.microsoft.com/en-us/defender-endpoint/api/machine + + return this.fetchFromMicrosoft( + { url: `${this.urls.machines}/${id}` }, + connectorUsageCollector + ); + } + + public async isolateHost( + { id, comment }: MicrosoftDefenderEndpointIsolateHostParams, + connectorUsageCollector: ConnectorUsageCollector + ): Promise { + // API Reference: https://learn.microsoft.com/en-us/defender-endpoint/api/isolate-machine + + return this.fetchFromMicrosoft( + { + url: `${this.urls.machines}/${id}/isolate`, + method: 'POST', + data: { + Comment: comment, + IsolationType: 'Full', + }, + }, + connectorUsageCollector + ); + } + + public async releaseHost( + { id, comment }: MicrosoftDefenderEndpointReleaseHostParams, + connectorUsageCollector: ConnectorUsageCollector + ): Promise { + // API Reference:https://learn.microsoft.com/en-us/defender-endpoint/api/unisolate-machine + + return this.fetchFromMicrosoft( + { + url: `${this.urls.machines}/${id}/unisolate`, + method: 'POST', + data: { + Comment: comment, + }, + }, + connectorUsageCollector + ); + } + + public async getActions( + { page = 1, pageSize = 20, ...filter }: MicrosoftDefenderEndpointGetActionsParams, + connectorUsageCollector: ConnectorUsageCollector + ): Promise { + // API Reference: https://learn.microsoft.com/en-us/defender-endpoint/api/get-machineactions-collection + // OData usage reference: https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-odata-samples + + const response = await this.fetchFromMicrosoft( + { + url: `${this.urls.machineActions}`, + method: 'GET', + params: this.buildODataUrlParams({ filter, page, pageSize }), + }, + connectorUsageCollector + ); + + return { + ...response, + page, + pageSize, + total: response['@odata.count'] ?? -1, + }; + } +} + +interface BuildODataUrlParamsResponse { + $filter: string; + $top: number; + $skip: number; + $count: boolean; +} diff --git a/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/mocks.ts b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/mocks.ts new file mode 100644 index 0000000000000..9c28c227c2efd --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/mocks.ts @@ -0,0 +1,170 @@ +/* + * 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. + */ + +import { ServiceParams } from '@kbn/actions-plugin/server/sub_action_framework/types'; +import { actionsConfigMock } from '@kbn/actions-plugin/server/actions_config.mock'; +import { loggingSystemMock } from '@kbn/core-logging-server-mocks'; +import { actionsMock } from '@kbn/actions-plugin/server/mocks'; +import { ConnectorUsageCollector } from '@kbn/actions-plugin/server/usage'; +import { + MicrosoftDefenderEndpointConfig, + MicrosoftDefenderEndpointMachine, + MicrosoftDefenderEndpointMachineAction, + MicrosoftDefenderEndpointSecrets, +} from '../../../common/microsoft_defender_endpoint/types'; +import { MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID } from '../../../common/microsoft_defender_endpoint/constants'; +import { MicrosoftDefenderEndpointConnector } from './microsoft_defender_endpoint'; +import { + ConnectorInstanceMock, + createAxiosResponseMock, + createConnectorInstanceMock, +} from '../lib/mocks'; + +export interface CreateMicrosoftDefenderConnectorMockResponse { + options: ServiceParams; + apiMock: { [msApiRoute: string]: (...args: any) => any | Promise }; + instanceMock: ConnectorInstanceMock; + usageCollector: ConnectorUsageCollector; +} + +const createMicrosoftDefenderConnectorMock = (): CreateMicrosoftDefenderConnectorMockResponse => { + const apiUrl = 'https://api.mock__microsoft.com'; + const options: CreateMicrosoftDefenderConnectorMockResponse['options'] = { + configurationUtilities: actionsConfigMock.create(), + connector: { id: '1', type: MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID }, + config: { + clientId: 'app-1-2-3', + tenantId: 'tenant_elastic', + oAuthServerUrl: 'https://auth.mock__microsoft.com', + oAuthScope: 'https://securitycenter.onmicrosoft.com/windowsatpservice/.default', + apiUrl, + }, + secrets: { clientSecret: 'shhhh-secret' }, + logger: loggingSystemMock.createLogger(), + services: actionsMock.createServices(), + }; + const instanceMock = createConnectorInstanceMock(MicrosoftDefenderEndpointConnector, options); + + // Default MS API response mocks. These (or additional ones) can always be defined directly in test + const apiMock: CreateMicrosoftDefenderConnectorMockResponse['apiMock'] = { + [`${options.config.oAuthServerUrl}/${options.config.tenantId}/oauth2/v2.0/token`]: () => { + return createAxiosResponseMock({ + token_type: 'Bearer', + expires_in: 3599, + access_token: 'eyJN_token_JIE', + }); + }, + + // Agent Details + [`${apiUrl}/api/machines/1-2-3`]: () => createAxiosResponseMock(createMicrosoftMachineMock()), + + // Isolate + [`${apiUrl}/api/machines/1-2-3/isolate`]: () => + createAxiosResponseMock(createMicrosoftMachineAction()), + + // Release + [`${apiUrl}/api/machines/1-2-3/unisolate`]: () => + createAxiosResponseMock(createMicrosoftMachineAction()), + + // Machine Actions + [`${apiUrl}/api/machineactions`]: () => + createAxiosResponseMock({ + '@odata.context': + 'https://api-us3.securitycenter.microsoft.com/api/$metadata#MachineActions', + '@odata.count': 1, + value: [createMicrosoftMachineAction()], + }), + }; + + instanceMock.request.mockImplementation( + async ( + ...args: Parameters['request']> + ) => { + const url = args[0].url; + + if (apiMock[url]) { + return apiMock[url](...args); + } + + throw new Error(`API mock for [${url}] not implemented!!`); + } + ); + + return { + options, + apiMock, + instanceMock, + usageCollector: new ConnectorUsageCollector({ + logger: options.logger, + connectorId: 'test-connector-id', + }), + }; +}; + +const createMicrosoftMachineMock = ( + overrides: Partial = {} +): MicrosoftDefenderEndpointMachine => { + return { + id: '1-2-3', + computerDnsName: 'mymachine1.contoso.com', + firstSeen: '2018-08-02T14:55:03.7791856Z', + lastSeen: '2018-08-02T14:55:03.7791856Z', + osPlatform: 'Windows1', + version: '1709', + osProcessor: 'x64', + lastIpAddress: '172.17.230.209', + lastExternalIpAddress: '167.220.196.71', + osBuild: 18209, + healthStatus: 'Active', + rbacGroupId: '140', + rbacGroupName: 'The-A-Team', + riskScore: 'Low', + exposureLevel: 'Medium', + aadDeviceId: '80fe8ff8-2624-418e-9591-41f0491218f9', + machineTags: ['test tag 1', 'test tag 2'], + onboardingstatus: 'foo', + ipAddresses: [ + { ipAddress: '1.1.1.1', macAddress: '23:a2:5t', type: '', operationalStatus: '' }, + ], + osArchitecture: '', + + ...overrides, + }; +}; + +const createMicrosoftMachineAction = ( + overrides: Partial = {} +): MicrosoftDefenderEndpointMachineAction => { + return { + id: '5382f7ea-7557-4ab7-9782-d50480024a4e', + type: 'Isolate', + scope: 'Selective', + requestor: 'Analyst@TestPrd.onmicrosoft.com', + requestorComment: 'test for docs', + requestSource: '', + status: 'Succeeded', + machineId: '1-2-3', + computerDnsName: 'desktop-test', + creationDateTimeUtc: '2019-01-02T14:39:38.2262283Z', + lastUpdateDateTimeUtc: '2019-01-02T14:40:44.6596267Z', + externalID: 'abc', + commands: ['RunScript'], + cancellationRequestor: '', + cancellationComment: '', + cancellationDateTimeUtc: '', + title: '', + + ...overrides, + }; +}; + +export const microsoftDefenderEndpointConnectorMocks = Object.freeze({ + createAxiosResponseMock, + create: createMicrosoftDefenderConnectorMock, + createMachineMock: createMicrosoftMachineMock, + createMachineActionMock: createMicrosoftMachineAction, +}); diff --git a/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/o_auth_token_manager.ts b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/o_auth_token_manager.ts new file mode 100644 index 0000000000000..d6a31d8256c12 --- /dev/null +++ b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/microsoft_defender_endpoint/o_auth_token_manager.ts @@ -0,0 +1,81 @@ +/* + * 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. + */ + +import { ServiceParams, SubActionConnector } from '@kbn/actions-plugin/server'; +import { ConnectorUsageCollector } from '@kbn/actions-plugin/server/usage'; +import { MicrosoftDefenderEndpointDoNotValidateResponseSchema } from '../../../common/microsoft_defender_endpoint/schema'; +import { + MicrosoftDefenderEndpointConfig, + MicrosoftDefenderEndpointSecrets, + MicrosoftDefenderEndpointApiTokenResponse, +} from '../../../common/microsoft_defender_endpoint/types'; + +export class OAuthTokenManager { + private accessToken: string = ''; + private readonly oAuthTokenUrl: string; + + constructor( + private readonly params: ServiceParams< + MicrosoftDefenderEndpointConfig, + MicrosoftDefenderEndpointSecrets + > & { + apiRequest: SubActionConnector< + MicrosoftDefenderEndpointConfig, + MicrosoftDefenderEndpointSecrets + >['request']; + } + ) { + const url = new URL(params.config.oAuthServerUrl); + url.pathname = `/${params.config.tenantId}/oauth2/v2.0/token`; + this.oAuthTokenUrl = url.toString(); + } + + private async generateNewToken(connectorUsageCollector: ConnectorUsageCollector): Promise { + // FYI: API Docs: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow#get-a-token + const { oAuthScope, clientId } = this.params.config; + const newToken = await this.params.apiRequest( + { + url: this.oAuthTokenUrl, + method: 'POST', + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + data: { + grant_type: 'client_credentials', + client_id: clientId, + scope: oAuthScope, + client_secret: this.params.secrets.clientSecret, + }, + responseSchema: MicrosoftDefenderEndpointDoNotValidateResponseSchema, + }, + connectorUsageCollector + ); + + this.params.logger.debug( + () => + `Successfully created an access token for Microsoft Defend for Endpoint:\n${JSON.stringify({ + ...newToken.data, + access_token: '[REDACTED]', + })}` + ); + + this.accessToken = newToken.data.access_token; + } + + /** + * Returns the Bearer token that should be used in API calls + */ + public async get(connectorUsageCollector: ConnectorUsageCollector): Promise { + if (!this.accessToken) { + await this.generateNewToken(connectorUsageCollector); + } + + if (!this.accessToken) { + throw new Error('Access token for Microsoft Defend for Endpoint not available!'); + } + + return this.accessToken; + } +} diff --git a/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/sentinelone/mocks.ts b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/sentinelone/mocks.ts index 1177cb06b56ed..fb4dd05c01b2a 100644 --- a/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/sentinelone/mocks.ts +++ b/x-pack/platform/plugins/shared/stack_connectors/server/connector_types/sentinelone/mocks.ts @@ -16,6 +16,7 @@ import { actionsConfigMock } from '@kbn/actions-plugin/server/actions_config.moc import { loggingSystemMock } from '@kbn/core-logging-server-mocks'; import { actionsMock } from '@kbn/actions-plugin/server/mocks'; import { Readable } from 'stream'; +import { createAxiosResponseMock } from '../lib/mocks'; import { SENTINELONE_CONNECTOR_ID } from '../../../common/sentinelone/constants'; import { SentinelOneConnector } from './sentinelone'; import { @@ -154,17 +155,6 @@ const createGetAgentsApiResponseMock = (): SentinelOneGetAgentsResponse => { }; }; -const createAxiosResponseMock = (data: R, status = 200, statusText = 'ok'): AxiosResponse => { - return { - data, - status, - statusText, - headers: {}, - // @ts-expect-error - config: {}, - }; -}; - class SentinelOneConnectorTestClass extends SentinelOneConnector { // Defined details API responses for SentinelOne. These can be manipulated by the tests to mock specific results public mockResponses = { diff --git a/x-pack/platform/plugins/shared/stack_connectors/server/plugin.ts b/x-pack/platform/plugins/shared/stack_connectors/server/plugin.ts index aee84d963043d..a85549e8ebdba 100644 --- a/x-pack/platform/plugins/shared/stack_connectors/server/plugin.ts +++ b/x-pack/platform/plugins/shared/stack_connectors/server/plugin.ts @@ -22,7 +22,9 @@ export interface ConnectorsPluginsStart { actions: ActionsPluginSetupContract; } -export class StackConnectorsPlugin implements Plugin { +export class StackConnectorsPlugin + implements Plugin +{ private readonly logger: Logger; private config: StackConnectorsConfigType; readonly experimentalFeatures: ExperimentalFeatures; diff --git a/x-pack/platform/plugins/shared/stack_connectors/tsconfig.json b/x-pack/platform/plugins/shared/stack_connectors/tsconfig.json index 4b7b5cdad8bb5..79f6aa48aaa26 100644 --- a/x-pack/platform/plugins/shared/stack_connectors/tsconfig.json +++ b/x-pack/platform/plugins/shared/stack_connectors/tsconfig.json @@ -44,6 +44,7 @@ "@kbn/alerting-types", "@kbn/response-ops-rule-form", "@kbn/inference-endpoint-ui-common", + "@kbn/alerts-ui-shared", ], "exclude": [ "target/**/*", diff --git a/x-pack/platform/plugins/shared/task_manager/server/config.test.ts b/x-pack/platform/plugins/shared/task_manager/server/config.test.ts index 2bb2054f42dae..d8526ac346d79 100644 --- a/x-pack/platform/plugins/shared/task_manager/server/config.test.ts +++ b/x-pack/platform/plugins/shared/task_manager/server/config.test.ts @@ -51,7 +51,6 @@ describe('config validation', () => { "exclude_task_types": Array [], }, "version_conflict_threshold": 80, - "worker_utilization_running_average_window": 5, } `); }); @@ -110,7 +109,6 @@ describe('config validation', () => { "exclude_task_types": Array [], }, "version_conflict_threshold": 80, - "worker_utilization_running_average_window": 5, } `); }); @@ -172,7 +170,6 @@ describe('config validation', () => { "exclude_task_types": Array [], }, "version_conflict_threshold": 80, - "worker_utilization_running_average_window": 5, } `); }); diff --git a/x-pack/platform/plugins/shared/task_manager/server/config.ts b/x-pack/platform/plugins/shared/task_manager/server/config.ts index 83690775b9104..9ccf77b9e274a 100644 --- a/x-pack/platform/plugins/shared/task_manager/server/config.ts +++ b/x-pack/platform/plugins/shared/task_manager/server/config.ts @@ -29,6 +29,8 @@ export const DEFAULT_METRICS_RESET_INTERVAL = 30 * 1000; // 30 seconds // At the default poll interval of 3sec, this averages over the last 15sec. export const DEFAULT_WORKER_UTILIZATION_RUNNING_AVERAGE_WINDOW = 5; +export const WORKER_UTILIZATION_RUNNING_AVERAGE_WINDOW_SIZE_MS = 15 * 1000; // 15 seconds + export const CLAIM_STRATEGY_UPDATE_BY_QUERY = 'update_by_query'; export const CLAIM_STRATEGY_MGET = 'mget'; @@ -189,11 +191,12 @@ export const configSchema = schema.object( min: 50, max: 100, }), - worker_utilization_running_average_window: schema.number({ - defaultValue: DEFAULT_WORKER_UTILIZATION_RUNNING_AVERAGE_WINDOW, - max: 100, - min: 1, - }), + worker_utilization_running_average_window: schema.maybe( + schema.number({ + max: 100, + min: 1, + }) + ), claim_strategy: schema.string({ defaultValue: CLAIM_STRATEGY_MGET }), request_timeouts: requestTimeoutsConfig, auto_calculate_default_ech_capacity: schema.boolean({ defaultValue: false }), diff --git a/x-pack/platform/plugins/shared/task_manager/server/kibana_discovery_service/delete_inactive_nodes_task.ts b/x-pack/platform/plugins/shared/task_manager/server/kibana_discovery_service/delete_inactive_nodes_task.ts index f5d7204d739da..b343c15976072 100644 --- a/x-pack/platform/plugins/shared/task_manager/server/kibana_discovery_service/delete_inactive_nodes_task.ts +++ b/x-pack/platform/plugins/shared/task_manager/server/kibana_discovery_service/delete_inactive_nodes_task.ts @@ -12,6 +12,7 @@ import { TaskTypeDictionary } from '../task_type_dictionary'; import { BackgroundTaskNode } from '../saved_objects/schemas/background_task_node'; import { BACKGROUND_TASK_NODE_SO_NAME } from '../saved_objects'; import { TaskManagerStartContract } from '..'; +import { TaskManagerPluginsStart } from '../plugin'; export const TASK_ID = 'delete_inactive_background_task_nodes'; const TASK_TYPE = `task_manager:${TASK_ID}`; @@ -40,7 +41,7 @@ export async function scheduleDeleteInactiveNodesTaskDefinition( export function registerDeleteInactiveNodesTaskDefinition( logger: Logger, - coreStartServices: () => Promise<[CoreStart, TaskManagerStartContract, unknown]>, + coreStartServices: () => Promise<[CoreStart, TaskManagerPluginsStart, TaskManagerStartContract]>, taskTypeDictionary: TaskTypeDictionary ) { taskTypeDictionary.registerTaskDefinitions({ @@ -53,7 +54,7 @@ export function registerDeleteInactiveNodesTaskDefinition( export function taskRunner( logger: Logger, - coreStartServices: () => Promise<[CoreStart, TaskManagerStartContract, unknown]> + coreStartServices: () => Promise<[CoreStart, TaskManagerPluginsStart, TaskManagerStartContract]> ) { return () => { return { diff --git a/x-pack/platform/plugins/shared/task_manager/server/monitoring/background_task_utilization_statistics.test.ts b/x-pack/platform/plugins/shared/task_manager/server/monitoring/background_task_utilization_statistics.test.ts index 104a6aad86207..e0bff513d8639 100644 --- a/x-pack/platform/plugins/shared/task_manager/server/monitoring/background_task_utilization_statistics.test.ts +++ b/x-pack/platform/plugins/shared/task_manager/server/monitoring/background_task_utilization_statistics.test.ts @@ -425,7 +425,10 @@ describe('Task Run Statistics', () => { }); test('returns a running count of load', async () => { - const loads = [40, 80, 100, 100, 10, 10, 60, 40]; + const loads = [ + 40, 80, 100, 100, 10, 10, 60, 40, 40, 80, 100, 100, 10, 10, 60, 40, 40, 80, 100, 100, 10, + 10, 60, 40, 40, 80, 100, 100, 10, 10, 60, 40, 30, + ]; const events$ = new Subject(); const taskPollingLifecycle = taskPollingLifecycleMock.create({ events$: events$ as Observable, @@ -434,7 +437,7 @@ describe('Task Run Statistics', () => { const BackgroundTaskUtilizationAggregator = createBackgroundTaskUtilizationAggregator( taskPollingLifecycle, new AdHocTaskCounter(), - pollInterval + 500 ); function expectWindowEqualsUpdate( @@ -461,10 +464,36 @@ describe('Task Run Statistics', () => { expectWindowEqualsUpdate(taskStats[2], loads.slice(0, 3)); expectWindowEqualsUpdate(taskStats[3], loads.slice(0, 4)); expectWindowEqualsUpdate(taskStats[4], loads.slice(0, 5)); - // from the 6th value, begin to drop old values as our window is 5 - expectWindowEqualsUpdate(taskStats[5], loads.slice(1, 6)); - expectWindowEqualsUpdate(taskStats[6], loads.slice(2, 7)); - expectWindowEqualsUpdate(taskStats[7], loads.slice(3, 8)); + expectWindowEqualsUpdate(taskStats[5], loads.slice(0, 6)); + expectWindowEqualsUpdate(taskStats[6], loads.slice(0, 7)); + expectWindowEqualsUpdate(taskStats[7], loads.slice(0, 8)); + expectWindowEqualsUpdate(taskStats[8], loads.slice(0, 9)); + expectWindowEqualsUpdate(taskStats[9], loads.slice(0, 10)); + expectWindowEqualsUpdate(taskStats[10], loads.slice(0, 11)); + expectWindowEqualsUpdate(taskStats[11], loads.slice(0, 12)); + expectWindowEqualsUpdate(taskStats[12], loads.slice(0, 13)); + expectWindowEqualsUpdate(taskStats[13], loads.slice(0, 14)); + expectWindowEqualsUpdate(taskStats[14], loads.slice(0, 15)); + expectWindowEqualsUpdate(taskStats[15], loads.slice(0, 16)); + expectWindowEqualsUpdate(taskStats[16], loads.slice(0, 17)); + expectWindowEqualsUpdate(taskStats[17], loads.slice(0, 18)); + expectWindowEqualsUpdate(taskStats[18], loads.slice(0, 19)); + expectWindowEqualsUpdate(taskStats[19], loads.slice(0, 20)); + expectWindowEqualsUpdate(taskStats[20], loads.slice(0, 21)); + expectWindowEqualsUpdate(taskStats[21], loads.slice(0, 22)); + expectWindowEqualsUpdate(taskStats[22], loads.slice(0, 23)); + expectWindowEqualsUpdate(taskStats[23], loads.slice(0, 24)); + expectWindowEqualsUpdate(taskStats[24], loads.slice(0, 25)); + expectWindowEqualsUpdate(taskStats[25], loads.slice(0, 26)); + expectWindowEqualsUpdate(taskStats[26], loads.slice(0, 27)); + expectWindowEqualsUpdate(taskStats[27], loads.slice(0, 28)); + expectWindowEqualsUpdate(taskStats[28], loads.slice(0, 29)); + expectWindowEqualsUpdate(taskStats[29], loads.slice(0, 30)); + // from the 31st value, begin to drop old values as our window is 30 + expectWindowEqualsUpdate(taskStats[30], loads.slice(1, 31)); + expectWindowEqualsUpdate(taskStats[31], loads.slice(2, 32)); + expectWindowEqualsUpdate(taskStats[32], loads.slice(3, 33)); + resolve(); }); diff --git a/x-pack/platform/plugins/shared/task_manager/server/monitoring/background_task_utilization_statistics.ts b/x-pack/platform/plugins/shared/task_manager/server/monitoring/background_task_utilization_statistics.ts index 5a9a9e07aadf7..e8934530d0d81 100644 --- a/x-pack/platform/plugins/shared/task_manager/server/monitoring/background_task_utilization_statistics.ts +++ b/x-pack/platform/plugins/shared/task_manager/server/monitoring/background_task_utilization_statistics.ts @@ -22,7 +22,7 @@ import { import { MonitoredStat } from './monitoring_stats_stream'; import { AggregatedStat, AggregatedStatProvider } from '../lib/runtime_statistics_aggregator'; import { createRunningAveragedStat } from './task_run_calculators'; -import { DEFAULT_WORKER_UTILIZATION_RUNNING_AVERAGE_WINDOW } from '../config'; +import { WORKER_UTILIZATION_RUNNING_AVERAGE_WINDOW_SIZE_MS } from '../config'; export interface PublicBackgroundTaskUtilizationStat extends JsonObject { load: number; @@ -53,8 +53,12 @@ export function createBackgroundTaskUtilizationAggregator( taskPollingLifecycle: TaskPollingLifecycle, adHocTaskCounter: AdHocTaskCounter, pollInterval: number, - workerUtilizationRunningAverageWindowSize: number = DEFAULT_WORKER_UTILIZATION_RUNNING_AVERAGE_WINDOW + workerUtilizationRunningAverageWindowSize?: number ): AggregatedStatProvider { + const workerUtilizationWindowSize = + workerUtilizationRunningAverageWindowSize ?? + WORKER_UTILIZATION_RUNNING_AVERAGE_WINDOW_SIZE_MS / pollInterval; + const taskRunEventToAdhocStat = createTaskRunEventToAdhocStat(); const taskRunAdhocEvents$: Observable> = taskPollingLifecycle.events.pipe( @@ -84,7 +88,7 @@ export function createBackgroundTaskUtilizationAggregator( ); const taskManagerUtilizationEventToLoadStat = createTaskRunEventToLoadStat( - workerUtilizationRunningAverageWindowSize + workerUtilizationWindowSize ); const taskManagerWorkerUtilizationEvent$: Observable< diff --git a/x-pack/platform/plugins/shared/task_manager/server/plugin.ts b/x-pack/platform/plugins/shared/task_manager/server/plugin.ts index 42a979bf96067..e8ed5aefbe6f9 100644 --- a/x-pack/platform/plugins/shared/task_manager/server/plugin.ts +++ b/x-pack/platform/plugins/shared/task_manager/server/plugin.ts @@ -8,7 +8,11 @@ import { combineLatest, Observable, Subject, BehaviorSubject } from 'rxjs'; import { map, distinctUntilChanged } from 'rxjs'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { UsageCollectionSetup, UsageCounter } from '@kbn/usage-collection-plugin/server'; +import type { + UsageCollectionSetup, + UsageCollectionStart, + UsageCounter, +} from '@kbn/usage-collection-plugin/server'; import { PluginInitializerContext, Plugin, @@ -18,7 +22,7 @@ import { ServiceStatusLevels, CoreStatus, } from '@kbn/core/server'; -import type { CloudStart } from '@kbn/cloud-plugin/server'; +import type { CloudSetup, CloudStart } from '@kbn/cloud-plugin/server'; import { registerDeleteInactiveNodesTaskDefinition, scheduleDeleteInactiveNodesTaskDefinition, @@ -79,14 +83,26 @@ export type TaskManagerStartContract = Pick< getRegisteredTypes: () => string[]; }; -export interface TaskManagerPluginStart { +export interface TaskManagerPluginsStart { cloud?: CloudStart; + usageCollection?: UsageCollectionStart; +} + +export interface TaskManagerPluginsSetup { + cloud?: CloudSetup; + usageCollection?: UsageCollectionSetup; } const LogHealthForBackgroundTasksOnlyMinutes = 60; export class TaskManagerPlugin - implements Plugin + implements + Plugin< + TaskManagerSetupContract, + TaskManagerStartContract, + TaskManagerPluginsSetup, + TaskManagerPluginsStart + > { private taskPollingLifecycle?: TaskPollingLifecycle; private taskManagerId?: string; @@ -125,8 +141,8 @@ export class TaskManagerPlugin } public setup( - core: CoreSetup, - plugins: { usageCollection?: UsageCollectionSetup } + core: CoreSetup, + plugins: TaskManagerPluginsSetup ): TaskManagerSetupContract { this.elasticsearchAndSOAvailability$ = getElasticsearchAndSOAvailability(core.status.core$); @@ -253,7 +269,7 @@ export class TaskManagerPlugin public start( { savedObjects, elasticsearch, executionContext, docLinks }: CoreStart, - { cloud }: TaskManagerPluginStart + { cloud }: TaskManagerPluginsStart ): TaskManagerStartContract { const savedObjectsRepository = savedObjects.createInternalRepository([ TASK_SO_NAME, diff --git a/x-pack/platform/plugins/shared/task_manager/server/removed_tasks/mark_removed_tasks_as_unrecognized.ts b/x-pack/platform/plugins/shared/task_manager/server/removed_tasks/mark_removed_tasks_as_unrecognized.ts index e28d5221e72d5..a0b518849d909 100644 --- a/x-pack/platform/plugins/shared/task_manager/server/removed_tasks/mark_removed_tasks_as_unrecognized.ts +++ b/x-pack/platform/plugins/shared/task_manager/server/removed_tasks/mark_removed_tasks_as_unrecognized.ts @@ -15,6 +15,7 @@ import { ConcreteTaskInstance, TaskManagerStartContract } from '..'; import { TaskStatus } from '../task'; import { REMOVED_TYPES } from '../task_type_dictionary'; import { TASK_MANAGER_INDEX } from '../constants'; +import { TaskManagerPluginsStart } from '../plugin'; export const TASK_ID = 'mark_removed_tasks_as_unrecognized'; const TASK_TYPE = `task_manager:${TASK_ID}`; @@ -40,7 +41,7 @@ export async function scheduleMarkRemovedTasksAsUnrecognizedDefinition( export function registerMarkRemovedTasksAsUnrecognizedDefinition( logger: Logger, - coreStartServices: () => Promise<[CoreStart, TaskManagerStartContract, unknown]>, + coreStartServices: () => Promise<[CoreStart, TaskManagerPluginsStart, TaskManagerStartContract]>, taskTypeDictionary: TaskTypeDictionary ) { taskTypeDictionary.registerTaskDefinitions({ @@ -53,7 +54,7 @@ export function registerMarkRemovedTasksAsUnrecognizedDefinition( export function taskRunner( logger: Logger, - coreStartServices: () => Promise<[CoreStart, TaskManagerStartContract, unknown]> + coreStartServices: () => Promise<[CoreStart, TaskManagerPluginsStart, TaskManagerStartContract]> ) { return () => { return { diff --git a/x-pack/platform/plugins/shared/task_manager/server/saved_objects/mappings.ts b/x-pack/platform/plugins/shared/task_manager/server/saved_objects/mappings.ts index 8ad641b56a58f..7ebd5091c7d47 100644 --- a/x-pack/platform/plugins/shared/task_manager/server/saved_objects/mappings.ts +++ b/x-pack/platform/plugins/shared/task_manager/server/saved_objects/mappings.ts @@ -65,6 +65,9 @@ export const taskMappings: SavedObjectsTypeMappingDefinition = { partition: { type: 'integer', }, + priority: { + type: 'integer', + }, }, }; diff --git a/x-pack/platform/plugins/shared/task_manager/server/saved_objects/model_versions/task_model_versions.ts b/x-pack/platform/plugins/shared/task_manager/server/saved_objects/model_versions/task_model_versions.ts index a86aed7e358fe..1ba06f1fc516b 100644 --- a/x-pack/platform/plugins/shared/task_manager/server/saved_objects/model_versions/task_model_versions.ts +++ b/x-pack/platform/plugins/shared/task_manager/server/saved_objects/model_versions/task_model_versions.ts @@ -6,7 +6,7 @@ */ import { SavedObjectsModelVersionMap } from '@kbn/core-saved-objects-server'; -import { taskSchemaV1, taskSchemaV2 } from '../schemas/task'; +import { taskSchemaV1, taskSchemaV2, taskSchemaV3 } from '../schemas/task'; // IMPORTANT!!! // When adding new model versions, make sure to manually test @@ -39,4 +39,18 @@ export const taskModelVersions: SavedObjectsModelVersionMap = { create: taskSchemaV2, }, }, + '3': { + changes: [ + { + type: 'mappings_addition', + addedMappings: { + priority: { type: 'integer' }, + }, + }, + ], + schemas: { + forwardCompatibility: taskSchemaV3.extends({}, { unknowns: 'ignore' }), + create: taskSchemaV3, + }, + }, }; diff --git a/x-pack/platform/plugins/shared/task_manager/server/saved_objects/schemas/task.ts b/x-pack/platform/plugins/shared/task_manager/server/saved_objects/schemas/task.ts index 25b6a1cb079d0..94320585d76dd 100644 --- a/x-pack/platform/plugins/shared/task_manager/server/saved_objects/schemas/task.ts +++ b/x-pack/platform/plugins/shared/task_manager/server/saved_objects/schemas/task.ts @@ -49,3 +49,7 @@ export const taskSchemaV1 = schema.object({ export const taskSchemaV2 = taskSchemaV1.extends({ partition: schema.maybe(schema.number()), }); + +export const taskSchemaV3 = taskSchemaV2.extends({ + priority: schema.maybe(schema.number()), +}); diff --git a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/alerts_table/hooks/use_bulk_untrack_alerts_by_query.test.ts b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/alerts_table/hooks/use_bulk_untrack_alerts_by_query.test.ts index 5de16dd70ce52..118d18f3820d9 100644 --- a/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/alerts_table/hooks/use_bulk_untrack_alerts_by_query.test.ts +++ b/x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/alerts_table/hooks/use_bulk_untrack_alerts_by_query.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { act, renderHook } from '@testing-library/react-hooks'; +import { renderHook, act, waitFor } from '@testing-library/react'; import { AppMockRenderer, createAppMockRenderer } from '../../test_utils'; import { AlertsQueryContext } from '@kbn/alerts-ui-shared/src/common/contexts/alerts_query_context'; import { useBulkUntrackAlertsByQuery } from './use_bulk_untrack_alerts_by_query'; @@ -35,7 +35,7 @@ describe('useBulkUntrackAlertsByQuery', () => { it('calls the api when invoked with the correct parameters', async () => { httpMock.mockResolvedValue(response); - const { result, waitFor } = renderHook(() => useBulkUntrackAlertsByQuery(), { + const { result } = renderHook(() => useBulkUntrackAlertsByQuery(), { wrapper: appMockRender.AppWrapper, }); diff --git a/x-pack/platform/plugins/shared/triggers_actions_ui/server/plugin.ts b/x-pack/platform/plugins/shared/triggers_actions_ui/server/plugin.ts index 2263af73dbdc7..3b5cf481bf588 100644 --- a/x-pack/platform/plugins/shared/triggers_actions_ui/server/plugin.ts +++ b/x-pack/platform/plugins/shared/triggers_actions_ui/server/plugin.ts @@ -34,7 +34,10 @@ export class TriggersActionsPlugin implements Plugin this.data = getService(); } - public setup(core: CoreSetup, plugins: PluginsSetup): void { + public setup( + core: CoreSetup, + plugins: PluginsSetup + ): void { const router = core.http.createRouter(); registerDataService({ logger: this.logger, diff --git a/x-pack/solutions/observability/packages/utils_server/es/client/create_observability_es_client.ts b/x-pack/solutions/observability/packages/utils_server/es/client/create_observability_es_client.ts index 92c7b8d19e531..7731d72ffd0fe 100644 --- a/x-pack/solutions/observability/packages/utils_server/es/client/create_observability_es_client.ts +++ b/x-pack/solutions/observability/packages/utils_server/es/client/create_observability_es_client.ts @@ -24,7 +24,7 @@ import { esqlResultToPlainObjects } from '../esql_result_to_plain_objects'; type SearchRequest = ESSearchRequest & { index: string | string[]; track_total_hits: number | boolean; - size: number | boolean; + size: number; }; export interface EsqlOptions { @@ -112,10 +112,12 @@ export function createObservabilityEsClient({ client, logger, plugin, + labels, }: { client: ElasticsearchClient; logger: Logger; - plugin: string; + plugin?: string; + labels?: Record; }): ObservabilityElasticsearchClient { // wraps the ES calls in a named APM span for better analysis // (otherwise it would just eg be a _search span) @@ -129,7 +131,8 @@ export function createObservabilityEsClient({ { name: operationName, labels: { - plugin, + ...labels, + ...(plugin ? { plugin } : {}), }, }, callback, diff --git a/x-pack/solutions/observability/packages/utils_server/es/storage/README.md b/x-pack/solutions/observability/packages/utils_server/es/storage/README.md new file mode 100644 index 0000000000000..45f9015cad9fb --- /dev/null +++ b/x-pack/solutions/observability/packages/utils_server/es/storage/README.md @@ -0,0 +1,76 @@ +# Storage adapter + +Storage adapters are an abstraction for managing & writing data into Elasticsearch, from Kibana plugins. + +There are several ways one can use Elasticsearch in Kibana, for instance: + +- a simple id-based CRUD table +- timeseries data with regular indices +- timeseries data with data streams + +But then there are many choices to be made that make this a very complex problem: + +- Elasticsearch asset managmeent +- Authentication +- Schema changes +- Kibana's distributed nature +- Stateful versus serverless + +The intent of storage adapters is to come up with an abstraction that allows Kibana developers to have a common interface for writing to and reading data from Elasticsearch. For instance, for setting up your data store, it should not matter how you authenticate (internal user? current user? API keys?). + +## Saved objects + +Some of these problems are solved by Saved Objects. But Saved Objects come with a lot of baggage - Kibana RBAC, relationships, spaces, all of which might not be +needed for your use case but are still restrictive. One could consider Saved Objects to be the target of an adapter, but Storage Adapters aim to address a wider set of use-cases. + +## Philosophy + +Storage adapters should largely adhere to the following principles: + +- Interfaces are as close to Elasticsearch as possible. Meaning, the `search` method is practically a pass-through for `_search`. +- Strongly-typed. TypeScript types are inferred from the schema. This makes it easy to create fully-typed clients for any storage. +- Lazy writes. No Elasticsearch assets (templates, indices, aliases) get installed unless necessary. Anything that gets persisted to Elasticsearch raises questions (in SDHs, UIs, APIs) and should be avoided when possible. This also helps avoidable upgrade issues (e.g. conflicting mappings for something that never got used). +- Recoverable. If somehow Elasticsearch assets get borked, the adapters should make a best-effort attempt to recover, or log warnings with clear remediation steps. + +## Future goals + +Currently, we only have the StorageIndexAdapter which writes to plain indices. In the future, we'll want more: + +- A StorageDataStreamAdapter or StorageSavedObjectAdapter +- Federated search +- Data/Index Lifecycle Management +- Migration scripts +- Runtime mappings for older versions + +## Usage + +### Storage index adapter + +To use the storage index adapter, instantiate it with an authenticated Elasticsearch client: + +```ts + const storageSettings = { + name: '.kibana_streams_assets', + schema: { + properties: { + [ASSET_ASSET_ID]: types.keyword({ required: true }), + [ASSET_TYPE]: types.enum(Object.values(ASSET_TYPES), { required: true }), + }, + }, + } satisfies IndexStorageSettings; + + // create and configure the adapter + const adapter = new StorageIndexAdapter( + esClient: coreStart.elasticsearch.client.asInternalUser, + this.logger.get('assets'), + storageSettings + ); + + // get the client (its interface is shared across all adapters) + const client = adapter.getClient(); + + const response = await client.search('operation_name', { + track_total_hits: true + }); + +``` diff --git a/x-pack/solutions/observability/packages/utils_server/es/storage/get_schema_version.ts b/x-pack/solutions/observability/packages/utils_server/es/storage/get_schema_version.ts new file mode 100644 index 0000000000000..0be986c168cba --- /dev/null +++ b/x-pack/solutions/observability/packages/utils_server/es/storage/get_schema_version.ts @@ -0,0 +1,15 @@ +/* + * 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. + */ + +import stringify from 'json-stable-stringify'; +import objectHash from 'object-hash'; +import { IndexStorageSettings } from '.'; + +export function getSchemaVersion(storage: IndexStorageSettings): string { + const version = objectHash(stringify(storage.schema.properties)); + return version; +} diff --git a/x-pack/solutions/observability/packages/utils_server/es/storage/index.ts b/x-pack/solutions/observability/packages/utils_server/es/storage/index.ts new file mode 100644 index 0000000000000..913f079e93313 --- /dev/null +++ b/x-pack/solutions/observability/packages/utils_server/es/storage/index.ts @@ -0,0 +1,91 @@ +/* + * 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. + */ +import type { + BulkOperationContainer, + BulkRequest, + BulkResponse, + DeleteRequest, + DeleteResponse, + IndexRequest, + IndexResponse, + SearchRequest, +} from '@elastic/elasticsearch/lib/api/types'; +import { InferSearchResponseOf } from '@kbn/es-types'; +import { StorageFieldTypeOf, StorageMappingProperty } from './types'; + +interface StorageSchemaProperties { + [x: string]: StorageMappingProperty; +} + +export interface StorageSchema { + properties: StorageSchemaProperties; +} + +interface StorageSettingsBase { + schema: StorageSchema; +} + +export interface IndexStorageSettings extends StorageSettingsBase { + name: string; +} + +export type StorageSettings = IndexStorageSettings; + +export type StorageAdapterSearchRequest = Omit; +export type StorageAdapterSearchResponse< + TDocument, + TSearchRequest extends Omit +> = InferSearchResponseOf; + +export type StorageAdapterBulkOperation = Pick; + +export type StorageAdapterBulkRequest> = Omit< + BulkRequest, + 'operations' | 'index' +> & { + operations: Array; +}; +export type StorageAdapterBulkResponse = BulkResponse; + +export type StorageAdapterDeleteRequest = DeleteRequest; +export type StorageAdapterDeleteResponse = DeleteResponse; + +export type StorageAdapterIndexRequest = Omit< + IndexRequest, + 'index' +>; +export type StorageAdapterIndexResponse = IndexResponse; + +export interface IStorageAdapter { + bulk>( + request: StorageAdapterBulkRequest + ): Promise; + search>( + request: StorageAdapterSearchRequest + ): Promise>; + index( + request: StorageAdapterIndexRequest + ): Promise; + delete(request: StorageAdapterDeleteRequest): Promise; +} + +export type StorageSettingsOf> = + TStorageAdapter extends IStorageAdapter + ? TStorageSettings extends StorageSettings + ? TStorageSettings + : never + : never; + +export type StorageDocumentOf = { + [TKey in keyof TStorageSettings['schema']['properties']]: StorageFieldTypeOf< + TStorageSettings['schema']['properties'][TKey] + >; +} & { _id: string }; + +export { StorageIndexAdapter } from './index_adapter'; +export { StorageClient } from './storage_client'; +export { types } from './types'; diff --git a/x-pack/solutions/observability/packages/utils_server/es/storage/index_adapter/index.test.ts b/x-pack/solutions/observability/packages/utils_server/es/storage/index_adapter/index.test.ts new file mode 100644 index 0000000000000..061ccfdaac219 --- /dev/null +++ b/x-pack/solutions/observability/packages/utils_server/es/storage/index_adapter/index.test.ts @@ -0,0 +1,588 @@ +/* + * 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. + */ + +import { errors } from '@elastic/elasticsearch'; +import { + BulkDeleteOperation, + BulkIndexOperation, + BulkRequest, + BulkResponseItem, + IndexRequest, + IndicesGetAliasIndexAliases, + IndicesIndexState, + IndicesPutIndexTemplateRequest, + IndicesSimulateIndexTemplateResponse, + SearchRequest, + SearchResponse, +} from '@elastic/elasticsearch/lib/api/types'; +import { ElasticsearchClient, Logger } from '@kbn/core/server'; +import { castArray, merge, remove } from 'lodash'; +import { Required } from 'utility-types'; +import { v4 } from 'uuid'; +import { StorageIndexAdapter } from '.'; +import { StorageSettings } from '..'; +import * as getSchemaVersionModule from '../get_schema_version'; + +type MockedElasticsearchClient = jest.Mocked & { + indices: jest.Mocked; +}; + +const createEsClientMock = (): MockedElasticsearchClient => { + return { + indices: { + putIndexTemplate: jest.fn(), + getIndexTemplate: jest.fn(), + create: jest.fn(), + getAlias: jest.fn(), + putAlias: jest.fn(), + existsIndexTemplate: jest.fn(), + existsAlias: jest.fn(), + exists: jest.fn(), + get: jest.fn(), + simulateIndexTemplate: jest.fn(), + putMapping: jest.fn(), + putSettings: jest.fn(), + }, + search: jest.fn(), + bulk: jest.fn(), + index: jest.fn(), + delete: jest.fn(), + } as unknown as MockedElasticsearchClient; +}; + +const createLoggerMock = (): jest.Mocked => { + const logger = { + debug: jest.fn(), + info: jest.fn(), + error: jest.fn(), + get: jest.fn(), + } as unknown as jest.Mocked; + + logger.get.mockReturnValue(logger); + + return logger; +}; + +const TEST_INDEX_NAME = 'test_index'; + +function getIndexName(counter: number) { + return `${TEST_INDEX_NAME}-00000${counter.toString()}`; +} + +describe('StorageIndexAdapter', () => { + let esClientMock: MockedElasticsearchClient; + let loggerMock: jest.Mocked; + let adapter: StorageIndexAdapter; + + const storageSettings = { + name: TEST_INDEX_NAME, + schema: { + properties: { + foo: { + type: 'keyword', + required: true, + }, + }, + }, + } satisfies StorageSettings; + + beforeEach(() => { + esClientMock = createEsClientMock(); + loggerMock = createLoggerMock(); + + adapter = new StorageIndexAdapter(esClientMock, loggerMock, storageSettings); + + mockEmptyState(); + + mockCreateAPIs(); + + jest.spyOn(getSchemaVersionModule, 'getSchemaVersion').mockReturnValue('current_version'); + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + it('creates a named logger', () => { + expect(loggerMock.get).toHaveBeenCalledWith('storage'); + expect(loggerMock.get).toHaveBeenCalledWith('test_index'); + }); + + it('does not install index templates or backing indices initially', () => { + expect(esClientMock.indices.putIndexTemplate).not.toHaveBeenCalled(); + expect(esClientMock.indices.create).not.toHaveBeenCalled(); + }); + + it('does not install index templates or backing indices after searching', async () => { + const mockSearchResponse = { + hits: { + hits: [{ _id: 'doc1', _source: { foo: 'bar' } }], + }, + } as unknown as SearchResponse<{ foo: 'bar' }>; + + esClientMock.search.mockResolvedValueOnce(mockSearchResponse); + + await adapter.search({ query: { match_all: {} } }); + + expect(esClientMock.indices.putIndexTemplate).not.toHaveBeenCalled(); + expect(esClientMock.indices.create).not.toHaveBeenCalled(); + }); + + it('does not fail a search when an index does not exist', async () => { + const mockSearchResponse = { + hits: { + hits: [], + }, + } as unknown as SearchResponse; + + esClientMock.search.mockResolvedValueOnce(mockSearchResponse); + + await adapter.search({ query: { match_all: {} } }); + + expect(esClientMock.search).toHaveBeenCalledWith( + expect.objectContaining({ + allow_no_indices: true, + }) + ); + }); + + describe('when writing/bootstrapping without an existing index', () => { + function verifyResources() { + expect(esClientMock.indices.putIndexTemplate).toHaveBeenCalled(); + expect(esClientMock.indices.create).toHaveBeenCalledWith( + expect.objectContaining({ + index: 'test_index-000001', + }) + ); + } + + describe('when using index', () => { + it('creates the resources', async () => { + await adapter.index({ id: 'doc1', document: { foo: 'bar' } }); + + verifyResources(); + + expect(esClientMock.index).toHaveBeenCalledTimes(1); + }); + }); + + describe('when using bulk', () => { + it('creates the resources', async () => { + await adapter.bulk({ + operations: [{ index: { _id: 'foo' } }, { foo: 'bar' }], + }); + + verifyResources(); + + expect(esClientMock.bulk).toHaveBeenCalledTimes(1); + }); + }); + }); + + describe('when writing/bootstrapping with an existing, compatible index', () => { + beforeEach(async () => { + await esClientMock.indices.putIndexTemplate({ + name: TEST_INDEX_NAME, + _meta: { + version: 'current_version', + }, + template: { + mappings: { + _meta: { + version: 'current_version', + }, + properties: { + foo: { type: 'keyword', meta: { required: 'true' } }, + }, + }, + }, + }); + + await esClientMock.indices.create({ + index: getIndexName(1), + }); + + esClientMock.indices.putIndexTemplate.mockClear(); + esClientMock.indices.create.mockClear(); + }); + + it('does not recreate or update index template', async () => { + await adapter.index({ id: 'doc2', document: { foo: 'bar' } }); + + expect(esClientMock.indices.putIndexTemplate).not.toHaveBeenCalled(); + expect(esClientMock.indices.create).not.toHaveBeenCalled(); + + expect(esClientMock.index).toHaveBeenCalledWith( + expect.objectContaining({ + index: 'test_index', + id: 'doc2', + }) + ); + }); + }); + + describe('when writing/bootstrapping with an existing, outdated index', () => { + beforeEach(async () => { + await esClientMock.indices.putIndexTemplate({ + name: TEST_INDEX_NAME, + _meta: { + version: 'first_version', + }, + template: { + mappings: { + _meta: { + version: 'first_version', + }, + properties: {}, + }, + }, + }); + + await esClientMock.indices.create({ + index: getIndexName(1), + }); + + esClientMock.indices.putIndexTemplate.mockClear(); + esClientMock.indices.create.mockClear(); + esClientMock.indices.simulateIndexTemplate.mockClear(); + }); + + it('updates index mappings on write', async () => { + await adapter.index({ id: 'docY', document: { foo: 'bar' } }); + + expect(esClientMock.indices.putIndexTemplate).toHaveBeenCalled(); + expect(esClientMock.indices.simulateIndexTemplate).toHaveBeenCalled(); + + expect(esClientMock.indices.putMapping).toHaveBeenCalledWith( + expect.objectContaining({ + properties: { + foo: { + type: 'keyword', + meta: { + multi_value: 'false', + required: 'true', + }, + }, + }, + }) + ); + }); + }); + + describe('when indexing', () => { + describe('a new document', () => { + it('indexes the document via alias with require_alias=true', async () => { + const res = await adapter.index({ id: 'doc_1', document: { foo: 'bar' } }); + + expect(esClientMock.index).toHaveBeenCalledWith( + expect.objectContaining({ + index: 'test_index', + require_alias: true, + id: 'doc_1', + document: { foo: 'bar' }, + }) + ); + + expect(res._index).toBe('test_index-000001'); + expect(res._id).toBe('doc_1'); + }); + }); + + describe('an existing document in any non-write index', () => { + beforeEach(async () => { + await adapter.index({ id: 'doc_1', document: { foo: 'bar' } }); + + await esClientMock.indices.create({ + index: getIndexName(2), + }); + }); + + it('deletes the dangling item from non-write indices', async () => { + await adapter.index({ id: 'doc_1', document: { foo: 'bar' } }); + + expect(esClientMock.delete).toHaveBeenCalledWith( + expect.objectContaining({ + index: 'test_index-000001', + id: 'doc_1', + }) + ); + + expect(esClientMock.index).toHaveBeenCalledWith( + expect.objectContaining({ + index: 'test_index', + id: 'doc_1', + }) + ); + }); + }); + }); + + describe('when bulk indexing', () => { + describe('an existing document in any non-write index', () => { + beforeEach(async () => { + await adapter.bulk({ + operations: [ + { + index: { + _id: 'doc_1', + }, + }, + { + foo: 'bar', + }, + ], + }); + + await esClientMock.indices.create({ + index: getIndexName(2), + }); + }); + + it('deletes the dangling item from non-write indices', async () => { + await adapter.bulk({ + operations: [ + { + index: { + _id: 'doc_1', + }, + }, + { + foo: 'bar', + }, + ], + }); + + expect(esClientMock.bulk).toHaveBeenLastCalledWith( + expect.objectContaining({ + index: 'test_index', + operations: [ + { + index: { + _id: 'doc_1', + }, + }, + { + foo: 'bar', + }, + { + delete: { + _index: getIndexName(1), + _id: 'doc_1', + }, + }, + ], + }) + ); + }); + }); + }); + + function mockEmptyState() { + esClientMock.indices.getIndexTemplate.mockResolvedValue({ + index_templates: [], + }); + esClientMock.indices.existsIndexTemplate.mockResolvedValue(false); + + esClientMock.indices.simulateIndexTemplate.mockImplementation(async () => { + throw new errors.ResponseError({ statusCode: 404, warnings: [], meta: {} as any }); + }); + + esClientMock.indices.existsAlias.mockResolvedValue(false); + esClientMock.indices.exists.mockResolvedValue(false); + esClientMock.indices.getAlias.mockResolvedValue({}); + + esClientMock.index.mockImplementation(async () => { + throw new errors.ResponseError({ statusCode: 404, warnings: [], meta: {} as any }); + }); + + esClientMock.bulk.mockImplementation(async () => { + throw new errors.ResponseError({ statusCode: 404, warnings: [], meta: {} as any }); + }); + } + + function mockCreateAPIs() { + const indices: Map< + string, + Pick + > = new Map(); + + const docs: Array<{ _id: string; _source: Record; _index: string }> = []; + + function getCurrentWriteIndex() { + return Array.from(indices.entries()).find( + ([indexName, indexState]) => indexState.aliases![TEST_INDEX_NAME].is_write_index + )?.[0]; + } + + esClientMock.indices.putIndexTemplate.mockImplementation(async (_templateRequest) => { + const templateRequest = _templateRequest as Required< + IndicesPutIndexTemplateRequest, + 'template' + >; + + esClientMock.indices.existsIndexTemplate.mockResolvedValue(true); + esClientMock.indices.getIndexTemplate.mockResolvedValue({ + index_templates: [ + { + name: templateRequest.name, + index_template: { + _meta: templateRequest._meta, + template: templateRequest.template, + index_patterns: `${TEST_INDEX_NAME}*`, + composed_of: [], + }, + }, + ], + }); + + esClientMock.indices.simulateIndexTemplate.mockImplementation( + async (mockSimulateRequest): Promise => { + return { + template: { + aliases: templateRequest.template?.aliases ?? {}, + mappings: templateRequest.template?.mappings ?? {}, + settings: templateRequest.template?.settings ?? {}, + }, + }; + } + ); + + esClientMock.indices.create.mockImplementation(async (createIndexRequest) => { + const indexName = createIndexRequest.index; + + const prevIndices = Array.from(indices.entries()); + + prevIndices.forEach(([currentIndexName, indexState]) => { + indexState.aliases![TEST_INDEX_NAME] = { + is_write_index: false, + }; + }); + + indices.set(indexName, { + aliases: merge({}, templateRequest.template.aliases ?? {}, { + [TEST_INDEX_NAME]: { is_write_index: true }, + }), + mappings: templateRequest.template.mappings ?? {}, + settings: templateRequest.template.settings ?? {}, + }); + + esClientMock.indices.getAlias.mockImplementation(async (aliasRequest) => { + return Object.fromEntries( + Array.from(indices.entries()).map(([currentIndexName, indexState]) => { + return [ + currentIndexName, + { aliases: indexState.aliases ?? {} } satisfies IndicesGetAliasIndexAliases, + ]; + }) + ); + }); + + esClientMock.indices.get.mockImplementation(async () => { + return Object.fromEntries(indices.entries()); + }); + + esClientMock.index.mockImplementation(async (_indexRequest) => { + const indexRequest = _indexRequest as IndexRequest; + const id = indexRequest.id ?? v4(); + const index = getCurrentWriteIndex()!; + + docs.push({ + _id: id, + _index: index, + _source: indexRequest.document!, + }); + + return { + _id: id, + _index: index, + _shards: { + failed: 0, + successful: 1, + total: 1, + }, + _version: 1, + result: 'created', + }; + }); + + esClientMock.search.mockImplementation(async (_searchRequest) => { + const searchRequest = _searchRequest as SearchRequest; + + const ids = castArray(searchRequest.query?.bool?.filter ?? [])?.[0]?.terms + ?._id as string[]; + + const excludeIndex = castArray(searchRequest.query?.bool?.must_not)?.[0]?.term + ?._index as string; + + const matches = docs.filter((doc) => { + return ids.includes(doc._id) && doc._index !== excludeIndex; + }); + + return { + took: 0, + timed_out: false, + _shards: { + successful: 1, + failed: 0, + total: 1, + }, + hits: { + hits: matches, + total: { + value: matches.length, + relation: 'eq', + }, + }, + }; + }); + + esClientMock.bulk.mockImplementation(async (_bulkRequest) => { + const bulkRequest = _bulkRequest as BulkRequest>; + + const items: Array>> = []; + + bulkRequest.operations?.forEach((operation, index, operations) => { + if ('index' in operation) { + const indexOperation = operation.index as BulkIndexOperation; + const document = { + _id: indexOperation._id ?? v4(), + _index: indexOperation._index ?? getCurrentWriteIndex()!, + _source: operations[index + 1], + }; + docs.push(document); + + items.push({ index: { _id: document._id, _index: document._index, status: 200 } }); + } else if ('delete' in operation) { + const deleteOperation = operation.delete as BulkDeleteOperation; + remove(docs, (doc) => { + return doc._id === deleteOperation._id && doc._index === deleteOperation._index; + }); + + items.push({ + delete: { + _id: deleteOperation._id!, + _index: deleteOperation._index!, + status: 200, + }, + }); + } + }); + + return { + errors: false, + took: 0, + items, + }; + }); + + return { acknowledged: true, index: createIndexRequest.index, shards_acknowledged: true }; + }); + + return { acknowledged: true }; + }); + } +}); diff --git a/x-pack/solutions/observability/packages/utils_server/es/storage/index_adapter/index.ts b/x-pack/solutions/observability/packages/utils_server/es/storage/index_adapter/index.ts new file mode 100644 index 0000000000000..258df256ed804 --- /dev/null +++ b/x-pack/solutions/observability/packages/utils_server/es/storage/index_adapter/index.ts @@ -0,0 +1,388 @@ +/* + * 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. + */ + +import type { + IndexResponse, + IndicesIndexState, + IndicesIndexTemplate, + IndicesPutIndexTemplateIndexTemplateMapping, + MappingProperty, + SearchRequest, +} from '@elastic/elasticsearch/lib/api/types'; +import { ElasticsearchClient, Logger } from '@kbn/core/server'; +import { isResponseError } from '@kbn/es-errors'; +import { InferSearchResponseOf } from '@kbn/es-types'; +import { last, mapValues, padStart } from 'lodash'; +import { + IStorageAdapter, + IndexStorageSettings, + StorageAdapterBulkRequest, + StorageAdapterBulkResponse, + StorageAdapterDeleteRequest, + StorageAdapterDeleteResponse, + StorageAdapterIndexRequest, + StorageAdapterIndexResponse, + StorageAdapterSearchRequest, + StorageAdapterSearchResponse, +} from '..'; +import { getSchemaVersion } from '../get_schema_version'; +import { StorageClient } from '../storage_client'; +import { StorageMappingProperty } from '../types'; + +function getAliasName(name: string) { + return name; +} + +function getBackingIndexPattern(name: string) { + return `${name}-*`; +} + +function getBackingIndexName(name: string, count: number) { + const countId = padStart(count.toString(), 6, '0'); + return `${name}-${countId}`; +} + +function getIndexTemplateName(name: string) { + return `${name}`; +} + +function toElasticsearchMappingProperty(property: StorageMappingProperty): MappingProperty { + const { required, multi_value: multiValue, enum: enums, ...rest } = property; + + return { + ...rest, + meta: { + ...property.meta, + required: JSON.stringify(required ?? false), + multi_value: JSON.stringify(multiValue ?? false), + ...(enums ? { enum: JSON.stringify(enums) } : {}), + }, + }; +} + +function catchConflictError(error: Error) { + if (isResponseError(error) && error.statusCode === 409) { + return; + } + throw error; +} + +/** + * Adapter for writing and reading documents to/from Elasticsearch, + * using plain indices. + * + * TODO: + * - Index Lifecycle Management + * - Schema upgrades w/ fallbacks + */ +export class StorageIndexAdapter + implements IStorageAdapter +{ + private readonly logger: Logger; + constructor( + private readonly esClient: ElasticsearchClient, + logger: Logger, + private readonly storage: TStorageSettings + ) { + this.logger = logger.get('storage').get(this.storage.name); + } + + private getSearchIndexPattern(): string { + return `${getAliasName(this.storage.name)}*`; + } + + private getWriteTarget(): string { + return getAliasName(this.storage.name); + } + + private async createOrUpdateIndexTemplate(): Promise { + const version = getSchemaVersion(this.storage); + + const template: IndicesPutIndexTemplateIndexTemplateMapping = { + mappings: { + _meta: { + version, + }, + properties: mapValues(this.storage.schema.properties, toElasticsearchMappingProperty), + }, + aliases: { + [getAliasName(this.storage.name)]: { + is_write_index: true, + }, + }, + }; + + await this.esClient.indices + .putIndexTemplate({ + name: getIndexTemplateName(this.storage.name), + create: false, + allow_auto_create: false, + index_patterns: getBackingIndexPattern(this.storage.name), + _meta: { + version, + }, + template, + }) + .catch(catchConflictError); + } + + private async getExistingIndexTemplate(): Promise { + return await this.esClient.indices + .getIndexTemplate({ + name: getIndexTemplateName(this.storage.name), + }) + .then((templates) => templates.index_templates[0]?.index_template) + .catch((error) => { + if (isResponseError(error) && error.statusCode === 404) { + return undefined; + } + throw error; + }); + } + + private async getCurrentWriteIndex(): Promise< + { name: string; state: IndicesIndexState } | undefined + > { + const [writeIndex, indices] = await Promise.all([ + this.getCurrentWriteIndexName(), + this.getExistingIndices(), + ]); + + return writeIndex ? { name: writeIndex, state: indices[writeIndex] } : undefined; + } + + private async getExistingIndices() { + return this.esClient.indices.get({ + index: getBackingIndexPattern(this.storage.name), + allow_no_indices: true, + }); + } + + private async getCurrentWriteIndexName(): Promise { + const aliasName = getAliasName(this.storage.name); + + const aliases = await this.esClient.indices + .getAlias({ + name: getAliasName(this.storage.name), + }) + .catch((error) => { + if (isResponseError(error) && error.statusCode === 404) { + return {}; + } + throw error; + }); + + const writeIndex = Object.entries(aliases) + .map(([name, alias]) => { + return { + name, + isWriteIndex: alias.aliases[aliasName]?.is_write_index === true, + }; + }) + .find(({ isWriteIndex }) => { + return isWriteIndex; + }); + + return writeIndex?.name; + } + + private async createNextBackingIndex(): Promise { + const writeIndex = await this.getCurrentWriteIndexName(); + + const nextIndexName = getBackingIndexName( + this.storage.name, + writeIndex ? parseInt(last(writeIndex.split('-'))!, 10) : 1 + ); + + await this.esClient.indices + .create({ + index: nextIndexName, + }) + .catch(catchConflictError); + } + + private async updateMappingsOfExistingIndex({ name }: { name: string }) { + const simulateIndexTemplateResponse = await this.esClient.indices.simulateIndexTemplate({ + name: getIndexTemplateName(this.storage.name), + }); + + if (simulateIndexTemplateResponse.template.settings) { + await this.esClient.indices.putSettings({ + index: name, + settings: simulateIndexTemplateResponse.template.settings, + }); + } + + if (simulateIndexTemplateResponse.template.mappings) { + await this.esClient.indices.putMapping({ + index: name, + ...simulateIndexTemplateResponse.template.mappings, + }); + } + } + + /** + * Validates whether: + * - an index template exists + * - the index template has the right version (if not, update it) + * - a write index exists (if it doesn't, create it) + * - the write index has the right version (if not, update it) + */ + private async validateComponentsBeforeWriting(cb: () => Promise): Promise { + const [writeIndex, existingIndexTemplate] = await Promise.all([ + this.getCurrentWriteIndex(), + this.getExistingIndexTemplate(), + ]); + + const expectedSchemaVersion = getSchemaVersion(this.storage); + + if (!existingIndexTemplate) { + this.logger.info(`Creating index template as it does not exist`); + await this.createOrUpdateIndexTemplate(); + } else if (existingIndexTemplate._meta?.version !== expectedSchemaVersion) { + this.logger.info(`Updating existing index template`); + await this.createOrUpdateIndexTemplate(); + } + + if (!writeIndex) { + this.logger.info(`Creating first backing index`); + await this.createNextBackingIndex(); + } else if (writeIndex?.state.mappings?._meta?.version !== expectedSchemaVersion) { + this.logger.info(`Updating mappings of existing write index due to schema version mismatch`); + await this.updateMappingsOfExistingIndex({ + name: writeIndex.name, + }); + } + + return await cb(); + } + + async search>( + request: StorageAdapterSearchRequest + ): Promise> { + return this.esClient.search({ + ...request, + index: this.getSearchIndexPattern(), + allow_no_indices: true, + }) as unknown as Promise>; + } + + /** + * Get items from all non-write indices for the specified ids. + */ + private async getDanglingItems({ ids }: { ids: string[] }) { + const writeIndex = await this.getCurrentWriteIndexName(); + + if (writeIndex && ids.length) { + const danglingItemsResponse = await this.search({ + query: { + bool: { + filter: [{ terms: { _id: ids } }], + must_not: [ + { + term: { + _index: writeIndex, + }, + }, + ], + }, + }, + size: 10_000, + }); + + return danglingItemsResponse.hits.hits.map((hit) => ({ + id: hit._id!, + index: hit._index, + })); + } + return []; + } + + async index(request: StorageAdapterIndexRequest): Promise { + const attemptIndex = async (): Promise => { + const [danglingItem] = request.id + ? await this.getDanglingItems({ ids: [request.id] }) + : [undefined]; + + if (danglingItem) { + await this.esClient.delete({ + id: danglingItem.id, + index: danglingItem.index, + refresh: false, + }); + } + + return this.esClient.index({ + ...request, + refresh: request.refresh, + index: this.getWriteTarget(), + require_alias: true, + }); + }; + + return this.validateComponentsBeforeWriting(attemptIndex).then(async (response) => { + this.logger.debug(() => `Indexed document ${request.id} into ${response._index}`); + + return response; + }); + } + + async bulk>( + request: StorageAdapterBulkRequest + ): Promise { + const attemptBulk = async () => { + const indexedIds = + request.operations?.flatMap((operation) => { + if ( + 'index' in operation && + operation.index && + typeof operation.index === 'object' && + '_id' in operation.index && + typeof operation.index._id === 'string' + ) { + return operation.index._id ?? []; + } + return []; + }) ?? []; + + const danglingItems = await this.getDanglingItems({ ids: indexedIds }); + + if (danglingItems.length) { + this.logger.debug(`Deleting ${danglingItems.length} dangling items`); + } + + return this.esClient.bulk({ + ...request, + operations: (request.operations || []).concat( + danglingItems.map((item) => ({ delete: { _index: item.index, _id: item.id } })) + ), + index: this.getWriteTarget(), + require_alias: true, + }); + }; + + return this.validateComponentsBeforeWriting(attemptBulk).then(async (response) => { + return response; + }); + } + + async delete({ + id, + index, + refresh, + }: StorageAdapterDeleteRequest): Promise { + return await this.esClient.delete({ + index, + id, + refresh, + }); + } + + getClient(): StorageClient { + return new StorageClient(this, this.logger); + } +} diff --git a/x-pack/solutions/observability/packages/utils_server/es/storage/storage_client.ts b/x-pack/solutions/observability/packages/utils_server/es/storage/storage_client.ts new file mode 100644 index 0000000000000..6bd2b211d1083 --- /dev/null +++ b/x-pack/solutions/observability/packages/utils_server/es/storage/storage_client.ts @@ -0,0 +1,115 @@ +/* + * 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. + */ + +import { withSpan } from '@kbn/apm-utils'; +import { Logger } from '@kbn/core/server'; +import { compact } from 'lodash'; +import { + IStorageAdapter, + StorageAdapterBulkOperation, + StorageDocumentOf, + StorageSettings, +} from '.'; +import { ObservabilityESSearchRequest } from '../client/create_observability_es_client'; + +type StorageBulkOperation = + | { + index: { document: Omit; _id?: string }; + } + | { delete: { _id: string } }; + +export class StorageClient { + constructor(private readonly storage: IStorageAdapter, logger: Logger) {} + + search>( + operationName: string, + request: TSearchRequest + ) { + return withSpan(operationName, () => + this.storage.search, Omit>( + request + ) + ); + } + + async index({ + id, + document, + }: { + id?: string; + document: Omit, '_id'>; + }) { + await this.storage.index, '_id'>>({ + document, + refresh: 'wait_for', + id, + }); + } + + async delete(id: string) { + const searchResponse = await this.storage.search({ + query: { + bool: { + filter: [ + { + term: { + id, + }, + }, + ], + }, + }, + }); + + const document = searchResponse.hits.hits[0]; + + let deleted: boolean = false; + + if (document) { + await this.storage.delete({ id, index: document._index }); + deleted = true; + } + + return { acknowledged: true, deleted }; + } + + async bulk(operations: Array>>) { + const result = await this.storage.bulk({ + refresh: 'wait_for', + operations: operations.flatMap((operation): StorageAdapterBulkOperation[] => { + if ('index' in operation) { + return [ + { + index: { + _id: operation.index._id, + }, + }, + operation.index.document, + ]; + } + + return [operation]; + }), + }); + + if (result.errors) { + const errors = compact( + result.items.map((item) => { + const error = Object.values(item).find((operation) => operation.error)?.error; + return error; + }) + ); + return { + errors, + }; + } + + return { + acknowledged: true, + }; + } +} diff --git a/x-pack/solutions/observability/packages/utils_server/es/storage/types.ts b/x-pack/solutions/observability/packages/utils_server/es/storage/types.ts new file mode 100644 index 0000000000000..0c79be6f6080d --- /dev/null +++ b/x-pack/solutions/observability/packages/utils_server/es/storage/types.ts @@ -0,0 +1,133 @@ +/* + * 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. + */ + +import { MappingProperty } from '@elastic/elasticsearch/lib/api/types'; +import { merge } from 'lodash'; + +type AllMappingPropertyType = Required['type']; + +type StorageMappingPropertyType = AllMappingPropertyType & + ( + | 'text' + | 'match_only_text' + | 'keyword' + | 'boolean' + | 'date' + | 'byte' + | 'float' + | 'double' + | 'long' + ); + +type WithOptions = T extends any + ? T & { + required?: boolean; + multi_value?: boolean; + enum?: string[]; + } + : never; + +export type StorageMappingProperty = WithOptions< + Extract +>; + +type MappingPropertyOf = Extract< + StorageMappingProperty, + { type: TType } +>; + +type MappingPropertyFactory< + TType extends StorageMappingPropertyType, + TDefaults extends Partial | undefined> +> = > | undefined>( + overrides?: TOverrides +) => MappingPropertyOf & Exclude & Exclude; + +function createFactory< + TType extends StorageMappingPropertyType, + TDefaults extends Partial> | undefined +>(type: TType, defaults?: TDefaults): MappingPropertyFactory; + +function createFactory( + type: StorageMappingPropertyType, + defaults?: Partial +) { + return (overrides: Partial) => { + return { + ...defaults, + ...overrides, + type, + }; + }; +} + +const baseTypes = { + keyword: createFactory('keyword', { ignore_above: 1024 }), + match_only_text: createFactory('match_only_text'), + text: createFactory('text'), + double: createFactory('double'), + long: createFactory('long'), + boolean: createFactory('boolean'), + date: createFactory('date', { format: 'strict_date_optional_time' }), + byte: createFactory('byte'), + float: createFactory('float'), +} satisfies { + [TKey in StorageMappingPropertyType]: MappingPropertyFactory; +}; + +function enumFactory< + TEnum extends string, + TOverrides extends Partial> | undefined +>( + enums: TEnum[], + overrides?: TOverrides +): MappingPropertyOf<'keyword'> & { enum: TEnum[] } & Exclude; + +function enumFactory(enums: string[], overrides?: Partial>) { + const nextOverrides = merge({ enum: enums }, overrides); + const prop = baseTypes.keyword(nextOverrides); + return prop; +} + +const types = { + ...baseTypes, + enum: enumFactory, +}; + +type PrimitiveOf = { + keyword: TProperty extends { enum: infer TEnums } + ? TEnums extends Array + ? TEnum + : never + : string; + match_only_text: string; + text: string; + boolean: boolean; + date: TProperty extends { format: 'strict_date_optional_time' } ? string : string | number; + double: number; + long: number; + byte: number; + float: number; +}[TProperty['type']]; + +type MaybeMultiValue = TProperty extends { + multi_value: true; +} + ? TPrimitive[] + : TPrimitive; +type MaybeRequired = TProperty extends { + required: true; +} + ? TPrimitive + : TPrimitive | undefined; + +export type StorageFieldTypeOf = MaybeRequired< + TProperty, + MaybeMultiValue> +>; + +export { types }; diff --git a/x-pack/solutions/observability/packages/utils_server/tsconfig.json b/x-pack/solutions/observability/packages/utils_server/tsconfig.json index 33d7e75322f00..1bb54e734f891 100644 --- a/x-pack/solutions/observability/packages/utils_server/tsconfig.json +++ b/x-pack/solutions/observability/packages/utils_server/tsconfig.json @@ -28,5 +28,6 @@ "@kbn/calculate-auto", "@kbn/utility-types", "@kbn/task-manager-plugin", + "@kbn/es-errors", ] } diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.tsx index 26be768bdabfd..4d9d5e86a4074 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/controls.tsx @@ -85,7 +85,7 @@ function useDebugDownloadUrl(cy?: cytoscape.Core) { return () => { if (cy) { - cy.off('add remove', undefined, elementsHandler); + cy.off('add remove', elementsHandler); } }; }, [cy, debug]); @@ -130,7 +130,7 @@ export function Controls() { return () => { if (cy) { - cy.off('zoom', undefined, zoomHandler); + cy.off('zoom', zoomHandler); } }; }, [cy]); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape_options.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape_options.ts index cfe12a5d8b5a3..9cf1acccd7b79 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape_options.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/cytoscape_options.ts @@ -178,15 +178,12 @@ const getStyle = ( 'source-arrow-shape': isIE11 ? 'none' : 'triangle', 'source-arrow-color': lineColor, 'target-arrow-shape': isIE11 ? 'none' : 'triangle', - // @ts-expect-error 'source-distance-from-node': isIE11 ? undefined : parseInt(euiTheme.size.xs, 10), 'target-distance-from-node': isIE11 ? undefined : parseInt(euiTheme.size.xs, 10), }, }, { selector: 'edge[isInverseEdge]', - // @ts-expect-error DefinitelyTyped says visibility is "none" but it's - // actually "hidden" style: { visibility: 'hidden' }, }, { diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/index.tsx b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/index.tsx index 1bdd6240b63dc..ceade5a2b5736 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/index.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/index.tsx @@ -136,7 +136,7 @@ export function Popover({ focusedServiceName, environment, kuery, start, end }: if (cy) { cy.removeListener('select', 'node', selectHandler); cy.removeListener('unselect', 'node', deselect); - cy.removeListener('viewport', undefined, deselect); + cy.removeListener('viewport', deselect); cy.removeListener('drag', 'node', deselect); cy.removeListener('select', 'edge', selectHandler); cy.removeListener('unselect', 'edge', deselect); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/use_cytoscape_event_handlers.ts b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/use_cytoscape_event_handlers.ts index 9f40a34be5cbf..27f951a925aff 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/use_cytoscape_event_handlers.ts +++ b/x-pack/solutions/observability/plugins/apm/public/components/app/service_map/use_cytoscape_event_handlers.ts @@ -49,7 +49,6 @@ function getLayoutOptions({ return { animationDuration: animationOptions.duration, - // @ts-expect-error upgrade typescript v5.1.6 animationEasing: animationOptions.easing, fit, name: 'dagre', @@ -61,7 +60,7 @@ function getLayoutOptions({ rankSep: 128, rankDir: 'LR', ranker: 'network-simplex', - }; + } as cytoscape.LayoutOptions; } function setCursor(cursor: string, event: cytoscape.EventObjectCore) { @@ -201,19 +200,18 @@ export function useCytoscapeEventHandlers({ if (cy) { cy.removeListener( 'custom:data drag dragfree layoutstop select tapstart tapend unselect', - undefined, debugHandler ); - cy.removeListener('custom:data', undefined, dataHandler); - cy.removeListener('layoutstop', undefined, layoutstopHandler); + cy.removeListener('custom:data', dataHandler); + cy.removeListener('layoutstop', layoutstopHandler); cy.removeListener('mouseover', 'edge, node', mouseoverHandler); cy.removeListener('mouseout', 'edge, node', mouseoutHandler); cy.removeListener('select', 'node', selectHandler); cy.removeListener('unselect', 'node', unselectHandler); cy.removeListener('drag', 'node', dragHandler); cy.removeListener('dragfree', 'node', dragfreeHandler); - cy.removeListener('tapstart', undefined, tapstartHandler); - cy.removeListener('tapend', undefined, tapendHandler); + cy.removeListener('tapstart', tapstartHandler); + cy.removeListener('tapend', tapendHandler); } }; }, [cy, serviceName, trackApmEvent, euiTheme]); diff --git a/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/http_status_badge/http_status_badge.test.tsx b/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/http_status_badge/http_status_badge.test.tsx index e7d1d388a9579..4b4913dc74c22 100644 --- a/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/http_status_badge/http_status_badge.test.tsx +++ b/x-pack/solutions/observability/plugins/apm/public/components/shared/summary/http_status_badge/http_status_badge.test.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { mount } from 'enzyme'; import { HttpStatusBadge } from '.'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useEuiTheme } from '@elastic/eui'; describe('HttpStatusBadge', () => { diff --git a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/log_rate_analysis.tsx b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/log_rate_analysis.tsx index d6ab1d1055c05..9be8fdd1fc0cb 100644 --- a/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/log_rate_analysis.tsx +++ b/x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/components/log_rate_analysis.tsx @@ -233,6 +233,7 @@ export const LogRateAnalysis: FC = ({ r 'uiSettings', 'unifiedSearch', 'theme', + 'userProfile', 'lens', 'i18n', ]), diff --git a/x-pack/solutions/observability/plugins/infra/public/hooks/use_time_range.test.ts b/x-pack/solutions/observability/plugins/infra/public/hooks/use_time_range.test.ts index 03227d4bbf65e..4989f734440f3 100644 --- a/x-pack/solutions/observability/plugins/infra/public/hooks/use_time_range.test.ts +++ b/x-pack/solutions/observability/plugins/infra/public/hooks/use_time_range.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useTimeRange } from './use_time_range'; import * as datemath from '../utils/datemath'; diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/utils.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/utils.ts index f87c5197373d7..c26d866218d7b 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/utils.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/common/utils.ts @@ -5,8 +5,7 @@ * 2.0. */ -import { isEmpty, isError } from 'lodash'; -import { schema } from '@kbn/config-schema'; +import { isError } from 'lodash'; import type { Logger, LogMeta } from '@kbn/logging'; import type { ElasticsearchClient } from '@kbn/core/server'; import type { ObservabilityConfig } from '@kbn/observability-plugin/server'; @@ -52,30 +51,6 @@ const SUPPORTED_ES_FIELD_TYPES = [ ES_FIELD_TYPES.BOOLEAN, ]; -export const oneOfLiterals = (arrayOfLiterals: Readonly) => - schema.string({ - validate: (value) => - arrayOfLiterals.includes(value) ? undefined : `must be one of ${arrayOfLiterals.join(' | ')}`, - }); - -export const validateIsStringElasticsearchJSONFilter = (value: string) => { - if (value === '') { - // Allow clearing the filter. - return; - } - - const errorMessage = 'filterQuery must be a valid Elasticsearch filter expressed in JSON'; - try { - const parsedValue = JSON.parse(value); - if (!isEmpty(parsedValue.bool)) { - return undefined; - } - return errorMessage; - } catch (e) { - return errorMessage; - } -}; - export const UNGROUPED_FACTORY_KEY = '*'; export const createScopedLogger = ( diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts index 2a84ef327b9cd..cc07cb10bd725 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts @@ -5,8 +5,6 @@ * 2.0. */ -import type { Type } from '@kbn/config-schema'; -import { schema } from '@kbn/config-schema'; import { i18n } from '@kbn/i18n'; import { DEFAULT_APP_CATEGORIES } from '@kbn/core/server'; import type { @@ -14,13 +12,7 @@ import type { AlertingServerSetup, } from '@kbn/alerting-plugin/server'; import { observabilityPaths } from '@kbn/observability-plugin/common'; -import type { TimeUnitChar } from '@kbn/observability-plugin/common/utils/formatters/duration'; -import type { InventoryItemType, SnapshotMetricType } from '@kbn/metrics-data-access-plugin/common'; -import { SnapshotMetricTypeKeys } from '@kbn/metrics-data-access-plugin/common'; -import { COMPARATORS } from '@kbn/alerting-comparators'; -import { LEGACY_COMPARATORS } from '@kbn/observability-plugin/common/utils/convert_legacy_outside_comparator'; -import type { SnapshotCustomAggregation } from '../../../../common/http_api'; -import { SNAPSHOT_CUSTOM_AGGREGATIONS } from '../../../../common/http_api'; +import { metricInventoryThresholdRuleParamsSchema } from '@kbn/response-ops-rule-params/metric_inventory_threshold'; import type { InfraConfig } from '../../../../common/plugin_config_types'; import { METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID } from '../../../../common/alerting/metrics'; import type { InfraBackendLibs, InfraLocators } from '../../infra_types'; @@ -42,7 +34,6 @@ import { valueActionVariableDescription, viewInAppUrlActionVariableDescription, } from '../common/messages'; -import { oneOfLiterals, validateIsStringElasticsearchJSONFilter } from '../common/utils'; import { createInventoryMetricThresholdExecutor, FIRED_ACTIONS, @@ -52,26 +43,6 @@ import { import { MetricsRulesTypeAlertDefinition } from '../register_rule_types'; import { O11Y_AAD_FIELDS } from '../../../../common/constants'; -const comparators = Object.values({ ...COMPARATORS, ...LEGACY_COMPARATORS }); -const condition = schema.object({ - threshold: schema.arrayOf(schema.number()), - comparator: oneOfLiterals(comparators) as Type, - timeUnit: schema.string() as Type, - timeSize: schema.number(), - metric: oneOfLiterals(Object.keys(SnapshotMetricTypeKeys)) as Type, - warningThreshold: schema.maybe(schema.arrayOf(schema.number())), - warningComparator: schema.maybe(oneOfLiterals(comparators)) as Type, - customMetric: schema.maybe( - schema.object({ - type: schema.literal('custom'), - id: schema.string(), - field: schema.string(), - aggregation: oneOfLiterals(SNAPSHOT_CUSTOM_AGGREGATIONS) as Type, - label: schema.maybe(schema.string()), - }) - ), -}); - const groupActionVariableDescription = i18n.translate( 'xpack.infra.inventory.alerting.groupActionVariableDescription', { @@ -89,31 +60,18 @@ export function registerInventoryThresholdRuleType( return; } - const paramsSchema = schema.object( - { - criteria: schema.arrayOf(condition), - nodeType: schema.string() as Type, - filterQuery: schema.maybe( - schema.string({ validate: validateIsStringElasticsearchJSONFilter }) - ), - sourceId: schema.string(), - alertOnNoData: schema.maybe(schema.boolean()), - }, - { unknowns: 'allow' } - ); - alertingPlugin.registerType({ id: METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID, name: i18n.translate('xpack.infra.metrics.inventory.alertName', { defaultMessage: 'Inventory', }), validate: { - params: paramsSchema, + params: metricInventoryThresholdRuleParamsSchema, }, schemas: { params: { type: 'config-schema', - schema: paramsSchema, + schema: metricInventoryThresholdRuleParamsSchema, }, }, defaultActionGroupId: FIRED_ACTIONS_ID, @@ -123,6 +81,11 @@ export function registerInventoryThresholdRuleType( producer: 'infrastructure', minimumLicenseRequired: 'basic', isExportable: true, + /* + * The schema defined in response-ops-rule-params cannot import all types from the plugins + * so the executor will expect slight differences with the type InventoryMetricThresholdParams. + */ + // @ts-ignore executor: createInventoryMetricThresholdExecutor(libs, locators), actionVariables: { context: [ diff --git a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts index 1eed9f7ef3e5c..5a0353c03c753 100644 --- a/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts +++ b/x-pack/solutions/observability/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts @@ -6,18 +6,16 @@ */ import { DEFAULT_APP_CATEGORIES } from '@kbn/core/server'; -import { schema } from '@kbn/config-schema'; import { i18n } from '@kbn/i18n'; import type { GetViewInAppRelativeUrlFnOpts, AlertingServerSetup, } from '@kbn/alerting-plugin/server'; import { observabilityPaths } from '@kbn/observability-plugin/common'; -import { COMPARATORS } from '@kbn/alerting-comparators'; -import { LEGACY_COMPARATORS } from '@kbn/observability-plugin/common/utils/convert_legacy_outside_comparator'; +import { metricThresholdRuleParamsSchema } from '@kbn/response-ops-rule-params/metric_threshold'; + import type { InfraConfig } from '../../../../common/plugin_config_types'; import { METRIC_THRESHOLD_ALERT_TYPE_ID } from '../../../../common/alerting/metrics'; -import { METRIC_EXPLORER_AGGREGATIONS } from '../../../../common/http_api'; import type { InfraBackendLibs, InfraLocators } from '../../infra_types'; import { alertDetailUrlActionVariableDescription, @@ -38,7 +36,6 @@ import { valueActionVariableDescription, viewInAppUrlActionVariableDescription, } from '../common/messages'; -import { oneOfLiterals, validateIsStringElasticsearchJSONFilter } from '../common/utils'; import { createMetricThresholdExecutor, FIRED_ACTIONS, @@ -57,57 +54,6 @@ export function registerMetricThresholdRuleType( if (!featureFlags.metricThresholdAlertRuleEnabled) { return; } - const comparator = Object.values({ ...COMPARATORS, ...LEGACY_COMPARATORS }); - const baseCriterion = { - threshold: schema.arrayOf(schema.number()), - comparator: oneOfLiterals(comparator), - timeUnit: schema.string(), - timeSize: schema.number(), - warningThreshold: schema.maybe(schema.arrayOf(schema.number())), - warningComparator: schema.maybe(oneOfLiterals(comparator)), - }; - - const nonCountCriterion = schema.object({ - ...baseCriterion, - metric: schema.string(), - aggType: oneOfLiterals(METRIC_EXPLORER_AGGREGATIONS), - customMetrics: schema.never(), - equation: schema.never(), - label: schema.never(), - }); - - const countCriterion = schema.object({ - ...baseCriterion, - aggType: schema.literal('count'), - metric: schema.never(), - customMetrics: schema.never(), - equation: schema.never(), - label: schema.never(), - }); - - const customCriterion = schema.object({ - ...baseCriterion, - aggType: schema.literal('custom'), - metric: schema.never(), - customMetrics: schema.arrayOf( - schema.oneOf([ - schema.object({ - name: schema.string(), - aggType: oneOfLiterals(['avg', 'sum', 'max', 'min', 'cardinality']), - field: schema.string(), - filter: schema.never(), - }), - schema.object({ - name: schema.string(), - aggType: schema.literal('count'), - filter: schema.maybe(schema.string()), - field: schema.never(), - }), - ]) - ), - equation: schema.maybe(schema.string()), - label: schema.maybe(schema.string()), - }); const groupActionVariableDescription = i18n.translate( 'xpack.infra.metrics.alerting.groupActionVariableDescription', @@ -124,23 +70,7 @@ export function registerMetricThresholdRuleType( }), fieldsForAAD: O11Y_AAD_FIELDS, validate: { - params: schema.object( - { - criteria: schema.arrayOf( - schema.oneOf([countCriterion, nonCountCriterion, customCriterion]) - ), - groupBy: schema.maybe(schema.oneOf([schema.string(), schema.arrayOf(schema.string())])), - filterQuery: schema.maybe( - schema.string({ - validate: validateIsStringElasticsearchJSONFilter, - }) - ), - sourceId: schema.string(), - alertOnNoData: schema.maybe(schema.boolean()), - alertOnGroupDisappear: schema.maybe(schema.boolean()), - }, - { unknowns: 'allow' } - ), + params: metricThresholdRuleParamsSchema, }, defaultActionGroupId: FIRED_ACTIONS.id, actionGroups: [FIRED_ACTIONS, WARNING_ACTIONS, NO_DATA_ACTIONS], diff --git a/x-pack/solutions/observability/plugins/infra/tsconfig.json b/x-pack/solutions/observability/plugins/infra/tsconfig.json index 3a8b68772fed1..38788900217b7 100644 --- a/x-pack/solutions/observability/plugins/infra/tsconfig.json +++ b/x-pack/solutions/observability/plugins/infra/tsconfig.json @@ -116,7 +116,8 @@ "@kbn/core-plugins-server", "@kbn/config", "@kbn/observability-utils-common", - "@kbn/charts-theme" + "@kbn/charts-theme", + "@kbn/response-ops-rule-params" ], "exclude": ["target/**/*"] } diff --git a/x-pack/solutions/observability/plugins/metrics_data_access/server/plugin.ts b/x-pack/solutions/observability/plugins/metrics_data_access/server/plugin.ts index 95f4b016fef7b..7b9a2ec6c3597 100644 --- a/x-pack/solutions/observability/plugins/metrics_data_access/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/metrics_data_access/server/plugin.ts @@ -18,7 +18,9 @@ import { KibanaFramework } from './lib/adapters/framework/kibana_framework_adapt import { initMetricExplorerRoute } from './routes/metrics_explorer'; import { initMetricIndicesRoute } from './routes/metric_indices'; -export class MetricsDataPlugin implements Plugin { +export class MetricsDataPlugin + implements Plugin +{ private metricsClient: MetricsDataClient | null = null; constructor(context: PluginInitializerContext) {} 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/public/components/custom_threshold/components/alert_details_app_section/log_rate_analysis.tsx b/x-pack/solutions/observability/plugins/observability/public/components/custom_threshold/components/alert_details_app_section/log_rate_analysis.tsx index 89e8cc5e2aa6a..45950968cfcd1 100644 --- a/x-pack/solutions/observability/plugins/observability/public/components/custom_threshold/components/alert_details_app_section/log_rate_analysis.tsx +++ b/x-pack/solutions/observability/plugins/observability/public/components/custom_threshold/components/alert_details_app_section/log_rate_analysis.tsx @@ -201,6 +201,7 @@ export function LogRateAnalysis({ alert, dataView, services }: AlertDetailsLogRa 'uiSettings', 'unifiedSearch', 'theme', + 'userProfile', 'lens', 'i18n', ]), diff --git a/x-pack/solutions/observability/plugins/observability/server/plugin.ts b/x-pack/solutions/observability/plugins/observability/server/plugin.ts index 29219d94213c0..814ef31de4261 100644 --- a/x-pack/solutions/observability/plugins/observability/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/observability/server/plugin.ts @@ -78,7 +78,9 @@ const alertingFeatures = OBSERVABILITY_RULE_TYPE_IDS_WITH_SUPPORTED_STACK_RULE_T }) ); -export class ObservabilityPlugin implements Plugin { +export class ObservabilityPlugin + implements Plugin +{ private logger: Logger; constructor(private readonly initContext: PluginInitializerContext) { @@ -86,7 +88,7 @@ export class ObservabilityPlugin implements Plugin { this.logger = initContext.logger.get(); } - public setup(core: CoreSetup, plugins: PluginSetup) { + public setup(core: CoreSetup, plugins: PluginSetup) { const casesCapabilities = createCasesUICapabilities(); const casesApiTags = getCasesApiTags(observabilityFeatureId); diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx index 0487172aca6a6..8a54ad14d8d41 100644 --- a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx @@ -19,8 +19,8 @@ import { } from '@elastic/eui'; import React from 'react'; import { i18n } from '@kbn/i18n'; -import { AssistantAvatar } from '@kbn/observability-ai-assistant-plugin/public'; import { css } from '@emotion/css'; +import { AssistantIcon } from '@kbn/ai-assistant-icon'; export function RootCauseAnalysisCallout({ onClick, @@ -46,7 +46,7 @@ export function RootCauseAnalysisCallout({ `} > - +

diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx index 420a788bd5f2a..47282ba9b8d69 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx +++ b/x-pack/solutions/observability/plugins/observability_onboarding/public/application/quickstart_flows/auto_detect/auto_detect_panel.tsx @@ -183,6 +183,12 @@ export const AutoDetectPanel: FunctionComponent = () => { href: assetDetailsLocator.getRedirectUrl({ assetType: 'host', assetId: integration.metadata?.hostname, + assetDetails: { + dateRange: { + from: 'now-15m', + to: 'now', + }, + }, }), }, ] 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/observability/plugins/profiling/common/frame_type_colors.ts b/x-pack/solutions/observability/plugins/profiling/common/frame_type_colors.ts index 162b87a87319e..4d02980f7fc8c 100644 --- a/x-pack/solutions/observability/plugins/profiling/common/frame_type_colors.ts +++ b/x-pack/solutions/observability/plugins/profiling/common/frame_type_colors.ts @@ -28,6 +28,10 @@ import { FrameType, normalizeFrameType } from '@kbn/profiling-utils'; * * Taken originally from prodfiler_ui/src/helpers/Pixi/frameTypeToColors.tsx */ +const RED = 0xfd8484; +const ORANGE = 0xffaa00; +const YELLOW = 0xe1e100; + export const FRAME_TYPE_COLOR_MAP = { [FrameType.Unsymbolized]: [0xfd8484, 0xfd9d9d, 0xfeb5b5, 0xfecece], [FrameType.Python]: [0xfcae6b, 0xfdbe89, 0xfdcea6, 0xfedfc4], @@ -42,6 +46,9 @@ export const FRAME_TYPE_COLOR_MAP = { [FrameType.DotNET]: [0x6c60e1, 0x8075e5, 0x948be9, 0xa8a0ed], [FrameType.ErrorFlag]: [0x0, 0x0, 0x0, 0x0], // This is a special case, it's not a real frame type [FrameType.Error]: [0xfd8484, 0xfd9d9d, 0xfeb5b5, 0xfecece], + [FrameType.Root]: [RED, RED, RED, RED], + [FrameType.ProcessName]: [ORANGE, ORANGE, ORANGE, ORANGE], + [FrameType.ThreadName]: [YELLOW, YELLOW, YELLOW, YELLOW], }; export function frameTypeToRGB(frameType: FrameType, x: number): number { diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/apm.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/apm.ts index 9dc85ac8969b8..f795bd25295bc 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/apm.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/apm.ts @@ -85,7 +85,7 @@ export function registerTopNFunctionsAPMTransactionsRoute({ ], }, }, - aggregationField: 'transaction.name', + aggregationFields: ['transaction.name'], indices: transactionIndices.split(','), stacktraceIdsField: 'transaction.profiler_stack_trace_ids', limit: 1000, diff --git a/x-pack/solutions/observability/plugins/profiling/server/routes/functions.ts b/x-pack/solutions/observability/plugins/profiling/server/routes/functions.ts index 9acd9026b0893..cccb9430e3bc1 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/routes/functions.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/routes/functions.ts @@ -89,7 +89,7 @@ export function registerTopNFunctionsSearchRoute({ core, esClient, query, - aggregationField: 'service.name', + aggregationFields: ['service.name'], totalSeconds, }); diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/common/profiling_es_client.ts b/x-pack/solutions/observability/plugins/profiling_data_access/common/profiling_es_client.ts index 639b5ac5174cd..c5cf84389f951 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/common/profiling_es_client.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/common/profiling_es_client.ts @@ -57,7 +57,7 @@ export interface ProfilingESClient { sampleSize?: number; indices?: string[]; stacktraceIdsField?: string; - aggregationField?: AggregationField; + aggregationFields?: AggregationField[]; co2PerKWH?: number; datacenterPUE?: number; pervCPUWattX86?: number; diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/es_functions.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/es_functions.ts index abda08a1a6a62..9c712b4283052 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/es_functions.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/services/functions/es_functions.ts @@ -27,7 +27,7 @@ export interface FetchFunctionsParams { indices?: string[]; stacktraceIdsField?: string; query: QueryDslQueryContainer; - aggregationField?: AggregationField; + aggregationFields?: AggregationField[]; limit?: number; totalSeconds: number; } @@ -41,7 +41,7 @@ export function createFetchESFunctions({ createProfilingEsClient }: RegisterServ indices, stacktraceIdsField, query, - aggregationField, + aggregationFields, limit, totalSeconds, }: FetchFunctionsParams) => { @@ -72,7 +72,7 @@ export function createFetchESFunctions({ createProfilingEsClient }: RegisterServ query, indices, stacktraceIdsField, - aggregationField, + aggregationFields, co2PerKWH, datacenterPUE, pervCPUWattX86, diff --git a/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/create_profiling_es_client.ts b/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/create_profiling_es_client.ts index 5e595a3ce0eb0..0f31f78e741ae 100644 --- a/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/create_profiling_es_client.ts +++ b/x-pack/solutions/observability/plugins/profiling_data_access/server/utils/create_profiling_es_client.ts @@ -153,7 +153,7 @@ export function createProfilingEsClient({ }, topNFunctions({ query, - aggregationField, + aggregationFields, indices, stacktraceIdsField, co2PerKWH, @@ -180,7 +180,7 @@ export function createProfilingEsClient({ limit, indices, stacktrace_ids_field: stacktraceIdsField, - aggregation_field: aggregationField, + aggregation_fields: aggregationFields, co2_per_kwh: co2PerKWH, per_core_watt_x86: pervCPUWattX86, per_core_watt_arm64: pervCPUWattArm64, diff --git a/x-pack/solutions/observability/plugins/slo/public/components/alert_details/components/custom_panels/custom_kql/log_rate_analysis_panel.tsx b/x-pack/solutions/observability/plugins/slo/public/components/alert_details/components/custom_panels/custom_kql/log_rate_analysis_panel.tsx index 69826dd64dc14..da6d2c6fda884 100644 --- a/x-pack/solutions/observability/plugins/slo/public/components/alert_details/components/custom_panels/custom_kql/log_rate_analysis_panel.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/components/alert_details/components/custom_panels/custom_kql/log_rate_analysis_panel.tsx @@ -302,6 +302,7 @@ export function LogRateAnalysisPanel({ slo, alert, rule }: Props) { 'uiSettings', 'unifiedSearch', 'theme', + 'userProfile', 'lens', 'i18n', ]), diff --git a/x-pack/solutions/observability/plugins/slo/public/components/slo/disable_confirmation_modal/slo_disable_confirmation_modal.tsx b/x-pack/solutions/observability/plugins/slo/public/components/slo/disable_confirmation_modal/slo_disable_confirmation_modal.tsx new file mode 100644 index 0000000000000..b249544849923 --- /dev/null +++ b/x-pack/solutions/observability/plugins/slo/public/components/slo/disable_confirmation_modal/slo_disable_confirmation_modal.tsx @@ -0,0 +1,45 @@ +/* + * 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. + */ + +import { EuiConfirmModal } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { SLODefinitionResponse, SLOWithSummaryResponse } from '@kbn/slo-schema'; +import React from 'react'; + +export interface Props { + slo: SLOWithSummaryResponse | SLODefinitionResponse; + onCancel: () => void; + onConfirm: () => void; + isLoading?: boolean; +} + +export function SloDisableConfirmationModal({ slo, onCancel, onConfirm, isLoading }: Props) { + const { name } = slo; + return ( + + {i18n.translate('xpack.slo.disableConfirmationModal.descriptionText', { + defaultMessage: 'Disabling this SLO will stop generating data until it is enabled again.', + })} + + ); +} diff --git a/x-pack/solutions/observability/plugins/slo/public/components/slo/enable_confirmation_modal/slo_enable_confirmation_modal.tsx b/x-pack/solutions/observability/plugins/slo/public/components/slo/enable_confirmation_modal/slo_enable_confirmation_modal.tsx new file mode 100644 index 0000000000000..1fd63eb31f81c --- /dev/null +++ b/x-pack/solutions/observability/plugins/slo/public/components/slo/enable_confirmation_modal/slo_enable_confirmation_modal.tsx @@ -0,0 +1,45 @@ +/* + * 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. + */ + +import { EuiConfirmModal } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { SLODefinitionResponse, SLOWithSummaryResponse } from '@kbn/slo-schema'; +import React from 'react'; + +export interface Props { + slo: SLOWithSummaryResponse | SLODefinitionResponse; + onCancel: () => void; + onConfirm: () => void; + isLoading?: boolean; +} + +export function SloEnableConfirmationModal({ slo, onCancel, onConfirm, isLoading }: Props) { + const { name } = slo; + return ( + + {i18n.translate('xpack.slo.enableConfirmationModal.descriptionText', { + defaultMessage: 'Enabling this SLO will generate the missing data since it was disabled.', + })} + + ); +} diff --git a/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_status_badge/index.tsx b/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/index.tsx similarity index 72% rename from x-pack/solutions/observability/plugins/slo/public/components/slo/slo_status_badge/index.tsx rename to x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/index.tsx index c77b46d62c2a0..e7250d6e6c5dc 100644 --- a/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_status_badge/index.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/index.tsx @@ -6,3 +6,5 @@ */ export { SloStatusBadge } from './slo_status_badge'; +export { SloActiveAlertsBadge } from './slo_active_alerts_badge'; +export { SloStateBadge } from './slo_state_badge'; diff --git a/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_status_badge/slo_active_alerts_badge.stories.tsx b/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/slo_active_alerts_badge.stories.tsx similarity index 100% rename from x-pack/solutions/observability/plugins/slo/public/components/slo/slo_status_badge/slo_active_alerts_badge.stories.tsx rename to x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/slo_active_alerts_badge.stories.tsx diff --git a/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_status_badge/slo_active_alerts_badge.tsx b/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/slo_active_alerts_badge.tsx similarity index 100% rename from x-pack/solutions/observability/plugins/slo/public/components/slo/slo_status_badge/slo_active_alerts_badge.tsx rename to x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/slo_active_alerts_badge.tsx diff --git a/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/slo_state_badge.tsx b/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/slo_state_badge.tsx new file mode 100644 index 0000000000000..176dc8955769c --- /dev/null +++ b/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/slo_state_badge.tsx @@ -0,0 +1,39 @@ +/* + * 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. + */ + +import React from 'react'; +import { EuiBadge, EuiFlexItem, EuiToolTip } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { SLOWithSummaryResponse } from '@kbn/slo-schema'; + +export interface Props { + slo: SLOWithSummaryResponse; +} + +export function SloStateBadge({ slo }: Props) { + const isEnabled = slo.enabled; + if (isEnabled) { + return null; + } + + return ( + + + + {i18n.translate('xpack.slo.sloStateBadge.disabled.label', { + defaultMessage: 'Disabled', + })} + + + + ); +} diff --git a/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_status_badge/slo_status_badge.stories.tsx b/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/slo_status_badge.stories.tsx similarity index 100% rename from x-pack/solutions/observability/plugins/slo/public/components/slo/slo_status_badge/slo_status_badge.stories.tsx rename to x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/slo_status_badge.stories.tsx diff --git a/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_status_badge/slo_status_badge.tsx b/x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/slo_status_badge.tsx similarity index 100% rename from x-pack/solutions/observability/plugins/slo/public/components/slo/slo_status_badge/slo_status_badge.tsx rename to x-pack/solutions/observability/plugins/slo/public/components/slo/slo_badges/slo_status_badge.tsx diff --git a/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/slo_overview.tsx b/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/slo_overview.tsx index 72a0b57be723b..40f72b7915c7b 100644 --- a/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/slo_overview.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/slo_overview.tsx @@ -95,8 +95,6 @@ export function SloOverview({ sloId, sloInstanceId, remoteName, reloadSubject }: const rules = rulesBySlo?.[slo?.id]; const activeAlerts = activeAlertsBySlo.get(slo); - const hasGroupBy = Boolean(slo.groupBy && slo.groupBy !== ALL_VALUE); - const historicalSummary = historicalSummaries.find( (histSummary) => histSummary.sloId === slo.id && histSummary.instanceId === (slo.instanceId ?? ALL_VALUE) @@ -112,14 +110,7 @@ export function SloOverview({ sloId, sloInstanceId, remoteName, reloadSubject }: onClick={() => { setSelectedSlo(slo); }} - badges={ - - } + badges={} />

diff --git a/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/slo_overview_grid.tsx b/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/slo_overview_grid.tsx index 88e10faeae1a1..6334eb7e430b2 100644 --- a/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/slo_overview_grid.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/embeddable/slo/overview/slo_overview_grid.tsx @@ -125,7 +125,6 @@ export function SloCardChartList({ sloId }: { sloId: string }) { const rules = rulesBySlo?.[slo?.id]; const activeAlerts = activeAlertsBySlo.get(slo); - const hasGroupBy = Boolean(slo.groupBy && slo.groupBy !== ALL_VALUE); const data = getSloChartData({ slo, @@ -141,7 +140,6 @@ export function SloCardChartList({ sloId }: { sloId: string }) { rules={rules} activeAlerts={activeAlerts} handleCreateRule={() => {}} - hasGroupBy={hasGroupBy} /> ); chartsData[chartsData.length - 1].push(data); diff --git a/x-pack/solutions/observability/plugins/slo/public/hooks/use_disable_slo.ts b/x-pack/solutions/observability/plugins/slo/public/hooks/use_disable_slo.ts new file mode 100644 index 0000000000000..a65381adc13d8 --- /dev/null +++ b/x-pack/solutions/observability/plugins/slo/public/hooks/use_disable_slo.ts @@ -0,0 +1,57 @@ +/* + * 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. + */ + +import { IHttpFetchError, ResponseErrorBody } from '@kbn/core/public'; +import { i18n } from '@kbn/i18n'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import { useKibana } from './use_kibana'; +import { sloKeys } from './query_key_factory'; +import { usePluginContext } from './use_plugin_context'; + +type ServerError = IHttpFetchError; + +export function useDisableSlo() { + const { + notifications: { toasts }, + } = useKibana().services; + const { sloClient } = usePluginContext(); + const queryClient = useQueryClient(); + + return useMutation( + ['disableSlo'], + ({ id }) => { + try { + return sloClient.fetch(`POST /api/observability/slos/{id}/disable 2023-10-31`, { + params: { path: { id } }, + }); + } catch (error) { + return Promise.reject(`Something went wrong: ${String(error)}`); + } + }, + { + onError: (error, { name }) => { + toasts.addError(new Error(error.body?.message ?? error.message), { + title: i18n.translate('xpack.slo.disable.errorNotification', { + defaultMessage: 'Failed to disable {name}', + values: { name }, + }), + }); + }, + onSuccess: (_data, { name }) => { + queryClient.invalidateQueries({ queryKey: sloKeys.lists(), exact: false }); + queryClient.invalidateQueries({ queryKey: sloKeys.details(), exact: false }); + + toasts.addSuccess( + i18n.translate('xpack.slo.disable.successNotification', { + defaultMessage: 'Disabled {name}', + values: { name }, + }) + ); + }, + } + ); +} diff --git a/x-pack/solutions/observability/plugins/slo/public/hooks/use_enable_slo.ts b/x-pack/solutions/observability/plugins/slo/public/hooks/use_enable_slo.ts new file mode 100644 index 0000000000000..7e90eb85f8736 --- /dev/null +++ b/x-pack/solutions/observability/plugins/slo/public/hooks/use_enable_slo.ts @@ -0,0 +1,57 @@ +/* + * 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. + */ + +import { IHttpFetchError, ResponseErrorBody } from '@kbn/core/public'; +import { i18n } from '@kbn/i18n'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import { useKibana } from './use_kibana'; +import { sloKeys } from './query_key_factory'; +import { usePluginContext } from './use_plugin_context'; + +type ServerError = IHttpFetchError; + +export function useEnableSlo() { + const { + notifications: { toasts }, + } = useKibana().services; + const { sloClient } = usePluginContext(); + const queryClient = useQueryClient(); + + return useMutation( + ['enableSlo'], + ({ id }) => { + try { + return sloClient.fetch(`POST /api/observability/slos/{id}/enable 2023-10-31`, { + params: { path: { id } }, + }); + } catch (error) { + return Promise.reject(`Something went wrong: ${String(error)}`); + } + }, + { + onError: (error, { name }) => { + toasts.addError(new Error(error.body?.message ?? error.message), { + title: i18n.translate('xpack.slo.enable.errorNotification', { + defaultMessage: 'Failed to enable {name}', + values: { name }, + }), + }); + }, + onSuccess: (_data, { name }) => { + queryClient.invalidateQueries({ queryKey: sloKeys.lists(), exact: false }); + queryClient.invalidateQueries({ queryKey: sloKeys.details(), exact: false }); + + toasts.addSuccess( + i18n.translate('xpack.slo.enable.successNotification', { + defaultMessage: 'Enabled {name}', + values: { name }, + }) + ); + }, + } + ); +} diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/components/header_control.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/components/header_control.tsx index 0aed7a8984d6f..fd77526197ca2 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/components/header_control.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/components/header_control.tsx @@ -30,6 +30,10 @@ import { isApmIndicatorType } from '../../../utils/slo/indicator'; import { EditBurnRateRuleFlyout } from '../../slos/components/common/edit_burn_rate_rule_flyout'; import { useGetQueryParams } from '../hooks/use_get_query_params'; import { useSloActions } from '../hooks/use_slo_actions'; +import { SloDisableConfirmationModal } from '../../../components/slo/disable_confirmation_modal/slo_disable_confirmation_modal'; +import { SloEnableConfirmationModal } from '../../../components/slo/enable_confirmation_modal/slo_enable_confirmation_modal'; +import { useDisableSlo } from '../../../hooks/use_disable_slo'; +import { useEnableSlo } from '../../../hooks/use_enable_slo'; export interface Props { slo: SLOWithSummaryResponse; @@ -45,16 +49,28 @@ export function HeaderControl({ slo }: Props) { const hasApmReadCapabilities = capabilities.apm.show; const { data: permissions } = usePermissions(); - const { isDeletingSlo, isResettingSlo, removeDeleteQueryParam, removeResetQueryParam } = - useGetQueryParams(); + const { + isDeletingSlo, + isResettingSlo, + isEnablingSlo, + isDisablingSlo, + removeDeleteQueryParam, + removeResetQueryParam, + removeEnableQueryParam, + removeDisableQueryParam, + } = useGetQueryParams(); const [isPopoverOpen, setIsPopoverOpen] = useState(false); const [isRuleFlyoutVisible, setRuleFlyoutVisibility] = useState(false); const [isEditRuleFlyoutOpen, setIsEditRuleFlyoutOpen] = useState(false); const [isDeleteConfirmationModalOpen, setDeleteConfirmationModalOpen] = useState(false); const [isResetConfirmationModalOpen, setResetConfirmationModalOpen] = useState(false); + const [isEnableConfirmationModalOpen, setEnableConfirmationModalOpen] = useState(false); + const [isDisableConfirmationModalOpen, setDisableConfirmationModalOpen] = useState(false); - const { mutateAsync: resetSlo, isLoading: isResetLoading } = useResetSlo(); + const { mutate: resetSlo, isLoading: isResetLoading } = useResetSlo(); + const { mutate: enableSlo, isLoading: isEnableLoading } = useEnableSlo(); + const { mutate: disableSlo, isLoading: isDisableLoading } = useDisableSlo(); const { data: rulesBySlo, refetchRules } = useFetchRulesForSlo({ sloIds: [slo.id], @@ -72,7 +88,13 @@ export function HeaderControl({ slo }: Props) { if (isResettingSlo) { setResetConfirmationModalOpen(true); } - }, [isDeletingSlo, isResettingSlo]); + if (isEnablingSlo) { + setEnableConfirmationModalOpen(true); + } + if (isDisablingSlo) { + setDisableConfirmationModalOpen(true); + } + }, [isDeletingSlo, isResettingSlo, isEnablingSlo, isDisablingSlo]); const onCloseRuleFlyout = () => { setRuleFlyoutVisibility(false); @@ -83,7 +105,14 @@ export function HeaderControl({ slo }: Props) { setRuleFlyoutVisibility(true); }; - const { handleNavigateToRules, sloEditUrl, remoteDeleteUrl, remoteResetUrl } = useSloActions({ + const { + handleNavigateToRules, + sloEditUrl, + remoteDeleteUrl, + remoteResetUrl, + remoteEnableUrl, + remoteDisableUrl, + } = useSloActions({ slo, rules, setIsEditRuleFlyoutOpen, @@ -129,11 +158,12 @@ export function HeaderControl({ slo }: Props) { window.open(remoteResetUrl, '_blank'); } else { setResetConfirmationModalOpen(true); + setIsPopoverOpen(false); } }; - const handleResetConfirm = async () => { - await resetSlo({ id: slo.id, name: slo.name }); + const handleResetConfirm = () => { + resetSlo({ id: slo.id, name: slo.name }); removeResetQueryParam(); setResetConfirmationModalOpen(false); }; @@ -143,6 +173,42 @@ export function HeaderControl({ slo }: Props) { setResetConfirmationModalOpen(false); }; + const handleEnable = () => { + if (!!remoteEnableUrl) { + window.open(remoteEnableUrl, '_blank'); + } else { + setEnableConfirmationModalOpen(true); + setIsPopoverOpen(false); + } + }; + const handleEnableCancel = () => { + removeEnableQueryParam(); + setEnableConfirmationModalOpen(false); + }; + const handleEnableConfirm = () => { + enableSlo({ id: slo.id, name: slo.name }); + removeEnableQueryParam(); + setEnableConfirmationModalOpen(false); + }; + + const handleDisable = () => { + if (!!remoteDisableUrl) { + window.open(remoteDisableUrl, '_blank'); + } else { + setDisableConfirmationModalOpen(true); + setIsPopoverOpen(false); + } + }; + const handleDisableCancel = () => { + removeDisableQueryParam(); + setDisableConfirmationModalOpen(false); + }; + const handleDisableConfirm = () => { + disableSlo({ id: slo.id, name: slo.name }); + removeDisableQueryParam(); + setDisableConfirmationModalOpen(false); + }; + const navigate = useCallback( (url: string) => setTimeout(() => navigateToUrl(url)), [navigateToUrl] @@ -249,6 +315,35 @@ export function HeaderControl({ slo }: Props) { ) ) .concat( + slo.enabled ? ( + + {i18n.translate('xpack.slo.item.actions.disable', { defaultMessage: 'Disable' })} + {showRemoteLinkIcon} + + ) : ( + + {i18n.translate('xpack.slo.item.actions.enable', { defaultMessage: 'Enable' })} + {showRemoteLinkIcon} + + ), ) : null} + + {isEnableConfirmationModalOpen ? ( + + ) : null} + + {isDisableConfirmationModalOpen ? ( + + ) : null} ); } diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/components/header_title.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/components/header_title.tsx index 2d5078dc4cd60..e0ca9efc079d1 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/components/header_title.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/components/header_title.tsx @@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n'; import { SLOWithSummaryResponse } from '@kbn/slo-schema'; import moment from 'moment'; import React from 'react'; -import { SloStatusBadge } from '../../../components/slo/slo_status_badge'; +import { SloStateBadge, SloStatusBadge } from '../../../components/slo/slo_badges'; import { SloRemoteBadge } from '../../slos/components/badges/slo_remote_badge'; import { SLOGroupings } from './groupings/slo_groupings'; @@ -35,6 +35,7 @@ export function HeaderTitle({ isLoading, slo }: Props) { wrap={true} > + diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/hooks/use_get_query_params.ts b/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/hooks/use_get_query_params.ts index 163e2cd526a6a..e9e36aca52d9e 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/hooks/use_get_query_params.ts +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/hooks/use_get_query_params.ts @@ -13,6 +13,8 @@ export const INSTANCE_SEARCH_PARAM = 'instanceId'; export const REMOTE_NAME_PARAM = 'remoteName'; export const DELETE_SLO = 'delete'; export const RESET_SLO = 'reset'; +export const ENABLE_SLO = 'enable'; +export const DISABLE_SLO = 'disable'; export function useGetQueryParams() { const { search, pathname } = useLocation(); @@ -23,6 +25,8 @@ export function useGetQueryParams() { const remoteName = searchParams.get(REMOTE_NAME_PARAM); const deleteSlo = searchParams.get(DELETE_SLO); const resetSlo = searchParams.get(RESET_SLO); + const enableSlo = searchParams.get(ENABLE_SLO); + const disableSlo = searchParams.get(DISABLE_SLO); const removeDeleteQueryParam = useCallback(() => { const qParams = new URLSearchParams(search); @@ -50,6 +54,32 @@ export function useGetQueryParams() { } }, [resetSlo, history, pathname, search]); + const removeEnableQueryParam = useCallback(() => { + const qParams = new URLSearchParams(search); + + // remote enable param from url after initial load + if (enableSlo === 'true') { + qParams.delete(ENABLE_SLO); + history.replace({ + pathname, + search: qParams.toString(), + }); + } + }, [enableSlo, history, pathname, search]); + + const removeDisableQueryParam = useCallback(() => { + const qParams = new URLSearchParams(search); + + // remote disable param from url after initial load + if (disableSlo === 'true') { + qParams.delete(DISABLE_SLO); + history.replace({ + pathname, + search: qParams.toString(), + }); + } + }, [disableSlo, history, pathname, search]); + return { instanceId: !!instanceId && instanceId !== ALL_VALUE ? instanceId : undefined, remoteName: remoteName !== null ? remoteName : undefined, @@ -57,5 +87,9 @@ export function useGetQueryParams() { removeDeleteQueryParam, isResettingSlo: resetSlo === 'true', removeResetQueryParam, + isEnablingSlo: enableSlo === 'true', + removeEnableQueryParam, + isDisablingSlo: disableSlo === 'true', + removeDisableQueryParam, }; } diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/hooks/use_slo_actions.ts b/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/hooks/use_slo_actions.ts index 8e7be877ca02e..8f3b6ad599419 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/hooks/use_slo_actions.ts +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slo_details/hooks/use_slo_actions.ts @@ -15,21 +15,25 @@ import { BurnRateRuleParams } from '../../../typings'; import { useKibana } from '../../../hooks/use_kibana'; import { createRemoteSloDeleteUrl, + createRemoteSloDisableUrl, createRemoteSloEditUrl, + createRemoteSloEnableUrl, createRemoteSloResetUrl, } from '../../../utils/slo/remote_slo_urls'; +interface Props { + slo?: SLOWithSummaryResponse; + rules?: Array>; + setIsEditRuleFlyoutOpen: (val: boolean) => void; + setIsActionsPopoverOpen: (val: boolean) => void; +} + export const useSloActions = ({ slo, rules, setIsEditRuleFlyoutOpen, setIsActionsPopoverOpen, -}: { - slo?: SLOWithSummaryResponse; - rules?: Array>; - setIsEditRuleFlyoutOpen: (val: boolean) => void; - setIsActionsPopoverOpen: (val: boolean) => void; -}) => { +}: Props) => { const { share: { url: { locators }, @@ -44,6 +48,8 @@ export const useSloActions = ({ handleNavigateToRules: () => {}, remoteDeleteUrl: undefined, remoteResetUrl: undefined, + remoteEnableUrl: undefined, + remoteDisableUrl: undefined, sloDetailsUrl: '', }; } @@ -79,6 +85,8 @@ export const useSloActions = ({ const remoteDeleteUrl = createRemoteSloDeleteUrl(slo, spaceId); const remoteResetUrl = createRemoteSloResetUrl(slo, spaceId); + const remoteEnableUrl = createRemoteSloEnableUrl(slo, spaceId); + const remoteDisableUrl = createRemoteSloDisableUrl(slo, spaceId); const sloEditUrl = slo.remote ? createRemoteSloEditUrl(slo, spaceId) @@ -89,6 +97,8 @@ export const useSloActions = ({ handleNavigateToRules, remoteDeleteUrl, remoteResetUrl, + remoteEnableUrl, + remoteDisableUrl, sloDetailsUrl: http.basePath.prepend(detailsUrl), }; }; diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/badges/slo_badges.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/badges/slo_badges.tsx index 86dfa006b7f3c..f147a45cbc47b 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/badges/slo_badges.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/badges/slo_badges.tsx @@ -9,8 +9,8 @@ import { EuiFlexGroup, EuiSkeletonRectangle } from '@elastic/eui'; import { SLOWithSummaryResponse } from '@kbn/slo-schema'; import { Rule } from '@kbn/triggers-actions-ui-plugin/public'; import React from 'react'; -import { SloStatusBadge } from '../../../../components/slo/slo_status_badge'; -import { SloActiveAlertsBadge } from '../../../../components/slo/slo_status_badge/slo_active_alerts_badge'; +import { SloStateBadge, SloStatusBadge } from '../../../../components/slo/slo_badges'; +import { SloActiveAlertsBadge } from '../../../../components/slo/slo_badges/slo_active_alerts_badge'; import { BurnRateRuleParams } from '../../../../typings'; import { SloTagsList } from '../common/slo_tags_list'; import { SloIndicatorTypeBadge } from './slo_indicator_type_badge'; @@ -42,6 +42,7 @@ export function SloBadges({ ) : ( <> + diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slo_card_item.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slo_card_item.tsx index 7d36a615638f8..b043111f3a9af 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slo_card_item.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slo_card_item.tsx @@ -19,7 +19,11 @@ import { Rule } from '@kbn/triggers-actions-ui-plugin/public'; import moment from 'moment'; import React, { useState } from 'react'; import { SloDeleteModal } from '../../../../components/slo/delete_confirmation_modal/slo_delete_confirmation_modal'; +import { SloDisableConfirmationModal } from '../../../../components/slo/disable_confirmation_modal/slo_disable_confirmation_modal'; +import { SloEnableConfirmationModal } from '../../../../components/slo/enable_confirmation_modal/slo_enable_confirmation_modal'; import { SloResetConfirmationModal } from '../../../../components/slo/reset_confirmation_modal/slo_reset_confirmation_modal'; +import { useDisableSlo } from '../../../../hooks/use_disable_slo'; +import { useEnableSlo } from '../../../../hooks/use_enable_slo'; import { useKibana } from '../../../../hooks/use_kibana'; import { useResetSlo } from '../../../../hooks/use_reset_slo'; import { BurnRateRuleParams } from '../../../../typings'; @@ -73,6 +77,8 @@ export function SloCardItem({ slo, rules, activeAlerts, historicalSummary, refet const [isEditRuleFlyoutOpen, setIsEditRuleFlyoutOpen] = useState(false); const [isDeleteConfirmationModalOpen, setDeleteConfirmationModalOpen] = useState(false); const [isResetConfirmationModalOpen, setResetConfirmationModalOpen] = useState(false); + const [isEnableConfirmationModalOpen, setEnableConfirmationModalOpen] = useState(false); + const [isDisableConfirmationModalOpen, setDisableConfirmationModalOpen] = useState(false); const [isDashboardAttachmentReady, setDashboardAttachmentReady] = useState(false); const historicalSliData = formatHistoricalData(historicalSummary, 'sli_value'); @@ -87,10 +93,12 @@ export function SloCardItem({ slo, rules, activeAlerts, historicalSummary, refet setDeleteConfirmationModalOpen(false); }; - const { mutateAsync: resetSlo, isLoading: isResetLoading } = useResetSlo(); + const { mutate: resetSlo, isLoading: isResetLoading } = useResetSlo(); + const { mutate: enableSlo, isLoading: isEnableLoading } = useEnableSlo(); + const { mutate: disableSlo, isLoading: isDisableLoading } = useDisableSlo(); - const handleResetConfirm = async () => { - await resetSlo({ id: slo.id, name: slo.name }); + const handleResetConfirm = () => { + resetSlo({ id: slo.id, name: slo.name }); setResetConfirmationModalOpen(false); }; @@ -98,6 +106,22 @@ export function SloCardItem({ slo, rules, activeAlerts, historicalSummary, refet setResetConfirmationModalOpen(false); }; + const handleEnableCancel = () => { + setEnableConfirmationModalOpen(false); + }; + const handleEnableConfirm = () => { + enableSlo({ id: slo.id, name: slo.name }); + setEnableConfirmationModalOpen(false); + }; + + const handleDisableCancel = () => { + setDisableConfirmationModalOpen(false); + }; + const handleDisableConfirm = () => { + disableSlo({ id: slo.id, name: slo.name }); + setDisableConfirmationModalOpen(false); + }; + return ( <> } /> @@ -159,6 +182,8 @@ export function SloCardItem({ slo, rules, activeAlerts, historicalSummary, refet setIsEditRuleFlyoutOpen={setIsEditRuleFlyoutOpen} setDashboardAttachmentReady={setDashboardAttachmentReady} setResetConfirmationModalOpen={setResetConfirmationModalOpen} + setEnableConfirmationModalOpen={setEnableConfirmationModalOpen} + setDisableConfirmationModalOpen={setDisableConfirmationModalOpen} />
@@ -189,6 +214,24 @@ export function SloCardItem({ slo, rules, activeAlerts, historicalSummary, refet /> ) : null} + {isEnableConfirmationModalOpen ? ( + + ) : null} + + {isDisableConfirmationModalOpen ? ( + + ) : null} + {isDashboardAttachmentReady ? ( void; setDeleteConfirmationModalOpen: (value: boolean) => void; setResetConfirmationModalOpen: (value: boolean) => void; + setEnableConfirmationModalOpen: (value: boolean) => void; + setDisableConfirmationModalOpen: (value: boolean) => void; setIsAddRuleFlyoutOpen: (value: boolean) => void; setIsEditRuleFlyoutOpen: (value: boolean) => void; setDashboardAttachmentReady: (value: boolean) => void; diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slo_card_item_badges.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slo_card_item_badges.tsx index 7f1888e182f38..1d2311618f2cc 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slo_card_item_badges.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slo_card_item_badges.tsx @@ -6,23 +6,21 @@ */ import { EuiFlexGroup } from '@elastic/eui'; +import { css } from '@emotion/react'; import { SLOWithSummaryResponse } from '@kbn/slo-schema'; import { Rule } from '@kbn/triggers-actions-ui-plugin/public'; import React, { useCallback } from 'react'; -import { css } from '@emotion/react'; -import { SloIndicatorTypeBadge } from '../badges/slo_indicator_type_badge'; -import { SloActiveAlertsBadge } from '../../../../components/slo/slo_status_badge/slo_active_alerts_badge'; +import { SloStateBadge } from '../../../../components/slo/slo_badges'; +import { SloActiveAlertsBadge } from '../../../../components/slo/slo_badges/slo_active_alerts_badge'; import { BurnRateRuleParams } from '../../../../typings'; import { useUrlSearchState } from '../../hooks/use_url_search_state'; import { LoadingBadges } from '../badges/slo_badges'; import { SloRemoteBadge } from '../badges/slo_remote_badge'; import { SloRulesBadge } from '../badges/slo_rules_badge'; -import { SloTimeWindowBadge } from '../badges/slo_time_window_badge'; import { SloTagsList } from '../common/slo_tags_list'; import { SLOCardItemInstanceBadge } from './slo_card_item_instance_badge'; interface Props { - hasGroupBy: boolean; activeAlerts?: number; slo: SLOWithSummaryResponse; rules: Array> | undefined; @@ -62,11 +60,10 @@ export function SloCardItemBadges({ slo, activeAlerts, rules, handleCreateRule } ) : ( <> + - - { setIsPopoverOpen(!isPopoverOpen); }} + onMouseDown={(e: MouseEvent) => { + e.stopPropagation(); // stops propagation of metric onElementClick + }} onClickAriaLabel={i18n.translate('xpack.slo.instances.seeAllBadge', { defaultMessage: 'see all instance ids', })} @@ -46,7 +49,9 @@ export function SLOCardItemInstanceBadge({ slo }: Props) { } > - +
) => e.stopPropagation()}> + +
); diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slos_card_view.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slo_list_card_view.tsx similarity index 100% rename from x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slos_card_view.tsx rename to x-pack/solutions/observability/plugins/slo/public/pages/slos/components/card_view/slo_list_card_view.tsx diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/compact_view/slo_list_compact_view.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/compact_view/slo_list_compact_view.tsx index 03fbb0174f303..5e4584105c1a3 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/compact_view/slo_list_compact_view.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/compact_view/slo_list_compact_view.tsx @@ -24,23 +24,29 @@ import React, { useState } from 'react'; import { NOT_AVAILABLE_LABEL } from '../../../../../common/i18n'; import { paths } from '../../../../../common/locators/paths'; import { SloDeleteModal } from '../../../../components/slo/delete_confirmation_modal/slo_delete_confirmation_modal'; +import { SloDisableConfirmationModal } from '../../../../components/slo/disable_confirmation_modal/slo_disable_confirmation_modal'; +import { SloEnableConfirmationModal } from '../../../../components/slo/enable_confirmation_modal/slo_enable_confirmation_modal'; import { SloResetConfirmationModal } from '../../../../components/slo/reset_confirmation_modal/slo_reset_confirmation_modal'; -import { SloStatusBadge } from '../../../../components/slo/slo_status_badge'; -import { SloActiveAlertsBadge } from '../../../../components/slo/slo_status_badge/slo_active_alerts_badge'; +import { SloStateBadge, SloStatusBadge } from '../../../../components/slo/slo_badges'; +import { SloActiveAlertsBadge } from '../../../../components/slo/slo_badges/slo_active_alerts_badge'; import { sloKeys } from '../../../../hooks/query_key_factory'; import { useCloneSlo } from '../../../../hooks/use_clone_slo'; +import { useDisableSlo } from '../../../../hooks/use_disable_slo'; +import { useEnableSlo } from '../../../../hooks/use_enable_slo'; import { useFetchActiveAlerts } from '../../../../hooks/use_fetch_active_alerts'; import { useFetchHistoricalSummary } from '../../../../hooks/use_fetch_historical_summary'; import { useFetchRulesForSlo } from '../../../../hooks/use_fetch_rules_for_slo'; import { useGetFilteredRuleTypes } from '../../../../hooks/use_get_filtered_rule_types'; +import { useKibana } from '../../../../hooks/use_kibana'; import { usePermissions } from '../../../../hooks/use_permissions'; import { useResetSlo } from '../../../../hooks/use_reset_slo'; import { useSpace } from '../../../../hooks/use_space'; -import { useKibana } from '../../../../hooks/use_kibana'; import { formatHistoricalData } from '../../../../utils/slo/chart_data_formatter'; import { createRemoteSloDeleteUrl, + createRemoteSloDisableUrl, createRemoteSloEditUrl, + createRemoteSloEnableUrl, createRemoteSloResetUrl, } from '../../../../utils/slo/remote_slo_urls'; import { SloRemoteBadge } from '../badges/slo_remote_badge'; @@ -78,11 +84,15 @@ export function SloListCompactView({ sloList, loading, error }: Props) { const filteredRuleTypes = useGetFilteredRuleTypes(); const queryClient = useQueryClient(); - const { mutateAsync: resetSlo, isLoading: isResetLoading } = useResetSlo(); + const { mutate: resetSlo, isLoading: isResetLoading } = useResetSlo(); + const { mutate: enableSlo, isLoading: isEnableLoading } = useEnableSlo(); + const { mutate: disableSlo, isLoading: isDisableLoading } = useDisableSlo(); const [sloToAddRule, setSloToAddRule] = useState(undefined); const [sloToDelete, setSloToDelete] = useState(undefined); const [sloToReset, setSloToReset] = useState(undefined); + const [sloToEnable, setSloToEnable] = useState(undefined); + const [sloToDisable, setSloToDisable] = useState(undefined); const handleDeleteConfirm = () => { setSloToDelete(undefined); @@ -92,9 +102,9 @@ export function SloListCompactView({ sloList, loading, error }: Props) { setSloToDelete(undefined); }; - const handleResetConfirm = async () => { + const handleResetConfirm = () => { if (sloToReset) { - await resetSlo({ id: sloToReset.id, name: sloToReset.name }); + resetSlo({ id: sloToReset.id, name: sloToReset.name }); setSloToReset(undefined); } }; @@ -103,6 +113,28 @@ export function SloListCompactView({ sloList, loading, error }: Props) { setSloToReset(undefined); }; + const handleEnableConfirm = async () => { + if (sloToEnable) { + enableSlo({ id: sloToEnable.id, name: sloToEnable.name }); + setSloToEnable(undefined); + } + }; + + const handleEnableCancel = () => { + setSloToEnable(undefined); + }; + + const handleDisableConfirm = async () => { + if (sloToDisable) { + disableSlo({ id: sloToDisable.id, name: sloToDisable.name }); + setSloToDisable(undefined); + } + }; + + const handleDisableCancel = () => { + setSloToDisable(undefined); + }; + const handleSavedRule = async () => { queryClient.invalidateQueries({ queryKey: sloKeys.rules(), exact: false }); }; @@ -217,6 +249,46 @@ export function SloListCompactView({ sloList, loading, error }: Props) { locator?.navigate({ params: { sloId: slo.id } }, { replace: false }); }, }, + { + type: 'icon', + icon: (slo: SLOWithSummaryResponse) => (slo.enabled ? 'stop' : 'play'), + name: (slo: SLOWithSummaryResponse) => + buildActionName( + slo.enabled + ? i18n.translate('xpack.slo.item.actions.disable', { + defaultMessage: 'Disable', + }) + : i18n.translate('xpack.slo.item.actions.enable', { + defaultMessage: 'Enable', + }) + )(slo), + description: (slo: SLOWithSummaryResponse) => + slo.enabled + ? i18n.translate('xpack.slo.item.actions.disable', { + defaultMessage: 'Disable', + }) + : i18n.translate('xpack.slo.item.actions.enable', { + defaultMessage: 'Enable', + }), + 'data-test-subj': 'sloActionsManage', + enabled: (slo: SLOWithSummaryResponse) => + (permissions?.hasAllWriteRequested && !isRemote(slo)) || hasRemoteKibanaUrl(slo), + onClick: (slo: SLOWithSummaryResponse) => { + const isEnabled = slo.enabled; + const remoteUrl = isEnabled + ? createRemoteSloDisableUrl(slo, spaceId) + : createRemoteSloEnableUrl(slo, spaceId); + if (!!remoteUrl) { + window.open(remoteUrl, '_blank'); + } else { + if (isEnabled) { + setSloToDisable(slo); + } else { + setSloToEnable(slo); + } + } + }, + }, { type: 'icon', icon: 'copy', @@ -290,6 +362,7 @@ export function SloListCompactView({ sloList, loading, error }: Props) { render: (_, slo: SLOWithSummaryResponse) => ( + ), @@ -489,6 +562,24 @@ export function SloListCompactView({ sloList, loading, error }: Props) { isLoading={isResetLoading} /> ) : null} + + {sloToEnable ? ( + + ) : null} + + {sloToDisable ? ( + + ) : null} ); } diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slo_item_actions.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slo_item_actions.tsx index 37c48b2bf8881..d5a90e95a6686 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slo_item_actions.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slo_item_actions.tsx @@ -31,6 +31,8 @@ interface Props { setIsActionsPopoverOpen: (value: boolean) => void; setDeleteConfirmationModalOpen: (value: boolean) => void; setResetConfirmationModalOpen: (value: boolean) => void; + setEnableConfirmationModalOpen: (value: boolean) => void; + setDisableConfirmationModalOpen: (value: boolean) => void; setIsAddRuleFlyoutOpen: (value: boolean) => void; setIsEditRuleFlyoutOpen: (value: boolean) => void; setDashboardAttachmentReady?: (value: boolean) => void; @@ -65,6 +67,8 @@ export function SloItemActions({ setIsEditRuleFlyoutOpen, setDeleteConfirmationModalOpen, setResetConfirmationModalOpen, + setEnableConfirmationModalOpen, + setDisableConfirmationModalOpen, setDashboardAttachmentReady, btnProps, }: Props) { @@ -77,13 +81,20 @@ export function SloItemActions({ const { data: permissions } = usePermissions(); const navigateToClone = useCloneSlo(); - const { handleNavigateToRules, sloEditUrl, remoteDeleteUrl, remoteResetUrl, sloDetailsUrl } = - useSloActions({ - slo, - rules, - setIsEditRuleFlyoutOpen, - setIsActionsPopoverOpen, - }); + const { + handleNavigateToRules, + sloEditUrl, + remoteDeleteUrl, + remoteResetUrl, + remoteEnableUrl, + remoteDisableUrl, + sloDetailsUrl, + } = useSloActions({ + slo, + rules, + setIsEditRuleFlyoutOpen, + setIsActionsPopoverOpen, + }); const handleClickActions = () => { setIsActionsPopoverOpen(!isActionsPopoverOpen); @@ -115,6 +126,24 @@ export function SloItemActions({ } }; + const handleEnable = () => { + if (!!remoteEnableUrl) { + window.open(remoteEnableUrl, '_blank'); + } else { + setEnableConfirmationModalOpen(true); + setIsActionsPopoverOpen(false); + } + }; + + const handleDisable = () => { + if (!!remoteDisableUrl) { + window.open(remoteDisableUrl, '_blank'); + } else { + setDisableConfirmationModalOpen(true); + setIsActionsPopoverOpen(false); + } + }; + const handleCreateRule = () => { setIsActionsPopoverOpen(false); setIsAddRuleFlyoutOpen(true); @@ -221,6 +250,35 @@ export function SloItemActions({ })} {showRemoteLinkIcon} , + slo.enabled ? ( + + {i18n.translate('xpack.slo.item.actions.disable', { defaultMessage: 'Disable' })} + {showRemoteLinkIcon} + + ) : ( + + {i18n.translate('xpack.slo.item.actions.enable', { defaultMessage: 'Enable' })} + {showRemoteLinkIcon} + + ), { - await resetSlo({ id: slo.id, name: slo.name }); + const handleResetConfirm = () => { + resetSlo({ id: slo.id, name: slo.name }); setResetConfirmationModalOpen(false); }; @@ -67,6 +76,22 @@ export function SloListItem({ setResetConfirmationModalOpen(false); }; + const handleEnableCancel = () => { + setEnableConfirmationModalOpen(false); + }; + const handleEnableConfirm = () => { + enableSlo({ id: slo.id, name: slo.name }); + setEnableConfirmationModalOpen(false); + }; + + const handleDisableCancel = () => { + setDisableConfirmationModalOpen(false); + }; + const handleDisableConfirm = () => { + disableSlo({ id: slo.id, name: slo.name }); + setDisableConfirmationModalOpen(false); + }; + return ( @@ -116,6 +141,8 @@ export function SloListItem({ setIsActionsPopoverOpen={setIsActionsPopoverOpen} setDeleteConfirmationModalOpen={setDeleteConfirmationModalOpen} setResetConfirmationModalOpen={setResetConfirmationModalOpen} + setEnableConfirmationModalOpen={setEnableConfirmationModalOpen} + setDisableConfirmationModalOpen={setDisableConfirmationModalOpen} /> @@ -144,6 +171,24 @@ export function SloListItem({ isLoading={isResetLoading} /> ) : null} + + {isEnableConfirmationModalOpen ? ( + + ) : null} + + {isDisableConfirmationModalOpen ? ( + + ) : null} ); } diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_view.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_view.tsx index 02b624577ab9b..ae8ec83e33fa3 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_view.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_view.tsx @@ -8,7 +8,7 @@ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { SLOWithSummaryResponse } from '@kbn/slo-schema'; import React from 'react'; -import { SloListCardView } from './card_view/slos_card_view'; +import { SloListCardView } from './card_view/slo_list_card_view'; import { SloListCompactView } from './compact_view/slo_list_compact_view'; import { HealthCallout } from './health_callout/health_callout'; import { SloListEmpty } from './slo_list_empty'; diff --git a/x-pack/solutions/observability/plugins/slo/public/utils/slo/remote_slo_urls.test.ts b/x-pack/solutions/observability/plugins/slo/public/utils/slo/remote_slo_urls.test.ts index 6f44d13150819..1c58d5ebcec23 100644 --- a/x-pack/solutions/observability/plugins/slo/public/utils/slo/remote_slo_urls.test.ts +++ b/x-pack/solutions/observability/plugins/slo/public/utils/slo/remote_slo_urls.test.ts @@ -10,7 +10,9 @@ import { createRemoteSloCloneUrl, createRemoteSloDeleteUrl, createRemoteSloDetailsUrl, + createRemoteSloDisableUrl, createRemoteSloEditUrl, + createRemoteSloEnableUrl, } from './remote_slo_urls'; describe('remote SLO URLs Utils', () => { @@ -19,6 +21,8 @@ describe('remote SLO URLs Utils', () => { expect(createRemoteSloDetailsUrl(localSlo)).toMatchInlineSnapshot(`undefined`); expect(createRemoteSloDeleteUrl(localSlo)).toMatchInlineSnapshot(`undefined`); + expect(createRemoteSloEnableUrl(localSlo)).toMatchInlineSnapshot(`undefined`); + expect(createRemoteSloDisableUrl(localSlo)).toMatchInlineSnapshot(`undefined`); expect(createRemoteSloEditUrl(localSlo)).toMatchInlineSnapshot(`undefined`); expect(createRemoteSloCloneUrl(localSlo)).toMatchInlineSnapshot(`undefined`); }); @@ -31,6 +35,8 @@ describe('remote SLO URLs Utils', () => { expect(createRemoteSloDetailsUrl(remoteSloWithoutKibanaUrl)).toMatchInlineSnapshot(`undefined`); expect(createRemoteSloDeleteUrl(remoteSloWithoutKibanaUrl)).toMatchInlineSnapshot(`undefined`); + expect(createRemoteSloEnableUrl(remoteSloWithoutKibanaUrl)).toMatchInlineSnapshot(`undefined`); + expect(createRemoteSloDisableUrl(remoteSloWithoutKibanaUrl)).toMatchInlineSnapshot(`undefined`); expect(createRemoteSloEditUrl(remoteSloWithoutKibanaUrl)).toMatchInlineSnapshot(`undefined`); expect(createRemoteSloCloneUrl(remoteSloWithoutKibanaUrl)).toMatchInlineSnapshot(`undefined`); }); @@ -47,6 +53,12 @@ describe('remote SLO URLs Utils', () => { expect(createRemoteSloDeleteUrl(remoteSlo)).toMatchInlineSnapshot( `"https://cloud.elast.co/app/slos/fixed-id?delete=true"` ); + expect(createRemoteSloEnableUrl(remoteSlo)).toMatchInlineSnapshot( + `"https://cloud.elast.co/app/slos/fixed-id?enable=true"` + ); + expect(createRemoteSloDisableUrl(remoteSlo)).toMatchInlineSnapshot( + `"https://cloud.elast.co/app/slos/fixed-id?disable=true"` + ); expect(createRemoteSloEditUrl(remoteSlo)).toMatchInlineSnapshot( `"https://cloud.elast.co/app/slos/edit/fixed-id"` ); @@ -67,6 +79,12 @@ describe('remote SLO URLs Utils', () => { expect(createRemoteSloDeleteUrl(remoteSlo, 'my-custom-space')).toMatchInlineSnapshot( `"https://cloud.elast.co/s/my-custom-space/app/slos/fixed-id?delete=true"` ); + expect(createRemoteSloEnableUrl(remoteSlo, 'my-custom-space')).toMatchInlineSnapshot( + `"https://cloud.elast.co/s/my-custom-space/app/slos/fixed-id?enable=true"` + ); + expect(createRemoteSloDisableUrl(remoteSlo, 'my-custom-space')).toMatchInlineSnapshot( + `"https://cloud.elast.co/s/my-custom-space/app/slos/fixed-id?disable=true"` + ); expect(createRemoteSloEditUrl(remoteSlo, 'my-custom-space')).toMatchInlineSnapshot( `"https://cloud.elast.co/s/my-custom-space/app/slos/edit/fixed-id"` ); diff --git a/x-pack/solutions/observability/plugins/slo/public/utils/slo/remote_slo_urls.ts b/x-pack/solutions/observability/plugins/slo/public/utils/slo/remote_slo_urls.ts index 737a97fcfe73b..f5d964173431a 100644 --- a/x-pack/solutions/observability/plugins/slo/public/utils/slo/remote_slo_urls.ts +++ b/x-pack/solutions/observability/plugins/slo/public/utils/slo/remote_slo_urls.ts @@ -10,10 +10,10 @@ import { ALL_VALUE, SLOWithSummaryResponse } from '@kbn/slo-schema'; import path from 'path'; import { paths } from '../../../common/locators/paths'; -export function createRemoteSloDetailsUrl( +function createBaseRemoteSloDetailsUrl( slo: SLOWithSummaryResponse, spaceId: string = 'default' -) { +): URL | undefined { if (!slo.remote || slo.remote.kibanaUrl === '') { return undefined; } @@ -25,40 +25,56 @@ export function createRemoteSloDetailsUrl( ); const remoteUrl = new URL(path.join(spacePath, detailsPath), slo.remote.kibanaUrl); - return remoteUrl.toString(); + return remoteUrl; +} + +export function createRemoteSloDetailsUrl( + slo: SLOWithSummaryResponse, + spaceId: string = 'default' +) { + return createBaseRemoteSloDetailsUrl(slo, spaceId)?.toString(); } export function createRemoteSloDeleteUrl(slo: SLOWithSummaryResponse, spaceId: string = 'default') { - if (!slo.remote || slo.remote.kibanaUrl === '') { + const remoteUrl = createBaseRemoteSloDetailsUrl(slo, spaceId); + if (!remoteUrl) { return undefined; } - const spacePath = spaceId !== 'default' ? `/s/${spaceId}` : ''; - const detailsPath = paths.sloDetails( - slo.id, - ![slo.groupBy].flat().includes(ALL_VALUE) && slo.instanceId ? slo.instanceId : undefined - ); - - const remoteUrl = new URL(path.join(spacePath, detailsPath), slo.remote.kibanaUrl); remoteUrl.searchParams.append('delete', 'true'); - return remoteUrl.toString(); } export function createRemoteSloResetUrl(slo: SLOWithSummaryResponse, spaceId: string = 'default') { - if (!slo.remote || slo.remote.kibanaUrl === '') { + const remoteUrl = createBaseRemoteSloDetailsUrl(slo, spaceId); + if (!remoteUrl) { return undefined; } - const spacePath = spaceId !== 'default' ? `/s/${spaceId}` : ''; - const detailsPath = paths.sloDetails( - slo.id, - ![slo.groupBy].flat().includes(ALL_VALUE) && slo.instanceId ? slo.instanceId : undefined - ); - - const remoteUrl = new URL(path.join(spacePath, detailsPath), slo.remote.kibanaUrl); remoteUrl.searchParams.append('reset', 'true'); + return remoteUrl.toString(); +} + +export function createRemoteSloEnableUrl(slo: SLOWithSummaryResponse, spaceId: string = 'default') { + const remoteUrl = createBaseRemoteSloDetailsUrl(slo, spaceId); + if (!remoteUrl) { + return undefined; + } + + remoteUrl.searchParams.append('enable', 'true'); + return remoteUrl.toString(); +} + +export function createRemoteSloDisableUrl( + slo: SLOWithSummaryResponse, + spaceId: string = 'default' +) { + const remoteUrl = createBaseRemoteSloDetailsUrl(slo, spaceId); + if (!remoteUrl) { + return undefined; + } + remoteUrl.searchParams.append('disable', 'true'); return remoteUrl.toString(); } diff --git a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/executor.test.ts b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/executor.test.ts index e5c07b797677b..7f2bb895e170e 100644 --- a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/executor.test.ts +++ b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/executor.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SanitizedRuleConfig } from '@kbn/alerting-plugin/common'; +import { Rule, SanitizedRuleConfig } from '@kbn/alerting-plugin/common'; import { DEFAULT_FLAPPING_SETTINGS } from '@kbn/alerting-plugin/common/rules_settings'; import { RuleExecutorServices } from '@kbn/alerting-plugin/server'; import { publicAlertsClientMock } from '@kbn/alerting-plugin/server/alerts_client/alerts_client.mock'; @@ -25,7 +25,13 @@ import { import { ISearchStartSearchSource } from '@kbn/data-plugin/public'; import { dataViewPluginMocks } from '@kbn/data-views-plugin/public/mocks'; import { MockedLogger } from '@kbn/logging-mocks'; -import { Rule } from '@kbn/alerting-plugin/common'; +import { + ALERT_EVALUATION_THRESHOLD, + ALERT_EVALUATION_VALUE, + ALERT_GROUP, + ALERT_REASON, + SLO_BURN_RATE_RULE_TYPE_ID, +} from '@kbn/rule-registry-plugin/common/technical_rule_data_field_names'; import { SharePluginStart } from '@kbn/share-plugin/server'; import { sloDefinitionSchema } from '@kbn/slo-schema'; import { get } from 'lodash'; @@ -41,25 +47,18 @@ import { SLO_INSTANCE_ID_FIELD, SLO_REVISION_FIELD, } from '../../../../common/field_names/slo'; -import { - ALERT_EVALUATION_THRESHOLD, - ALERT_EVALUATION_VALUE, - ALERT_GROUP, - ALERT_REASON, - SLO_BURN_RATE_RULE_TYPE_ID, -} from '@kbn/rule-registry-plugin/common/technical_rule_data_field_names'; import { SLODefinition, StoredSLODefinition } from '../../../domain/models'; import { SLONotFound } from '../../../errors'; import { SO_SLO_TYPE } from '../../../saved_objects'; import { createSLO } from '../../../services/fixtures/slo'; import { BurnRateAlert, getRuleExecutor } from './executor'; import { + LONG_WINDOW, + SHORT_WINDOW, generateAboveThresholdKey, generateBurnRateKey, generateStatsKey, generateWindowId, - LONG_WINDOW, - SHORT_WINDOW, } from './lib/build_query'; import { EvaluationBucket } from './lib/evaluate'; import { @@ -188,7 +187,7 @@ describe('BurnRateRuleExecutor', () => { describe('multi-window', () => { it('throws when the slo is not found', async () => { soClientMock.find.mockRejectedValue(new SLONotFound('SLO [non-existent] not found')); - const executor = getRuleExecutor({ basePath: basePathMock }); + const executor = getRuleExecutor(basePathMock); await expect( executor({ @@ -212,7 +211,7 @@ describe('BurnRateRuleExecutor', () => { it('returns early when the slo is disabled', async () => { const slo = createSLO({ objective: { target: 0.9 }, enabled: false }); soClientMock.find.mockResolvedValueOnce(createFindResponse([slo])); - const executor = getRuleExecutor({ basePath: basePathMock }); + const executor = getRuleExecutor(basePathMock); const result = await executor({ params: someRuleParamsWithWindows({ sloId: slo.id }), @@ -264,7 +263,7 @@ describe('BurnRateRuleExecutor', () => { generateEsResponse(ruleParams, [], { instanceId: 'bar' }) ); - const executor = getRuleExecutor({ basePath: basePathMock }); + const executor = getRuleExecutor(basePathMock); await executor({ params: ruleParams, startedAt: new Date(), @@ -312,7 +311,7 @@ describe('BurnRateRuleExecutor', () => { generateEsResponse(ruleParams, [], { instanceId: 'bar' }) ); - const executor = getRuleExecutor({ basePath: basePathMock }); + const executor = getRuleExecutor(basePathMock); await executor({ params: ruleParams, startedAt: new Date(), @@ -369,9 +368,7 @@ describe('BurnRateRuleExecutor', () => { start: new Date().toISOString(), })); - const executor = getRuleExecutor({ - basePath: basePathMock, - }); + const executor = getRuleExecutor(basePathMock); await executor({ params: ruleParams, @@ -519,9 +516,7 @@ describe('BurnRateRuleExecutor', () => { start: new Date().toISOString(), })); - const executor = getRuleExecutor({ - basePath: basePathMock, - }); + const executor = getRuleExecutor(basePathMock); await executor({ params: ruleParams, @@ -643,7 +638,7 @@ describe('BurnRateRuleExecutor', () => { start: new Date().toISOString(), })); - const executor = getRuleExecutor({ basePath: basePathMock }); + const executor = getRuleExecutor(basePathMock); await executor({ params: ruleParams, startedAt: new Date(), diff --git a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/executor.ts b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/executor.ts index 7671ed7ebbaa3..948e2d7e8dcf6 100644 --- a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/executor.ts +++ b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/executor.ts @@ -5,25 +5,29 @@ * 2.0. */ -import { i18n } from '@kbn/i18n'; import numeral from '@elastic/numeral'; +import { AlertsClientError, ExecutorType, RuleExecutorOptions } from '@kbn/alerting-plugin/server'; +import { ObservabilitySloAlert } from '@kbn/alerts-as-data-utils'; +import { IBasePath } from '@kbn/core/server'; +import { i18n } from '@kbn/i18n'; import { getEcsGroups } from '@kbn/observability-alerting-rule-utils'; +import { getAlertDetailsUrl } from '@kbn/observability-plugin/common'; import { ALERT_EVALUATION_THRESHOLD, ALERT_EVALUATION_VALUE, ALERT_GROUP, ALERT_REASON, } from '@kbn/rule-data-utils'; -import { AlertsClientError, RuleExecutorOptions } from '@kbn/alerting-plugin/server'; -import { IBasePath } from '@kbn/core/server'; -import { LocatorPublic } from '@kbn/share-plugin/common'; - -import { upperCase } from 'lodash'; -import { addSpaceIdToPath } from '@kbn/spaces-plugin/server'; import { ALL_VALUE } from '@kbn/slo-schema'; -import { AlertsLocatorParams, getAlertDetailsUrl } from '@kbn/observability-plugin/common'; -import { ObservabilitySloAlert } from '@kbn/alerts-as-data-utils'; -import { ExecutorType } from '@kbn/alerting-plugin/server'; +import { addSpaceIdToPath } from '@kbn/spaces-plugin/server'; +import { upperCase } from 'lodash'; +import { + ALERT_ACTION, + HIGH_PRIORITY_ACTION, + LOW_PRIORITY_ACTION, + MEDIUM_PRIORITY_ACTION, + SUPPRESSED_PRIORITY_ACTION, +} from '../../../../common/constants'; import { SLO_ID_FIELD, SLO_INSTANCE_ID_FIELD, @@ -31,6 +35,10 @@ import { } from '../../../../common/field_names/slo'; import { Duration } from '../../../domain/models'; import { KibanaSavedObjectsSLORepository } from '../../../services'; +import { evaluate } from './lib/evaluate'; +import { evaluateDependencies } from './lib/evaluate_dependencies'; +import { shouldSuppressInstanceId } from './lib/should_suppress_instance_id'; +import { getSloSummary } from './lib/summary_repository'; import { AlertStates, BurnRateAlertContext, @@ -41,29 +49,12 @@ import { Group, WindowSchema, } from './types'; -import { - ALERT_ACTION, - HIGH_PRIORITY_ACTION, - MEDIUM_PRIORITY_ACTION, - LOW_PRIORITY_ACTION, - SUPPRESSED_PRIORITY_ACTION, -} from '../../../../common/constants'; -import { evaluate } from './lib/evaluate'; -import { evaluateDependencies } from './lib/evaluate_dependencies'; -import { shouldSuppressInstanceId } from './lib/should_suppress_instance_id'; -import { getSloSummary } from './lib/summary_repository'; export type BurnRateAlert = Omit & { [ALERT_GROUP]?: Group[]; }; -export const getRuleExecutor = ({ - basePath, - alertsLocator, -}: { - basePath: IBasePath; - alertsLocator?: LocatorPublic; -}) => +export const getRuleExecutor = (basePath: IBasePath) => async function executor( options: RuleExecutorOptions< BurnRateRuleParams, diff --git a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/__snapshots__/build_query.test.ts.snap b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/__snapshots__/build_query.test.ts.snap index 77597b4fea26a..245078ccd627a 100644 --- a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/__snapshots__/build_query.test.ts.snap +++ b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/__snapshots__/build_query.test.ts.snap @@ -506,8 +506,9 @@ Object { "script": Object { "params": Object { "target": 0.98, + "totalSlices": 30, }, - "source": "params.total != null && params.total > 0 ? (1 - (params.good / params.total)) / (1 - params.target) : 0", + "source": "params.total != null && params.total > 0 && params.totalSlices > 0 ? ((params.total - params.good) / params.totalSlices) / (1 - params.target) : 0", }, }, }, @@ -555,8 +556,9 @@ Object { "script": Object { "params": Object { "target": 0.98, + "totalSlices": 3, }, - "source": "params.total != null && params.total > 0 ? (1 - (params.good / params.total)) / (1 - params.target) : 0", + "source": "params.total != null && params.total > 0 && params.totalSlices > 0 ? ((params.total - params.good) / params.totalSlices) / (1 - params.target) : 0", }, }, }, @@ -604,8 +606,9 @@ Object { "script": Object { "params": Object { "target": 0.98, + "totalSlices": 180, }, - "source": "params.total != null && params.total > 0 ? (1 - (params.good / params.total)) / (1 - params.target) : 0", + "source": "params.total != null && params.total > 0 && params.totalSlices > 0 ? ((params.total - params.good) / params.totalSlices) / (1 - params.target) : 0", }, }, }, @@ -653,8 +656,9 @@ Object { "script": Object { "params": Object { "target": 0.98, + "totalSlices": 15, }, - "source": "params.total != null && params.total > 0 ? (1 - (params.good / params.total)) / (1 - params.target) : 0", + "source": "params.total != null && params.total > 0 && params.totalSlices > 0 ? ((params.total - params.good) / params.totalSlices) / (1 - params.target) : 0", }, }, }, @@ -702,8 +706,9 @@ Object { "script": Object { "params": Object { "target": 0.98, + "totalSlices": 720, }, - "source": "params.total != null && params.total > 0 ? (1 - (params.good / params.total)) / (1 - params.target) : 0", + "source": "params.total != null && params.total > 0 && params.totalSlices > 0 ? ((params.total - params.good) / params.totalSlices) / (1 - params.target) : 0", }, }, }, @@ -751,8 +756,9 @@ Object { "script": Object { "params": Object { "target": 0.98, + "totalSlices": 60, }, - "source": "params.total != null && params.total > 0 ? (1 - (params.good / params.total)) / (1 - params.target) : 0", + "source": "params.total != null && params.total > 0 && params.totalSlices > 0 ? ((params.total - params.good) / params.totalSlices) / (1 - params.target) : 0", }, }, }, @@ -800,8 +806,9 @@ Object { "script": Object { "params": Object { "target": 0.98, + "totalSlices": 2160, }, - "source": "params.total != null && params.total > 0 ? (1 - (params.good / params.total)) / (1 - params.target) : 0", + "source": "params.total != null && params.total > 0 && params.totalSlices > 0 ? ((params.total - params.good) / params.totalSlices) / (1 - params.target) : 0", }, }, }, @@ -849,8 +856,9 @@ Object { "script": Object { "params": Object { "target": 0.98, + "totalSlices": 180, }, - "source": "params.total != null && params.total > 0 ? (1 - (params.good / params.total)) / (1 - params.target) : 0", + "source": "params.total != null && params.total > 0 && params.totalSlices > 0 ? ((params.total - params.good) / params.totalSlices) / (1 - params.target) : 0", }, }, }, diff --git a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/build_query.test.ts b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/build_query.test.ts index 86f7ab4994dba..da7ee5f82175d 100644 --- a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/build_query.test.ts +++ b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/build_query.test.ts @@ -24,6 +24,7 @@ describe('buildQuery()', () => { const rule = createBurnRateRule(slo); expect(buildQuery(STARTED_AT, slo, rule)).toMatchSnapshot(); }); + it('should return a valid query with afterKey', () => { const slo = createSLO({ id: 'test-slo', @@ -32,6 +33,7 @@ describe('buildQuery()', () => { const rule = createBurnRateRule(slo); expect(buildQuery(STARTED_AT, slo, rule, { instanceId: 'example' })).toMatchSnapshot(); }); + it('should return a valid query for timeslices', () => { const slo = createSLOWithTimeslicesBudgetingMethod({ id: 'test-slo', diff --git a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/build_query.ts b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/build_query.ts index 642067c00724d..071dfb046b157 100644 --- a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/build_query.ts +++ b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/build_query.ts @@ -7,9 +7,10 @@ import { timeslicesBudgetingMethodSchema } from '@kbn/slo-schema'; import { Duration, SLODefinition, toDurationUnit } from '../../../../domain/models'; -import { BurnRateRuleParams, WindowSchema } from '../types'; import { getDelayInSecondsFromSLO } from '../../../../domain/services/get_delay_in_seconds_from_slo'; import { getLookbackDateRange } from '../../../../domain/services/get_lookback_date_range'; +import { getSlicesFromDateRange } from '../../../../services/utils/get_slices_from_date_range'; +import { BurnRateRuleParams, WindowSchema } from '../types'; type BurnRateWindowWithDuration = WindowSchema & { longDuration: Duration; @@ -47,6 +48,7 @@ const TIMESLICE_AGGS = { good: { sum: { field: 'slo.isGoodSlice' } }, total: { value_count: { field: 'slo.isGoodSlice' } }, }; + const OCCURRENCE_AGGS = { good: { sum: { field: 'slo.numerator' } }, total: { sum: { field: 'slo.denominator' } }, @@ -59,12 +61,45 @@ function buildWindowAgg( slo: SLODefinition, dateRange: { from: Date; to: Date } ) { - const aggs = timeslicesBudgetingMethodSchema.is(slo.budgetingMethod) - ? TIMESLICE_AGGS - : OCCURRENCE_AGGS; + const isTimesliceBudgetingMethod = timeslicesBudgetingMethodSchema.is(slo.budgetingMethod); + + const aggs = isTimesliceBudgetingMethod ? TIMESLICE_AGGS : OCCURRENCE_AGGS; + + // For timeslice budgeting method, we always compute the burn rate based on the observed bad slices, e.g. total observed - good observed = bad slices observed, + // And we compare this to the expected slices in the whole window duration + const burnRateAgg = isTimesliceBudgetingMethod + ? { + bucket_script: { + buckets_path: { + good: `${generateStatsKey(id, type)}>good`, + total: `${generateStatsKey(id, type)}>total`, + }, + script: { + source: + 'params.total != null && params.total > 0 && params.totalSlices > 0 ? ((params.total - params.good) / params.totalSlices) / (1 - params.target) : 0', + params: { + target: slo.objective.target, + totalSlices: getSlicesFromDateRange(dateRange, slo.objective.timesliceWindow!), + }, + }, + }, + } + : { + bucket_script: { + buckets_path: { + good: `${generateStatsKey(id, type)}>good`, + total: `${generateStatsKey(id, type)}>total`, + }, + script: { + source: + 'params.total != null && params.total > 0 ? (1 - (params.good / params.total)) / (1 - params.target) : 0', + params: { target: slo.objective.target }, + }, + }, + }; return { - [`${id}_${type}`]: { + [generateStatsKey(id, type)]: { filter: { range: { '@timestamp': { @@ -75,19 +110,7 @@ function buildWindowAgg( }, aggs, }, - [generateBurnRateKey(id, type)]: { - bucket_script: { - buckets_path: { - good: `${id}_${type}>good`, - total: `${id}_${type}>total`, - }, - script: { - source: - 'params.total != null && params.total > 0 ? (1 - (params.good / params.total)) / (1 - params.target) : 0', - params: { target: slo.objective.target }, - }, - }, - }, + [generateBurnRateKey(id, type)]: burnRateAgg, [generateAboveThresholdKey(id, type)]: { bucket_script: { buckets_path: { burnRate: generateBurnRateKey(id, type) }, @@ -134,14 +157,15 @@ function buildEvaluation(burnRateWindows: BurnRateWindowWithDuration[]) { }; }, {}); - const source = burnRateWindows.reduce((acc, _windDef, index) => { - const windowId = `${WINDOW}_${index}`; - const OP = acc ? ' || ' : ''; - return `${acc}${OP}(params.${generateAboveThresholdKey( - windowId, - SHORT_WINDOW - )} == 1 && params.${generateAboveThresholdKey(windowId, LONG_WINDOW)} == 1)`; - }, ''); + const source = burnRateWindows + .map((_windDef, index) => { + const windowId = `${WINDOW}_${index}`; + return `(params.${generateAboveThresholdKey( + windowId, + SHORT_WINDOW + )} == 1 && params.${generateAboveThresholdKey(windowId, LONG_WINDOW)} == 1)`; + }) + .join(' || '); return { evaluation: { diff --git a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/evaluate.ts b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/evaluate.ts index fc1cca1707430..aa0979d34ba3b 100644 --- a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/evaluate.ts +++ b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/evaluate.ts @@ -75,12 +75,14 @@ async function queryAllResults( index: SLO_DESTINATION_INDEX_PATTERN, ...queryAndAggs, }); + if (!results.aggregations) { throw new Error('Elasticsearch query failed to return a valid aggregation'); } if (results.aggregations.instances.buckets.length === 0) { return buckets; } + return queryAllResults( esClient, slo, diff --git a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/summary_repository.ts b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/summary_repository.ts index 19233006e4e18..361b3c1376c6e 100644 --- a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/summary_repository.ts +++ b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/lib/summary_repository.ts @@ -22,12 +22,9 @@ export async function getSloSummary( query: { bool: { filter: [ - { - term: { 'slo.id': slo.id }, - }, - { - term: { 'slo.instanceId': instanceId }, - }, + { term: { 'slo.id': slo.id } }, + { term: { 'slo.revision': slo.revision } }, + { term: { 'slo.instanceId': instanceId } }, ], }, }, diff --git a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/register.ts b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/register.ts index 50e09e42512b7..ce77df9b4fd40 100644 --- a/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/register.ts +++ b/x-pack/solutions/observability/plugins/slo/server/lib/rules/slo_burn_rate/register.ts @@ -85,7 +85,7 @@ export function sloBurnRateRuleType( producer: sloFeatureId, minimumLicenseRequired: 'platinum' as LicenseType, isExportable: true, - executor: getRuleExecutor({ basePath, alertsLocator }), + executor: getRuleExecutor(basePath), doesSetRecoveryContext: true, actionVariables: { context: [ diff --git a/x-pack/solutions/observability/plugins/slo/server/services/burn_rates_client.ts b/x-pack/solutions/observability/plugins/slo/server/services/burn_rates_client.ts index 08b1c460bdf2b..eb7e130e448f3 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/burn_rates_client.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/burn_rates_client.ts @@ -25,7 +25,7 @@ import { computeBurnRate, computeSLI } from '../domain/services'; import { getDelayInSecondsFromSLO } from '../domain/services/get_delay_in_seconds_from_slo'; import { getLookbackDateRange } from '../domain/services/get_lookback_date_range'; import { InternalQueryError } from '../errors'; -import { computeTotalSlicesFromDateRange } from './utils/compute_total_slices_from_date_range'; +import { getSlicesFromDateRange } from './utils/get_slices_from_date_range'; type WindowName = string; export interface BurnRatesClient { @@ -224,10 +224,8 @@ function handleWindowedResult( from: new Date(bucket.from_as_string!), to: new Date(bucket.to_as_string!), }; - const totalSlices = computeTotalSlicesFromDateRange( - dateRange, - slo.objective.timesliceWindow! - ); + + const totalSlices = getSlicesFromDateRange(dateRange, slo.objective.timesliceWindow!); sliValue = computeSLI(good, total, totalSlices); } else { diff --git a/x-pack/solutions/observability/plugins/slo/server/services/fixtures/duration.ts b/x-pack/solutions/observability/plugins/slo/server/services/fixtures/duration.ts index c4bba6eae797b..a5b4d6cf3c3df 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/fixtures/duration.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/fixtures/duration.ts @@ -46,3 +46,11 @@ export function twoMinute(): Duration { export function fiveMinute(): Duration { return new Duration(5, DurationUnit.Minute); } + +export function sevenMinutes(): Duration { + return new Duration(7, DurationUnit.Minute); +} + +export function twoHoursInMinutes(): Duration { + return new Duration(120, DurationUnit.Minute); +} diff --git a/x-pack/solutions/observability/plugins/slo/server/services/historical_summary_client.ts b/x-pack/solutions/observability/plugins/slo/server/services/historical_summary_client.ts index 3389783a41ef0..d4e3cdcbf6004 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/historical_summary_client.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/historical_summary_client.ts @@ -33,7 +33,7 @@ import { toCalendarAlignedTimeWindowMomentUnit, } from '../domain/models'; import { computeSLI, computeSummaryStatus, toErrorBudget } from '../domain/services'; -import { computeTotalSlicesFromDateRange } from './utils/compute_total_slices_from_date_range'; +import { getSlicesFromDateRange } from './utils/get_slices_from_date_range'; interface DailyAggBucket { key_as_string: string; @@ -194,7 +194,7 @@ function handleResultForCalendarAlignedAndTimeslices( dateRange: { range: DateRange; queryRange: DateRange } ): HistoricalSummary[] { const initialErrorBudget = 1 - objective.target; - const totalSlices = computeTotalSlicesFromDateRange(dateRange.range, objective.timesliceWindow!); + const totalSlices = getSlicesFromDateRange(dateRange.range, objective.timesliceWindow!); return buckets.map((bucket: DailyAggBucket): HistoricalSummary => { const good = bucket.cumulative_good?.value ?? 0; diff --git a/x-pack/solutions/observability/plugins/slo/server/services/summary_client.ts b/x-pack/solutions/observability/plugins/slo/server/services/summary_client.ts index 0b9ee20062d1e..23110db94cdde 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/summary_client.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/summary_client.ts @@ -25,7 +25,7 @@ import { computeSLI, computeSummaryStatus, toErrorBudget } from '../domain/servi import { toDateRange } from '../domain/services/date_range'; import { BurnRatesClient } from './burn_rates_client'; import { getFlattenedGroupings } from './utils'; -import { computeTotalSlicesFromDateRange } from './utils/compute_total_slices_from_date_range'; +import { getSlicesFromDateRange } from './utils/get_slices_from_date_range'; interface Params { slo: SLODefinition; @@ -190,7 +190,7 @@ function computeSliValue( const total = bucket?.total?.value ?? 0; if (timeslicesBudgetingMethodSchema.is(slo.budgetingMethod)) { - const totalSlices = computeTotalSlicesFromDateRange(dateRange, slo.objective.timesliceWindow!); + const totalSlices = getSlicesFromDateRange(dateRange, slo.objective.timesliceWindow!); return computeSLI(good, total, totalSlices); } diff --git a/x-pack/solutions/observability/plugins/slo/server/services/utils/get_slices_from_date_range.test.ts b/x-pack/solutions/observability/plugins/slo/server/services/utils/get_slices_from_date_range.test.ts new file mode 100644 index 0000000000000..422f14561c93f --- /dev/null +++ b/x-pack/solutions/observability/plugins/slo/server/services/utils/get_slices_from_date_range.test.ts @@ -0,0 +1,41 @@ +/* + * 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. + */ + +import { oneMinute, sevenMinutes, twoHoursInMinutes, twoMinute } from '../fixtures/duration'; +import { createSLOWithTimeslicesBudgetingMethod } from '../fixtures/slo'; +import { getSlicesFromDateRange } from './get_slices_from_date_range'; + +describe('utils', () => { + describe('GetSlicesFromDateRange', () => { + it.each([ + ['1min', oneMinute(), 60], + ['2min', twoMinute(), 30], + ['7min', sevenMinutes(), 9], + ['120min', twoHoursInMinutes(), 1], + ])( + 'returns the correct number of slices for %s timeslice window', + (desc, timesliceWindow, expected) => { + const slo = createSLOWithTimeslicesBudgetingMethod({ + objective: { + target: 0.98, + timesliceTarget: 0.9, + timesliceWindow, + }, + }); + + const dateRange = { + from: new Date('2022-01-01T14:46:12.643Z'), + to: new Date('2022-01-01T15:46:12.643Z'), + }; + + const result = getSlicesFromDateRange(dateRange, slo.objective.timesliceWindow!); + + expect(result).toBe(expected); + } + ); + }); +}); diff --git a/x-pack/solutions/observability/plugins/slo/server/services/utils/compute_total_slices_from_date_range.ts b/x-pack/solutions/observability/plugins/slo/server/services/utils/get_slices_from_date_range.ts similarity index 85% rename from x-pack/solutions/observability/plugins/slo/server/services/utils/compute_total_slices_from_date_range.ts rename to x-pack/solutions/observability/plugins/slo/server/services/utils/get_slices_from_date_range.ts index 2b6cddfb52472..883d21035a023 100644 --- a/x-pack/solutions/observability/plugins/slo/server/services/utils/compute_total_slices_from_date_range.ts +++ b/x-pack/solutions/observability/plugins/slo/server/services/utils/get_slices_from_date_range.ts @@ -8,7 +8,7 @@ import moment from 'moment'; import { DateRange, Duration, toMomentUnitOfTime } from '../../domain/models'; -export function computeTotalSlicesFromDateRange(dateRange: DateRange, timesliceWindow: Duration) { +export function getSlicesFromDateRange(dateRange: DateRange, timesliceWindow: Duration) { const dateRangeDurationInUnit = moment(dateRange.to).diff( dateRange.from, toMomentUnitOfTime(timesliceWindow.unit) diff --git a/x-pack/solutions/observability/plugins/streams/common/assets.ts b/x-pack/solutions/observability/plugins/streams/common/assets.ts new file mode 100644 index 0000000000000..9353418f14618 --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams/common/assets.ts @@ -0,0 +1,40 @@ +/* + * 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. + */ + +import { ValuesType } from 'utility-types'; + +export const ASSET_TYPES = { + Dashboard: 'dashboard' as const, + Rule: 'rule' as const, + Slo: 'slo' as const, +}; + +export type AssetType = ValuesType; + +export interface AssetLink { + assetType: TAssetType; + assetId: string; +} + +export type DashboardLink = AssetLink<'dashboard'>; +export type SloLink = AssetLink<'slo'>; +export type RuleLink = AssetLink<'rule'>; + +export interface Asset extends AssetLink { + label: string; + tags: string[]; +} + +export type DashboardAsset = Asset<'dashboard'>; +export type SloAsset = Asset<'slo'>; +export type RuleAsset = Asset<'rule'>; + +export interface AssetTypeToAssetMap { + [ASSET_TYPES.Dashboard]: DashboardAsset; + [ASSET_TYPES.Slo]: SloAsset; + [ASSET_TYPES.Rule]: RuleAsset; +} diff --git a/x-pack/platform/packages/private/ml/kibana_theme/index.ts b/x-pack/solutions/observability/plugins/streams/common/index.ts similarity index 83% rename from x-pack/platform/packages/private/ml/kibana_theme/index.ts rename to x-pack/solutions/observability/plugins/streams/common/index.ts index daa5b6ad8964c..ccb0dcb1bcbb1 100644 --- a/x-pack/platform/packages/private/ml/kibana_theme/index.ts +++ b/x-pack/solutions/observability/plugins/streams/common/index.ts @@ -5,4 +5,4 @@ * 2.0. */ -export { useIsDarkTheme } from './src/hooks'; +export type { Asset, AssetType } from './assets'; diff --git a/x-pack/solutions/observability/plugins/streams/kibana.jsonc b/x-pack/solutions/observability/plugins/streams/kibana.jsonc index b9ce6ef68e27e..943bc6223de23 100644 --- a/x-pack/solutions/observability/plugins/streams/kibana.jsonc +++ b/x-pack/solutions/observability/plugins/streams/kibana.jsonc @@ -16,7 +16,8 @@ "encryptedSavedObjects", "usageCollection", "licensing", - "taskManager" + "taskManager", + "alerting" ], "optionalPlugins": [ "cloud", diff --git a/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/asset_client.ts b/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/asset_client.ts new file mode 100644 index 0000000000000..22e50af643bd2 --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/asset_client.ts @@ -0,0 +1,408 @@ +/* + * 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. + */ +import { SanitizedRule } from '@kbn/alerting-plugin/common'; +import { RulesClient } from '@kbn/alerting-plugin/server'; +import { SavedObject, SavedObjectsClientContract } from '@kbn/core/server'; +import { termQuery } from '@kbn/observability-utils-server/es/queries/term_query'; +import { StorageClient, StorageDocumentOf } from '@kbn/observability-utils-server/es/storage'; +import { keyBy } from 'lodash'; +import objectHash from 'object-hash'; +import pLimit from 'p-limit'; +import { + ASSET_TYPES, + Asset, + AssetLink, + AssetType, + DashboardAsset, + SloAsset, + RuleAsset, +} from '../../../../common/assets'; +import { ASSET_ENTITY_ID, ASSET_ENTITY_TYPE, ASSET_TYPE } from './fields'; +import { AssetStorageSettings } from './storage_settings'; + +function sloSavedObjectToAsset( + sloId: string, + savedObject: SavedObject<{ name: string; tags: string[] }> +): SloAsset { + return { + assetId: sloId, + label: savedObject.attributes.name, + tags: savedObject.attributes.tags.concat( + savedObject.references.filter((ref) => ref.type === 'tag').map((ref) => ref.id) + ), + assetType: 'slo', + }; +} + +function dashboardSavedObjectToAsset( + dashboardId: string, + savedObject: SavedObject<{ title: string }> +): DashboardAsset { + return { + assetId: dashboardId, + label: savedObject.attributes.title, + tags: savedObject.references.filter((ref) => ref.type === 'tag').map((ref) => ref.id), + assetType: 'dashboard', + }; +} + +function ruleToAsset(ruleId: string, rule: SanitizedRule): RuleAsset { + return { + assetType: 'rule', + assetId: ruleId, + label: rule.name, + tags: rule.tags, + }; +} + +function getAssetDocument({ + assetId, + entityId, + entityType, + assetType, +}: AssetLink & { entityId: string; entityType: string }): StorageDocumentOf { + const doc = { + 'asset.id': assetId, + 'asset.type': assetType, + 'entity.id': entityId, + 'entity.type': entityType, + }; + + return { + _id: objectHash(doc), + ...doc, + }; +} + +interface AssetBulkIndexOperation { + index: { asset: AssetLink }; +} +interface AssetBulkDeleteOperation { + delete: { asset: AssetLink }; +} + +export type AssetBulkOperation = AssetBulkIndexOperation | AssetBulkDeleteOperation; + +export class AssetClient { + constructor( + private readonly clients: { + storageClient: StorageClient; + soClient: SavedObjectsClientContract; + rulesClient: RulesClient; + } + ) {} + + async linkAsset( + properties: { + entityId: string; + entityType: string; + } & AssetLink + ) { + const { _id: id, ...document } = getAssetDocument(properties); + + await this.clients.storageClient.index({ + id, + document, + }); + } + + async syncAssetList({ + entityId, + entityType, + assetType, + assetIds, + }: { + entityId: string; + entityType: string; + assetType: AssetType; + assetIds: string[]; + }) { + const assetsResponse = await this.clients.storageClient.search('get_assets_for_entity', { + size: 10_000, + track_total_hits: false, + query: { + bool: { + filter: [ + ...termQuery(ASSET_ENTITY_ID, entityId), + ...termQuery(ASSET_ENTITY_TYPE, entityType), + ...termQuery(ASSET_TYPE, assetType), + ], + }, + }, + }); + + const existingAssetLinks = assetsResponse.hits.hits.map((hit) => hit._source); + + const newAssetIds = assetIds.filter( + (assetId) => + !existingAssetLinks.some((existingAssetLink) => existingAssetLink['asset.id'] === assetId) + ); + + const assetIdsToRemove = existingAssetLinks + .map((existingAssetLink) => existingAssetLink['asset.id']) + .filter((assetId) => !assetIds.includes(assetId)); + + await Promise.all([ + ...newAssetIds.map((assetId) => + this.linkAsset({ + entityId, + entityType, + assetId, + assetType, + }) + ), + ...assetIdsToRemove.map((assetId) => + this.unlinkAsset({ + entityId, + entityType, + assetId, + assetType, + }) + ), + ]); + } + + async unlinkAsset( + properties: { + entityId: string; + entityType: string; + } & AssetLink + ) { + const { _id: id } = getAssetDocument(properties); + + await this.clients.storageClient.delete(id); + } + + async getAssetIds({ + entityId, + entityType, + assetType, + }: { + entityId: string; + entityType: 'stream'; + assetType: AssetType; + }): Promise { + const assetsResponse = await this.clients.storageClient.search('get_assets_for_entity', { + size: 10_000, + track_total_hits: false, + query: { + bool: { + filter: [ + ...termQuery(ASSET_ENTITY_ID, entityId), + ...termQuery(ASSET_ENTITY_TYPE, entityType), + ...termQuery(ASSET_TYPE, assetType), + ], + }, + }, + }); + + return assetsResponse.hits.hits.map((hit) => hit._source['asset.id']); + } + + async bulk( + { entityId, entityType }: { entityId: string; entityType: string }, + operations: AssetBulkOperation[] + ) { + return await this.clients.storageClient.bulk( + operations.map((operation) => { + const { _id, ...document } = getAssetDocument({ + ...Object.values(operation)[0].asset, + entityId, + entityType, + }); + + if ('index' in operation) { + return { + index: { + document, + _id, + }, + }; + } + + return { + delete: { + _id, + }, + }; + }) + ); + } + + async getAssets({ + entityId, + entityType, + }: { + entityId: string; + entityType: 'stream'; + }): Promise { + const assetsResponse = await this.clients.storageClient.search('get_assets_for_entity', { + size: 10_000, + track_total_hits: false, + query: { + bool: { + filter: [ + ...termQuery(ASSET_ENTITY_ID, entityId), + ...termQuery(ASSET_ENTITY_TYPE, entityType), + ], + }, + }, + }); + + const assetLinks = assetsResponse.hits.hits.map((hit) => hit._source); + + if (!assetLinks.length) { + return []; + } + + const idsByType = Object.fromEntries( + Object.values(ASSET_TYPES).map((type) => [type, [] as string[]]) + ) as Record; + + assetLinks.forEach((assetLink) => { + const assetType = assetLink['asset.type']; + const assetId = assetLink['asset.id']; + idsByType[assetType].push(assetId); + }); + + const limiter = pLimit(10); + + const [dashboards, rules, slos] = await Promise.all([ + idsByType.dashboard.length + ? this.clients.soClient + .bulkGet<{ title: string }>( + idsByType.dashboard.map((dashboardId) => ({ type: 'dashboard', id: dashboardId })) + ) + .then((response) => { + const dashboardsById = keyBy(response.saved_objects, 'id'); + + return idsByType.dashboard.flatMap((dashboardId): Asset[] => { + const dashboard = dashboardsById[dashboardId]; + if (dashboard && !dashboard.error) { + return [dashboardSavedObjectToAsset(dashboardId, dashboard)]; + } + return []; + }); + }) + : [], + Promise.all( + idsByType.rule.map((ruleId) => { + return limiter(() => + this.clients.rulesClient.get({ id: ruleId }).then((rule): Asset => { + return ruleToAsset(ruleId, rule); + }) + ); + }) + ), + idsByType.slo.length + ? this.clients.soClient + .find<{ name: string; tags: string[] }>({ + type: 'slo', + filter: `slo.attributes.id:(${idsByType.slo + .map((sloId) => `"${sloId}"`) + .join(' OR ')})`, + perPage: idsByType.slo.length, + }) + .then((soResponse) => { + const sloDefinitionsById = keyBy(soResponse.saved_objects, 'slo.attributes.id'); + + return idsByType.slo.flatMap((sloId): Asset[] => { + const sloDefinition = sloDefinitionsById[sloId]; + if (sloDefinition && !sloDefinition.error) { + return [sloSavedObjectToAsset(sloId, sloDefinition)]; + } + return []; + }); + }) + : [], + ]); + + return [...dashboards, ...rules, ...slos]; + } + + async getSuggestions({ + query, + assetTypes, + tags, + }: { + query: string; + assetTypes?: AssetType[]; + tags?: string[]; + }): Promise<{ hasMore: boolean; assets: Asset[] }> { + const perPage = 101; + + const searchAll = !assetTypes; + + const searchDashboardsOrSlos = + searchAll || assetTypes.includes('dashboard') || assetTypes.includes('slo'); + + const searchRules = searchAll || assetTypes.includes('rule'); + + const [suggestionsFromSlosAndDashboards, suggestionsFromRules] = await Promise.all([ + searchDashboardsOrSlos + ? this.clients.soClient + .find({ + type: ['dashboard' as const, 'slo' as const].filter( + (type) => searchAll || assetTypes.includes(type) + ), + search: query, + perPage, + ...(tags + ? { + hasReferenceOperator: 'OR', + hasReference: tags.map((tag) => ({ type: 'tag', id: tag })), + } + : {}), + }) + .then((results) => { + return results.saved_objects.map((savedObject) => { + if (savedObject.type === 'slo') { + const sloSavedObject = savedObject as SavedObject<{ + id: string; + name: string; + tags: string[]; + }>; + return sloSavedObjectToAsset(sloSavedObject.attributes.id, sloSavedObject); + } + + const dashboardSavedObject = savedObject as SavedObject<{ + title: string; + }>; + + return dashboardSavedObjectToAsset(dashboardSavedObject.id, dashboardSavedObject); + }); + }) + : Promise.resolve([]), + searchRules + ? this.clients.rulesClient + .find({ + options: { + perPage, + ...(tags + ? { + hasReferenceOperator: 'OR', + hasReference: tags.map((tag) => ({ type: 'tag', id: tag })), + } + : {}), + }, + }) + .then((results) => { + return results.data.map((rule) => { + return ruleToAsset(rule.id, rule); + }); + }) + : Promise.resolve([]), + ]); + + return { + assets: [...suggestionsFromRules, ...suggestionsFromSlosAndDashboards], + hasMore: + Math.max(suggestionsFromSlosAndDashboards.length, suggestionsFromRules.length) > + perPage - 1, + }; + } +} diff --git a/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/asset_service.ts b/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/asset_service.ts new file mode 100644 index 0000000000000..c83418aeda743 --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/asset_service.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +import { CoreSetup, KibanaRequest, Logger } from '@kbn/core/server'; +import { StorageIndexAdapter } from '@kbn/observability-utils-server/es/storage'; +import { Observable, defer, from, lastValueFrom, shareReplay } from 'rxjs'; +import { StreamsPluginStartDependencies } from '../../../types'; +import { AssetClient } from './asset_client'; +import { assetStorageSettings } from './storage_settings'; + +export class AssetService { + private adapter$: Observable>; + constructor( + private readonly coreSetup: CoreSetup, + private readonly logger: Logger + ) { + this.adapter$ = defer(() => from(this.getAdapter())).pipe(shareReplay(1)); + } + + async getAdapter(): Promise> { + const [coreStart] = await this.coreSetup.getStartServices(); + const esClient = coreStart.elasticsearch.client.asInternalUser; + + const adapter = new StorageIndexAdapter( + esClient, + this.logger.get('assets'), + assetStorageSettings + ); + + return adapter; + } + + async getClientWithRequest({ request }: { request: KibanaRequest }): Promise { + const [coreStart, pluginsStart] = await this.coreSetup.getStartServices(); + + const adapter = await lastValueFrom(this.adapter$); + return new AssetClient({ + storageClient: adapter.getClient(), + soClient: coreStart.savedObjects.getScopedClient(request), + rulesClient: await pluginsStart.alerting.getRulesClientWithRequest(request), + }); + } +} diff --git a/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/fields.ts b/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/fields.ts new file mode 100644 index 0000000000000..9dc57594829f7 --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/fields.ts @@ -0,0 +1,11 @@ +/* + * 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. + */ + +export const ASSET_ENTITY_ID = 'entity.id'; +export const ASSET_ENTITY_TYPE = 'entity.type'; +export const ASSET_ASSET_ID = 'asset.id'; +export const ASSET_TYPE = 'asset.type'; diff --git a/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/storage_settings.ts b/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/storage_settings.ts new file mode 100644 index 0000000000000..92ac034c45353 --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams/server/lib/streams/assets/storage_settings.ts @@ -0,0 +1,24 @@ +/* + * 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. + */ + +import { IndexStorageSettings, types } from '@kbn/observability-utils-server/es/storage'; +import { ASSET_ASSET_ID, ASSET_ENTITY_ID, ASSET_ENTITY_TYPE, ASSET_TYPE } from './fields'; +import { ASSET_TYPES } from '../../../../common/assets'; + +export const assetStorageSettings = { + name: '.kibana_streams_assets', + schema: { + properties: { + [ASSET_ASSET_ID]: types.keyword({ required: true }), + [ASSET_TYPE]: types.enum(Object.values(ASSET_TYPES), { required: true }), + [ASSET_ENTITY_ID]: types.keyword(), + [ASSET_ENTITY_TYPE]: types.keyword(), + }, + }, +} satisfies IndexStorageSettings; + +export type AssetStorageSettings = typeof assetStorageSettings; diff --git a/x-pack/solutions/observability/plugins/streams/server/lib/streams/errors/index.ts b/x-pack/solutions/observability/plugins/streams/server/lib/streams/errors/index.ts index 73842ef3018fe..605465d7bcac7 100644 --- a/x-pack/solutions/observability/plugins/streams/server/lib/streams/errors/index.ts +++ b/x-pack/solutions/observability/plugins/streams/server/lib/streams/errors/index.ts @@ -13,3 +13,4 @@ export * from './security_exception'; export * from './index_template_not_found'; export * from './fork_condition_missing'; export * from './component_template_not_found'; +export * from './root_stream_immutability_exception'; diff --git a/x-pack/solutions/observability/plugins/streams/server/lib/streams/errors/root_stream_immutability_exception.ts b/x-pack/solutions/observability/plugins/streams/server/lib/streams/errors/root_stream_immutability_exception.ts new file mode 100644 index 0000000000000..4b1573f0ff01b --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams/server/lib/streams/errors/root_stream_immutability_exception.ts @@ -0,0 +1,13 @@ +/* + * 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. + */ + +export class RootStreamImmutabilityException extends Error { + constructor(message: string) { + super(message); + this.name = 'RootStreamImmutabilityException'; + } +} diff --git a/x-pack/solutions/observability/plugins/streams/server/lib/streams/stream_crud.ts b/x-pack/solutions/observability/plugins/streams/server/lib/streams/stream_crud.ts index 5669a3301e208..4d01e9d38fd27 100644 --- a/x-pack/solutions/observability/plugins/streams/server/lib/streams/stream_crud.ts +++ b/x-pack/solutions/observability/plugins/streams/server/lib/streams/stream_crud.ts @@ -44,6 +44,7 @@ import { upsertIngestPipeline, } from './ingest_pipelines/manage_ingest_pipelines'; import { getProcessingPipelineName, getReroutePipelineName } from './ingest_pipelines/name'; +import { AssetClient } from './assets/asset_client'; interface BaseParams { scopedClusterClient: IScopedClusterClient; @@ -56,6 +57,7 @@ interface BaseParamsWithDefinition extends BaseParams { interface DeleteStreamParams extends BaseParams { id: string; logger: Logger; + assetClient: AssetClient; } export async function deleteUnmanagedStreamObjects({ @@ -115,7 +117,12 @@ export async function deleteUnmanagedStreamObjects({ } } -export async function deleteStreamObjects({ id, scopedClusterClient, logger }: DeleteStreamParams) { +export async function deleteStreamObjects({ + id, + scopedClusterClient, + logger, + assetClient, +}: DeleteStreamParams) { await deleteDataStream({ esClient: scopedClusterClient.asCurrentUser, name: id, @@ -141,6 +148,12 @@ export async function deleteStreamObjects({ id, scopedClusterClient, logger }: D id: getReroutePipelineName(id), logger, }); + await assetClient.syncAssetList({ + entityId: id, + entityType: 'stream', + assetType: 'dashboard', + assetIds: [], + }); await scopedClusterClient.asInternalUser.delete({ id, index: STREAMS_INDEX, @@ -148,7 +161,10 @@ export async function deleteStreamObjects({ id, scopedClusterClient, logger }: D }); } -async function upsertInternalStream({ definition, scopedClusterClient }: BaseParamsWithDefinition) { +async function upsertInternalStream({ + definition: { dashboards, ...definition }, + scopedClusterClient, +}: BaseParamsWithDefinition) { return scopedClusterClient.asInternalUser.index({ id: definition.name, index: STREAMS_INDEX, @@ -157,41 +173,71 @@ async function upsertInternalStream({ definition, scopedClusterClient }: BasePar }); } +async function syncAssets({ + definition, + assetClient, +}: { + definition: StreamDefinition; + assetClient: AssetClient; +}) { + await assetClient.syncAssetList({ + entityId: definition.name, + entityType: 'stream', + assetType: 'dashboard', + assetIds: definition.dashboards ?? [], + }); +} + type ListStreamsParams = BaseParams; export async function listStreams({ scopedClusterClient, }: ListStreamsParams): Promise { - const response = await scopedClusterClient.asInternalUser.search({ + const [managedStreams, unmanagedStreams] = await Promise.all([ + listManagedStreams({ scopedClusterClient }), + listDataStreamsAsStreams({ scopedClusterClient }), + ]); + + const allDefinitionsById = new Map(managedStreams.map((stream) => [stream.name, stream])); + + unmanagedStreams.forEach((stream) => { + if (!allDefinitionsById.get(stream.name)) { + allDefinitionsById.set(stream.name, stream); + } + }); + + return { + streams: Array.from(allDefinitionsById.values()), + }; +} + +async function listManagedStreams({ + scopedClusterClient, +}: ListStreamsParams): Promise { + const streamsSearchResponse = await scopedClusterClient.asInternalUser.search({ index: STREAMS_INDEX, size: 10000, sort: [{ name: 'asc' }], }); - const dataStreams = await listDataStreamsAsStreams({ scopedClusterClient }); - let definitions = response.hits.hits.map((hit) => ({ ...hit._source! })); - const hasAccess = await Promise.all( - definitions.map((definition) => checkReadAccess({ id: definition.name, scopedClusterClient })) - ); - definitions = definitions.filter((_, index) => hasAccess[index]); - const definitionMap = new Map( - definitions.map((definition) => [definition.name, definition]) - ); - dataStreams.forEach((dataStream) => { - if (!definitionMap.has(dataStream.name)) { - definitionMap.set(dataStream.name, dataStream); - } + const streams = streamsSearchResponse.hits.hits.map((hit) => ({ + ...hit._source!, + managed: true, + })); + + const privileges = await scopedClusterClient.asCurrentUser.security.hasPrivileges({ + index: [{ names: streams.map((stream) => stream.name), privileges: ['read'] }], }); - return { - streams: Array.from(definitionMap.values()), - }; + return streams.filter((stream) => { + return privileges.index[stream.name]?.read === true; + }); } export async function listDataStreamsAsStreams({ scopedClusterClient, }: ListStreamsParams): Promise { - const response = await scopedClusterClient.asInternalUser.indices.getDataStream(); + const response = await scopedClusterClient.asCurrentUser.indices.getDataStream(); return response.data_streams .filter((dataStream) => dataStream.template.endsWith('@stream') === false) .map((dataStream) => ({ @@ -222,7 +268,7 @@ export async function readStream({ }); const definition = response._source as StreamDefinition; if (!skipAccessCheck) { - const hasAccess = await checkReadAccess({ id, scopedClusterClient }); + const hasAccess = await checkAccess({ id, scopedClusterClient }); if (!hasAccess) { throw new DefinitionNotFound(`Stream definition for ${id} not found.`); } @@ -263,21 +309,26 @@ async function getUnmanagedElasticsearchAssets({ name, scopedClusterClient, }: ReadUnmanagedAssetsParams) { - let dataStream: IndicesDataStream; + let dataStream: IndicesDataStream | undefined; try { - const response = await scopedClusterClient.asInternalUser.indices.getDataStream({ name }); + const response = await scopedClusterClient.asCurrentUser.indices.getDataStream({ name }); dataStream = response.data_streams[0]; } catch (e) { if (e.meta?.statusCode === 404) { - throw new DefinitionNotFound(`Stream definition for ${name} not found.`); + // fall through and throw not found + } else { + throw e; } - throw e; + } + + if (!dataStream) { + throw new DefinitionNotFound(`Stream definition for ${name} not found.`); } // retrieve linked index template, component template and ingest pipeline const templateName = dataStream.template; const componentTemplates: string[] = []; - const template = await scopedClusterClient.asInternalUser.indices.getIndexTemplate({ + const template = await scopedClusterClient.asCurrentUser.indices.getIndexTemplate({ name: templateName, }); if (template.index_templates.length) { @@ -286,7 +337,7 @@ async function getUnmanagedElasticsearchAssets({ }); } const writeIndexName = dataStream.indices.at(-1)?.index_name!; - const currentIndex = await scopedClusterClient.asInternalUser.indices.get({ + const currentIndex = await scopedClusterClient.asCurrentUser.indices.get({ index: writeIndexName, }); const ingestPipelineId = currentIndex[writeIndexName].settings?.index?.default_pipeline!; @@ -432,23 +483,43 @@ export async function checkStreamExists({ id, scopedClusterClient }: ReadStreamP } } -interface CheckReadAccessParams extends BaseParams { +interface CheckAccessParams extends BaseParams { id: string; } -export async function checkReadAccess({ +export async function checkAccess({ id, scopedClusterClient, -}: CheckReadAccessParams): Promise { - try { - return await scopedClusterClient.asCurrentUser.indices.exists({ index: id }); - } catch (e) { - return false; - } +}: CheckAccessParams): Promise<{ read: boolean; write: boolean }> { + return checkAccessBulk({ + ids: [id], + scopedClusterClient, + }).then((privileges) => privileges[id]); +} + +interface CheckAccessBulkParams extends BaseParams { + ids: string[]; } +export async function checkAccessBulk({ + ids, + scopedClusterClient, +}: CheckAccessBulkParams): Promise> { + const hasPrivilegesResponse = await scopedClusterClient.asCurrentUser.security.hasPrivileges({ + index: [{ names: ids, privileges: ['read', 'write'] }], + }); + + return Object.fromEntries( + ids.map((id) => { + const hasReadAccess = hasPrivilegesResponse.index[id].read === true; + const hasWriteAccess = hasPrivilegesResponse.index[id].write === true; + return [id, { read: hasReadAccess, write: hasWriteAccess }]; + }) + ); +} interface SyncStreamParams { scopedClusterClient: IScopedClusterClient; + assetClient: AssetClient; definition: StreamDefinition; rootDefinition?: StreamDefinition; logger: Logger; @@ -456,12 +527,13 @@ interface SyncStreamParams { export async function syncStream({ scopedClusterClient, + assetClient, definition, rootDefinition, logger, }: SyncStreamParams) { if (!isWiredStream(definition)) { - await syncUnmanagedStream({ scopedClusterClient, definition, logger }); + await syncUnmanagedStream({ scopedClusterClient, definition, logger, assetClient }); await upsertInternalStream({ scopedClusterClient, definition, @@ -512,6 +584,10 @@ export async function syncStream({ scopedClusterClient, definition, }); + await syncAssets({ + definition, + assetClient, + }); await rolloverDataStreamIfNecessary({ esClient: scopedClusterClient.asCurrentUser, name: definition.name, diff --git a/x-pack/solutions/observability/plugins/streams/server/plugin.ts b/x-pack/solutions/observability/plugins/streams/server/plugin.ts index 937f8c22b5be0..a40f1a9f2af2a 100644 --- a/x-pack/solutions/observability/plugins/streams/server/plugin.ts +++ b/x-pack/solutions/observability/plugins/streams/server/plugin.ts @@ -22,6 +22,7 @@ import { StreamsPluginStartDependencies, StreamsServer, } from './types'; +import { AssetService } from './lib/streams/assets/asset_service'; // eslint-disable-next-line @typescript-eslint/no-empty-interface export interface StreamsPluginSetup {} @@ -51,21 +52,28 @@ export class StreamsPlugin this.logger = context.logger.get(); } - public setup(core: CoreSetup, plugins: StreamsPluginSetupDependencies): StreamsPluginSetup { + public setup( + core: CoreSetup, + plugins: StreamsPluginSetupDependencies + ): StreamsPluginSetup { this.server = { config: this.config, logger: this.logger, } as StreamsServer; + const assetService = new AssetService(core, this.logger); + registerRoutes({ repository: streamsRouteRepository, dependencies: { + assets: assetService, server: this.server, getScopedClients: async ({ request }: { request: KibanaRequest }) => { const [coreStart] = await core.getStartServices(); + const assetClient = await assetService.getClientWithRequest({ request }); const scopedClusterClient = coreStart.elasticsearch.client.asScoped(request); const soClient = coreStart.savedObjects.getScopedClient(request); - return { scopedClusterClient, soClient }; + return { scopedClusterClient, soClient, assetClient }; }, }, core, diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/dashboards/route.ts b/x-pack/solutions/observability/plugins/streams/server/routes/dashboards/route.ts new file mode 100644 index 0000000000000..b5ea8646daf6b --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams/server/routes/dashboards/route.ts @@ -0,0 +1,262 @@ +/* + * 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. + */ + +import { z } from '@kbn/zod'; +import { ErrorCause } from '@elastic/elasticsearch/lib/api/types'; +import { internal } from '@hapi/boom'; +import { Asset, DashboardAsset } from '../../../common/assets'; +import { createServerRoute } from '../create_server_route'; + +export interface SanitizedDashboardAsset { + id: string; + label: string; + tags: string[]; +} + +export interface ListDashboardsResponse { + dashboards: SanitizedDashboardAsset[]; +} + +export interface LinkDashboardResponse { + acknowledged: boolean; +} + +export interface UnlinkDashboardResponse { + acknowledged: boolean; +} + +export interface SuggestDashboardResponse { + suggestions: SanitizedDashboardAsset[]; +} + +export type BulkUpdateAssetsResponse = + | { + acknowledged: boolean; + } + | { errors: ErrorCause[] }; + +function sanitizeDashboardAsset(asset: DashboardAsset): SanitizedDashboardAsset { + return { + id: asset.assetId, + label: asset.label, + tags: asset.tags, + }; +} + +const listDashboardsRoute = createServerRoute({ + endpoint: 'GET /api/streams/{id}/dashboards', + options: { + access: 'internal', + }, + params: z.object({ + path: z.object({ + id: z.string(), + }), + }), + async handler({ params, request, assets }): Promise { + const assetsClient = await assets.getClientWithRequest({ request }); + + const { + path: { id: streamId }, + } = params; + + function isDashboard(asset: Asset): asset is DashboardAsset { + return asset.assetType === 'dashboard'; + } + + return { + dashboards: ( + await assetsClient.getAssets({ + entityId: streamId, + entityType: 'stream', + }) + ) + .filter(isDashboard) + .map(sanitizeDashboardAsset), + }; + }, +}); + +const linkDashboardRoute = createServerRoute({ + endpoint: 'PUT /api/streams/{id}/dashboards/{dashboardId}', + options: { + access: 'internal', + }, + params: z.object({ + path: z.object({ + id: z.string(), + dashboardId: z.string(), + }), + }), + handler: async ({ params, request, assets }): Promise => { + const assetsClient = await assets.getClientWithRequest({ request }); + + const { + path: { dashboardId, id: streamId }, + } = params; + + await assetsClient.linkAsset({ + entityId: streamId, + entityType: 'stream', + assetId: dashboardId, + assetType: 'dashboard', + }); + + return { + acknowledged: true, + }; + }, +}); + +const unlinkDashboardRoute = createServerRoute({ + endpoint: 'DELETE /api/streams/{id}/dashboards/{dashboardId}', + options: { + access: 'internal', + }, + params: z.object({ + path: z.object({ + id: z.string(), + dashboardId: z.string(), + }), + }), + handler: async ({ params, request, assets }): Promise => { + const assetsClient = await assets.getClientWithRequest({ request }); + + const { + path: { dashboardId, id: streamId }, + } = params; + + await assetsClient.unlinkAsset({ + entityId: streamId, + entityType: 'stream', + assetId: dashboardId, + assetType: 'dashboard', + }); + + return { + acknowledged: true, + }; + }, +}); + +const suggestDashboardsRoute = createServerRoute({ + endpoint: 'POST /api/streams/{id}/dashboards/_suggestions', + options: { + access: 'internal', + }, + params: z.object({ + path: z.object({ + id: z.string(), + }), + query: z.object({ + query: z.string(), + }), + body: z.object({ + tags: z.optional(z.array(z.string())), + }), + }), + handler: async ({ params, request, assets }): Promise => { + const assetsClient = await assets.getClientWithRequest({ request }); + + const { + query: { query }, + body: { tags }, + } = params; + + const suggestions = ( + await assetsClient.getSuggestions({ + assetTypes: ['dashboard'], + query, + tags, + }) + ).assets.map((asset) => { + return sanitizeDashboardAsset(asset as DashboardAsset); + }); + + return { + suggestions, + }; + }, +}); + +const dashboardSchema = z.object({ + id: z.string(), +}); + +const bulkDashboardsRoute = createServerRoute({ + endpoint: `POST /api/streams/{id}/dashboards/_bulk`, + options: { + access: 'internal', + }, + params: z.object({ + path: z.object({ + id: z.string(), + }), + body: z.object({ + operations: z.array( + z.union([ + z.object({ + index: dashboardSchema, + }), + z.object({ + delete: dashboardSchema, + }), + ]) + ), + }), + }), + handler: async ({ params, request, assets, logger }): Promise => { + const assetsClient = await assets.getClientWithRequest({ request }); + + const { + path: { id: streamId }, + body: { operations }, + } = params; + + const result = await assetsClient.bulk( + { + entityId: streamId, + entityType: 'stream', + }, + operations.map((operation) => { + if ('index' in operation) { + return { + index: { + asset: { + assetType: 'dashboard', + assetId: operation.index.id, + }, + }, + }; + } + return { + delete: { + asset: { + assetType: 'dashboard', + assetId: operation.delete.id, + }, + }, + }; + }) + ); + + if (result.errors) { + logger.error(`Error indexing ${result.errors.length} items`); + throw internal(`Could not index all items`, { errors: result.errors }); + } + + return { acknowledged: true }; + }, +}); + +export const dashboardRoutes = { + ...listDashboardsRoute, + ...linkDashboardRoute, + ...unlinkDashboardRoute, + ...suggestDashboardsRoute, + ...bulkDashboardsRoute, +}; diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/index.ts b/x-pack/solutions/observability/plugins/streams/server/routes/index.ts index e6c53e33e217e..fe10f3e282c46 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/index.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/index.ts @@ -5,6 +5,7 @@ * 2.0. */ +import { dashboardRoutes } from './dashboards/route'; import { esqlRoutes } from './esql/route'; import { deleteStreamRoute } from './streams/delete'; import { disableStreamsRoute } from './streams/disable'; @@ -30,6 +31,7 @@ export const streamsRouteRepository = { ...streamsStatusRoutes, ...esqlRoutes, ...disableStreamsRoute, + ...dashboardRoutes, ...sampleStreamRoute, ...unmappedFieldsRoute, ...schemaFieldsSimulationRoute, diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/streams/delete.ts b/x-pack/solutions/observability/plugins/streams/server/routes/streams/delete.ts index 698d0f7f81d38..cc773523d9719 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/streams/delete.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/streams/delete.ts @@ -25,6 +25,7 @@ import { } from '../../lib/streams/stream_crud'; import { MalformedStreamId } from '../../lib/streams/errors/malformed_stream_id'; import { getParentId } from '../../lib/streams/helpers/hierarchy'; +import { AssetClient } from '../../lib/streams/assets/asset_client'; export const deleteStreamRoute = createServerRoute({ endpoint: 'DELETE /api/streams/{id}', @@ -50,9 +51,21 @@ export const deleteStreamRoute = createServerRoute({ getScopedClients, }): Promise<{ acknowledged: true }> => { try { - const { scopedClusterClient } = await getScopedClients({ request }); + const { scopedClusterClient, assetClient } = await getScopedClients({ request }); - await deleteStream(scopedClusterClient, params.path.id, logger); + const parentId = getParentId(params.path.id); + if (parentId) { + // need to update parent first to cut off documents streaming down + await updateParentStream( + scopedClusterClient, + assetClient, + params.path.id, + parentId, + logger + ); + } + + await deleteStream(scopedClusterClient, assetClient, params.path.id, logger); return { acknowledged: true }; } catch (e) { @@ -75,13 +88,14 @@ export const deleteStreamRoute = createServerRoute({ export async function deleteStream( scopedClusterClient: IScopedClusterClient, + assetClient: AssetClient, id: string, logger: Logger ) { try { const definition = await readStream({ scopedClusterClient, id }); if (!isWiredStream(definition)) { - await deleteUnmanagedStreamObjects({ scopedClusterClient, id, logger }); + await deleteUnmanagedStreamObjects({ scopedClusterClient, id, logger, assetClient }); return; } @@ -91,11 +105,11 @@ export async function deleteStream( } // need to update parent first to cut off documents streaming down - await updateParentStream(scopedClusterClient, id, parentId, logger); + await updateParentStream(scopedClusterClient, assetClient, id, parentId, logger); for (const child of definition.stream.ingest.routing) { - await deleteStream(scopedClusterClient, child.name, logger); + await deleteStream(scopedClusterClient, assetClient, child.name, logger); } - await deleteStreamObjects({ scopedClusterClient, id, logger }); + await deleteStreamObjects({ scopedClusterClient, id, logger, assetClient }); } catch (e) { if (e instanceof DefinitionNotFound) { logger.debug(`Stream definition for ${id} not found.`); @@ -107,6 +121,7 @@ export async function deleteStream( async function updateParentStream( scopedClusterClient: IScopedClusterClient, + assetClient: AssetClient, id: string, parentId: string, logger: Logger @@ -122,6 +137,7 @@ async function updateParentStream( await syncStream({ scopedClusterClient, + assetClient, definition: parentDefinition, logger, }); diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/streams/disable.ts b/x-pack/solutions/observability/plugins/streams/server/routes/streams/disable.ts index 3cf369f6da76d..57519e2ce4be5 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/streams/disable.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/streams/disable.ts @@ -24,9 +24,9 @@ export const disableStreamsRoute = createServerRoute({ }, handler: async ({ request, logger, getScopedClients }): Promise<{ acknowledged: true }> => { try { - const { scopedClusterClient } = await getScopedClients({ request }); + const { scopedClusterClient, assetClient } = await getScopedClients({ request }); - await deleteStream(scopedClusterClient, 'logs', logger); + await deleteStream(scopedClusterClient, assetClient, 'logs', logger); return { acknowledged: true }; } catch (e) { diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/streams/edit.ts b/x-pack/solutions/observability/plugins/streams/server/routes/streams/edit.ts index cf88835602076..2701e44a8d5c1 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/streams/edit.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/streams/edit.ts @@ -10,6 +10,7 @@ import { IScopedClusterClient } from '@kbn/core-elasticsearch-server'; import { Logger } from '@kbn/logging'; import { badRequest, internal, notFound } from '@hapi/boom'; import { + isRootStream, isWiredStream, isWiredStreamConfig, streamConfigDefinitionSchema, @@ -17,10 +18,12 @@ import { WiredStreamConfigDefinition, WiredStreamDefinition, } from '@kbn/streams-schema'; +import { isEqual } from 'lodash'; import { DefinitionNotFound, ForkConditionMissing, IndexTemplateNotFound, + RootStreamImmutabilityException, SecurityException, } from '../../lib/streams/errors'; import { createServerRoute } from '../create_server_route'; @@ -34,6 +37,7 @@ import { import { MalformedStreamId } from '../../lib/streams/errors/malformed_stream_id'; import { getParentId } from '../../lib/streams/helpers/hierarchy'; import { MalformedChildren } from '../../lib/streams/errors/malformed_children'; +import { AssetClient } from '../../lib/streams/assets/asset_client'; import { validateCondition } from '../../lib/streams/helpers/condition_fields'; export const editStreamRoute = createServerRoute({ @@ -56,7 +60,7 @@ export const editStreamRoute = createServerRoute({ }), handler: async ({ params, logger, request, getScopedClients }) => { try { - const { scopedClusterClient } = await getScopedClients({ request }); + const { scopedClusterClient, assetClient } = await getScopedClients({ request }); const streamDefinition: StreamDefinition = { stream: params.body, name: params.path.id }; if (!isWiredStream(streamDefinition)) { @@ -65,11 +69,30 @@ export const editStreamRoute = createServerRoute({ definition: streamDefinition, rootDefinition: undefined, logger, + assetClient, }); return { acknowledged: true }; } - await validateStreamChildren(scopedClusterClient, params.path.id, params.body.ingest.routing); + const currentStreamDefinition = (await readStream({ + scopedClusterClient, + id: params.path.id, + })) as WiredStreamDefinition; + + if (isRootStream(streamDefinition)) { + await validateRootStreamChanges( + scopedClusterClient, + currentStreamDefinition, + streamDefinition + ); + } + + await validateStreamChildren( + scopedClusterClient, + currentStreamDefinition, + params.body.ingest.routing + ); + if (isWiredStreamConfig(params.body)) { await validateAncestorFields( scopedClusterClient, @@ -113,6 +136,7 @@ export const editStreamRoute = createServerRoute({ await syncStream({ scopedClusterClient, + assetClient, definition: childDefinition, logger, }); @@ -123,11 +147,13 @@ export const editStreamRoute = createServerRoute({ definition: { ...streamDefinition, name: params.path.id }, rootDefinition: parentDefinition, logger, + assetClient, }); if (parentId) { parentDefinition = await updateParentStream( scopedClusterClient, + assetClient, parentId, params.path.id, logger @@ -143,7 +169,8 @@ export const editStreamRoute = createServerRoute({ if ( e instanceof SecurityException || e instanceof ForkConditionMissing || - e instanceof MalformedStreamId + e instanceof MalformedStreamId || + e instanceof RootStreamImmutabilityException ) { throw badRequest(e); } @@ -155,6 +182,7 @@ export const editStreamRoute = createServerRoute({ async function updateParentStream( scopedClusterClient: IScopedClusterClient, + assetClient: AssetClient, parentId: string, id: string, logger: Logger @@ -173,6 +201,7 @@ async function updateParentStream( await syncStream({ scopedClusterClient, + assetClient, definition: parentDefinition, logger, }); @@ -182,15 +211,11 @@ async function updateParentStream( async function validateStreamChildren( scopedClusterClient: IScopedClusterClient, - id: string, + currentStreamDefinition: WiredStreamDefinition, children: WiredStreamConfigDefinition['ingest']['routing'] ) { try { - const oldDefinition = await readStream({ - scopedClusterClient, - id, - }); - const oldChildren = oldDefinition.stream.ingest.routing.map((child) => child.name); + const oldChildren = currentStreamDefinition.stream.ingest.routing.map((child) => child.name); const newChildren = new Set(children.map((child) => child.name)); children.forEach((child) => { validateCondition(child.condition); @@ -207,3 +232,31 @@ async function validateStreamChildren( } } } + +/* + * Changes to mappings (fields) and processing rules are not allowed on the root stream. + * Changes to routing rules are allowed. + */ +async function validateRootStreamChanges( + scopedClusterClient: IScopedClusterClient, + currentStreamDefinition: WiredStreamDefinition, + nextStreamDefinition: WiredStreamDefinition +) { + const hasFieldChanges = !isEqual( + currentStreamDefinition.stream.ingest.wired.fields, + nextStreamDefinition.stream.ingest.wired.fields + ); + + if (hasFieldChanges) { + throw new RootStreamImmutabilityException('Root stream fields cannot be changed'); + } + + const hasProcessingChanges = !isEqual( + currentStreamDefinition.stream.ingest.processing, + nextStreamDefinition.stream.ingest.processing + ); + + if (hasProcessingChanges) { + throw new RootStreamImmutabilityException('Root stream processing rules cannot be changed'); + } +} diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/streams/enable.ts b/x-pack/solutions/observability/plugins/streams/server/routes/streams/enable.ts index 8b479813f87af..3ce58300683d5 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/streams/enable.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/streams/enable.ts @@ -32,7 +32,7 @@ export const enableStreamsRoute = createServerRoute({ getScopedClients, }): Promise<{ acknowledged: true; message: string }> => { try { - const { scopedClusterClient } = await getScopedClients({ request }); + const { scopedClusterClient, assetClient } = await getScopedClients({ request }); const alreadyEnabled = await streamsEnabled({ scopedClusterClient }); if (alreadyEnabled) { return { acknowledged: true, message: 'Streams was already enabled' }; @@ -40,6 +40,7 @@ export const enableStreamsRoute = createServerRoute({ await createStreamsIndex(scopedClusterClient); await syncStream({ scopedClusterClient, + assetClient, definition: rootStreamDefinition, logger, }); diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/streams/fork.ts b/x-pack/solutions/observability/plugins/streams/server/routes/streams/fork.ts index 447fdfcc84978..8453045863794 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/streams/fork.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/streams/fork.ts @@ -51,7 +51,7 @@ export const forkStreamsRoute = createServerRoute({ validateCondition(params.body.condition); - const { scopedClusterClient } = await getScopedClients({ request }); + const { scopedClusterClient, assetClient } = await getScopedClients({ request }); const rootDefinition = await readStream({ scopedClusterClient, @@ -91,6 +91,7 @@ export const forkStreamsRoute = createServerRoute({ // need to create the child first, otherwise we risk streaming data even though the child data stream is not ready await syncStream({ scopedClusterClient, + assetClient, definition: childDefinition, rootDefinition, logger, @@ -103,6 +104,7 @@ export const forkStreamsRoute = createServerRoute({ await syncStream({ scopedClusterClient, + assetClient, definition: rootDefinition, rootDefinition, logger, diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/streams/list.ts b/x-pack/solutions/observability/plugins/streams/server/routes/streams/list.ts index 66edc3c7954b4..8f2755ee73d72 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/streams/list.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/streams/list.ts @@ -28,7 +28,7 @@ export const listStreamsRoute = createServerRoute({ handler: async ({ request, getScopedClients }): Promise => { try { const { scopedClusterClient } = await getScopedClients({ request }); - return listStreams({ scopedClusterClient }); + return await listStreams({ scopedClusterClient }); } catch (e) { if (e instanceof DefinitionNotFound) { throw notFound(e); diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/streams/read.ts b/x-pack/solutions/observability/plugins/streams/server/routes/streams/read.ts index cd3d43934f107..f7c967035bd68 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/streams/read.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/streams/read.ts @@ -9,9 +9,9 @@ import { z } from '@kbn/zod'; import { notFound, internal } from '@hapi/boom'; import { FieldDefinitionConfig, - isIngestStream, isWiredStream, ReadStreamDefinition, + WiredReadStreamDefinition, } from '@kbn/streams-schema'; import { createServerRoute } from '../create_server_route'; import { DefinitionNotFound } from '../../lib/streams/errors'; @@ -34,17 +34,21 @@ export const readStreamRoute = createServerRoute({ }), handler: async ({ params, request, getScopedClients }): Promise => { try { - const { scopedClusterClient } = await getScopedClients({ request }); + const { scopedClusterClient, assetClient } = await getScopedClients({ request }); const streamEntity = await readStream({ scopedClusterClient, id: params.path.id, }); + const dashboards = await assetClient.getAssetIds({ + entityId: streamEntity.name, + entityType: 'stream', + assetType: 'dashboard', + }); - // TODO: I have no idea why I can just do `isIngestStream` here but when I do, - // streamEntity becomes `streamEntity: never` in the statements afterwards - if (!isWiredStream(streamEntity) && isIngestStream(streamEntity)) { + if (!isWiredStream(streamEntity)) { return { ...streamEntity, + dashboards, inherited_fields: {}, }; } @@ -54,8 +58,9 @@ export const readStreamRoute = createServerRoute({ scopedClusterClient, }); - const body = { + const body: WiredReadStreamDefinition = { ...streamEntity, + dashboards, inherited_fields: ancestors.reduce((acc, def) => { Object.entries(def.stream.ingest.wired.fields).forEach(([key, fieldDef]) => { acc[key] = { ...fieldDef, from: def.name }; diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/streams/resync.ts b/x-pack/solutions/observability/plugins/streams/server/routes/streams/resync.ts index 73955a2bd9bb5..eb3bad1db58d2 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/streams/resync.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/streams/resync.ts @@ -23,7 +23,7 @@ export const resyncStreamsRoute = createServerRoute({ }, params: z.object({}), handler: async ({ logger, request, getScopedClients }): Promise<{ acknowledged: true }> => { - const { scopedClusterClient } = await getScopedClients({ request }); + const { scopedClusterClient, assetClient } = await getScopedClients({ request }); const { streams } = await listStreams({ scopedClusterClient }); @@ -35,6 +35,7 @@ export const resyncStreamsRoute = createServerRoute({ await syncStream({ scopedClusterClient, + assetClient, definition, logger, }); diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/streams/sample.ts b/x-pack/solutions/observability/plugins/streams/server/routes/streams/sample.ts index f912e2e27fd96..1e4508149f4e7 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/streams/sample.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/streams/sample.ts @@ -7,10 +7,11 @@ import { z } from '@kbn/zod'; import { notFound, internal } from '@hapi/boom'; +import { errors } from '@elastic/elasticsearch'; import { conditionSchema } from '@kbn/streams-schema'; import { createServerRoute } from '../create_server_route'; import { DefinitionNotFound } from '../../lib/streams/errors'; -import { checkReadAccess } from '../../lib/streams/stream_crud'; +import { checkAccess } from '../../lib/streams/stream_crud'; import { conditionToQueryDsl } from '../../lib/streams/helpers/condition_to_query_dsl'; import { getFields, isComplete } from '../../lib/streams/helpers/condition_fields'; @@ -39,8 +40,8 @@ export const sampleStreamRoute = createServerRoute({ try { const { scopedClusterClient } = await getScopedClients({ request }); - const hasAccess = await checkReadAccess({ id: params.path.id, scopedClusterClient }); - if (!hasAccess) { + const { read } = await checkAccess({ id: params.path.id, scopedClusterClient }); + if (!read) { throw new DefinitionNotFound(`Stream definition for ${params.path.id} not found.`); } const searchBody = { @@ -84,16 +85,20 @@ export const sampleStreamRoute = createServerRoute({ }; const results = await scopedClusterClient.asCurrentUser.search({ index: params.path.id, + allow_no_indices: true, ...searchBody, }); return { documents: results.hits.hits.map((hit) => hit._source) }; - } catch (e) { - if (e instanceof DefinitionNotFound) { - throw notFound(e); + } catch (error) { + if (error instanceof errors.ResponseError && error.meta.statusCode === 404) { + throw notFound(error); + } + if (error instanceof DefinitionNotFound) { + throw notFound(error); } - throw internal(e); + throw internal(error); } }, }); diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/streams/schema/fields_simulation.ts b/x-pack/solutions/observability/plugins/streams/server/routes/streams/schema/fields_simulation.ts index 9db5a7013f01e..140a5ce7a3b29 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/streams/schema/fields_simulation.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/streams/schema/fields_simulation.ts @@ -11,7 +11,7 @@ import { getFlattenedObject } from '@kbn/std'; import { fieldDefinitionConfigSchema } from '@kbn/streams-schema'; import { createServerRoute } from '../../create_server_route'; import { DefinitionNotFound } from '../../../lib/streams/errors'; -import { checkReadAccess } from '../../../lib/streams/stream_crud'; +import { checkAccess } from '../../../lib/streams/stream_crud'; const SAMPLE_SIZE = 200; @@ -45,8 +45,8 @@ export const schemaFieldsSimulationRoute = createServerRoute({ try { const { scopedClusterClient } = await getScopedClients({ request }); - const hasAccess = await checkReadAccess({ id: params.path.id, scopedClusterClient }); - if (!hasAccess) { + const { read } = await checkAccess({ id: params.path.id, scopedClusterClient }); + if (!read) { throw new DefinitionNotFound(`Stream definition for ${params.path.id} not found.`); } diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/streams/schema/unmapped_fields.ts b/x-pack/solutions/observability/plugins/streams/server/routes/streams/schema/unmapped_fields.ts index 12faa12f9cee4..79013f57d9ca5 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/streams/schema/unmapped_fields.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/streams/schema/unmapped_fields.ts @@ -10,7 +10,7 @@ import { internal, notFound } from '@hapi/boom'; import { getFlattenedObject } from '@kbn/std'; import { isWiredStream } from '@kbn/streams-schema'; import { DefinitionNotFound } from '../../../lib/streams/errors'; -import { checkReadAccess, readAncestors, readStream } from '../../../lib/streams/stream_crud'; +import { checkAccess, readAncestors, readStream } from '../../../lib/streams/stream_crud'; import { createServerRoute } from '../../create_server_route'; const SAMPLE_SIZE = 500; @@ -34,8 +34,8 @@ export const unmappedFieldsRoute = createServerRoute({ try { const { scopedClusterClient } = await getScopedClients({ request }); - const hasAccess = await checkReadAccess({ id: params.path.id, scopedClusterClient }); - if (!hasAccess) { + const { read } = await checkAccess({ id: params.path.id, scopedClusterClient }); + if (!read) { throw new DefinitionNotFound(`Stream definition for ${params.path.id} not found.`); } diff --git a/x-pack/solutions/observability/plugins/streams/server/routes/types.ts b/x-pack/solutions/observability/plugins/streams/server/routes/types.ts index d547d56c088cd..3a9f903120e73 100644 --- a/x-pack/solutions/observability/plugins/streams/server/routes/types.ts +++ b/x-pack/solutions/observability/plugins/streams/server/routes/types.ts @@ -10,12 +10,16 @@ import { DefaultRouteHandlerResources } from '@kbn/server-route-repository'; import { IScopedClusterClient } from '@kbn/core-elasticsearch-server'; import { SavedObjectsClientContract } from '@kbn/core-saved-objects-api-server'; import { StreamsServer } from '../types'; +import { AssetService } from '../lib/streams/assets/asset_service'; +import { AssetClient } from '../lib/streams/assets/asset_client'; export interface RouteDependencies { + assets: AssetService; server: StreamsServer; getScopedClients: ({ request }: { request: KibanaRequest }) => Promise<{ scopedClusterClient: IScopedClusterClient; soClient: SavedObjectsClientContract; + assetClient: AssetClient; }>; } diff --git a/x-pack/solutions/observability/plugins/streams/server/types.ts b/x-pack/solutions/observability/plugins/streams/server/types.ts index f119faa0ed010..63ed5328082a7 100644 --- a/x-pack/solutions/observability/plugins/streams/server/types.ts +++ b/x-pack/solutions/observability/plugins/streams/server/types.ts @@ -5,18 +5,19 @@ * 2.0. */ -import { CoreStart, ElasticsearchClient, Logger } from '@kbn/core/server'; -import { SecurityPluginStart } from '@kbn/security-plugin/server'; -import { +import type { CoreStart, ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { SecurityPluginStart } from '@kbn/security-plugin/server'; +import type { EncryptedSavedObjectsPluginSetup, EncryptedSavedObjectsPluginStart, } from '@kbn/encrypted-saved-objects-plugin/server'; -import { LicensingPluginStart } from '@kbn/licensing-plugin/server'; -import { +import type { LicensingPluginStart } from '@kbn/licensing-plugin/server'; +import type { TaskManagerSetupContract, TaskManagerStartContract, } from '@kbn/task-manager-plugin/server'; -import { StreamsConfig } from '../common/config'; +import type { AlertingServerSetup, AlertingServerStart } from '@kbn/alerting-plugin/server'; +import type { StreamsConfig } from '../common/config'; export interface StreamsServer { core: CoreStart; @@ -35,6 +36,7 @@ export interface ElasticsearchAccessorOptions { export interface StreamsPluginSetupDependencies { encryptedSavedObjects: EncryptedSavedObjectsPluginSetup; taskManager: TaskManagerSetupContract; + alerting: AlertingServerSetup; } export interface StreamsPluginStartDependencies { @@ -42,4 +44,5 @@ export interface StreamsPluginStartDependencies { encryptedSavedObjects: EncryptedSavedObjectsPluginStart; licensing: LicensingPluginStart; taskManager: TaskManagerStartContract; + alerting: AlertingServerStart; } diff --git a/x-pack/solutions/observability/plugins/streams/tsconfig.json b/x-pack/solutions/observability/plugins/streams/tsconfig.json index 464f184918c96..27743fbd9f70c 100644 --- a/x-pack/solutions/observability/plugins/streams/tsconfig.json +++ b/x-pack/solutions/observability/plugins/streams/tsconfig.json @@ -30,6 +30,7 @@ "@kbn/server-route-repository-client", "@kbn/observability-utils-server", "@kbn/observability-utils-common", + "@kbn/alerting-plugin", "@kbn/std", "@kbn/safer-lodash-set", "@kbn/streams-schema" diff --git a/x-pack/solutions/observability/plugins/streams_app/.storybook/get_mock_streams_app_context.tsx b/x-pack/solutions/observability/plugins/streams_app/.storybook/get_mock_streams_app_context.tsx index cb3148a7f6644..8e5dad100fc31 100644 --- a/x-pack/solutions/observability/plugins/streams_app/.storybook/get_mock_streams_app_context.tsx +++ b/x-pack/solutions/observability/plugins/streams_app/.storybook/get_mock_streams_app_context.tsx @@ -13,6 +13,7 @@ import type { ObservabilitySharedPluginStart } from '@kbn/observability-shared-p import type { UnifiedSearchPublicPluginStart } from '@kbn/unified-search-plugin/public'; import type { SharePublicStart } from '@kbn/share-plugin/public/plugin'; import { NavigationPublicStart } from '@kbn/navigation-plugin/public/types'; +import type { SavedObjectTaggingPluginStart } from '@kbn/saved-objects-tagging-plugin/public'; import type { StreamsAppKibanaContext } from '../public/hooks/use_kibana'; export function getMockStreamsAppContext(): StreamsAppKibanaContext { @@ -29,6 +30,7 @@ export function getMockStreamsAppContext(): StreamsAppKibanaContext { streams: {} as unknown as StreamsPluginStart, share: {} as unknown as SharePublicStart, navigation: {} as unknown as NavigationPublicStart, + savedObjectsTagging: {} as unknown as SavedObjectTaggingPluginStart, }, }, services: { diff --git a/x-pack/solutions/observability/plugins/streams_app/kibana.jsonc b/x-pack/solutions/observability/plugins/streams_app/kibana.jsonc index 09f356f0654ba..dd1026e3aaf32 100644 --- a/x-pack/solutions/observability/plugins/streams_app/kibana.jsonc +++ b/x-pack/solutions/observability/plugins/streams_app/kibana.jsonc @@ -16,6 +16,7 @@ "dataViews", "unifiedSearch", "share", + "savedObjectsTagging", "navigation" ], "requiredBundles": [ diff --git a/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/add_dashboard_flyout.tsx b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/add_dashboard_flyout.tsx new file mode 100644 index 0000000000000..4e3918748e467 --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/add_dashboard_flyout.tsx @@ -0,0 +1,233 @@ +/* + * 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. + */ +import { + EuiButton, + EuiFilterButton, + EuiFilterGroup, + EuiFlexGroup, + EuiFlexItem, + EuiFlyout, + EuiFlyoutBody, + EuiFlyoutFooter, + EuiFlyoutHeader, + EuiPopover, + EuiPopoverTitle, + EuiSearchBar, + EuiSelectable, + EuiText, + EuiTitle, + useGeneratedHtmlId, +} from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { debounce } from 'lodash'; +import React, { useMemo, useState, useEffect } from 'react'; +import type { SanitizedDashboardAsset } from '@kbn/streams-plugin/server/routes/dashboards/route'; +import { useKibana } from '../../hooks/use_kibana'; +import { useStreamsAppFetch } from '../../hooks/use_streams_app_fetch'; +import { DashboardsTable } from './dashboard_table'; + +export function AddDashboardFlyout({ + entityId, + onAddDashboards, + linkedDashboards, + onClose, +}: { + entityId: string; + onAddDashboards: (dashboard: SanitizedDashboardAsset[]) => Promise; + linkedDashboards: SanitizedDashboardAsset[]; + onClose: () => void; +}) { + const { + dependencies: { + start: { + streams: { streamsRepositoryClient }, + savedObjectsTagging: { ui: savedObjectsTaggingUi }, + }, + }, + } = useKibana(); + + const [query, setQuery] = useState(''); + + const [submittedQuery, setSubmittedQuery] = useState(query); + const [selectedDashboards, setSelectedDashboards] = useState([]); + const [isLoading, setIsLoading] = useState(false); + const [selectedTags, setSelectedTags] = useState([]); + const [isPopoverOpen, setIsPopoverOpen] = useState(false); + + const setSubmittedQueryDebounced = useMemo(() => { + return debounce(setSubmittedQuery, 150); + }, []); + + const dashboardSuggestionsFetch = useStreamsAppFetch( + ({ signal }) => { + return streamsRepositoryClient + .fetch('POST /api/streams/{id}/dashboards/_suggestions', { + signal, + params: { + path: { + id: entityId, + }, + query: { + query: submittedQuery, + }, + body: { + tags: selectedTags, + }, + }, + }) + .then(({ suggestions }) => { + return { + dashboards: suggestions.filter((dashboard) => { + return !linkedDashboards.find( + (linkedDashboard) => linkedDashboard.id === dashboard.id + ); + }), + }; + }); + }, + [streamsRepositoryClient, entityId, submittedQuery, selectedTags, linkedDashboards] + ); + + const tagList = savedObjectsTaggingUi.getTagList(); + + const button = ( + setIsPopoverOpen(!isPopoverOpen)} + isSelected={isPopoverOpen} + numFilters={tagList.length} + hasActiveFilters={selectedTags.length > 0} + numActiveFilters={selectedTags.length} + > + {i18n.translate('xpack.streams.addDashboardFlyout.filterButtonLabel', { + defaultMessage: 'Tags', + })} + + ); + + const filterGroupPopoverId = useGeneratedHtmlId({ + prefix: 'filterGroupPopover', + }); + + useEffect(() => { + setSelectedDashboards([]); + }, [linkedDashboards]); + + const allDashboards = useMemo(() => { + return dashboardSuggestionsFetch.value?.dashboards || []; + }, [dashboardSuggestionsFetch.value]); + + return ( + + + +

+ {i18n.translate('xpack.streams.addDashboardFlyout.flyoutHeaderLabel', { + defaultMessage: 'Add dashboards', + })} +

+
+
+ + + + {i18n.translate('xpack.streams.addDashboardFlyout.helpLabel', { + defaultMessage: + 'Select dashboards which you want to add and assign to the {stream} stream', + values: { + stream: entityId, + }, + })} + + + + { + setQuery(queryText); + setSubmittedQueryDebounced(queryText); + }} + /> + + + + setIsPopoverOpen(false)} + panelPaddingSize="none" + > + ({ + label: tag.name, + checked: selectedTags.includes(tag.id) ? 'on' : undefined, + }))} + onChange={(newOptions) => { + setSelectedTags( + newOptions + .filter((option) => option.checked === 'on') + .map((option) => savedObjectsTaggingUi.getTagIdFromName(option.label)!) + ); + }} + > + {(list, search) => ( +
+ {search} + {list} +
+ )} +
+
+
+
+
+ +
+
+ + { + setIsLoading(true); + try { + await onAddDashboards(selectedDashboards); + } finally { + setIsLoading(false); + } + }} + > + {i18n.translate('xpack.streams.addDashboardFlyout.addDashboardsButtonLabel', { + defaultMessage: 'Add dashboards', + })} + + +
+ ); +} diff --git a/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/dashboard_table.tsx b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/dashboard_table.tsx new file mode 100644 index 0000000000000..eb04553ad88b1 --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/dashboard_table.tsx @@ -0,0 +1,85 @@ +/* + * 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. + */ +import { EuiBasicTable, EuiBasicTableColumn, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import React, { useMemo } from 'react'; +import type { SanitizedDashboardAsset } from '@kbn/streams-plugin/server/routes/dashboards/route'; +import { useKibana } from '../../hooks/use_kibana'; +import { tagListToReferenceList } from './to_reference_list'; + +export function DashboardsTable({ + dashboards, + compact = false, + selectedDashboards, + setSelectedDashboards, + loading, +}: { + loading: boolean; + dashboards: SanitizedDashboardAsset[] | undefined; + compact?: boolean; + selectedDashboards: SanitizedDashboardAsset[]; + setSelectedDashboards: (dashboards: SanitizedDashboardAsset[]) => void; +}) { + const { + dependencies: { + start: { + savedObjectsTagging: { ui: savedObjectsTaggingUi }, + }, + }, + } = useKibana(); + const columns = useMemo((): Array> => { + return [ + { + field: 'label', + name: i18n.translate('xpack.streams.dashboardTable.dashboardNameColumnTitle', { + defaultMessage: 'Dashboard name', + }), + }, + ...(!compact + ? ([ + { + field: 'tags', + name: i18n.translate('xpack.streams.dashboardTable.tagsColumnTitle', { + defaultMessage: 'Tags', + }), + render: (_, { tags }) => { + return ( + + + + ); + }, + }, + ] satisfies Array>) + : []), + ]; + }, [compact, savedObjectsTaggingUi]); + + const items = useMemo(() => { + return dashboards ?? []; + }, [dashboards]); + + return ( + + + { + setSelectedDashboards(newSelection); + }, + selected: selectedDashboards, + }} + /> + + ); +} diff --git a/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/index.tsx b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/index.tsx new file mode 100644 index 0000000000000..fbb98b877e71a --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/index.tsx @@ -0,0 +1,112 @@ +/* + * 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. + */ +import { EuiButton, EuiFlexGroup, EuiFlexItem, EuiSearchBar } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { StreamDefinition } from '@kbn/streams-schema'; +import React, { useMemo, useState } from 'react'; +import type { SanitizedDashboardAsset } from '@kbn/streams-plugin/server/routes/dashboards/route'; +import { AddDashboardFlyout } from './add_dashboard_flyout'; +import { DashboardsTable } from './dashboard_table'; +import { useDashboardsApi } from '../../hooks/use_dashboards_api'; +import { useDashboardsFetch } from '../../hooks/use_dashboards_fetch'; + +export function StreamDetailDashboardsView({ definition }: { definition?: StreamDefinition }) { + const [query, setQuery] = useState(''); + + const [isAddDashboardFlyoutOpen, setIsAddDashboardFlyoutOpen] = useState(false); + + const dashboardsFetch = useDashboardsFetch(definition?.name); + const { addDashboards, removeDashboards } = useDashboardsApi(definition?.name); + + const [isUnlinkLoading, setIsUnlinkLoading] = useState(false); + const linkedDashboards = useMemo(() => { + return dashboardsFetch.value?.dashboards ?? []; + }, [dashboardsFetch.value?.dashboards]); + + const filteredDashboards = useMemo(() => { + return linkedDashboards.filter((dashboard) => { + return dashboard.label.toLowerCase().includes(query.toLowerCase()); + }); + }, [linkedDashboards, query]); + + const [selectedDashboards, setSelectedDashboards] = useState([]); + + return ( + + + + {selectedDashboards.length > 0 && ( + { + try { + setIsUnlinkLoading(true); + + await removeDashboards(selectedDashboards); + await dashboardsFetch.refresh(); + + setSelectedDashboards([]); + } finally { + setIsUnlinkLoading(false); + } + }} + color="danger" + > + {i18n.translate('xpack.streams.streamDetailDashboardView.removeSelectedButtonLabel', { + defaultMessage: 'Unlink selected', + })} + + )} + { + setQuery(nextQuery.queryText); + }} + /> + { + setIsAddDashboardFlyoutOpen(true); + }} + > + {i18n.translate('xpack.streams.streamDetailDashboardView.addADashboardButtonLabel', { + defaultMessage: 'Add a dashboard', + })} + + + + + + {definition && isAddDashboardFlyoutOpen ? ( + { + await addDashboards(dashboards); + await dashboardsFetch.refresh(); + setIsAddDashboardFlyoutOpen(false); + }} + onClose={() => { + setIsAddDashboardFlyoutOpen(false); + }} + /> + ) : null} + + + ); +} diff --git a/x-pack/platform/plugins/shared/aiops/public/hooks/use_is_dark_theme.ts b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/to_reference_list.ts similarity index 50% rename from x-pack/platform/plugins/shared/aiops/public/hooks/use_is_dark_theme.ts rename to x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/to_reference_list.ts index 6dc15ffa9e25f..7daa7d7660eb3 100644 --- a/x-pack/platform/plugins/shared/aiops/public/hooks/use_is_dark_theme.ts +++ b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_dashboards_view/to_reference_list.ts @@ -5,10 +5,12 @@ * 2.0. */ -import { useIsDarkTheme as useIsDarkThemeMl } from '@kbn/ml-kibana-theme'; -import { useAiopsAppContext } from './use_aiops_app_context'; +import { SavedObjectReference } from '@kbn/core/public'; -export function useIsDarkTheme() { - const { theme } = useAiopsAppContext(); - return useIsDarkThemeMl(theme); +export function tagListToReferenceList(tags: string[]): SavedObjectReference[] { + return tags.map((tag) => ({ + id: tag, + name: 'tag', + type: 'tag', + })); } diff --git a/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_schema_editor/fields_table.tsx b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_schema_editor/fields_table.tsx index 1b6d0131a6bc2..1f068d9b0ac16 100644 --- a/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_schema_editor/fields_table.tsx +++ b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_schema_editor/fields_table.tsx @@ -22,7 +22,7 @@ import type { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import useToggle from 'react-use/lib/useToggle'; -import { isWiredReadStream, ReadStreamDefinition } from '@kbn/streams-schema'; +import { isRootStream, isWiredReadStream, ReadStreamDefinition } from '@kbn/streams-schema'; import { FieldType } from './field_type'; import { FieldStatus } from './field_status'; import { FieldEntry, SchemaEditorEditingState } from './hooks/use_editing_state'; @@ -155,111 +155,113 @@ const FieldsTable = ({ definition, fields, editingState, unpromotingState }: Fie const [visibleColumns, setVisibleColumns] = useState(Object.keys(COLUMNS)); const trailingColumns = useMemo(() => { - return [ - { - id: 'actions', - width: 40, - headerCellRender: () => null, - rowCellRender: ({ rowIndex }) => { - const field = fields[rowIndex]; + return !isRootStream(definition) + ? ([ + { + id: 'actions', + width: 40, + headerCellRender: () => null, + rowCellRender: ({ rowIndex }) => { + const field = fields[rowIndex]; - let actions: ActionsCellActionsDescriptor[] = []; + let actions: ActionsCellActionsDescriptor[] = []; - switch (field.status) { - case 'mapped': - actions = [ - { - name: i18n.translate('xpack.streams.actions.viewFieldLabel', { - defaultMessage: 'View field', - }), - disabled: editingState.isSaving, - onClick: (fieldEntry: FieldEntry) => { - editingState.selectField(fieldEntry, false); - }, - }, - { - name: i18n.translate('xpack.streams.actions.editFieldLabel', { - defaultMessage: 'Edit field', - }), - disabled: editingState.isSaving, - onClick: (fieldEntry: FieldEntry) => { - editingState.selectField(fieldEntry, true); - }, - }, - { - name: i18n.translate('xpack.streams.actions.unpromoteFieldLabel', { - defaultMessage: 'Unmap field', - }), - disabled: unpromotingState.isUnpromotingField, - onClick: (fieldEntry: FieldEntry) => { - unpromotingState.setSelectedField(fieldEntry.name); - }, - }, - ]; - break; - case 'unmapped': - actions = [ - { - name: i18n.translate('xpack.streams.actions.viewFieldLabel', { - defaultMessage: 'View field', - }), - disabled: editingState.isSaving, - onClick: (fieldEntry: FieldEntry) => { - editingState.selectField(fieldEntry, false); - }, - }, - { - name: i18n.translate('xpack.streams.actions.mapFieldLabel', { - defaultMessage: 'Map field', - }), - disabled: editingState.isSaving, - onClick: (fieldEntry: FieldEntry) => { - editingState.selectField(fieldEntry, true); - }, - }, - ]; - break; - case 'inherited': - actions = [ - { - name: i18n.translate('xpack.streams.actions.viewFieldLabel', { - defaultMessage: 'View field', - }), - disabled: editingState.isSaving, - onClick: (fieldEntry: FieldEntry) => { - editingState.selectField(fieldEntry, false); - }, - }, - ]; - break; - } + switch (field.status) { + case 'mapped': + actions = [ + { + name: i18n.translate('xpack.streams.actions.viewFieldLabel', { + defaultMessage: 'View field', + }), + disabled: editingState.isSaving, + onClick: (fieldEntry: FieldEntry) => { + editingState.selectField(fieldEntry, false); + }, + }, + { + name: i18n.translate('xpack.streams.actions.editFieldLabel', { + defaultMessage: 'Edit field', + }), + disabled: editingState.isSaving, + onClick: (fieldEntry: FieldEntry) => { + editingState.selectField(fieldEntry, true); + }, + }, + { + name: i18n.translate('xpack.streams.actions.unpromoteFieldLabel', { + defaultMessage: 'Unmap field', + }), + disabled: unpromotingState.isUnpromotingField, + onClick: (fieldEntry: FieldEntry) => { + unpromotingState.setSelectedField(fieldEntry.name); + }, + }, + ]; + break; + case 'unmapped': + actions = [ + { + name: i18n.translate('xpack.streams.actions.viewFieldLabel', { + defaultMessage: 'View field', + }), + disabled: editingState.isSaving, + onClick: (fieldEntry: FieldEntry) => { + editingState.selectField(fieldEntry, false); + }, + }, + { + name: i18n.translate('xpack.streams.actions.mapFieldLabel', { + defaultMessage: 'Map field', + }), + disabled: editingState.isSaving, + onClick: (fieldEntry: FieldEntry) => { + editingState.selectField(fieldEntry, true); + }, + }, + ]; + break; + case 'inherited': + actions = [ + { + name: i18n.translate('xpack.streams.actions.viewFieldLabel', { + defaultMessage: 'View field', + }), + disabled: editingState.isSaving, + onClick: (fieldEntry: FieldEntry) => { + editingState.selectField(fieldEntry, false); + }, + }, + ]; + break; + } - return ( - ({ - name: action.name, - icon: action.icon, - onClick: (event) => { - action.onClick(field); + id: 0, + title: i18n.translate( + 'xpack.streams.streamDetailSchemaEditorFieldsTableActionsTitle', + { + defaultMessage: 'Actions', + } + ), + items: actions.map((action) => ({ + name: action.name, + icon: action.icon, + onClick: (event) => { + action.onClick(field); + }, + })), }, - })), - }, - ]} - /> - ); - }, - }, - ] as EuiDataGridProps['trailingControlColumns']; - }, [editingState, fields, unpromotingState]); + ]} + /> + ); + }, + }, + ] as EuiDataGridProps['trailingControlColumns']) + : undefined; + }, [definition, editingState, fields, unpromotingState]); return ( , + label: i18n.translate('xpack.streams.streamDetailView.dashboardsTab', { + defaultMessage: 'Dashboards', + }), + }, { name: 'management', content: ( diff --git a/x-pack/solutions/observability/plugins/streams_app/public/hooks/use_dashboards_api.ts b/x-pack/solutions/observability/plugins/streams_app/public/hooks/use_dashboards_api.ts new file mode 100644 index 0000000000000..57f40a36cef68 --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams_app/public/hooks/use_dashboards_api.ts @@ -0,0 +1,71 @@ +/* + * 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. + */ +import { useCallback } from 'react'; +import { useAbortController } from '@kbn/observability-utils-browser/hooks/use_abort_controller'; +import type { SanitizedDashboardAsset } from '@kbn/streams-plugin/server/routes/dashboards/route'; +import { useKibana } from './use_kibana'; + +export const useDashboardsApi = (id?: string) => { + const { signal } = useAbortController(); + const { + dependencies: { + start: { + streams: { streamsRepositoryClient }, + }, + }, + } = useKibana(); + + const addDashboards = useCallback( + async (dashboards: SanitizedDashboardAsset[]) => { + if (!id) { + return; + } + + await streamsRepositoryClient.fetch('POST /api/streams/{id}/dashboards/_bulk', { + signal, + params: { + path: { + id, + }, + body: { + operations: dashboards.map((dashboard) => { + return { index: { id: dashboard.id } }; + }), + }, + }, + }); + }, + [id, signal, streamsRepositoryClient] + ); + + const removeDashboards = useCallback( + async (dashboards: SanitizedDashboardAsset[]) => { + if (!id) { + return; + } + await streamsRepositoryClient.fetch('POST /api/streams/{id}/dashboards/_bulk', { + signal, + params: { + path: { + id, + }, + body: { + operations: dashboards.map((dashboard) => { + return { delete: { id: dashboard.id } }; + }), + }, + }, + }); + }, + [id, signal, streamsRepositoryClient] + ); + + return { + addDashboards, + removeDashboards, + }; +}; diff --git a/x-pack/solutions/observability/plugins/streams_app/public/hooks/use_dashboards_fetch.ts b/x-pack/solutions/observability/plugins/streams_app/public/hooks/use_dashboards_fetch.ts new file mode 100644 index 0000000000000..c03e0cb2ea46f --- /dev/null +++ b/x-pack/solutions/observability/plugins/streams_app/public/hooks/use_dashboards_fetch.ts @@ -0,0 +1,37 @@ +/* + * 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. + */ +import { useKibana } from './use_kibana'; +import { useStreamsAppFetch } from './use_streams_app_fetch'; + +export const useDashboardsFetch = (id?: string) => { + const { + dependencies: { + start: { + streams: { streamsRepositoryClient }, + }, + }, + } = useKibana(); + + const dashboardsFetch = useStreamsAppFetch( + ({ signal }) => { + if (!id) { + return Promise.resolve(undefined); + } + return streamsRepositoryClient.fetch('GET /api/streams/{id}/dashboards', { + signal, + params: { + path: { + id, + }, + }, + }); + }, + [id, streamsRepositoryClient] + ); + + return dashboardsFetch; +}; diff --git a/x-pack/solutions/observability/plugins/streams_app/public/hooks/use_streams_app_fetch.ts b/x-pack/solutions/observability/plugins/streams_app/public/hooks/use_streams_app_fetch.ts index 45911cbda851a..c70f5316a5847 100644 --- a/x-pack/solutions/observability/plugins/streams_app/public/hooks/use_streams_app_fetch.ts +++ b/x-pack/solutions/observability/plugins/streams_app/public/hooks/use_streams_app_fetch.ts @@ -11,6 +11,7 @@ import { useAbortableAsync, } from '@kbn/observability-utils-browser/hooks/use_abortable_async'; import { omit } from 'lodash'; +import { isRequestAbortedError } from '@kbn/server-route-repository-client'; import { useKibana } from './use_kibana'; export const useStreamsAppFetch: UseAbortableAsync<{}, { disableToastOnError?: boolean }> = ( @@ -25,7 +26,7 @@ export const useStreamsAppFetch: UseAbortableAsync<{}, { disableToastOnError?: b const onError = (error: Error) => { let requestUrl: string | undefined; - if (!options?.disableToastOnError) { + if (!options?.disableToastOnError && !isRequestAbortedError(error)) { if ( 'body' in error && typeof error.body === 'object' && diff --git a/x-pack/solutions/observability/plugins/streams_app/public/types.ts b/x-pack/solutions/observability/plugins/streams_app/public/types.ts index 680dd008d2e1f..8896a7aedfb4d 100644 --- a/x-pack/solutions/observability/plugins/streams_app/public/types.ts +++ b/x-pack/solutions/observability/plugins/streams_app/public/types.ts @@ -16,6 +16,7 @@ import type { import type { StreamsPluginSetup, StreamsPluginStart } from '@kbn/streams-plugin/public'; import type { UnifiedSearchPublicPluginStart } from '@kbn/unified-search-plugin/public'; import type { SharePublicSetup, SharePublicStart } from '@kbn/share-plugin/public/plugin'; +import type { SavedObjectTaggingPluginStart } from '@kbn/saved-objects-tagging-plugin/public'; import { NavigationPublicStart } from '@kbn/navigation-plugin/public/types'; /* eslint-disable @typescript-eslint/no-empty-interface*/ @@ -37,6 +38,7 @@ export interface StreamsAppStartDependencies { observabilityShared: ObservabilitySharedPluginStart; unifiedSearch: UnifiedSearchPublicPluginStart; share: SharePublicStart; + savedObjectsTagging: SavedObjectTaggingPluginStart; navigation: NavigationPublicStart; } diff --git a/x-pack/solutions/observability/plugins/streams_app/tsconfig.json b/x-pack/solutions/observability/plugins/streams_app/tsconfig.json index 7824c84d6ea6b..38923832b4b04 100644 --- a/x-pack/solutions/observability/plugins/streams_app/tsconfig.json +++ b/x-pack/solutions/observability/plugins/streams_app/tsconfig.json @@ -4,7 +4,6 @@ "outDir": "target/types" }, "include": [ - "../../../../../typings/**/*", "common/**/*", "public/**/*", "typings/**/*", @@ -14,18 +13,28 @@ ], "exclude": ["target/**/*", ".storybook/**/*.js"], "kbn_references": [ + "@kbn/i18n", + "@kbn/streams-plugin", "@kbn/core", "@kbn/data-plugin", "@kbn/data-views-plugin", "@kbn/observability-shared-plugin", "@kbn/unified-search-plugin", - "@kbn/react-kibana-context-render", + "@kbn/share-plugin", + "@kbn/navigation-plugin", + "@kbn/saved-objects-tagging-plugin", "@kbn/shared-ux-link-redirect-app", "@kbn/typed-react-router-config", - "@kbn/i18n", + "@kbn/react-kibana-context-render", + "@kbn/code-editor", "@kbn/observability-utils-browser", + "@kbn/observability-utils-server", + "@kbn/ui-theme", + "@kbn/calculate-auto", + "@kbn/core-notifications-browser", "@kbn/kibana-react-plugin", "@kbn/es-query", + "@kbn/server-route-repository-client", "@kbn/logging", "@kbn/deeplinks-observability", "@kbn/config-schema", diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/hooks/use_monitor_filters.test.ts b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/hooks/use_monitor_filters.test.ts index 830e2bce119ce..70ca977ce1b59 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/hooks/use_monitor_filters.test.ts +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitors_page/hooks/use_monitor_filters.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import * as spaceHook from '../../../../../hooks/use_kibana_space'; import * as paramHook from '../../../hooks/use_url_params'; import * as redux from 'react-redux'; diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/components/generated_config_fields.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/components/generated_config_fields.tsx index 53cbf579a940f..a905242c90fec 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/components/generated_config_fields.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/components/generated_config_fields.tsx @@ -97,6 +97,9 @@ export const GeneratedConfigFields: React.FC = ({ setIsModalVisible(false); }; + const showApiKeyInfoForSelfManagedConnector = !connector.is_native; + const showApiKeyBanner = showApiKeyInfoForSelfManagedConnector && apiKey?.encoded; + return ( <> {isModalVisible && } @@ -193,96 +196,99 @@ export const GeneratedConfigFields: React.FC = ({ )} - - + {showApiKeyInfoForSelfManagedConnector && ( + <> + + + + + + + {i18n.translate( + 'xpack.enterpriseSearch.connectorDeployment.apiKeyCreatedFlexItemLabel', + { defaultMessage: 'API key created' } + )} + {apiKey?.encoded && ` *`} + + + - + + {apiKey?.name} + - {i18n.translate( - 'xpack.enterpriseSearch.connectorDeployment.apiKeyCreatedFlexItemLabel', - { defaultMessage: 'API key created' } - )} - {apiKey?.encoded && ` *`} - - - - - - {apiKey?.name} - - - - - {apiKey?.encoded ? ( - - - {(copy) => ( - - - {apiKey?.encoded} - - {generateApiKey && ( - - - - )} - - + {apiKey?.encoded ? ( + + + {(copy) => ( + + + {apiKey?.encoded} + + {generateApiKey && ( + + + )} - /> - - - )} - - - ) : ( - generateApiKey && ( - - - - ) - )} - - + + + + + )} + + + ) : ( + generateApiKey && ( + + + + ) + )} + + + + )} - - {apiKey?.encoded && ( + {showApiKeyBanner && ( <> [selectors.hasAdvancedFilteringFeature, selectors.hasBasicFilteringFeature], (advancedFeature: boolean, basicFeature: boolean) => advancedFeature || basicFeature, ], + hasIncrementalSyncFeature: [ () => [selectors.connector], (connector?: Connector) => hasIncrementalSyncFeature(connector), @@ -231,6 +237,14 @@ export const ConnectorViewLogic = kea [selectors.connector], + (connector: Connector) => { + if (!connector || !connector.is_native) return false; + + return !hasConnectorBeenSeenRecently(connector); + }, + ], pipelineData: [ () => [selectors.connector], (connector: Connector | undefined) => connector?.pipeline ?? undefined, diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/overview.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/overview.tsx index 3fdd3d379eacb..9024f67858d33 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/overview.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/overview.tsx @@ -9,7 +9,17 @@ import React from 'react'; import { useActions, useValues } from 'kea'; -import { EuiButton, EuiCallOut, EuiCode, EuiLink, EuiSpacer, EuiText } from '@elastic/eui'; +import { + EuiButton, + EuiCallOut, + EuiCode, + EuiFlexGroup, + EuiFlexItem, + EuiLink, + EuiLoadingSpinner, + EuiSpacer, + EuiText, +} from '@elastic/eui'; import { i18n } from '@kbn/i18n'; @@ -38,7 +48,7 @@ import { ConnectorViewLogic } from './connector_view_logic'; export const ConnectorDetailOverview: React.FC = () => { const { indexData } = useValues(IndexViewLogic); - const { connector, error } = useValues(ConnectorViewLogic); + const { connector, error, isWaitingOnAgentlessDeployment } = useValues(ConnectorViewLogic); const { isCloud } = useValues(KibanaLogic); const { showModal } = useActions(ConvertConnectorLogic); const { isModalVisible } = useValues(ConvertConnectorLogic); @@ -73,6 +83,39 @@ export const ConnectorDetailOverview: React.FC = () => { ) } + {isWaitingOnAgentlessDeployment && ( + <> + + + + + + {i18n.translate( + 'xpack.enterpriseSearch.content.connectors.overview.agentlessDeploymentNotReadyCallOut.title', + { + defaultMessage: 'Provisioning infrastructure', + } + )} + + + } + > + + + {i18n.translate( + 'xpack.enterpriseSearch.content.connectors.overview.agentlessDeploymentNotReadyCallOut.description', + { + defaultMessage: 'Setting up the agentless infrastructure to run the connector.', + } + )} + + + + + )} {error && ( <> = ({ isCrawler }) => { +export const Connectors: React.FC = ({ isCrawler, isCrawlerSelfManaged }) => { const { fetchConnectors, onPaginate, setIsFirstRequest, openDeleteModal } = useActions(ConnectorsLogic); const { data, isLoading, searchParams, isEmpty, connectors } = useValues(ConnectorsLogic); - const { errorConnectingMessage } = useValues(HttpLogic); const [searchQuery, setSearchValue] = useState(''); const [showMoreOptionsPopover, setShowMoreOptionsPopover] = useState(false); const [showDefaultSettingsFlyout, setShowDefaultSettingsFlyout] = useState(false); @@ -95,6 +97,29 @@ export const Connectors: React.FC = ({ isCrawler }) => { : i18n.translate('xpack.enterpriseSearch.crawlers.title', { defaultMessage: 'Elastic Web Crawler', }), + description: [ + +

+ + {LEARN_MORE_LINK} + + ), + }} + /> +

+
, + ], + rightSideGroupProps: { gutterSize: 's', responsive: false, @@ -199,52 +224,26 @@ export const Connectors: React.FC = ({ isCrawler }) => { ] : []), ] - : [ - { - KibanaLogic.values.navigateToUrl(NEW_CRAWLER_PATH); - }} - > - {i18n.translate('xpack.enterpriseSearch.connectors.newCrawlerButtonLabel', { - defaultMessage: 'New web crawler', - })} - , - ...(productFeatures.hasDefaultIngestPipeline - ? [ - setShowDefaultSettingsFlyout(true)} - > - {i18n.translate( - 'xpack.enterpriseSearch.content.searchIndices.defaultSettings', - { - defaultMessage: 'Default settings', - } - )} - , - ] - : []), - ], + : undefined, }} > {productFeatures.hasDefaultIngestPipeline && showDefaultSettingsFlyout && ( setShowDefaultSettingsFlyout(false)} /> )} - - + {!isCrawler && ( + <> + + + + )} {isEmpty && isCrawler ? ( - + isCrawlerSelfManaged ? ( + + ) : ( + + ) ) : ( <> diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/crawler_empty_state.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/crawler_empty_state.tsx deleted file mode 100644 index 2dc97fb86c04f..0000000000000 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/crawler_empty_state.tsx +++ /dev/null @@ -1,79 +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. - */ -import React from 'react'; - -import { useValues } from 'kea'; - -import { EuiButton, EuiEmptyPrompt, EuiPanel } from '@elastic/eui'; -import { i18n } from '@kbn/i18n'; - -import { HttpLogic } from '../../../shared/http'; -import { GithubIcon } from '../../../shared/icons/github_icon'; -import { KibanaLogic } from '../../../shared/kibana'; -import { NEW_CRAWLER_PATH } from '../../routes'; - -export const CrawlerEmptyState: React.FC = () => { - const { errorConnectingMessage } = useValues(HttpLogic); - return ( - - - {i18n.translate('xpack.enterpriseSearch.crawlerEmptyState.h2.createYourFirstWebLabel', { - defaultMessage: 'Create your first web crawler', - })} - - } - titleSize="m" - body={ -

- {i18n.translate( - 'xpack.enterpriseSearch.crawlerEmptyState.p.discoverExtractAndIndexLabel', - { - defaultMessage: - 'Discover extract and index searchable content from websites and knowledge bases', - } - )} -

- } - actions={ - Boolean(errorConnectingMessage) ? ( - - {i18n.translate( - 'xpack.enterpriseSearch.crawlerEmptyState.openSourceCrawlerButtonLabel', - { - defaultMessage: 'Source code', - } - )} - - ) : ( - KibanaLogic.values.navigateToUrl(NEW_CRAWLER_PATH)} - > - {i18n.translate('xpack.enterpriseSearch.crawlerEmptyState.newWebCrawlerButtonLabel', { - defaultMessage: 'New web crawler', - })} - - ) - } - /> -
- ); -}; diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/crawlers_router.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/crawlers_router.tsx index 35c7e9ce56ec3..9242d4c5a1b35 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/crawlers_router.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/crawlers_router.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { Routes, Route } from '@kbn/shared-ux-router'; -import { CRAWLERS_PATH, NEW_CRAWLER_PATH } from '../../routes'; +import { CRAWLERS_PATH, CRAWLERS_ELASTIC_MANAGED_PATH, NEW_CRAWLER_PATH } from '../../routes'; import { NewSearchIndexPage } from '../new_index/new_search_index_page'; import { Connectors } from './connectors'; @@ -20,8 +20,11 @@ export const CrawlersRouter: React.FC = () => { - - + + + + + ); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/components/choose_connector.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/components/choose_connector.tsx index 21fa8e3f89f6d..f8d1d6e824e95 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/components/choose_connector.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/components/choose_connector.tsx @@ -37,12 +37,16 @@ import { SelfManagePreference } from '../create_connector'; interface ChooseConnectorSelectableProps { selfManaged: SelfManagePreference; + disabled?: boolean; } interface OptionData { secondaryContent?: string; } -export const ChooseConnector: React.FC = ({ selfManaged }) => { +export const ChooseConnector: React.FC = ({ + selfManaged, + disabled, +}) => { const { euiTheme } = useEuiTheme(); const [selectedOption, setSelectedOption] = useState>>( [] @@ -142,6 +146,7 @@ export const ChooseConnector: React.FC = ({ self return ( = ({ title, setCurrentStep }) => { - const { connector } = useValues(ConnectorViewLogic); + const { connector, isWaitingOnAgentlessDeployment } = useValues(ConnectorViewLogic); const { updateConnectorConfiguration } = useActions(ConnectorViewLogic); const { setFormDirty } = useActions(NewConnectorLogic); const { overlays } = useKibana().services; @@ -46,10 +48,12 @@ export const ConfigurationStep: React.FC = ({ title, set const { status } = useValues(ConnectorConfigurationApiLogic); const isSyncing = false; - const isNextStepEnabled = + const isConnectorConfigured = connector?.status === ConnectorStatus.CONNECTED || connector?.status === ConnectorStatus.CONFIGURED; + const isNextStepEnabled = !isWaitingOnAgentlessDeployment && isConnectorConfigured; + useEffect(() => { setTimeout(() => { window.scrollTo({ @@ -64,6 +68,37 @@ export const ConfigurationStep: React.FC = ({ title, set return ( <> + {isWaitingOnAgentlessDeployment && ( + + + + + + {i18n.translate( + 'xpack.enterpriseSearch.createConnector.configurationStep.agentlessDeploymentNotReadyCallOut.title', + { + defaultMessage: 'Provisioning infrastructure', + } + )} + + + } + > + + + {i18n.translate( + 'xpack.enterpriseSearch.createConnector.configurationStep.agentlessDeploymentNotReadyCallOut.description', + { + defaultMessage: + 'Setting up the agentless infrastructure to run the connector. This process may take up to one minute.', + } + )} + +
+ )} @@ -114,6 +149,7 @@ export const ConfigurationStep: React.FC = ({ title, set { if (isFormEditing) { diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx index 978a87fec1220..c0d7a2af0a682 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx @@ -107,7 +107,7 @@ export const StartStep: React.FC = ({ { defaultMessage: 'Connector' } )} > - + @@ -138,7 +138,7 @@ export const StartStep: React.FC = ({ = ({ } > diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/elastic_managed_web_crawler_empty_prompt.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/elastic_managed_web_crawler_empty_prompt.tsx new file mode 100644 index 0000000000000..9871238a4bcf1 --- /dev/null +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/elastic_managed_web_crawler_empty_prompt.tsx @@ -0,0 +1,117 @@ +/* + * 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. + */ +import React from 'react'; + +import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiPanel, EuiText } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { SearchEmptyPrompt, DecorativeHorizontalStepper } from '@kbn/search-shared-ui'; + +import { BACK_BUTTON_LABEL, COMING_SOON_LABEL } from '../../../shared/constants'; +import CrawlerIcon from '../../../shared/icons/web_crawlers.svg'; +import { KibanaLogic } from '../../../shared/kibana'; +import { CRAWLERS_PATH } from '../../routes'; + +export const ElasticManagedWebCrawlerEmptyPrompt: React.FC = () => { + return ( + KibanaLogic.values.navigateToUrl(CRAWLERS_PATH), + }} + icon={CrawlerIcon} + title={i18n.translate('xpack.enterpriseSearch.elasticManagedWebCrawlerEmpty.title', { + defaultMessage: 'Elastic managed web crawlers', + })} + isComingSoon + comingSoonLabel={COMING_SOON_LABEL} + description={i18n.translate( + 'xpack.enterpriseSearch.elasticManagedWebCrawlerEmpty.description', + { + defaultMessage: + "We're actively developing Elastic managed web crawlers, that won't require any self-managed infrastructure. You'll be able to handle all configuration in the UI. This will simplify syncing your data into a serverless Elasticsearch project. This new workflow will have two steps:", + } + )} + body={ + + + + + + + + + + + + + + + + + + +

+ {i18n.translate( + 'xpack.enterpriseSearch.elasticManagedWebCrawlerEmpty.guideOneDescription', + { + defaultMessage: 'Set one or more domain URLs you want to crawl', + } + )} +

+
+
+
+
+ + + + + + + + + + + + + + +

+ {i18n.translate( + 'xpack.enterpriseSearch.elasticManagedWebCrawlerEmpty.guideThreeDescription', + { + defaultMessage: 'Configure all the web crawler process using Kibana', + } + )} +

+
+
+
+
+
+
+
+
+ } + /> + ); +}; diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/self_managed_web_crawler_empty_prompt.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/self_managed_web_crawler_empty_prompt.tsx new file mode 100644 index 0000000000000..cf10b5a0603c6 --- /dev/null +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/self_managed_web_crawler_empty_prompt.tsx @@ -0,0 +1,222 @@ +/* + * 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. + */ +import React from 'react'; + +import { + EuiBadge, + EuiButton, + EuiFlexGroup, + EuiFlexItem, + EuiIcon, + EuiLink, + EuiPanel, + EuiText, +} from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { FormattedMessage } from '@kbn/i18n-react'; +import { SearchEmptyPrompt, DecorativeHorizontalStepper } from '@kbn/search-shared-ui'; + +import { COMING_SOON_LABEL } from '../../../shared/constants'; +import { GithubIcon } from '../../../shared/icons/github_icon'; +import CrawlerIcon from '../../../shared/icons/web_crawlers.svg'; +import { KibanaLogic } from '../../../shared/kibana'; +import { CRAWLERS_ELASTIC_MANAGED_PATH } from '../../routes'; + +export const SelfManagedWebCrawlerEmptyPrompt: React.FC = () => { + return ( + + + + + + + + + + + + + + + + + + + + + + +

+ + {i18n.translate( + 'xpack.enterpriseSearch.webCrawlersEmpty.sourceLabel', + { defaultMessage: 'source' } + )} + + ), + docker: ( + + {i18n.translate( + 'xpack.enterpriseSearch.webCrawlersEmpty.dockerLabel', + { defaultMessage: 'Docker' } + )} + + ), + }} + /> +

+
+
+
+
+ + + + + + + + + + + +

+ {i18n.translate( + 'xpack.enterpriseSearch.webCrawlersEmpty.guideOneDescription', + { + defaultMessage: 'Set one or more domain URLs you want to crawl', + } + )} +

+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +

+ {i18n.translate( + 'xpack.enterpriseSearch.webCrawlersEmpty.guideThreeDescription', + { + defaultMessage: + 'Configure your web crawler and connect it to Elasticsearch', + } + )} +

+
+
+
+
+
+
+
+ + } + actions={ + <> + + + {i18n.translate('xpack.enterpriseSearch.webCrawlersEmpty.selfManagedButton', { + defaultMessage: 'Self-managed web crawler', + })} + + + + + + KibanaLogic.values.navigateToUrl(CRAWLERS_ELASTIC_MANAGED_PATH)} + > + {i18n.translate('xpack.enterpriseSearch.webCrawlersEmpty.elasticManagedButton', { + defaultMessage: 'Elastic managed web crawler', + })} + + + + {COMING_SOON_LABEL} + + + + + } + /> + ); +}; diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/routes.ts b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/routes.ts index 092b60bf7666f..e35688a83d4a4 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/routes.ts +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/routes.ts @@ -13,6 +13,7 @@ export const ERROR_STATE_PATH = '/error_state'; export const SEARCH_INDICES_PATH = `${ROOT_PATH}search_indices`; export const CONNECTORS_PATH = `${ROOT_PATH}connectors`; export const CRAWLERS_PATH = `${ROOT_PATH}crawlers`; +export const CRAWLERS_ELASTIC_MANAGED_PATH = `${CRAWLERS_PATH}/elastic_managed`; export const SETTINGS_PATH = `${ROOT_PATH}settings`; export const NEW_INDEX_PATH = `${SEARCH_INDICES_PATH}/new_index`; diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/utils/connector_status_helpers.ts b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/utils/connector_status_helpers.ts index c9e2bb0dd2b45..115601749f1c8 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/utils/connector_status_helpers.ts +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/enterprise_search_content/utils/connector_status_helpers.ts @@ -26,6 +26,18 @@ export const getConnectorLastSeenError = (connector: Connector): string => { ); }; +// Determines if the connector has been seen recently. +// Note: The default heartbeat interval for the connector service is every 5 minutes. +// This is configured using the `service.heartbeat` key in: +// https://github.com/elastic/connectors/blob/main/connectors/config.py +export const hasConnectorBeenSeenRecently = ( + connector: Connector, + timeWindowMinutes: number = 10 +): boolean => + connector.last_seen + ? moment(connector.last_seen).isSameOrAfter(moment().subtract(timeWindowMinutes, 'minutes')) + : false; + const incompleteText = i18n.translate( 'xpack.enterpriseSearch.content.searchIndices.ingestionStatus.incomplete.label', { defaultMessage: 'Incomplete' } diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/constants/labels.ts b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/constants/labels.ts index dd4e13a6df278..76822c7db32f5 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/constants/labels.ts +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/constants/labels.ts @@ -31,6 +31,10 @@ export const TECH_PREVIEW_LABEL = i18n.translate('xpack.enterpriseSearch.techPre defaultMessage: 'Tech preview', }); +export const COMING_SOON_LABEL = i18n.translate('xpack.enterpriseSearch.comingSoonLabel', { + defaultMessage: 'Coming soon', +}); + export const NATIVE_LABEL = i18n.translate('xpack.enterpriseSearch.nativeLabel', { defaultMessage: 'Elastic managed', }); diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/icons/crawler.tsx b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/icons/crawler.tsx index 73b38816e8a54..91a3682ec1c58 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/icons/crawler.tsx +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/icons/crawler.tsx @@ -9,19 +9,14 @@ import React from 'react'; export const CrawlerIcon = () => { return ( - + - + ); }; diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/icons/web_crawlers.svg b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/icons/web_crawlers.svg new file mode 100644 index 0000000000000..d6e2464c0f003 --- /dev/null +++ b/x-pack/solutions/search/plugins/enterprise_search/public/applications/shared/icons/web_crawlers.svg @@ -0,0 +1,4 @@ + + + + diff --git a/x-pack/solutions/search/plugins/enterprise_search/server/plugin.ts b/x-pack/solutions/search/plugins/enterprise_search/server/plugin.ts index 3cd0cb9d060b0..6d4d04f300b74 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/server/plugin.ts +++ b/x-pack/solutions/search/plugins/enterprise_search/server/plugin.ts @@ -132,7 +132,7 @@ export interface RouteDependencies { router: IRouter; } -export class EnterpriseSearchPlugin implements Plugin { +export class EnterpriseSearchPlugin implements Plugin { private readonly config: ConfigType; private readonly logger: Logger; private readonly globalConfigService: GlobalConfigService; diff --git a/x-pack/solutions/search/plugins/enterprise_search/tsconfig.json b/x-pack/solutions/search/plugins/enterprise_search/tsconfig.json index 99d292f28078e..37449a170c766 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/tsconfig.json +++ b/x-pack/solutions/search/plugins/enterprise_search/tsconfig.json @@ -86,5 +86,6 @@ "@kbn/search-navigation", "@kbn/cell-actions", "@kbn/ui-actions-plugin", + "@kbn/search-shared-ui", ] } diff --git a/x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/mock/test_providers/test_providers.tsx b/x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/mock/test_providers/test_providers.tsx index cc769b011a52c..7165e699d059e 100644 --- a/x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/mock/test_providers/test_providers.tsx +++ b/x-pack/solutions/security/packages/ecs_data_quality_dashboard/impl/data_quality_panel/mock/test_providers/test_providers.tsx @@ -15,6 +15,8 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { Theme } from '@elastic/charts'; import { coreMock } from '@kbn/core/public/mocks'; import { UserProfileService } from '@kbn/core/public'; +import { chromeServiceMock } from '@kbn/core-chrome-browser-mocks'; +import { of } from 'rxjs'; import { I18nProvider } from '@kbn/i18n-react'; import { EuiThemeProvider } from '@elastic/eui'; @@ -65,6 +67,8 @@ const TestExternalProvidersComponent: React.FC = ({ error: () => {}, }, }); + const chrome = chromeServiceMock.createStartContract(); + chrome.getChromeStyle$.mockReturnValue(of('classic')); return ( @@ -86,6 +90,7 @@ const TestExternalProvidersComponent: React.FC = ({ navigateToApp={mockNavigateToApp} currentAppId={'securitySolutionUI'} userProfileService={jest.fn() as unknown as UserProfileService} + chrome={chrome} > {children} diff --git a/x-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json b/x-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json index 56115ca102a5d..8334bc4449955 100644 --- a/x-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json +++ b/x-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json @@ -22,6 +22,7 @@ "@kbn/core", "@kbn/core-notifications-browser", "@kbn/core-notifications-browser-mocks", + "@kbn/core-chrome-browser-mocks", "@kbn/ai-assistant-icon", "@kbn/react-kibana-context-render" ] diff --git a/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/hooks/use_fetch_graph_data.test.tsx b/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/hooks/use_fetch_graph_data.test.tsx index da5eaee9bfbf9..7a3b010aca1d7 100644 --- a/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/hooks/use_fetch_graph_data.test.tsx +++ b/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/hooks/use_fetch_graph_data.test.tsx @@ -5,10 +5,15 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useFetchGraphData } from './use_fetch_graph_data'; -const mockUseQuery = jest.fn(); +const mockUseQuery = jest.fn((...args: unknown[]) => ({ + isLoading: true, + data: null, + isError: false, + isFetching: true, +})); jest.mock('@tanstack/react-query', () => { return { 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/packages/upselling/sections/attack_discovery/assistant_avatar/assistant_avatar.tsx b/x-pack/solutions/security/packages/upselling/sections/attack_discovery/assistant_avatar/assistant_avatar.tsx deleted file mode 100644 index 912b7be80bbc1..0000000000000 --- a/x-pack/solutions/security/packages/upselling/sections/attack_discovery/assistant_avatar/assistant_avatar.tsx +++ /dev/null @@ -1,47 +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. - */ - -import React from 'react'; - -interface Props { - className?: string; - size?: keyof typeof sizeMap; -} - -export const sizeMap = { - xl: 64, - l: 48, - m: 32, - s: 24, - xs: 16, - xxs: 12, -}; - -/** - * Default Elastic AI Assistant logo - * - * @deprecated This component will soon be replaced by `AssistantIcon` from `@kbn/ai-assistant-icon`. - */ -export const AssistantAvatar = ({ className, size = 's' }: Props) => ( - - - - - - -); diff --git a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/executor.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/executor.test.ts deleted file mode 100644 index a01ac3d126e59..0000000000000 --- a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/executor.test.ts +++ /dev/null @@ -1,149 +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. - */ -/* - * 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. - */ - -import { executeAction, Props } from './executor'; -import { PassThrough } from 'stream'; -import { actionsClientMock } from '@kbn/actions-plugin/server/actions_client/actions_client.mock'; -import { loggerMock } from '@kbn/logging-mocks'; -import * as ParseStream from './parse_stream'; - -const onLlmResponse = jest.fn(async () => {}); // We need it to be a promise, or it'll crash because of missing `.catch` -const connectorId = 'testConnectorId'; -const mockLogger = loggerMock.create(); -const testProps: Omit = { - params: { - subAction: 'invokeAI', - subActionParams: { messages: [{ content: 'hello', role: 'user' }] }, - }, - actionTypeId: '.bedrock', - connectorId, - actionsClient: actionsClientMock.create(), - onLlmResponse, - logger: mockLogger, -}; - -const handleStreamStorageSpy = jest.spyOn(ParseStream, 'handleStreamStorage'); - -describe('executeAction', () => { - beforeEach(() => { - jest.clearAllMocks(); - }); - it('should execute an action and return a StaticResponse when the response from the actions framework is a string', async () => { - testProps.actionsClient.execute = jest.fn().mockResolvedValue({ - data: { - message: 'Test message', - }, - }); - - const result = await executeAction({ ...testProps }); - - expect(result).toEqual({ - connector_id: connectorId, - data: 'Test message', - status: 'ok', - }); - expect(onLlmResponse).toHaveBeenCalledWith('Test message'); - }); - - it('should execute an action and return a Readable object when the response from the actions framework is a stream', async () => { - const readableStream = new PassThrough(); - const actionsClient = actionsClientMock.create(); - actionsClient.execute.mockImplementationOnce( - jest.fn().mockResolvedValue({ - status: 'ok', - data: readableStream, - }) - ); - - const result = await executeAction({ ...testProps, actionsClient }); - - expect(JSON.stringify(result)).toStrictEqual( - JSON.stringify(readableStream.pipe(new PassThrough())) - ); - - expect(handleStreamStorageSpy).toHaveBeenCalledWith({ - actionTypeId: '.bedrock', - onMessageSent: onLlmResponse, - logger: mockLogger, - responseStream: readableStream, - }); - }); - - it('should throw an error if the actions client fails to execute the action', async () => { - const actionsClient = actionsClientMock.create(); - actionsClient.execute.mockRejectedValue(new Error('Failed to execute action')); - testProps.actionsClient = actionsClient; - - await expect(executeAction({ ...testProps, actionsClient })).rejects.toThrowError( - 'Failed to execute action' - ); - }); - - it('should throw an error when the response from the actions framework is null or undefined', async () => { - const actionsClient = actionsClientMock.create(); - actionsClient.execute.mockImplementationOnce( - jest.fn().mockResolvedValue({ - data: null, - }) - ); - testProps.actionsClient = actionsClient; - - try { - await executeAction({ ...testProps, actionsClient }); - } catch (e) { - expect(e.message).toBe('Action result status is error: result is not streamable'); - } - }); - - it('should throw an error if action result status is "error"', async () => { - const actionsClient = actionsClientMock.create(); - actionsClient.execute.mockImplementationOnce( - jest.fn().mockResolvedValue({ - status: 'error', - message: 'Error message', - serviceMessage: 'Service error message', - }) - ); - testProps.actionsClient = actionsClient; - - await expect( - executeAction({ - ...testProps, - actionsClient, - connectorId: '12345', - }) - ).rejects.toThrowError('Action result status is error: Error message - Service error message'); - }); - - it('should throw an error if content of response data is not a string or streamable', async () => { - const actionsClient = actionsClientMock.create(); - actionsClient.execute.mockImplementationOnce( - jest.fn().mockResolvedValue({ - status: 'ok', - data: { - message: 12345, - }, - }) - ); - testProps.actionsClient = actionsClient; - - await expect( - executeAction({ - ...testProps, - - actionsClient, - connectorId: '12345', - }) - ).rejects.toThrowError('Action result status is error: result is not streamable'); - }); -}); diff --git a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/executor.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/executor.ts deleted file mode 100644 index bd25a77808dbe..0000000000000 --- a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/executor.ts +++ /dev/null @@ -1,94 +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. - */ - -import { get } from 'lodash/fp'; -import { ActionsClient } from '@kbn/actions-plugin/server'; -import { PassThrough, Readable } from 'stream'; -import { Logger } from '@kbn/core/server'; -import { PublicMethodsOf } from '@kbn/utility-types'; -import { handleStreamStorage } from './parse_stream'; - -export interface Props { - onLlmResponse?: (content: string) => Promise; - abortSignal?: AbortSignal; - actionsClient: PublicMethodsOf; - connectorId: string; - params: InvokeAIActionsParams; - actionTypeId: string; - logger: Logger; -} -export interface StaticResponse { - connector_id: string; - data: string; - status: string; -} - -interface InvokeAIActionsParams { - subActionParams: { - messages: Array<{ role: string; content: string }>; - model?: string; - n?: number; - stop?: string | string[] | null; - stopSequences?: string[]; - temperature?: number; - }; - subAction: 'invokeAI' | 'invokeStream'; -} - -export const executeAction = async ({ - onLlmResponse, - actionsClient, - params, - connectorId, - actionTypeId, - logger, - abortSignal, -}: Props): Promise => { - const actionResult = await actionsClient.execute({ - actionId: connectorId, - params: { - subAction: params.subAction, - subActionParams: { - ...params.subActionParams, - signal: abortSignal, - }, - }, - }); - - if (actionResult.status === 'error') { - throw new Error( - `Action result status is error: ${actionResult?.message} - ${actionResult?.serviceMessage}` - ); - } - const content = get('data.message', actionResult); - if (typeof content === 'string') { - if (onLlmResponse) { - await onLlmResponse(content); - } - return { - connector_id: connectorId, - data: content, // the response from the actions framework - status: 'ok', - }; - } - - const readable = get('data', actionResult) as Readable; - if (typeof readable?.read !== 'function') { - throw new Error('Action result status is error: result is not streamable'); - } - - // do not await, blocks stream for UI - handleStreamStorage({ - actionTypeId, - onMessageSent: onLlmResponse, - logger, - responseStream: readable, - abortSignal, - }).catch(() => {}); - - return readable.pipe(new PassThrough()); -}; diff --git a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/helpers.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/helpers.test.ts index 32f2b808b41a1..f8f84b8c2cc0a 100644 --- a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/helpers.test.ts +++ b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/helpers.test.ts @@ -74,35 +74,24 @@ describe('streamGraph', () => { describe('OpenAI Function Agent streaming', () => { it('should execute the graph in streaming mode - OpenAI + isOssModel = false', async () => { mockStreamEvents.mockReturnValue({ - next: jest - .fn() - .mockResolvedValueOnce({ - value: { - name: 'ActionsClientChatOpenAI', - event: 'on_llm_stream', - data: { chunk: { message: { content: 'content' } } }, - tags: [AGENT_NODE_TAG], - }, - done: false, - }) - .mockResolvedValueOnce({ - value: { - name: 'ActionsClientChatOpenAI', - event: 'on_llm_end', - data: { - output: { - generations: [ - [{ generationInfo: { finish_reason: 'stop' }, text: 'final message' }], - ], - }, + async *[Symbol.asyncIterator]() { + yield { + event: 'on_llm_stream', + data: { chunk: { message: { content: 'content' } } }, + tags: [AGENT_NODE_TAG], + }; + yield { + event: 'on_llm_end', + data: { + output: { + generations: [ + [{ generationInfo: { finish_reason: 'stop' }, text: 'final message' }], + ], }, - tags: [AGENT_NODE_TAG], }, - }) - .mockResolvedValue({ - done: true, - }), - return: jest.fn(), + tags: [AGENT_NODE_TAG], + }; + }, }); const response = await streamGraph(requestArgs); @@ -119,33 +108,22 @@ describe('streamGraph', () => { }); it('on_llm_end events with finish_reason != stop should not end the stream', async () => { mockStreamEvents.mockReturnValue({ - next: jest - .fn() - .mockResolvedValueOnce({ - value: { - name: 'ActionsClientChatOpenAI', - event: 'on_llm_stream', - data: { chunk: { message: { content: 'content' } } }, - tags: [AGENT_NODE_TAG], - }, - done: false, - }) - .mockResolvedValueOnce({ - value: { - name: 'ActionsClientChatOpenAI', - event: 'on_llm_end', - data: { - output: { - generations: [[{ generationInfo: { finish_reason: 'function_call' }, text: '' }]], - }, + async *[Symbol.asyncIterator]() { + yield { + event: 'on_llm_stream', + data: { chunk: { message: { content: 'content' } } }, + tags: [AGENT_NODE_TAG], + }; + yield { + event: 'on_llm_end', + data: { + output: { + generations: [[{ generationInfo: { finish_reason: 'function_call' }, text: '' }]], }, - tags: [AGENT_NODE_TAG], }, - }) - .mockResolvedValue({ - done: true, - }), - return: jest.fn(), + tags: [AGENT_NODE_TAG], + }; + }, }); const response = await streamGraph(requestArgs); @@ -158,33 +136,22 @@ describe('streamGraph', () => { }); it('on_llm_end events without a finish_reason should end the stream', async () => { mockStreamEvents.mockReturnValue({ - next: jest - .fn() - .mockResolvedValueOnce({ - value: { - name: 'ActionsClientChatOpenAI', - event: 'on_llm_stream', - data: { chunk: { message: { content: 'content' } } }, - tags: [AGENT_NODE_TAG], - }, - done: false, - }) - .mockResolvedValueOnce({ - value: { - name: 'ActionsClientChatOpenAI', - event: 'on_llm_end', - data: { - output: { - generations: [[{ generationInfo: {}, text: 'final message' }]], - }, + async *[Symbol.asyncIterator]() { + yield { + event: 'on_llm_stream', + data: { chunk: { message: { content: 'content' } } }, + tags: [AGENT_NODE_TAG], + }; + yield { + event: 'on_llm_end', + data: { + output: { + generations: [[{ generationInfo: {}, text: 'final message' }]], }, - tags: [AGENT_NODE_TAG], }, - }) - .mockResolvedValue({ - done: true, - }), - return: jest.fn(), + tags: [AGENT_NODE_TAG], + }; + }, }); const response = await streamGraph(requestArgs); @@ -201,33 +168,22 @@ describe('streamGraph', () => { }); it('on_llm_end events is called with chunks if there is no final text value', async () => { mockStreamEvents.mockReturnValue({ - next: jest - .fn() - .mockResolvedValueOnce({ - value: { - name: 'ActionsClientChatOpenAI', - event: 'on_llm_stream', - data: { chunk: { message: { content: 'content' } } }, - tags: [AGENT_NODE_TAG], - }, - done: false, - }) - .mockResolvedValueOnce({ - value: { - name: 'ActionsClientChatOpenAI', - event: 'on_llm_end', - data: { - output: { - generations: [[{ generationInfo: {}, text: '' }]], - }, + async *[Symbol.asyncIterator]() { + yield { + event: 'on_llm_stream', + data: { chunk: { message: { content: 'content' } } }, + tags: [AGENT_NODE_TAG], + }; + yield { + event: 'on_llm_end', + data: { + output: { + generations: [[{ generationInfo: {}, text: '' }]], }, - tags: [AGENT_NODE_TAG], }, - }) - .mockResolvedValue({ - done: true, - }), - return: jest.fn(), + tags: [AGENT_NODE_TAG], + }; + }, }); const response = await streamGraph(requestArgs); @@ -242,6 +198,28 @@ describe('streamGraph', () => { ); }); }); + it('on_llm_end does not call handleStreamEnd if generations is undefined', async () => { + mockStreamEvents.mockReturnValue({ + async *[Symbol.asyncIterator]() { + yield { + event: 'on_llm_stream', + data: { chunk: { message: { content: 'content' } } }, + tags: [AGENT_NODE_TAG], + }; + yield { + event: 'on_llm_end', + data: {}, + tags: [AGENT_NODE_TAG], + }; + }, + }); + + const response = await streamGraph(requestArgs); + + expect(response).toBe(mockResponseWithHeaders); + expect(mockPush).toHaveBeenCalledWith({ payload: 'content', type: 'content' }); + expect(mockOnLlmResponse).not.toHaveBeenCalled(); + }); }); describe('Tool Calling Agent and Structured Chat Agent streaming', () => { @@ -330,7 +308,7 @@ describe('streamGraph', () => { await expectConditions(response); }); - it('should execute the graph in streaming mode - OpenAI + isOssModel = false', async () => { + it('should execute the graph in streaming mode - OpenAI + isOssModel = true', async () => { const mockAssistantGraphAsyncIterator = { streamEvents: () => mockAsyncIterator, } as unknown as DefaultAssistantGraph; diff --git a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/helpers.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/helpers.ts index f1a5413197632..73b7b43c2d036 100644 --- a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/helpers.ts +++ b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/helpers.ts @@ -9,7 +9,6 @@ import agent, { Span } from 'elastic-apm-node'; import type { Logger } from '@kbn/logging'; import { TelemetryTracer } from '@kbn/langchain/server/tracers/telemetry'; import { streamFactory, StreamResponseWithHeaders } from '@kbn/ml-response-stream/server'; -import { transformError } from '@kbn/securitysolution-es-utils'; import type { KibanaRequest } from '@kbn/core-http-server'; import type { ExecuteConnectorRequestBody, TraceData } from '@kbn/elastic-assistant-common'; import { APMTracer } from '@kbn/langchain/server/tracers/apm'; @@ -126,7 +125,6 @@ export const streamGraph = async ({ // Stream is from openai functions agent let finalMessage = ''; - let conversationId: string | undefined; const stream = assistantGraph.streamEvents(inputs, { callbacks: [ apmTracer, @@ -139,63 +137,37 @@ export const streamGraph = async ({ version: 'v1', }); - const processEvent = async () => { - try { - const { value, done } = await stream.next(); - if (done) return; - - const event = value; - // only process events that are part of the agent run - if ((event.tags || []).includes(AGENT_NODE_TAG)) { - if (event.name === 'ActionsClientChatOpenAI') { - if (event.event === 'on_llm_stream') { - const chunk = event.data?.chunk; - const msg = chunk.message; - if (msg?.tool_call_chunks && msg?.tool_call_chunks.length > 0) { - // I don't think we hit this anymore because of our check for AGENT_NODE_TAG - // however, no harm to keep it in - /* empty */ - } else if (!didEnd) { - push({ payload: msg.content, type: 'content' }); - finalMessage += msg.content; - } - } else if (event.event === 'on_llm_end' && !didEnd) { - const generation = event.data.output?.generations[0][0]; - if ( - // no finish_reason means the stream was aborted - !generation?.generationInfo?.finish_reason || - generation?.generationInfo?.finish_reason === 'stop' - ) { - handleStreamEnd( - generation?.text && generation?.text.length ? generation?.text : finalMessage - ); - } - } + for await (const { event, data, tags } of stream) { + if ((tags || []).includes(AGENT_NODE_TAG)) { + if (event === 'on_llm_stream') { + const chunk = data?.chunk; + const msg = chunk.message; + if (msg?.tool_call_chunks && msg?.tool_call_chunks.length > 0) { + // I don't think we hit this anymore because of our check for AGENT_NODE_TAG + // however, no harm to keep it in + /* empty */ + } else if (!didEnd) { + push({ payload: msg.content, type: 'content' }); + finalMessage += msg.content; } } - void processEvent(); - } catch (err) { - // if I throw an error here, it crashes the server. Not sure how to get around that. - // If I put await on this function the error works properly, but when there is not an error - // it waits for the entire stream to complete before resolving - const error = transformError(err); - - if (error.message === 'AbortError') { - // user aborted the stream, we must end it manually here - return handleStreamEnd(finalMessage); - } - logger.error(`Error streaming from LangChain: ${error.message}`); - if (conversationId) { - push({ payload: `Conversation id: ${conversationId}`, type: 'content' }); + if (event === 'on_llm_end' && !didEnd) { + const generation = data.output?.generations[0][0]; + if ( + // if generation is null, an error occurred - do nothing and let error handling complete the stream + generation != null && + // no finish_reason means the stream was aborted + (!generation?.generationInfo?.finish_reason || + generation?.generationInfo?.finish_reason === 'stop') + ) { + handleStreamEnd( + generation?.text && generation?.text.length ? generation?.text : finalMessage + ); + } } - push({ payload: error.message, type: 'content' }); - handleStreamEnd(error.message, true); } - }; - - // Start processing events, do not await! Return `responseWithHeaders` immediately - void processEvent(); + } return responseWithHeaders; }; diff --git a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/parse_stream.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/parse_stream.test.ts deleted file mode 100644 index 959bb51c40949..0000000000000 --- a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/parse_stream.test.ts +++ /dev/null @@ -1,168 +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. - */ -import { Readable, Transform } from 'stream'; -import { loggerMock } from '@kbn/logging-mocks'; -import { handleStreamStorage } from './parse_stream'; -import { EventStreamCodec } from '@smithy/eventstream-codec'; -import { fromUtf8, toUtf8 } from '@smithy/util-utf8'; - -function createStreamMock() { - const transform: Transform = new Transform({}); - - return { - write: (data: unknown) => { - transform.push(data); - }, - fail: () => { - transform.emit('error', new Error('Stream failed')); - transform.end(); - }, - transform, - complete: () => { - transform.end(); - }, - }; -} -const mockLogger = loggerMock.create(); -const onMessageSent = jest.fn(); -describe('handleStreamStorage', () => { - beforeEach(() => { - jest.resetAllMocks(); - }); - let stream: ReturnType; - - const chunk = { - object: 'chat.completion.chunk', - choices: [ - { - delta: { - content: 'Single.', - }, - }, - ], - }; - let defaultProps = { - responseStream: jest.fn() as unknown as Readable, - actionTypeId: '.gen-ai', - onMessageSent, - logger: mockLogger, - }; - - describe('OpenAI stream', () => { - beforeEach(() => { - stream = createStreamMock(); - stream.write(`data: ${JSON.stringify(chunk)}`); - defaultProps = { - responseStream: stream.transform, - actionTypeId: '.gen-ai', - onMessageSent, - logger: mockLogger, - }; - }); - - it('saves the final string successful streaming event', async () => { - stream.complete(); - await handleStreamStorage(defaultProps); - expect(onMessageSent).toHaveBeenCalledWith('Single.'); - }); - it('saves the error message on a failed streaming event', async () => { - const tokenPromise = handleStreamStorage(defaultProps); - - stream.fail(); - await expect(tokenPromise).resolves.not.toThrow(); - expect(onMessageSent).toHaveBeenCalledWith( - `An error occurred while streaming the response:\n\nStream failed` - ); - }); - }); - describe('Bedrock stream', () => { - beforeEach(() => { - stream = createStreamMock(); - stream.write(encodeBedrockResponse('Simple.')); - defaultProps = { - responseStream: stream.transform, - actionTypeId: '.gen-ai', - onMessageSent, - logger: mockLogger, - }; - }); - - it('saves the final string successful streaming event', async () => { - stream.complete(); - await handleStreamStorage({ ...defaultProps, actionTypeId: '.bedrock' }); - expect(onMessageSent).toHaveBeenCalledWith('Simple.'); - }); - it('saves the error message on a failed streaming event', async () => { - const tokenPromise = handleStreamStorage({ ...defaultProps, actionTypeId: '.bedrock' }); - - stream.fail(); - await expect(tokenPromise).resolves.not.toThrow(); - expect(onMessageSent).toHaveBeenCalledWith( - `An error occurred while streaming the response:\n\nStream failed` - ); - }); - }); - describe('Gemini stream', () => { - beforeEach(() => { - stream = createStreamMock(); - const payload = { - candidates: [ - { - content: { - parts: [ - { - text: 'Single.', - }, - ], - }, - }, - ], - }; - stream.write(`data: ${JSON.stringify(payload)}`); - defaultProps = { - responseStream: stream.transform, - actionTypeId: '.gemini', - onMessageSent, - logger: mockLogger, - }; - }); - - it('saves the final string successful streaming event', async () => { - stream.complete(); - await handleStreamStorage(defaultProps); - expect(onMessageSent).toHaveBeenCalledWith('Single.'); - }); - it('saves the error message on a failed streaming event', async () => { - const tokenPromise = handleStreamStorage(defaultProps); - - stream.fail(); - await expect(tokenPromise).resolves.not.toThrow(); - expect(onMessageSent).toHaveBeenCalledWith( - `An error occurred while streaming the response:\n\nStream failed` - ); - }); - }); -}); - -function encodeBedrockResponse(completion: string) { - return new EventStreamCodec(toUtf8, fromUtf8).encode({ - headers: {}, - body: Uint8Array.from( - Buffer.from( - JSON.stringify({ - bytes: Buffer.from( - JSON.stringify({ - type: 'content_block_delta', - index: 0, - delta: { type: 'text_delta', text: completion }, - }) - ).toString('base64'), - }) - ) - ), - }); -} diff --git a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/parse_stream.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/parse_stream.ts deleted file mode 100644 index 3aef870be8116..0000000000000 --- a/x-pack/solutions/security/plugins/elastic_assistant/server/lib/parse_stream.ts +++ /dev/null @@ -1,118 +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. - */ - -import { Readable } from 'stream'; -import { Logger } from '@kbn/core/server'; -import { parseBedrockStream, parseGeminiResponse } from '@kbn/langchain/server'; - -type StreamParser = ( - responseStream: Readable, - logger: Logger, - abortSignal?: AbortSignal, - tokenHandler?: (token: string) => void -) => Promise; - -export const handleStreamStorage = async ({ - abortSignal, - responseStream, - actionTypeId, - onMessageSent, - logger, -}: { - abortSignal?: AbortSignal; - responseStream: Readable; - actionTypeId: string; - onMessageSent?: (content: string) => void; - logger: Logger; -}): Promise => { - try { - const parser = - actionTypeId === '.bedrock' - ? parseBedrockStream - : actionTypeId === '.gemini' - ? parseGeminiStream - : parseOpenAIStream; - const parsedResponse = await parser(responseStream, logger, abortSignal); - if (onMessageSent) { - onMessageSent(parsedResponse); - } - } catch (e) { - if (onMessageSent) { - onMessageSent(`An error occurred while streaming the response:\n\n${e.message}`); - } - } -}; - -const parseOpenAIStream: StreamParser = async (stream, logger, abortSignal) => { - let responseBody = ''; - stream.on('data', (chunk) => { - responseBody += chunk.toString(); - }); - return new Promise((resolve, reject) => { - stream.on('end', () => { - resolve(parseOpenAIResponse(responseBody)); - }); - stream.on('error', (err) => { - reject(err); - }); - if (abortSignal) { - abortSignal.addEventListener('abort', () => { - stream.destroy(); - resolve(parseOpenAIResponse(responseBody)); - }); - } - }); -}; - -const parseOpenAIResponse = (responseBody: string) => - responseBody - .split('\n') - .filter((line) => { - return line.startsWith('data: ') && !line.endsWith('[DONE]'); - }) - .map((line) => { - return JSON.parse(line.replace('data: ', '')); - }) - .filter( - ( - line - ): line is { - choices: Array<{ - delta: { content?: string; function_call?: { name?: string; arguments: string } }; - }>; - } => { - return ( - 'object' in line && line.object === 'chat.completion.chunk' && line.choices.length > 0 - ); - } - ) - .reduce((prev, line) => { - const msg = line.choices[0].delta; - return prev + (msg.content || ''); - }, ''); - -export const parseGeminiStream: StreamParser = async (stream, logger, abortSignal) => { - let responseBody = ''; - stream.on('data', (chunk) => { - responseBody += chunk.toString(); - }); - return new Promise((resolve, reject) => { - stream.on('end', () => { - resolve(parseGeminiResponse(responseBody)); - }); - stream.on('error', (err) => { - reject(err); - }); - if (abortSignal) { - abortSignal.addEventListener('abort', () => { - stream.destroy(); - logger.info('Gemini stream parsing was aborted.'); - resolve(parseGeminiResponse(responseBody)); - }); - } - }); -}; diff --git a/x-pack/solutions/security/plugins/elastic_assistant/server/routes/post_actions_connector_execute.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/routes/post_actions_connector_execute.test.ts index 9f4d0beb3caff..0f0ee48c94cf5 100644 --- a/x-pack/solutions/security/plugins/elastic_assistant/server/routes/post_actions_connector_execute.test.ts +++ b/x-pack/solutions/security/plugins/elastic_assistant/server/routes/post_actions_connector_execute.test.ts @@ -30,19 +30,7 @@ const actionsClient = actionsClientMock.create(); jest.mock('../lib/build_response', () => ({ buildResponse: jest.fn().mockImplementation((x) => x), })); -jest.mock('../lib/executor', () => ({ - executeAction: jest.fn().mockImplementation(async ({ connectorId }) => { - if (connectorId === 'mock-connector-id') { - return { - connector_id: 'mock-connector-id', - data: mockActionResponse, - status: 'ok', - }; - } else { - throw new Error('simulated error'); - } - }), -})); + const mockStream = jest.fn().mockImplementation(() => new PassThrough()); const mockLangChainExecute = langChainExecute as jest.Mock; const mockAppendAssistantMessageToConversation = appendAssistantMessageToConversation as jest.Mock; diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/quickstart_client.gen.ts b/x-pack/solutions/security/plugins/security_solution/common/api/quickstart_client.gen.ts index fa315e3c421aa..9b0b853083b59 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/quickstart_client.gen.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/api/quickstart_client.gen.ts @@ -383,6 +383,9 @@ import type { InstallMigrationRulesResponse, InstallTranslatedMigrationRulesRequestParamsInput, InstallTranslatedMigrationRulesResponse, + RetryRuleMigrationRequestParamsInput, + RetryRuleMigrationRequestBodyInput, + RetryRuleMigrationResponse, StartRuleMigrationRequestParamsInput, StartRuleMigrationRequestBodyInput, StartRuleMigrationResponse, @@ -2010,6 +2013,22 @@ detection engine rules. }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Retries a SIEM rules migration using the migration id provided + */ + async retryRuleMigration(props: RetryRuleMigrationProps) { + this.log.info(`${new Date().toISOString()} Calling API RetryRuleMigration`); + return this.kbnClient + .request({ + path: replaceParams('/internal/siem_migrations/rules/{migration_id}/retry', props.params), + headers: { + [ELASTIC_HTTP_VERSION_HEADER]: '1', + }, + method: 'PUT', + body: props.body, + }) + .catch(catchAxiosErrorFormatAndThrow); + } async riskEngineGetPrivileges() { this.log.info(`${new Date().toISOString()} Calling API RiskEngineGetPrivileges`); return this.kbnClient @@ -2545,6 +2564,10 @@ export interface ReadRuleProps { export interface ResolveTimelineProps { query: ResolveTimelineRequestQueryInput; } +export interface RetryRuleMigrationProps { + params: RetryRuleMigrationRequestParamsInput; + body: RetryRuleMigrationRequestBodyInput; +} export interface RulePreviewProps { query: RulePreviewRequestQueryInput; body: RulePreviewRequestBodyInput; diff --git a/x-pack/solutions/security/plugins/security_solution/common/siem_migrations/model/api/rules/rule_migration.gen.ts b/x-pack/solutions/security/plugins/security_solution/common/siem_migrations/model/api/rules/rule_migration.gen.ts index 47c06e1e02c7a..0c712e27cdbdb 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/siem_migrations/model/api/rules/rule_migration.gen.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/siem_migrations/model/api/rules/rule_migration.gen.ts @@ -214,6 +214,35 @@ export const InstallTranslatedMigrationRulesResponse = z.object({ installed: z.boolean(), }); +export type RetryRuleMigrationRequestParams = z.infer; +export const RetryRuleMigrationRequestParams = z.object({ + migration_id: NonEmptyString, +}); +export type RetryRuleMigrationRequestParamsInput = z.input; + +export type RetryRuleMigrationRequestBody = z.infer; +export const RetryRuleMigrationRequestBody = z.object({ + connector_id: ConnectorId, + langsmith_options: LangSmithOptions.optional(), + /** + * The indicator to retry only failed rules + */ + failed: z.boolean().optional(), + /** + * The indicator to retry only not fully translated rules + */ + not_fully_translated: z.boolean().optional(), +}); +export type RetryRuleMigrationRequestBodyInput = z.input; + +export type RetryRuleMigrationResponse = z.infer; +export const RetryRuleMigrationResponse = z.object({ + /** + * Indicates the migration retry has been started. `false` means the migration does not need to be retried. + */ + started: z.boolean(), +}); + export type StartRuleMigrationRequestParams = z.infer; export const StartRuleMigrationRequestParams = z.object({ migration_id: NonEmptyString, diff --git a/x-pack/solutions/security/plugins/security_solution/common/siem_migrations/model/api/rules/rule_migration.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/siem_migrations/model/api/rules/rule_migration.schema.yaml index 69e43b57dabd3..d664c79993e5f 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/siem_migrations/model/api/rules/rule_migration.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/siem_migrations/model/api/rules/rule_migration.schema.yaml @@ -286,6 +286,57 @@ paths: 204: description: Indicates the migration id was not found. + /internal/siem_migrations/rules/{migration_id}/retry: + put: + summary: Retries a rule migration + operationId: RetryRuleMigration + x-codegen-enabled: true + x-internal: true + description: Retries a SIEM rules migration using the migration id provided + tags: + - SIEM Rule Migrations + parameters: + - name: migration_id + in: path + required: true + schema: + description: The migration id to retry + $ref: '../../../../../common/api/model/primitives.schema.yaml#/components/schemas/NonEmptyString' + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - connector_id + properties: + connector_id: + $ref: '../../common.schema.yaml#/components/schemas/ConnectorId' + langsmith_options: + $ref: '../../common.schema.yaml#/components/schemas/LangSmithOptions' + failed: + type: boolean + description: The indicator to retry only failed rules + not_fully_translated: + type: boolean + description: The indicator to retry only not fully translated rules + responses: + 200: + description: Indicates the migration retry request has been processed successfully. + content: + application/json: + schema: + type: object + required: + - started + properties: + started: + type: boolean + description: Indicates the migration retry has been started. `false` means the migration does not need to be retried. + 204: + description: Indicates the migration id was not found. + /internal/siem_migrations/rules/{migration_id}/stats: get: summary: Gets a rule migration task stats diff --git a/x-pack/solutions/security/plugins/security_solution/package.json b/x-pack/solutions/security/plugins/security_solution/package.json index b015d9ae3ac60..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", @@ -36,4 +36,4 @@ "openapi:bundle:entity-analytics": "node scripts/openapi/bundle_entity_analytics", "openapi:bundle:endpoint-management": "node scripts/openapi/bundle_endpoint_management" } -} \ No newline at end of file +} diff --git a/x-pack/solutions/security/plugins/security_solution/public/app/home/global_header/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/app/home/global_header/index.test.tsx index 79fd89d65949d..04b4f5ec12af2 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/app/home/global_header/index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/app/home/global_header/index.test.tsx @@ -154,6 +154,6 @@ describe('global header', () => { ); - waitFor(() => expect(findByTestId('assistantHeaderLink')).toBeInTheDocument()); + waitFor(() => expect(findByTestId('assistantNavLink')).toBeInTheDocument()); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/app/home/global_header/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/app/home/global_header/index.tsx index 31537ad77eafb..18da7a837f98e 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/app/home/global_header/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/app/home/global_header/index.tsx @@ -29,7 +29,6 @@ import { showSourcererByPath, } from '../../../sourcerer/containers/sourcerer_paths'; import { useAddIntegrationsUrl } from '../../../common/hooks/use_add_integrations_url'; -import { AssistantHeaderLink } from '../../../assistant/header_link'; const BUTTON_ADD_DATA = i18n.translate('xpack.securitySolution.globalHeader.buttonAddData', { defaultMessage: 'Add integrations', @@ -99,7 +98,6 @@ export const GlobalHeader = React.memo(() => { {showSourcerer && !showTimeline && ( )} - diff --git a/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.test.tsx deleted file mode 100644 index e6b8cfea388a1..0000000000000 --- a/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.test.tsx +++ /dev/null @@ -1,47 +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. - */ -import React from 'react'; -import { render } from '@testing-library/react'; -import { AssistantHeaderLink } from './header_link'; - -const mockShowAssistantOverlay = jest.fn(); -const mockAssistantAvailability = jest.fn(() => ({ - hasAssistantPrivilege: true, -})); -jest.mock('@kbn/elastic-assistant/impl/assistant_context', () => ({ - useAssistantContext: () => ({ - assistantAvailability: mockAssistantAvailability(), - showAssistantOverlay: mockShowAssistantOverlay, - }), -})); - -describe('AssistantHeaderLink', () => { - beforeEach(() => { - jest.clearAllMocks(); - }); - - it('should render the header link text', () => { - const { queryByText, queryByTestId } = render(); - expect(queryByTestId('assistantHeaderLink')).toBeInTheDocument(); - expect(queryByText('AI Assistant')).toBeInTheDocument(); - }); - - it('should not render the header link if not authorized', () => { - mockAssistantAvailability.mockReturnValueOnce({ hasAssistantPrivilege: false }); - - const { queryByText, queryByTestId } = render(); - expect(queryByTestId('assistantHeaderLink')).not.toBeInTheDocument(); - expect(queryByText('AI Assistant')).not.toBeInTheDocument(); - }); - - it('should call the assistant overlay to show on click', () => { - const { queryByTestId } = render(); - queryByTestId('assistantHeaderLink')?.click(); - expect(mockShowAssistantOverlay).toHaveBeenCalledTimes(1); - expect(mockShowAssistantOverlay).toHaveBeenCalledWith({ showOverlay: true }); - }); -}); diff --git a/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.tsx b/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.tsx deleted file mode 100644 index afbe0abd9fb01..0000000000000 --- a/x-pack/solutions/security/plugins/security_solution/public/assistant/header_link.tsx +++ /dev/null @@ -1,55 +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. - */ - -import { EuiFlexGroup, EuiFlexItem, EuiHeaderLink, EuiToolTip } from '@elastic/eui'; -import React, { useCallback } from 'react'; - -import { i18n } from '@kbn/i18n'; -import { useAssistantContext } from '@kbn/elastic-assistant/impl/assistant_context'; -import { AssistantIcon } from '@kbn/ai-assistant-icon'; - -const isMac = navigator.platform.toLowerCase().indexOf('mac') >= 0; - -const TOOLTIP_CONTENT = i18n.translate( - 'xpack.securitySolution.globalHeader.assistantHeaderLinkShortcutTooltip', - { - values: { keyboardShortcut: isMac ? '⌘ ;' : 'Ctrl ;' }, - defaultMessage: 'Keyboard shortcut {keyboardShortcut}', - } -); -const LINK_LABEL = i18n.translate('xpack.securitySolution.globalHeader.assistantHeaderLink', { - defaultMessage: 'AI Assistant', -}); - -/** - * Elastic AI Assistant header link - */ -export const AssistantHeaderLink = () => { - const { showAssistantOverlay, assistantAvailability } = useAssistantContext(); - - const showOverlay = useCallback( - () => showAssistantOverlay({ showOverlay: true }), - [showAssistantOverlay] - ); - - if (!assistantAvailability.hasAssistantPrivilege) { - return null; - } - - return ( - - - - - - - {LINK_LABEL} - - - - ); -}; diff --git a/x-pack/solutions/security/plugins/security_solution/public/assistant/provider.tsx b/x-pack/solutions/security/plugins/security_solution/public/assistant/provider.tsx index f4161fccbc1c2..a6551e8915e6d 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/assistant/provider.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/assistant/provider.tsx @@ -143,6 +143,7 @@ export const AssistantProvider: FC> = ({ children }) triggersActionsUi: { actionTypeRegistry }, docLinks: { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION }, userProfile, + chrome, } = useKibana().services; const basePath = useBasePath(); @@ -227,6 +228,7 @@ export const AssistantProvider: FC> = ({ children }) toasts={toasts} currentAppId={currentAppId ?? 'securitySolutionUI'} userProfileService={userProfile} + chrome={chrome} > {children} 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/public/common/mock/mock_assistant_provider.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/mock/mock_assistant_provider.tsx index 7b3d1bd1880f1..7bfc76bfb4880 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/mock/mock_assistant_provider.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/mock/mock_assistant_provider.tsx @@ -11,6 +11,8 @@ import React from 'react'; import type { AssistantAvailability } from '@kbn/elastic-assistant'; import { AssistantProvider } from '@kbn/elastic-assistant'; import type { UserProfileService } from '@kbn/core/public'; +import { chromeServiceMock } from '@kbn/core-chrome-browser-mocks'; +import { of } from 'rxjs'; import { BASE_SECURITY_CONVERSATIONS } from '../../assistant/content/conversations'; interface Props { @@ -37,6 +39,8 @@ export const MockAssistantProviderComponent: React.FC = ({ hasManageGlobalKnowledgeBase: true, isAssistantEnabled: true, }; + const chrome = chromeServiceMock.createStartContract(); + chrome.getChromeStyle$.mockReturnValue(of('classic')); const mockUserProfileService = { getCurrent: jest.fn(() => Promise.resolve({ avatar: 'avatar' })), @@ -58,6 +62,7 @@ export const MockAssistantProviderComponent: React.FC = ({ baseConversations={BASE_SECURITY_CONVERSATIONS} currentAppId={'test'} userProfileService={mockUserProfileService} + chrome={chrome} > {children} diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/mock/test_providers.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/mock/test_providers.tsx index 94afe2cf2345c..d5f1830857823 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/mock/test_providers.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/mock/test_providers.tsx @@ -7,6 +7,7 @@ import { euiDarkVars } from '@kbn/ui-theme'; import { I18nProvider } from '@kbn/i18n-react'; +import { EuiProvider } from '@elastic/eui'; import React from 'react'; import type { DropResult, ResponderProvided } from '@hello-pangea/dnd'; @@ -87,7 +88,9 @@ export const TestProvidersComponent = ({ Promise.resolve(cellActions)} > - {children} + + {children} + @@ -146,7 +149,9 @@ const TestProvidersWithPrivilegesComponent: React.FC = ({ Promise.resolve(cellActions)} > - {children} + + {children} + diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/translations.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/translations.tsx index 4bcf0bd0a3b68..09f92d3ef9223 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/translations.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/translations.tsx @@ -140,3 +140,37 @@ export const RULE_MODIFIED_BADGE_DESCRIPTION = i18n.translate( 'The rule was edited after installation and field values differs from the values upon installation', } ); + +export const RULE_NEW_REVISION_DETECTED_WARNING = i18n.translate( + 'xpack.securitySolution.detectionEngine.upgradeFlyout.ruleNewRevisionDetectedWarning', + { + defaultMessage: 'Installed rule changed', + } +); + +export const RULE_NEW_REVISION_DETECTED_WARNING_DESCRIPTION = (ruleName: string) => + i18n.translate( + 'xpack.securitySolution.detectionEngine.upgradeFlyout.ruleNewVersionDetectedWarningDescription', + { + defaultMessage: + 'Someone edited the installed rule "{ruleName}". Upgrade resolved conflicts were reset.', + values: { ruleName }, + } + ); + +export const RULE_NEW_VERSION_DETECTED_WARNING = i18n.translate( + 'xpack.securitySolution.detectionEngine.upgradeFlyout.ruleNewRevisionDetectedWarning', + { + defaultMessage: 'New prebuilt rules package was installed', + } +); + +export const RULE_NEW_VERSION_DETECTED_WARNING_DESCRIPTION = (ruleName: string) => + i18n.translate( + 'xpack.securitySolution.detectionEngine.upgradeFlyout.ruleNewRevisionDetectedWarningDescription', + { + defaultMessage: + 'Newer prebuilt rules package were installed in background. It contains a newer rule version for "{ruleName}". Upgrade resolved conflicts were reset.', + values: { ruleName }, + } + ); diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/upgrade_prebuilt_rules_table_context.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/upgrade_prebuilt_rules_table_context.tsx index 751b24f865e61..762b5e45ed630 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/upgrade_prebuilt_rules_table_context.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/upgrade_prebuilt_rules_table_context.tsx @@ -39,6 +39,8 @@ import { UpgradeFlyoutSubHeader } from './upgrade_flyout_subheader'; import * as ruleDetailsI18n from '../../../../rule_management/components/rule_details/translations'; import * as i18n from './translations'; +const REVIEW_PREBUILT_RULES_UPGRADE_REFRESH_INTERVAL = 5 * 60 * 1000; + export interface UpgradePrebuiltRulesTableState { /** * Rule upgrade state after applying `filterOptions` @@ -110,6 +112,13 @@ interface UpgradePrebuiltRulesTableContextProviderProps { children: React.ReactNode; } +/** + * Provides necessary data and actions for Rules Upgrade table. + * + * It periodically re-fetches prebuilt rules upgrade review data to detect possible cases of: + * - editing prebuilt rules (revision change) + * - releasing a new prebuilt rules package (version change) + */ export const UpgradePrebuiltRulesTableContextProvider = ({ children, }: UpgradePrebuiltRulesTableContextProviderProps) => { @@ -135,7 +144,7 @@ export const UpgradePrebuiltRulesTableContextProvider = ({ isLoading, isRefetching, } = usePrebuiltRulesUpgradeReview({ - refetchInterval: false, // Disable automatic refetching since request is expensive + refetchInterval: REVIEW_PREBUILT_RULES_UPGRADE_REFRESH_INTERVAL, keepPreviousData: true, // Use this option so that the state doesn't jump between "success" and "loading" on page change }); const { rulesUpgradeState, setRuleFieldResolvedValue } = diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_prebuilt_rules_upgrade_state.test.ts b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_prebuilt_rules_upgrade_state.test.ts new file mode 100644 index 0000000000000..cc8cf9511473c --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_prebuilt_rules_upgrade_state.test.ts @@ -0,0 +1,436 @@ +/* + * 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. + */ + +import { FieldUpgradeStateEnum } from '../../../../rule_management/model/prebuilt_rule_upgrade'; +import type { RuleResponse } from '../../../../../../common/api/detection_engine'; +import { useAppToasts } from '../../../../../common/hooks/use_app_toasts'; +import { + type RuleUpgradeInfoForReview, + ThreeWayDiffConflict, + ThreeWayDiffOutcome, + ThreeWayMergeOutcome, +} from '../../../../../../common/api/detection_engine'; +import { act, renderHook } from '@testing-library/react'; +import { usePrebuiltRulesUpgradeState } from './use_prebuilt_rules_upgrade_state'; + +jest.mock('../../../../rule_management/hooks/use_is_prebuilt_rules_customization_enabled', () => ({ + useIsPrebuiltRulesCustomizationEnabled: jest.fn(() => true), +})); + +jest.mock('../../../../../common/hooks/use_app_toasts', () => ({ + useAppToasts: jest.fn().mockReturnValue({ + addWarning: jest.fn(), + }), +})); + +describe('usePrebuiltRulesUpgradeState', () => { + it('returns rule upgrade state', () => { + const ruleUpgradeInfosMock: RuleUpgradeInfoForReview[] = [createRuleUpgradeInfoMock()]; + + const { + result: { + current: { rulesUpgradeState }, + }, + } = renderHook(usePrebuiltRulesUpgradeState, { + initialProps: ruleUpgradeInfosMock, + }); + + expect(rulesUpgradeState).toEqual({ + 'test-rule-id-1': expect.any(Object), + }); + }); + + describe('fields upgrade state', () => { + it('returns empty state when there are no fields to upgrade', () => { + const ruleUpgradeInfosMock: RuleUpgradeInfoForReview[] = [createRuleUpgradeInfoMock()]; + + const { result } = renderHook(usePrebuiltRulesUpgradeState, { + initialProps: ruleUpgradeInfosMock, + }); + + expect(result.current.rulesUpgradeState).toEqual({ + 'test-rule-id-1': expect.objectContaining({ + fieldsUpgradeState: {}, + }), + }); + }); + + it('returns NO CONFLICT fields', () => { + const ruleUpgradeInfosMock: RuleUpgradeInfoForReview[] = [ + createRuleUpgradeInfoMock({ + diff: { + num_fields_with_updates: 1, + num_fields_with_conflicts: 0, + num_fields_with_non_solvable_conflicts: 0, + fields: { + name: { + base_version: 'base', + current_version: 'base', + target_version: 'target', + merged_version: 'target', + diff_outcome: ThreeWayDiffOutcome.StockValueCanUpdate, + merge_outcome: ThreeWayMergeOutcome.Target, + has_base_version: true, + has_update: true, + conflict: ThreeWayDiffConflict.NONE, + }, + }, + }, + }), + ]; + + const { result } = renderHook(usePrebuiltRulesUpgradeState, { + initialProps: ruleUpgradeInfosMock, + }); + + expect(result.current.rulesUpgradeState).toEqual({ + 'test-rule-id-1': expect.objectContaining({ + fieldsUpgradeState: { + name: { state: FieldUpgradeStateEnum.NoConflict }, + }, + }), + }); + }); + + it('returns SOLVABLE CONFLICT fields', () => { + const ruleUpgradeInfosMock: RuleUpgradeInfoForReview[] = [ + createRuleUpgradeInfoMock({ + diff: { + num_fields_with_updates: 1, + num_fields_with_conflicts: 1, + num_fields_with_non_solvable_conflicts: 0, + fields: { + name: { + base_version: 'base', + current_version: 'current', + target_version: 'target', + merged_version: 'target', + diff_outcome: ThreeWayDiffOutcome.StockValueCanUpdate, + merge_outcome: ThreeWayMergeOutcome.Merged, + has_base_version: true, + has_update: true, + conflict: ThreeWayDiffConflict.SOLVABLE, + }, + }, + }, + }), + ]; + + const { result } = renderHook(usePrebuiltRulesUpgradeState, { + initialProps: ruleUpgradeInfosMock, + }); + + expect(result.current.rulesUpgradeState).toEqual({ + 'test-rule-id-1': expect.objectContaining({ + fieldsUpgradeState: { + name: { state: FieldUpgradeStateEnum.SolvableConflict }, + }, + }), + }); + }); + + it('returns NON SOLVABLE CONFLICT fields', () => { + const ruleUpgradeInfosMock: RuleUpgradeInfoForReview[] = [ + createRuleUpgradeInfoMock({ + diff: { + num_fields_with_updates: 1, + num_fields_with_conflicts: 1, + num_fields_with_non_solvable_conflicts: 1, + fields: { + name: { + base_version: 'base', + current_version: 'current', + target_version: 'target', + merged_version: 'target', + diff_outcome: ThreeWayDiffOutcome.StockValueCanUpdate, + merge_outcome: ThreeWayMergeOutcome.Merged, + has_base_version: true, + has_update: true, + conflict: ThreeWayDiffConflict.NON_SOLVABLE, + }, + }, + }, + }), + ]; + + const { result } = renderHook(usePrebuiltRulesUpgradeState, { + initialProps: ruleUpgradeInfosMock, + }); + + expect(result.current.rulesUpgradeState).toEqual({ + 'test-rule-id-1': expect.objectContaining({ + fieldsUpgradeState: { + name: { state: FieldUpgradeStateEnum.NonSolvableConflict }, + }, + }), + }); + }); + + it('returns ACCEPTED fields after resolving a conflict', () => { + const ruleUpgradeInfosMock: RuleUpgradeInfoForReview[] = [ + createRuleUpgradeInfoMock({ + rule_id: 'test-rule-id-1', + diff: { + num_fields_with_updates: 1, + num_fields_with_conflicts: 1, + num_fields_with_non_solvable_conflicts: 1, + fields: { + name: { + base_version: 'base', + current_version: 'current', + target_version: 'target', + merged_version: 'target', + diff_outcome: ThreeWayDiffOutcome.StockValueCanUpdate, + merge_outcome: ThreeWayMergeOutcome.Merged, + has_base_version: true, + has_update: true, + conflict: ThreeWayDiffConflict.NON_SOLVABLE, + }, + }, + }, + }), + ]; + + const { result } = renderHook(usePrebuiltRulesUpgradeState, { + initialProps: ruleUpgradeInfosMock, + }); + + act(() => { + result.current.setRuleFieldResolvedValue({ + ruleId: 'test-rule-id-1', + fieldName: 'name', + resolvedValue: 'resolved', + }); + }); + + expect(result.current.rulesUpgradeState).toEqual({ + 'test-rule-id-1': expect.objectContaining({ + fieldsUpgradeState: { + name: { state: FieldUpgradeStateEnum.Accepted, resolvedValue: 'resolved' }, + }, + }), + }); + }); + }); + + // Test handling revision and version changes + // - user edited a rule (revision change) + // - a new prebuilt rules package got released (version change) + describe('concurrency control', () => { + describe('revision change', () => { + const createMock = ({ revision }: { revision: number }) => [ + createRuleUpgradeInfoMock({ + rule_id: 'test-rule-id-1', + revision, + current_rule: createRuleResponseMock({ + name: 'current', + revision, + }), + diff: { + num_fields_with_updates: 1, + num_fields_with_conflicts: 1, + num_fields_with_non_solvable_conflicts: 1, + fields: { + name: { + base_version: 'base', + current_version: 'current', + target_version: 'target', + merged_version: 'target', + diff_outcome: ThreeWayDiffOutcome.StockValueCanUpdate, + merge_outcome: ThreeWayMergeOutcome.Merged, + has_base_version: true, + has_update: true, + conflict: ThreeWayDiffConflict.NON_SOLVABLE, + }, + }, + }, + }), + ]; + + it('invalidates resolved conflicts', () => { + const { result, rerender } = renderHook(usePrebuiltRulesUpgradeState, { + initialProps: createMock({ revision: 1 }), + }); + + act(() => { + result.current.setRuleFieldResolvedValue({ + ruleId: 'test-rule-id-1', + fieldName: 'name', + resolvedValue: 'resolved', + }); + }); + + expect(result.current.rulesUpgradeState).toEqual({ + 'test-rule-id-1': expect.objectContaining({ + fieldsUpgradeState: { + name: { state: FieldUpgradeStateEnum.Accepted, resolvedValue: 'resolved' }, + }, + }), + }); + + rerender(createMock({ revision: 2 })); + + expect(result.current.rulesUpgradeState).toEqual({ + 'test-rule-id-1': expect.objectContaining({ + fieldsUpgradeState: { + name: { state: FieldUpgradeStateEnum.NonSolvableConflict }, + }, + }), + }); + }); + + it('shows a notification', () => { + const addWarningMock = jest.fn(); + (useAppToasts as jest.Mock).mockImplementation(() => ({ + addWarning: addWarningMock, + })); + + const { result, rerender } = renderHook(usePrebuiltRulesUpgradeState, { + initialProps: createMock({ revision: 1 }), + }); + + act(() => { + result.current.setRuleFieldResolvedValue({ + ruleId: 'test-rule-id-1', + fieldName: 'name', + resolvedValue: 'resolved', + }); + }); + + rerender(createMock({ revision: 2 })); + + expect(addWarningMock).toHaveBeenCalled(); + }); + }); + + describe('version change', () => { + const createMock = ({ version }: { version: number }) => [ + createRuleUpgradeInfoMock({ + rule_id: 'test-rule-id-1', + revision: 1, + target_rule: createRuleResponseMock({ + name: 'target', + version, + }), + diff: { + num_fields_with_updates: 1, + num_fields_with_conflicts: 1, + num_fields_with_non_solvable_conflicts: 1, + fields: { + name: { + base_version: 'base', + current_version: 'current', + target_version: 'target', + merged_version: 'target', + diff_outcome: ThreeWayDiffOutcome.StockValueCanUpdate, + merge_outcome: ThreeWayMergeOutcome.Merged, + has_base_version: true, + has_update: true, + conflict: ThreeWayDiffConflict.NON_SOLVABLE, + }, + }, + }, + }), + ]; + + it('invalidates resolved conflicts upon version change', () => { + const addWarningMock = jest.fn(); + (useAppToasts as jest.Mock).mockImplementation(() => ({ + addWarning: addWarningMock, + })); + + const { result, rerender } = renderHook(usePrebuiltRulesUpgradeState, { + initialProps: createMock({ version: 1 }), + }); + + act(() => { + result.current.setRuleFieldResolvedValue({ + ruleId: 'test-rule-id-1', + fieldName: 'name', + resolvedValue: 'resolved', + }); + }); + + expect(result.current.rulesUpgradeState).toEqual({ + 'test-rule-id-1': expect.objectContaining({ + fieldsUpgradeState: { + name: { state: FieldUpgradeStateEnum.Accepted, resolvedValue: 'resolved' }, + }, + }), + }); + + rerender(createMock({ version: 2 })); + + expect(result.current.rulesUpgradeState).toEqual({ + 'test-rule-id-1': expect.objectContaining({ + fieldsUpgradeState: { + name: { state: FieldUpgradeStateEnum.NonSolvableConflict }, + }, + }), + }); + }); + + it('shows a notification', () => { + const addWarningMock = jest.fn(); + (useAppToasts as jest.Mock).mockImplementation(() => ({ + addWarning: addWarningMock, + })); + + const { result, rerender } = renderHook(usePrebuiltRulesUpgradeState, { + initialProps: createMock({ version: 1 }), + }); + + act(() => { + result.current.setRuleFieldResolvedValue({ + ruleId: 'test-rule-id-1', + fieldName: 'name', + resolvedValue: 'resolved', + }); + }); + + expect(result.current.rulesUpgradeState).toEqual({ + 'test-rule-id-1': expect.objectContaining({ + fieldsUpgradeState: { + name: { state: FieldUpgradeStateEnum.Accepted, resolvedValue: 'resolved' }, + }, + }), + }); + + rerender(createMock({ version: 2 })); + + expect(addWarningMock).toHaveBeenCalled(); + }); + }); + }); +}); + +function createRuleUpgradeInfoMock( + rewrites?: Partial +): RuleUpgradeInfoForReview { + return { + id: 'test-id-1', + rule_id: 'test-rule-id-1', + current_rule: createRuleResponseMock(), + target_rule: createRuleResponseMock(), + diff: { + num_fields_with_updates: 0, + num_fields_with_conflicts: 0, + num_fields_with_non_solvable_conflicts: 0, + fields: {}, + }, + revision: 1, + ...rewrites, + }; +} + +function createRuleResponseMock(rewrites?: Partial): RuleResponse { + return { + version: 1, + revision: 1, + ...rewrites, + } as RuleResponse; +} diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_prebuilt_rules_upgrade_state.ts b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_prebuilt_rules_upgrade_state.ts index 3412947426301..ed4ef38935ade 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_prebuilt_rules_upgrade_state.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_prebuilt_rules_upgrade_state.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { useCallback, useMemo, useState } from 'react'; +import { useCallback, useMemo, useState, useRef, useEffect } from 'react'; +import { useAppToasts } from '../../../../../common/hooks/use_app_toasts'; import { useIsPrebuiltRulesCustomizationEnabled } from '../../../../rule_management/hooks/use_is_prebuilt_rules_customization_enabled'; import type { RulesUpgradeState, @@ -23,10 +24,18 @@ import { ThreeWayDiffOutcome, } from '../../../../../../common/api/detection_engine'; import { assertUnreachable } from '../../../../../../common/utility_types'; +import * as i18n from './translations'; type RuleResolvedConflicts = Partial; type RulesResolvedConflicts = Record; +interface RuleConcurrencyControl { + version: number; + revision: number; +} + +type RulesConcurrencyControl = Record; + interface UseRulesUpgradeStateResult { rulesUpgradeState: RulesUpgradeState; setRuleFieldResolvedValue: SetRuleFieldResolvedValueFn; @@ -36,11 +45,22 @@ export function usePrebuiltRulesUpgradeState( ruleUpgradeInfos: RuleUpgradeInfoForReview[] ): UseRulesUpgradeStateResult { const isPrebuiltRulesCustomizationEnabled = useIsPrebuiltRulesCustomizationEnabled(); - const [rulesResolvedConflicts, setRulesResolvedConflicts] = useState({}); + const [rulesResolvedValues, setRulesResolvedValues] = useState({}); + const resetRuleResolvedValues = useCallback( + (ruleId: RuleSignatureId) => { + setRulesResolvedValues((prevRulesResolvedConflicts) => ({ + ...prevRulesResolvedConflicts, + [ruleId]: {}, + })); + }, + [setRulesResolvedValues] + ); + const concurrencyControl = useRef({}); + const { addWarning } = useAppToasts(); const setRuleFieldResolvedValue = useCallback( (...[params]: Parameters) => { - setRulesResolvedConflicts((prevRulesResolvedConflicts) => ({ + setRulesResolvedValues((prevRulesResolvedConflicts) => ({ ...prevRulesResolvedConflicts, [params.ruleId]: { ...(prevRulesResolvedConflicts[params.ruleId] ?? {}), @@ -51,13 +71,61 @@ export function usePrebuiltRulesUpgradeState( [] ); + // Implements concurrency control. + // Rule may be edited or a new prebuilt rules package version gets released. + // In any case current rule's `revision` or target rule's version + // will have higher values. + // Reset resolved conflicts in case of revision`s or version`s mismatch. + useEffect(() => { + for (const { + rule_id: ruleId, + current_rule: { revision: nextRevision, name }, + target_rule: { version: nextVersion }, + } of ruleUpgradeInfos) { + const cc = concurrencyControl.current[ruleId]; + const hasNewerRevision = cc ? nextRevision > cc.revision : false; + const hasNewerVersion = cc ? nextVersion > cc.version : false; + const hasResolvedValues = Object.keys(rulesResolvedValues[ruleId] ?? {}).length > 0; + + if (hasNewerRevision && hasResolvedValues) { + addWarning({ + title: i18n.RULE_NEW_REVISION_DETECTED_WARNING, + text: i18n.RULE_NEW_REVISION_DETECTED_WARNING_DESCRIPTION(name), + }); + } + + if (hasNewerVersion && hasResolvedValues) { + addWarning({ + title: i18n.RULE_NEW_VERSION_DETECTED_WARNING, + text: i18n.RULE_NEW_VERSION_DETECTED_WARNING_DESCRIPTION(name), + }); + } + + if ((hasNewerRevision || hasNewerVersion) && hasResolvedValues) { + resetRuleResolvedValues(ruleId); + } + + concurrencyControl.current[ruleId] = { + version: nextVersion, + revision: nextRevision, + }; + } + }, [ + ruleUpgradeInfos, + concurrencyControl, + rulesResolvedValues, + setRulesResolvedValues, + resetRuleResolvedValues, + addWarning, + ]); + const rulesUpgradeState = useMemo(() => { const state: RulesUpgradeState = {}; for (const ruleUpgradeInfo of ruleUpgradeInfos) { const fieldsUpgradeState = calcFieldsState( ruleUpgradeInfo.diff.fields, - rulesResolvedConflicts[ruleUpgradeInfo.rule_id] ?? {} + rulesResolvedValues[ruleUpgradeInfo.rule_id] ?? {} ); const hasRuleTypeChange = Boolean(ruleUpgradeInfo.diff.fields.type); @@ -77,7 +145,7 @@ export function usePrebuiltRulesUpgradeState( } return state; - }, [ruleUpgradeInfos, rulesResolvedConflicts, isPrebuiltRulesCustomizationEnabled]); + }, [ruleUpgradeInfos, rulesResolvedValues, isPrebuiltRulesCustomizationEnabled]); return { rulesUpgradeState, diff --git a/x-pack/solutions/security/plugins/security_solution/public/detections/components/rules/rule_execution_status/rule_status_failed_callout.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/detections/components/rules/rule_execution_status/rule_status_failed_callout.test.tsx index 2f07909c0f56a..036d7499aab72 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detections/components/rules/rule_execution_status/rule_status_failed_callout.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detections/components/rules/rule_execution_status/rule_status_failed_callout.test.tsx @@ -19,6 +19,8 @@ import { actionTypeRegistryMock } from '@kbn/triggers-actions-ui-plugin/public/a import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { BASE_SECURITY_CONVERSATIONS } from '../../../../assistant/content/conversations'; import type { UserProfileService } from '@kbn/core-user-profile-browser'; +import { chromeServiceMock } from '@kbn/core/public/mocks'; +import { of } from 'rxjs'; jest.mock('../../../../common/lib/kibana'); @@ -51,28 +53,33 @@ const queryClient = new QueryClient({ }, }); -const ContextWrapper: FC> = ({ children }) => ( - - - {children} - - -); +const ContextWrapper: FC> = ({ children }) => { + const chrome = chromeServiceMock.createStartContract(); + chrome.getChromeStyle$.mockReturnValue(of('classic')); + return ( + + + {children} + + + ); +}; describe('RuleStatusFailedCallOut', () => { const renderWith = (status: RuleExecutionStatus | null | undefined) => diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/attach_to_active_timeline.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/attach_to_active_timeline.test.tsx index 51f5641af0f9c..ad9f2444882e7 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/attach_to_active_timeline.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/attach_to_active_timeline.test.tsx @@ -49,7 +49,7 @@ describe('AttachToActiveTimeline', () => { ); expect(getByTestId(SAVE_TIMELINE_BUTTON_TEST_ID)).toBeInTheDocument(); - expect(getByTestId(SAVE_TIMELINE_BUTTON_TEST_ID)).toHaveStyle('background-color: #FEC514'); + expect(getByTestId(SAVE_TIMELINE_BUTTON_TEST_ID).className).toContain('warning'); expect(getByTestId(SAVE_TIMELINE_BUTTON_TEST_ID)).toHaveTextContent('Save current Timeline'); expect(queryByTestId(ATTACH_TO_TIMELINE_CHECKBOX_TEST_ID)).not.toBeInTheDocument(); expect(getByTestId(ATTACH_TO_TIMELINE_CALLOUT_TEST_ID)).toBeInTheDocument(); diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/session_view.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/session_view.test.tsx index ff3a834225d68..611f59dcfe1f5 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/session_view.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/session_view.test.tsx @@ -21,12 +21,12 @@ import { ENTRY_LEADER_ENTITY_ID, ENTRY_LEADER_START, } from '../../shared/constants/field_names'; -import { useSessionPreview } from '../../right/hooks/use_session_preview'; +import { useSessionViewConfig } from '../../shared/hooks/use_session_view_config'; import { useSourcererDataView } from '../../../../sourcerer/containers'; import { mockContextValue } from '../../shared/mocks/mock_context'; import { useLicense } from '../../../../common/hooks/use_license'; -jest.mock('../../right/hooks/use_session_preview'); +jest.mock('../../shared/hooks/use_session_view_config'); jest.mock('../../../../common/hooks/use_license'); jest.mock('../../../../sourcerer/containers'); @@ -80,7 +80,7 @@ const renderSessionView = (contextValue: DocumentDetailsContext = mockContextVal describe('', () => { beforeEach(() => { - (useSessionPreview as jest.Mock).mockReturnValue(sessionViewConfig); + (useSessionViewConfig as jest.Mock).mockReturnValue(sessionViewConfig); (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => true }); jest.mocked(useSourcererDataView).mockReturnValue({ browserFields: {}, @@ -120,7 +120,7 @@ describe('', () => { it('should render error message and text in header if no sessionConfig', () => { (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => true }); - (useSessionPreview as jest.Mock).mockReturnValue(null); + (useSessionViewConfig as jest.Mock).mockReturnValue(null); const { getByTestId } = renderSessionView(); expect(getByTestId(SESSION_VIEW_NO_DATA_TEST_ID)).toHaveTextContent(NO_DATA_MESSAGE); diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/session_view.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/session_view.tsx index 3b45cd71b0a6f..714eff5d611c0 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/session_view.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/components/session_view.tsx @@ -6,27 +6,24 @@ */ import type { FC } from 'react'; -import React, { useCallback, useMemo } from 'react'; +import React, { memo, useCallback, useMemo } from 'react'; import { useExpandableFlyoutApi } from '@kbn/expandable-flyout'; -import type { TableId } from '@kbn/securitysolution-data-table'; import { EuiPanel } from '@elastic/eui'; -import { - ANCESTOR_INDEX, - ENTRY_LEADER_ENTITY_ID, - ENTRY_LEADER_START, -} from '../../shared/constants/field_names'; -import { getField } from '../../shared/utils'; +import type { Process } from '@kbn/session-view-plugin/common'; +import type { CustomProcess } from '../../session_view/context'; +import { useUserPrivileges } from '../../../../common/components/user_privileges'; import { SESSION_VIEW_TEST_ID } from './test_ids'; -import { isActiveTimeline } from '../../../../helpers'; import { useSourcererDataView } from '../../../../sourcerer/containers'; -import { DocumentDetailsPreviewPanelKey } from '../../shared/constants/panel_keys'; +import { + DocumentDetailsPreviewPanelKey, + DocumentDetailsSessionViewPanelKey, +} from '../../shared/constants/panel_keys'; import { useKibana } from '../../../../common/lib/kibana'; import { useDocumentDetailsContext } from '../../shared/context'; import { SourcererScopeName } from '../../../../sourcerer/store/model'; -import { detectionsTimelineIds } from '../../../../timelines/containers/helpers'; import { ALERT_PREVIEW_BANNER } from '../../preview/constants'; import { useLicense } from '../../../../common/hooks/use_license'; -import { useSessionPreview } from '../../right/hooks/use_session_preview'; +import { useSessionViewConfig } from '../../shared/hooks/use_session_view_config'; import { SessionViewNoDataMessage } from '../../shared/components/session_view_no_data_message'; import { DocumentEventTypes } from '../../../../common/lib/telemetry'; @@ -35,46 +32,47 @@ export const SESSION_VIEW_ID = 'session-view'; /** * Session view displayed in the document details expandable flyout left section under the Visualize tab */ -export const SessionView: FC = () => { +export const SessionView: FC = memo(() => { const { sessionView, telemetry } = useKibana().services; - const { getFieldsData, indexName, scopeId, dataFormattedForFieldBrowser } = - useDocumentDetailsContext(); + const { + eventId, + indexName, + getFieldsData, + scopeId, + dataFormattedForFieldBrowser, + jumpToEntityId, + jumpToCursor, + } = useDocumentDetailsContext(); + + const { canReadPolicyManagement } = useUserPrivileges().endpointPrivileges; - const sessionViewConfig = useSessionPreview({ getFieldsData, dataFormattedForFieldBrowser }); + const sessionViewConfig = useSessionViewConfig({ getFieldsData, dataFormattedForFieldBrowser }); const isEnterprisePlus = useLicense().isEnterprise(); const isEnabled = sessionViewConfig && isEnterprisePlus; - const ancestorIndex = getField(getFieldsData(ANCESTOR_INDEX)); // e.g in case of alert, we want to grab it's origin index - const sessionEntityId = getField(getFieldsData(ENTRY_LEADER_ENTITY_ID)) || ''; - const sessionStartTime = getField(getFieldsData(ENTRY_LEADER_START)) || ''; - const index = ancestorIndex || indexName; - - const sourcererScope = useMemo(() => { - if (isActiveTimeline(scopeId)) { - return SourcererScopeName.timeline; - } else if (detectionsTimelineIds.includes(scopeId as TableId)) { - return SourcererScopeName.detections; - } else { - return SourcererScopeName.default; - } - }, [scopeId]); - - const { selectedPatterns } = useSourcererDataView(sourcererScope); + const { selectedPatterns } = useSourcererDataView(SourcererScopeName.detections); const eventDetailsIndex = useMemo(() => selectedPatterns.join(','), [selectedPatterns]); - const { openPreviewPanel } = useExpandableFlyoutApi(); + const { openPreviewPanel, closePreviewPanel } = useExpandableFlyoutApi(); const openAlertDetailsPreview = useCallback( - (eventId?: string, onClose?: () => void) => { - openPreviewPanel({ - id: DocumentDetailsPreviewPanelKey, - params: { - id: eventId, - indexName: eventDetailsIndex, - scopeId, - banner: ALERT_PREVIEW_BANNER, - isPreviewMode: true, - }, - }); + (evtId?: string, onClose?: () => void) => { + // In the SessionView component, when the user clicks on the + // expand button to open a alert in the preview panel, this actually also selects the row and opens + // the detailed panel in preview. + // In order to NOT modify the SessionView code, the setTimeout here guarantees that the alert details preview + // will be opened in second, so that we have a correct order in the opened preview panels + setTimeout(() => { + openPreviewPanel({ + id: DocumentDetailsPreviewPanelKey, + params: { + id: evtId, + indexName: eventDetailsIndex, + scopeId, + banner: ALERT_PREVIEW_BANNER, + isPreviewMode: true, + }, + }); + }, 100); telemetry.reportEvent(DocumentEventTypes.DetailsFlyoutOpened, { location: scopeId, panel: 'preview', @@ -83,14 +81,63 @@ export const SessionView: FC = () => { [openPreviewPanel, eventDetailsIndex, scopeId, telemetry] ); + const openDetailsInPreview = useCallback( + (selectedProcess: Process | null) => { + // We cannot pass the original Process object sent from the SessionView component + // as it contains functions (that should not put into Redux) + // and also some recursive properties (that will break rison.encode when updating the URL) + const simplifiedSelectedProcess: CustomProcess | null = selectedProcess + ? { + id: selectedProcess.id, + details: selectedProcess.getDetails(), + endTime: selectedProcess.getEndTime(), + } + : null; + + openPreviewPanel({ + id: DocumentDetailsSessionViewPanelKey, + params: { + eventId, + indexName, + selectedProcess: simplifiedSelectedProcess, + index: sessionViewConfig?.index, + sessionEntityId: sessionViewConfig?.sessionEntityId, + sessionStartTime: sessionViewConfig?.sessionStartTime, + investigatedAlertId: sessionViewConfig?.investigatedAlertId, + scopeId, + jumpToEntityId, + jumpToCursor, + }, + }); + }, + [ + openPreviewPanel, + eventId, + indexName, + sessionViewConfig?.index, + sessionViewConfig?.sessionEntityId, + sessionViewConfig?.sessionStartTime, + sessionViewConfig?.investigatedAlertId, + scopeId, + jumpToEntityId, + jumpToCursor, + ] + ); + + const closeDetailsInPreview = useCallback(() => closePreviewPanel(), [closePreviewPanel]); + return isEnabled ? (
{sessionView.getSessionView({ - index, - sessionEntityId, - sessionStartTime, + ...sessionViewConfig, isFullScreen: true, loadAlertDetails: openAlertDetailsPreview, + openDetailsInExpandableFlyout: (selectedProcess: Process | null) => + openDetailsInPreview(selectedProcess), + closeDetailsInExpandableFlyout: () => closeDetailsInPreview(), + canReadPolicyManagement, + resetJumpToEntityId: jumpToEntityId, + resetJumpToCursor: jumpToCursor, })}
) : ( @@ -101,6 +148,6 @@ export const SessionView: FC = () => { /> ); -}; +}); SessionView.displayName = 'SessionView'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/about_section.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/about_section.test.tsx index 46cefbb7533aa..fd29a9d9b2636 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/about_section.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/about_section.test.tsx @@ -16,6 +16,7 @@ import { REASON_TITLE_TEST_ID, MITRE_ATTACK_TITLE_TEST_ID, EVENT_RENDERER_TEST_ID, + WORKFLOW_STATUS_TITLE_TEST_ID, } from './test_ids'; import { TestProviders } from '../../../../common/mock'; import { AboutSection } from './about_section'; @@ -106,6 +107,7 @@ describe('', () => { expect(queryByTestId(ALERT_DESCRIPTION_TITLE_TEST_ID)).not.toBeInTheDocument(); expect(queryByTestId(REASON_TITLE_TEST_ID)).not.toBeInTheDocument(); expect(queryByTestId(MITRE_ATTACK_TITLE_TEST_ID)).not.toBeInTheDocument(); + expect(queryByTestId(WORKFLOW_STATUS_TITLE_TEST_ID)).not.toBeInTheDocument(); expect(getByTestId(EVENT_KIND_DESCRIPTION_TEST_ID)).toBeInTheDocument(); @@ -135,6 +137,7 @@ describe('', () => { expect(queryByTestId(ALERT_DESCRIPTION_TITLE_TEST_ID)).not.toBeInTheDocument(); expect(queryByTestId(REASON_TITLE_TEST_ID)).not.toBeInTheDocument(); expect(queryByTestId(MITRE_ATTACK_TITLE_TEST_ID)).not.toBeInTheDocument(); + expect(queryByTestId(WORKFLOW_STATUS_TITLE_TEST_ID)).not.toBeInTheDocument(); expect(queryByTestId(EVENT_KIND_DESCRIPTION_TEST_ID)).not.toBeInTheDocument(); diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/about_section.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/about_section.tsx index 5b9da45df2dfd..9e2ddd858a42e 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/about_section.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/about_section.tsx @@ -20,6 +20,7 @@ import { isEcsAllowedValue } from '../utils/event_utils'; import { EventCategoryDescription } from './event_category_description'; import { EventKindDescription } from './event_kind_description'; import { EventRenderer } from './event_renderer'; +import { AlertStatus } from './alert_status'; const KEY = 'about'; @@ -42,6 +43,7 @@ export const AboutSection = memo(() => { + ) : ( <> diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/alert_status.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/alert_status.test.tsx new file mode 100644 index 0000000000000..5c2353afd8833 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/alert_status.test.tsx @@ -0,0 +1,66 @@ +/* + * 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. + */ + +import React from 'react'; +import { act, render } from '@testing-library/react'; +import { AlertStatus } from './alert_status'; +import { mockContextValue } from '../../shared/mocks/mock_context'; +import { DocumentDetailsContext } from '../../shared/context'; +import { WORKFLOW_STATUS_DETAILS_TEST_ID, WORKFLOW_STATUS_TITLE_TEST_ID } from './test_ids'; +import { TestProviders } from '../../../../common/mock'; +import { useBulkGetUserProfiles } from '../../../../common/components/user_profiles/use_bulk_get_user_profiles'; + +jest.mock('../../../../common/components/user_profiles/use_bulk_get_user_profiles'); + +const renderAlertStatus = (contextValue: DocumentDetailsContext) => + render( + + + + + + ); + +const mockUserProfiles = [ + { uid: 'user-id-1', enabled: true, user: { username: 'user1', full_name: 'User 1' }, data: {} }, +]; + +describe('', () => { + beforeEach(() => { + jest.clearAllMocks(); + }); + + it('should render alert status history information', async () => { + (useBulkGetUserProfiles as jest.Mock).mockReturnValue({ + isLoading: false, + data: mockUserProfiles, + }); + const contextValue = { + ...mockContextValue, + getFieldsData: jest.fn().mockImplementation((field: string) => { + if (field === 'kibana.alert.workflow_user') return ['user-id-1']; + if (field === 'kibana.alert.workflow_status_updated_at') + return ['2023-11-01T22:33:26.893Z']; + }), + }; + + const { getByTestId } = renderAlertStatus(contextValue); + + await act(async () => { + expect(getByTestId(WORKFLOW_STATUS_TITLE_TEST_ID)).toBeInTheDocument(); + expect(getByTestId(WORKFLOW_STATUS_DETAILS_TEST_ID)).toBeInTheDocument(); + }); + }); + + it('should render empty component if missing workflow_user value', async () => { + const { container } = renderAlertStatus(mockContextValue); + + await act(async () => { + expect(container).toBeEmptyDOMElement(); + }); + }); +}); diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/alert_status.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/alert_status.tsx new file mode 100644 index 0000000000000..f0a2ba5b98935 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/alert_status.tsx @@ -0,0 +1,69 @@ +/* + * 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. + */ + +import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiTitle } from '@elastic/eui'; +import { getUserDisplayName } from '@kbn/user-profile-components'; +import { FormattedMessage } from '@kbn/i18n-react'; +import React, { memo, useMemo } from 'react'; +import { WORKFLOW_STATUS_DETAILS_TEST_ID, WORKFLOW_STATUS_TITLE_TEST_ID } from './test_ids'; +import { useBulkGetUserProfiles } from '../../../../common/components/user_profiles/use_bulk_get_user_profiles'; +import { PreferenceFormattedDate } from '../../../../common/components/formatted_date'; +import { useDocumentDetailsContext } from '../../shared/context'; +import { getField } from '../../shared/utils'; + +/** + * Displays info about who last updated the alert's workflow status and when. + */ +export const AlertStatus = memo(() => { + const { getFieldsData } = useDocumentDetailsContext(); + const statusUpdatedBy = getFieldsData('kibana.alert.workflow_user'); + const statusUpdatedAt = getField(getFieldsData('kibana.alert.workflow_status_updated_at')); + + const result = useBulkGetUserProfiles({ uids: new Set(statusUpdatedBy) }); + const user = result.data?.[0]?.user; + + const lastStatusChange = useMemo( + () => ( + <> + {user && statusUpdatedAt && ( + , + }} + /> + )} + + ), + [statusUpdatedAt, user] + ); + + if (!statusUpdatedBy || !statusUpdatedAt || result.isLoading || user == null) { + return null; + } + + return ( + + + + +
+ +
+
+
+ {lastStatusChange} +
+ ); +}); + +AlertStatus.displayName = 'AlertStatus'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/session_preview_container.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/session_preview_container.test.tsx index 73cf7202b50c1..d27d75aed1e0d 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/session_preview_container.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/session_preview_container.test.tsx @@ -10,7 +10,7 @@ import { TestProviders } from '../../../../common/mock'; import React from 'react'; import { DocumentDetailsContext } from '../../shared/context'; import { SessionPreviewContainer } from './session_preview_container'; -import { useSessionPreview } from '../hooks/use_session_preview'; +import { useSessionViewConfig } from '../../shared/hooks/use_session_view_config'; import { useLicense } from '../../../../common/hooks/use_license'; import { SESSION_PREVIEW_TEST_ID } from './test_ids'; import { @@ -24,7 +24,7 @@ import { mockContextValue } from '../../shared/mocks/mock_context'; import { useIsExperimentalFeatureEnabled } from '../../../../common/hooks/use_experimental_features'; import { useInvestigateInTimeline } from '../../../../detections/components/alerts_table/timeline_actions/use_investigate_in_timeline'; -jest.mock('../hooks/use_session_preview'); +jest.mock('../../shared/hooks/use_session_view_config'); jest.mock('../../../../common/hooks/use_license'); jest.mock('../../../../common/hooks/use_experimental_features'); jest.mock( @@ -84,7 +84,7 @@ describe('SessionPreviewContainer', () => { }); it('should render component and link in header', () => { - (useSessionPreview as jest.Mock).mockReturnValue(sessionViewConfig); + (useSessionViewConfig as jest.Mock).mockReturnValue(sessionViewConfig); (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => true }); const { getByTestId } = renderSessionPreview(); @@ -115,7 +115,7 @@ describe('SessionPreviewContainer', () => { }); it('should render error message and text in header if no sessionConfig', () => { - (useSessionPreview as jest.Mock).mockReturnValue(null); + (useSessionViewConfig as jest.Mock).mockReturnValue(null); (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => true }); const { getByTestId, queryByTestId } = renderSessionPreview(); @@ -133,7 +133,7 @@ describe('SessionPreviewContainer', () => { }); it('should render upsell message in header if no correct license', () => { - (useSessionPreview as jest.Mock).mockReturnValue(sessionViewConfig); + (useSessionViewConfig as jest.Mock).mockReturnValue(sessionViewConfig); (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => false }); const { getByTestId, queryByTestId } = renderSessionPreview(); @@ -152,7 +152,7 @@ describe('SessionPreviewContainer', () => { }); it('should not render link to session viewer if flyout is open in preview', () => { - (useSessionPreview as jest.Mock).mockReturnValue(sessionViewConfig); + (useSessionViewConfig as jest.Mock).mockReturnValue(sessionViewConfig); (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => true }); const { getByTestId, queryByTestId } = renderSessionPreview({ @@ -179,7 +179,7 @@ describe('SessionPreviewContainer', () => { }); it('should not render link to session viewer if flyout is open in preview mode', () => { - (useSessionPreview as jest.Mock).mockReturnValue(sessionViewConfig); + (useSessionViewConfig as jest.Mock).mockReturnValue(sessionViewConfig); (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => true }); const { getByTestId, queryByTestId } = renderSessionPreview({ @@ -199,7 +199,7 @@ describe('SessionPreviewContainer', () => { describe('when visualization in flyout flag is enabled', () => { it('should open left panel vizualization tab when visualization in flyout flag is on', () => { mockUseUiSetting.mockReturnValue([true]); - (useSessionPreview as jest.Mock).mockReturnValue(sessionViewConfig); + (useSessionViewConfig as jest.Mock).mockReturnValue(sessionViewConfig); (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => true }); const { getByTestId } = renderSessionPreview(); @@ -212,7 +212,7 @@ describe('SessionPreviewContainer', () => { }); it('should not render link to session viewer if flyout is open in rule preview', () => { - (useSessionPreview as jest.Mock).mockReturnValue(sessionViewConfig); + (useSessionViewConfig as jest.Mock).mockReturnValue(sessionViewConfig); (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => true }); const { getByTestId, queryByTestId } = renderSessionPreview({ @@ -230,7 +230,7 @@ describe('SessionPreviewContainer', () => { }); it('should not render link to session viewer if flyout is open in preview mode', () => { - (useSessionPreview as jest.Mock).mockReturnValue(sessionViewConfig); + (useSessionViewConfig as jest.Mock).mockReturnValue(sessionViewConfig); (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => true }); const { getByTestId, queryByTestId } = renderSessionPreview({ @@ -253,7 +253,7 @@ describe('SessionPreviewContainer', () => { beforeEach(() => { jest.clearAllMocks(); mockUseUiSetting.mockReturnValue([true]); - (useSessionPreview as jest.Mock).mockReturnValue(sessionViewConfig); + (useSessionViewConfig as jest.Mock).mockReturnValue(sessionViewConfig); (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => true }); (useIsExperimentalFeatureEnabled as jest.Mock).mockReturnValue(true); }); @@ -304,7 +304,7 @@ describe('SessionPreviewContainer', () => { beforeEach(() => { jest.clearAllMocks(); mockUseUiSetting.mockReturnValue([false]); - (useSessionPreview as jest.Mock).mockReturnValue(sessionViewConfig); + (useSessionViewConfig as jest.Mock).mockReturnValue(sessionViewConfig); (useLicense as jest.Mock).mockReturnValue({ isEnterprise: () => true }); (useIsExperimentalFeatureEnabled as jest.Mock).mockReturnValue(true); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/session_preview_container.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/session_preview_container.tsx index 2b9ffc32b871e..52d6dd134646e 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/session_preview_container.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/session_preview_container.tsx @@ -13,7 +13,7 @@ import { useUiSetting$ } from '@kbn/kibana-react-plugin/public'; import { ENABLE_VISUALIZATIONS_IN_FLYOUT_SETTING } from '../../../../../common/constants'; import { useLicense } from '../../../../common/hooks/use_license'; import { SessionPreview } from './session_preview'; -import { useSessionPreview } from '../hooks/use_session_preview'; +import { useSessionViewConfig } from '../../shared/hooks/use_session_view_config'; import { useInvestigateInTimeline } from '../../../../detections/components/alerts_table/timeline_actions/use_investigate_in_timeline'; import { useDocumentDetailsContext } from '../../shared/context'; import { ALERTS_ACTIONS } from '../../../../common/lib/apm/user_actions'; @@ -48,7 +48,7 @@ export const SessionPreviewContainer: FC = () => { ); // decide whether to show the session view or not - const sessionViewConfig = useSessionPreview({ getFieldsData, dataFormattedForFieldBrowser }); + const sessionViewConfig = useSessionViewConfig({ getFieldsData, dataFormattedForFieldBrowser }); const isEnterprisePlus = useLicense().isEnterprise(); const isEnabled = sessionViewConfig && isEnterprisePlus; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/test_ids.ts b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/test_ids.ts index 78afeb19e0b80..c73c41062f4f8 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/test_ids.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/test_ids.ts @@ -75,6 +75,10 @@ export const MITRE_ATTACK_DETAILS_TEST_ID = `${MITRE_ATTACK_TEST_ID}Details` as export const EVENT_RENDERER_TEST_ID = `${PREFIX}EventRenderer` as const; +export const WORKFLOW_STATUS_TEST_ID = `${PREFIX}WorkflowStatus` as const; +export const WORKFLOW_STATUS_TITLE_TEST_ID = `${WORKFLOW_STATUS_TEST_ID}Title` as const; +export const WORKFLOW_STATUS_DETAILS_TEST_ID = `${WORKFLOW_STATUS_TEST_ID}Details` as const; + /* Investigation section */ export const INVESTIGATION_SECTION_TEST_ID = `${PREFIX}InvestigationSection` as const; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/content.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/content.tsx new file mode 100644 index 0000000000000..ec6ec077f285d --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/content.tsx @@ -0,0 +1,36 @@ +/* + * 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. + */ + +import type { FC } from 'react'; +import React, { useMemo } from 'react'; +import type { SessionViewPanelPaths } from '.'; +import type { SessionViewPanelTabType } from './tabs'; +import { FlyoutBody } from '../../shared/components/flyout_body'; + +export interface PanelContentProps { + /** + * Id of the tab selected in the parent component to display its content + */ + selectedTabId: SessionViewPanelPaths; + /** + * Tabs display right below the flyout's header + */ + tabs: SessionViewPanelTabType[]; +} + +/** + * SessionView preview panel content, that renders the process, metadata and alerts tab contents. + */ +export const PanelContent: FC = ({ selectedTabId, tabs }) => { + const selectedTabContent = useMemo(() => { + return tabs.find((tab) => tab.id === selectedTabId)?.content; + }, [selectedTabId, tabs]); + + return {selectedTabContent}; +}; + +PanelContent.displayName = 'PanelContent'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/context.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/context.tsx new file mode 100644 index 0000000000000..6dd2e878957ce --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/context.tsx @@ -0,0 +1,147 @@ +/* + * 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. + */ + +import React, { createContext, memo, useContext, useMemo } from 'react'; +import type { ProcessEvent } from '@kbn/session-view-plugin/common'; +import { FlyoutError } from '../../shared/components/flyout_error'; +import type { SessionViewPanelProps } from '.'; + +export interface CustomProcess { + /** + * Id of the process + */ + id: string; + /** + * Details of the process (see implementation under getDetailsMemo here: x-pack/plugins/session_view/public/components/process_tree/hooks.ts) + */ + details: ProcessEvent; + /** + * Timestamp of the 'end' event (see implementation under getEndTime here x-pack/plugins/session_view/public/components/process_tree/hooks.ts) + */ + endTime: string; +} + +export interface SessionViewPanelContext { + /** + * Id of the document that was initially being investigated in the expandable flyout. + * This context needs to store it as it is used within the SessionView preview panel to be able to reopen the left panel with the same document. + */ + eventId: string; + /** + * Index used when investigating the initial document in the expandable flyout. + * This context needs to store it as it is used within the SessionView preview panel to be able to reopen the left panel with the same document. + */ + indexName: string; + /** + * ScopeId used when investigating the initial document in the expandable flyout. + * This context needs to store it as it is used within the SessionView preview panel to be able to reopen the left panel with the same document. + */ + scopeId: string; + /** + * Store a subset of properties from the SessionView component. + * The original object had functions as well as recursive properties, which we should not store in the context. + */ + selectedProcess: CustomProcess | null; + /** + * index used within the SessionView component + */ + index: string; + /** + * sessionEntityId value used to correctly render the SessionView component + */ + sessionEntityId: string; + /** + * sessionStartTime value used to correctly render the SessionView component + */ + sessionStartTime: string; + /** + * investigatedAlertId value used to correctly render the SessionView component + */ + investigatedAlertId: string; +} + +export const SessionViewPanelContext = createContext( + undefined +); + +export type SessionViewPanelProviderProps = { + /** + * React components to render + */ + children: React.ReactNode; +} & Partial; + +export const SessionViewPanelProvider = memo( + ({ + eventId, + indexName, + selectedProcess, + index, + sessionEntityId, + sessionStartTime, + scopeId, + investigatedAlertId, + children, + }: SessionViewPanelProviderProps) => { + const contextValue = useMemo( + () => + eventId && + indexName && + selectedProcess && + index && + sessionEntityId && + sessionStartTime && + scopeId && + investigatedAlertId + ? { + eventId, + indexName, + selectedProcess, + index, + sessionEntityId, + sessionStartTime, + scopeId, + investigatedAlertId, + } + : undefined, + [ + eventId, + indexName, + selectedProcess, + index, + sessionEntityId, + sessionStartTime, + scopeId, + investigatedAlertId, + ] + ); + + if (!contextValue) { + return ; + } + + return ( + + {children} + + ); + } +); + +SessionViewPanelProvider.displayName = 'SessionViewPanelProvider'; + +export const useSessionViewPanelContext = (): SessionViewPanelContext => { + const contextValue = useContext(SessionViewPanelContext); + + if (!contextValue) { + throw new Error( + 'SessionViewPanelContext can only be used within SessionViewPanelContext provider' + ); + } + + return contextValue; +}; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/header.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/header.tsx new file mode 100644 index 0000000000000..e1fa7aae991c6 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/header.tsx @@ -0,0 +1,59 @@ +/* + * 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. + */ + +import type { EuiFlyoutHeader } from '@elastic/eui'; +import { EuiTab } from '@elastic/eui'; +import type { FC } from 'react'; +import React, { memo } from 'react'; +import type { SessionViewPanelTabType } from './tabs'; +import type { SessionViewPanelPaths } from '.'; +import { FlyoutHeader } from '../../shared/components/flyout_header'; +import { FlyoutHeaderTabs } from '../../shared/components/flyout_header_tabs'; + +export interface PanelHeaderProps extends React.ComponentProps { + /** + * Id of the tab selected in the parent component to display its content + */ + selectedTabId: SessionViewPanelPaths; + /** + * Callback to set the selected tab id in the parent component + * @param selected + */ + setSelectedTabId: (selected: SessionViewPanelPaths) => void; + /** + * Tabs to display in the header + */ + tabs: SessionViewPanelTabType[]; +} + +/** + * Renders the process, metadata and alerts tabs in the SessionView preview panel header. + */ +export const PanelHeader: FC = memo( + ({ selectedTabId, setSelectedTabId, tabs, ...flyoutHeaderProps }) => { + const onSelectedTabChanged = (id: SessionViewPanelPaths) => setSelectedTabId(id); + + const renderTabs = tabs.map((tab, index) => ( + onSelectedTabChanged(tab.id)} + isSelected={tab.id === selectedTabId} + key={index} + data-test-subj={tab['data-test-subj']} + > + {tab.name} + + )); + + return ( + + {renderTabs} + + ); + } +); + +PanelHeader.displayName = 'PanelHeader'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/index.tsx new file mode 100644 index 0000000000000..2150c1f25a6c5 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/index.tsx @@ -0,0 +1,111 @@ +/* + * 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. + */ + +import type { FC } from 'react'; +import React, { memo, useCallback, useMemo } from 'react'; +import type { FlyoutPanelProps } from '@kbn/expandable-flyout'; +import { type PanelPath, useExpandableFlyoutApi } from '@kbn/expandable-flyout'; +import { PanelContent } from './content'; +import { PanelHeader } from './header'; +import type { CustomProcess } from './context'; +import { useSessionViewPanelContext } from './context'; +import type { SessionViewPanelTabType } from './tabs'; +import * as tabs from './tabs'; +import { DocumentDetailsSessionViewPanelKey } from '../shared/constants/panel_keys'; + +export const allTabs = [tabs.processTab, tabs.metadataTab, tabs.alertsTab]; +export type SessionViewPanelPaths = 'process' | 'metadata' | 'alerts'; + +export interface SessionViewPanelProps extends FlyoutPanelProps { + key: typeof DocumentDetailsSessionViewPanelKey; + path?: PanelPath; + params: { + eventId: string; + indexName: string; + selectedProcess: CustomProcess | null; + index: string; + sessionEntityId: string; + sessionStartTime: string; + scopeId: string; + investigatedAlertId: string; + }; +} + +/** + * Displays node details panel for session view + */ +export const SessionViewPanel: FC> = memo(({ path }) => { + const { openPreviewPanel } = useExpandableFlyoutApi(); + const { + eventId, + indexName, + selectedProcess, + index, + sessionEntityId, + sessionStartTime, + scopeId, + investigatedAlertId, + } = useSessionViewPanelContext(); + + const selectedTabId = useMemo(() => { + // we use the value passed from the url and use it if it exists in the list of tabs to display + if (path) { + const selectedTab = allTabs.map((tab) => tab.id).find((tabId) => tabId === path.tab); + if (selectedTab) { + return selectedTab; + } + } + + // we default back to the first tab of the list of tabs to display in case everything else has failed + return allTabs[0].id; + }, [path]); + + const setSelectedTabId = useCallback( + (tabId: SessionViewPanelTabType['id']) => { + openPreviewPanel({ + id: DocumentDetailsSessionViewPanelKey, + path: { + tab: tabId, + }, + params: { + eventId, + indexName, + selectedProcess, + index, + sessionEntityId, + sessionStartTime, + scopeId, + investigatedAlertId, + }, + }); + }, + [ + eventId, + index, + indexName, + investigatedAlertId, + openPreviewPanel, + scopeId, + selectedProcess, + sessionEntityId, + sessionStartTime, + ] + ); + + return ( + <> + + + + ); +}); + +SessionViewPanel.displayName = 'SessionViewPanel'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs.tsx new file mode 100644 index 0000000000000..e536448840837 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs.tsx @@ -0,0 +1,58 @@ +/* + * 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. + */ + +import type { ReactElement } from 'react'; +import React from 'react'; +import { FormattedMessage } from '@kbn/i18n-react'; +import { ProcessTab } from './tabs/process_tab'; +import { MetadataTab } from './tabs/metadata_tab'; +import { AlertsTab } from './tabs/alerts_tab'; +import { ALERTS_TAB_TEST_ID, METADATA_TAB_TEST_ID, PROCESS_TAB_TEST_ID } from './test_ids'; +import type { SessionViewPanelPaths } from '.'; + +export interface SessionViewPanelTabType { + id: SessionViewPanelPaths; + name: ReactElement; + content: React.ReactElement; + 'data-test-subj': string; +} + +export const processTab: SessionViewPanelTabType = { + id: 'process', + 'data-test-subj': PROCESS_TAB_TEST_ID, + name: ( + + ), + content: , +}; + +export const metadataTab: SessionViewPanelTabType = { + id: 'metadata', + 'data-test-subj': METADATA_TAB_TEST_ID, + name: ( + + ), + content: , +}; + +export const alertsTab: SessionViewPanelTabType = { + id: 'alerts', + 'data-test-subj': ALERTS_TAB_TEST_ID, + name: ( + + ), + content: , +}; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs/alerts_tab.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs/alerts_tab.tsx new file mode 100644 index 0000000000000..7bb55d43c5a0b --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs/alerts_tab.tsx @@ -0,0 +1,124 @@ +/* + * 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. + */ + +import React, { memo, useCallback, useMemo } from 'react'; +import { EuiPanel } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { DetailPanelAlertTab, useFetchSessionViewAlerts } from '@kbn/session-view-plugin/public'; +import type { ProcessEvent } from '@kbn/session-view-plugin/common'; +import { useExpandableFlyoutApi } from '@kbn/expandable-flyout'; +import { SESSION_VIEW_ID } from '../../left/components/session_view'; +import { + DocumentDetailsLeftPanelKey, + DocumentDetailsPreviewPanelKey, +} from '../../shared/constants/panel_keys'; +import { ALERT_PREVIEW_BANNER } from '../../preview/constants'; +import { useSessionViewPanelContext } from '../context'; + +/** + * Tab displayed in the SessionView preview panel, shows alerts related to the session. + */ +export const AlertsTab = memo(() => { + const { eventId, indexName, investigatedAlertId, sessionEntityId, sessionStartTime, scopeId } = + useSessionViewPanelContext(); + const { + data: alertsData, + fetchNextPage: fetchNextPageAlerts, + isFetching: isFetchingAlerts, + hasNextPage: hasNextPageAlerts, + } = useFetchSessionViewAlerts(sessionEntityId, sessionStartTime, undefined); + + // this code mimics what is being done in the x-pack/plugins/session_view/public/components/session_view/index.tsx file + const alerts = useMemo(() => { + let events: ProcessEvent[] = []; + + if (alertsData) { + alertsData.pages.forEach((page) => { + events = events.concat(page.events); + }); + } + + return events; + }, [alertsData]); + + const { openPreviewPanel, openLeftPanel } = useExpandableFlyoutApi(); + const openAlertDetailsPreview = useCallback( + (evtId?: string, onClose?: () => void) => { + openPreviewPanel({ + id: DocumentDetailsPreviewPanelKey, + params: { + id: evtId, + indexName, + scopeId, + banner: ALERT_PREVIEW_BANNER, + isPreviewMode: true, + }, + }); + }, + [openPreviewPanel, indexName, scopeId] + ); + + // this code mimics what is being done in the x-pack/plugins/session_view/public/components/session_view/index.tsx file + const jumpToEvent = useCallback( + (event: ProcessEvent) => { + let jumpToEntityId = null; + let jumpToCursor = null; + if (event.process) { + const { entity_id: entityId } = event.process; + if (entityId !== sessionEntityId) { + const alert = event.kibana?.alert; + const cursor = alert ? alert?.original_time : event['@timestamp']; + + if (cursor) { + jumpToEntityId = entityId; + jumpToCursor = cursor; + } + } + } + + openLeftPanel({ + id: DocumentDetailsLeftPanelKey, + params: { + id: eventId, + indexName, + scopeId, + jumpToEntityId, + jumpToCursor, + }, + path: { + tab: 'visualize', + subTab: SESSION_VIEW_ID, + }, + }); + }, + [eventId, indexName, openLeftPanel, scopeId, sessionEntityId] + ); + + return ( + + + + ); +}); + +AlertsTab.displayName = 'AlertsTab'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs/metadata_tab.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs/metadata_tab.tsx new file mode 100644 index 0000000000000..2d4486bf7fa68 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs/metadata_tab.tsx @@ -0,0 +1,40 @@ +/* + * 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. + */ + +import React, { memo } from 'react'; +import { EuiPanel } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { DetailPanelMetadataTab } from '@kbn/session-view-plugin/public'; +import { useSessionViewPanelContext } from '../context'; + +/** + * Tab displayed in the SessionView preview panel, shows metadata related process selected in the SessionView tree. + */ +export const MetadataTab = memo(() => { + const { selectedProcess } = useSessionViewPanelContext(); + + return ( + + + + ); +}); + +MetadataTab.displayName = 'MetadataTab'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs/process_tab.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs/process_tab.tsx new file mode 100644 index 0000000000000..b5117a2be0f6f --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/tabs/process_tab.tsx @@ -0,0 +1,50 @@ +/* + * 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. + */ + +import React, { memo, useMemo } from 'react'; +import { EuiPanel } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { DetailPanelProcessTab } from '@kbn/session-view-plugin/public'; +import type { Process } from '@kbn/session-view-plugin/common'; +import { useSessionViewPanelContext } from '../context'; + +/** + * Tab displayed in the SessionView preview panel, shows the details related to the process selected in the SessionView tree. + */ +export const ProcessTab = memo(() => { + const { selectedProcess, index } = useSessionViewPanelContext(); + + // We need to partially recreate the Process object here, as the SessionView code + // is expecting a Process object with at least the following properties + const process: Process | null = useMemo( + () => + selectedProcess + ? ({ + getDetails: () => selectedProcess.details, + id: selectedProcess.id, + getEndTime: () => selectedProcess.endTime, + } as Process) + : null, + [selectedProcess] + ); + + return ( + + + + ); +}); + +ProcessTab.displayName = 'ProcessTab'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/test_ids.ts b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/test_ids.ts new file mode 100644 index 0000000000000..c9f19314ef450 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/session_view/test_ids.ts @@ -0,0 +1,12 @@ +/* + * 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. + */ + +import { PREFIX } from '../../shared/test_ids'; + +export const PROCESS_TAB_TEST_ID = `${PREFIX}ProcessTab` as const; +export const METADATA_TAB_TEST_ID = `${PREFIX}MetadataTab` as const; +export const ALERTS_TAB_TEST_ID = `${PREFIX}AlertsTab` as const; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/constants/panel_keys.ts b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/constants/panel_keys.ts index fa40f1e0e6674..e68313ed6707e 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/constants/panel_keys.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/constants/panel_keys.ts @@ -12,3 +12,4 @@ export const DocumentDetailsPreviewPanelKey = 'document-details-preview' as cons export const DocumentDetailsIsolateHostPanelKey = 'document-details-isolate-host' as const; export const DocumentDetailsAlertReasonPanelKey = 'document-details-alert-reason' as const; export const DocumentDetailsAnalyzerPanelKey = 'document-details-analyzer-details' as const; +export const DocumentDetailsSessionViewPanelKey = 'document-details-sessions-view-details' as const; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/context.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/context.tsx index 12e2ad4f2a0b6..72da35f9286b2 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/context.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/context.tsx @@ -67,6 +67,14 @@ export interface DocumentDetailsContext { * Boolean to indicate whether it is a preview panel */ isPreviewMode: boolean; + /** + * To allow communication between the SessionView in the left panel and its preview panels + */ + jumpToEntityId?: string; + /** + * To allow communication between the SessionView in the left panel and its preview panels + */ + jumpToCursor?: string; } /** @@ -82,7 +90,15 @@ export type DocumentDetailsProviderProps = { } & Partial; export const DocumentDetailsProvider = memo( - ({ id, indexName, scopeId, isPreviewMode, children }: DocumentDetailsProviderProps) => { + ({ + id, + indexName, + scopeId, + jumpToEntityId, + jumpToCursor, + isPreviewMode, + children, + }: DocumentDetailsProviderProps) => { const { browserFields, dataAsNestedObject, @@ -117,20 +133,24 @@ export const DocumentDetailsProvider = memo( getFieldsData, isPreview: scopeId === TableId.rulePreview, isPreviewMode: Boolean(isPreviewMode), + jumpToEntityId, + jumpToCursor, } : undefined, [ id, - maybeRule, indexName, scopeId, - browserFields, dataAsNestedObject, dataFormattedForFieldBrowser, searchHit, + browserFields, + maybeRule?.investigation_fields?.field_names, refetchFlyoutData, getFieldsData, isPreviewMode, + jumpToEntityId, + jumpToCursor, ] ); diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_navigate_to_graph_visualization.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_navigate_to_graph_visualization.test.tsx index 929dc208f3b38..d8c7ff66d9787 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_navigate_to_graph_visualization.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_navigate_to_graph_visualization.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useExpandableFlyoutApi } from '@kbn/expandable-flyout'; import { mockFlyoutApi } from '../mocks/mock_flyout_context'; import { useWhichFlyout } from './use_which_flyout'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_navigate_to_left_panel.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_navigate_to_left_panel.test.tsx index 41c0d85fa660f..29e34b3f83220 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_navigate_to_left_panel.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_navigate_to_left_panel.test.tsx @@ -8,7 +8,7 @@ import { useNavigateToLeftPanel } from './use_navigate_to_left_panel'; import { useIsExperimentalFeatureEnabled } from '../../../../common/hooks/use_experimental_features'; import { useExpandableFlyoutApi } from '@kbn/expandable-flyout'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useDocumentDetailsContext } from '../context'; import { mockFlyoutApi } from '../mocks/mock_flyout_context'; import { DocumentDetailsRightPanelKey, DocumentDetailsLeftPanelKey } from '../constants/panel_keys'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/hooks/use_session_preview.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_session_view_config.test.tsx similarity index 79% rename from x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/hooks/use_session_preview.test.tsx rename to x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_session_view_config.test.tsx index 4e2e19c6b54fa..11cb97548e94c 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/hooks/use_session_preview.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_session_view_config.test.tsx @@ -7,15 +7,15 @@ import type { RenderHookResult } from '@testing-library/react'; import { renderHook } from '@testing-library/react'; -import type { UseSessionPreviewParams } from './use_session_preview'; -import { useSessionPreview } from './use_session_preview'; +import type { UseSessionViewConfigParams } from './use_session_view_config'; +import { useSessionViewConfig } from './use_session_view_config'; import type { SessionViewConfig } from '@kbn/securitysolution-data-table/common/types'; -import type { GetFieldsData } from '../../shared/hooks/use_get_fields_data'; -import { mockDataFormattedForFieldBrowser } from '../../shared/mocks/mock_data_formatted_for_field_browser'; -import { mockFieldData, mockGetFieldsData } from '../../shared/mocks/mock_get_fields_data'; +import type { GetFieldsData } from './use_get_fields_data'; +import { mockDataFormattedForFieldBrowser } from '../mocks/mock_data_formatted_for_field_browser'; +import { mockFieldData, mockGetFieldsData } from '../mocks/mock_get_fields_data'; -describe('useSessionPreview', () => { - let hookResult: RenderHookResult; +describe('useSessionViewConfig', () => { + let hookResult: RenderHookResult; it(`should return a session view config object if alert ancestor index is available`, () => { const getFieldsData: GetFieldsData = (field: string) => { @@ -36,7 +36,7 @@ describe('useSessionPreview', () => { }, ]; - hookResult = renderHook((props: UseSessionPreviewParams) => useSessionPreview(props), { + hookResult = renderHook((props: UseSessionViewConfigParams) => useSessionViewConfig(props), { initialProps: { getFieldsData, dataFormattedForFieldBrowser, @@ -71,7 +71,7 @@ describe('useSessionPreview', () => { isObjectArray: false, }, ]; - hookResult = renderHook((props: UseSessionPreviewParams) => useSessionPreview(props), { + hookResult = renderHook((props: UseSessionViewConfigParams) => useSessionViewConfig(props), { initialProps: { getFieldsData: mockGetFieldsData, dataFormattedForFieldBrowser, @@ -91,7 +91,7 @@ describe('useSessionPreview', () => { it(`should return null if data isn't ready for session view`, () => { const getFieldsData: GetFieldsData = (field: string) => ''; - hookResult = renderHook((props: UseSessionPreviewParams) => useSessionPreview(props), { + hookResult = renderHook((props: UseSessionViewConfigParams) => useSessionViewConfig(props), { initialProps: { getFieldsData, dataFormattedForFieldBrowser: mockDataFormattedForFieldBrowser, diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/hooks/use_session_preview.ts b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_session_view_config.ts similarity index 82% rename from x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/hooks/use_session_preview.ts rename to x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_session_view_config.ts index 4b2132d265871..891b550c1aee8 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/hooks/use_session_preview.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/hooks/use_session_view_config.ts @@ -7,11 +7,11 @@ import type { TimelineEventsDetailsItem } from '@kbn/timelines-plugin/common'; import type { SessionViewConfig } from '@kbn/securitysolution-data-table/common/types'; -import type { GetFieldsData } from '../../shared/hooks/use_get_fields_data'; -import { getField } from '../../shared/utils'; -import { useBasicDataFromDetailsData } from '../../shared/hooks/use_basic_data_from_details_data'; +import type { GetFieldsData } from './use_get_fields_data'; +import { getField } from '../utils'; +import { useBasicDataFromDetailsData } from './use_basic_data_from_details_data'; -export interface UseSessionPreviewParams { +export interface UseSessionViewConfigParams { /** * Retrieves searchHit values for the provided field */ @@ -25,10 +25,10 @@ export interface UseSessionPreviewParams { /** * Hook that returns the session view configuration if the session view is available for the alert */ -export const useSessionPreview = ({ +export const useSessionViewConfig = ({ getFieldsData, dataFormattedForFieldBrowser, -}: UseSessionPreviewParams): SessionViewConfig | null => { +}: UseSessionViewConfigParams): SessionViewConfig | null => { const { indexName: _index, alertId: _id } = useBasicDataFromDetailsData( dataFormattedForFieldBrowser ); diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/types.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/types.tsx index 00fb1da32449c..bc32e3e5b33bb 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/types.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/types.tsx @@ -19,5 +19,7 @@ export interface DocumentDetailsProps extends FlyoutPanelProps { indexName: string; scopeId: string; isPreviewMode?: boolean; + jumpToEntityId?: string; + jumpToCursor?: string; }; } diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/host_right/hooks/use_navigate_to_host_details.test.ts b/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/host_right/hooks/use_navigate_to_host_details.test.ts index 62b6c0ebe217b..aeeed8b030585 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/host_right/hooks/use_navigate_to_host_details.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/host_right/hooks/use_navigate_to_host_details.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useNavigateToHostDetails } from './use_navigate_to_host_details'; import { useIsExperimentalFeatureEnabled } from '../../../../common/hooks/use_experimental_features'; import { useExpandableFlyoutApi } from '@kbn/expandable-flyout'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/hooks/use_navigate_to_user_details.test.ts b/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/hooks/use_navigate_to_user_details.test.ts index 58f9860389d69..be5617eed96ad 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/hooks/use_navigate_to_user_details.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right/hooks/use_navigate_to_user_details.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useNavigateToUserDetails } from './use_navigate_to_user_details'; import { useIsExperimentalFeatureEnabled } from '../../../../common/hooks/use_experimental_features'; import { useExpandableFlyoutApi } from '@kbn/expandable-flyout'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/flyout/index.tsx index 64fac23dfa98e..d4a5281e00a4c 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/index.tsx @@ -8,6 +8,9 @@ import React, { memo, useCallback } from 'react'; import { ExpandableFlyout, type ExpandableFlyoutProps } from '@kbn/expandable-flyout'; import { useEuiTheme } from '@elastic/eui'; +import { SessionViewPanelProvider } from './document_details/session_view/context'; +import type { SessionViewPanelProps } from './document_details/session_view'; +import { SessionViewPanel } from './document_details/session_view'; import type { NetworkExpandableFlyoutProps } from './network_details'; import { Flyouts } from './document_details/shared/constants/flyouts'; import { @@ -17,6 +20,7 @@ import { DocumentDetailsPreviewPanelKey, DocumentDetailsAlertReasonPanelKey, DocumentDetailsAnalyzerPanelKey, + DocumentDetailsSessionViewPanelKey, } from './document_details/shared/constants/panel_keys'; import type { IsolateHostPanelProps } from './document_details/isolate_host'; import { IsolateHostPanel } from './document_details/isolate_host'; @@ -104,6 +108,14 @@ const expandableFlyoutDocumentsPanels: ExpandableFlyoutProps['registeredPanels'] ), }, + { + key: DocumentDetailsSessionViewPanelKey, + component: (props) => ( + + + + ), + }, { key: UserPanelKey, component: (props) => , diff --git a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_banner/onboarding_banner.tsx b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_banner/onboarding_banner.tsx index 0976dbc110cc8..f2345aef155dd 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_banner/onboarding_banner.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_banner/onboarding_banner.tsx @@ -7,21 +7,21 @@ import React, { useCallback } from 'react'; -import { AVCResultsBanner2024, useIsStillYear2024 } from '@kbn/avc-banner'; +import { AVCResultsBanner, useIsStillYear2025 } from '@kbn/avc-banner'; import { useStoredIsAVCBannerDismissed } from '../hooks/use_stored_state'; export const OnboardingBanner = React.memo(() => { const [isAVCBannerDismissed, setIsAVCBannerDismissed] = useStoredIsAVCBannerDismissed(); - const isStillYear2024 = useIsStillYear2024(); + const isStillYear2025 = useIsStillYear2025(); const dismissAVCBanner = useCallback(() => { setIsAVCBannerDismissed(true); }, [setIsAVCBannerDismissed]); - if (isAVCBannerDismissed || !isStillYear2024) { + if (isAVCBannerDismissed || !isStillYear2025) { return null; } - return ; + return ; }); OnboardingBanner.displayName = 'OnboardingBanner'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/resolver/view/controls/show_panel.tsx b/x-pack/solutions/security/plugins/security_solution/public/resolver/view/controls/show_panel.tsx index 72fa6c925f680..11626042c79f4 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/resolver/view/controls/show_panel.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/resolver/view/controls/show_panel.tsx @@ -27,7 +27,7 @@ export const ShowPanelButton = memo(({ showPanelOnClick }: { showPanelOnClick: ( title={showPanelButtonTitle} aria-label={showPanelButtonTitle} onClick={showPanelOnClick} - iconType={'eye'} + iconType={'list'} $backgroundColor={colorMap.graphControlsBackground} $iconColor={colorMap.graphControls} $borderColor={colorMap.graphControlsBorderColor} diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/api/index.ts b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/api/index.ts index 02fb423b05279..2e027837623ce 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/api/index.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/api/index.ts @@ -23,6 +23,7 @@ import { SIEM_RULE_MIGRATION_RESOURCES_MISSING_PATH, SIEM_RULE_MIGRATION_RESOURCES_PATH, SIEM_RULE_MIGRATIONS_PREBUILT_RULES_PATH, + SIEM_RULE_MIGRATION_RETRY_PATH, } from '../../../../common/siem_migrations/constants'; import type { CreateRuleMigrationRequestBody, @@ -39,6 +40,9 @@ import type { UpsertRuleMigrationResourcesResponse, GetRuleMigrationPrebuiltRulesResponse, UpdateRuleMigrationResponse, + RetryRuleMigrationRequestBody, + StartRuleMigrationResponse, + RetryRuleMigrationResponse, } from '../../../../common/siem_migrations/model/api/rules/rule_migration.gen'; export interface GetRuleMigrationStatsParams { @@ -146,17 +150,54 @@ export const startRuleMigration = async ({ connectorId, langSmithOptions, signal, -}: StartRuleMigrationParams): Promise => { +}: StartRuleMigrationParams): Promise => { const body: StartRuleMigrationRequestBody = { connector_id: connectorId }; if (langSmithOptions) { body.langsmith_options = langSmithOptions; } - return KibanaServices.get().http.put( + return KibanaServices.get().http.put( replaceParams(SIEM_RULE_MIGRATION_START_PATH, { migration_id: migrationId }), { body: JSON.stringify(body), version: '1', signal } ); }; +export interface RetryRuleMigrationParams { + /** `id` of the migration to reprocess rules for */ + migrationId: string; + /** The connector id to use for the reprocessing */ + connectorId: string; + /** Optional LangSmithOptions to use for the for the reprocessing */ + langSmithOptions?: LangSmithOptions; + /** Optional indicator to retry only failed rules */ + failed?: boolean; + /** Optional indicator to retry only not fully translated rules */ + notFullyTranslated?: boolean; + /** Optional AbortSignal for cancelling request */ + signal?: AbortSignal; +} +/** Starts a reprocessing of migration rules in a specific migration. */ +export const retryRuleMigration = async ({ + migrationId, + connectorId, + langSmithOptions, + failed, + notFullyTranslated, + signal, +}: RetryRuleMigrationParams): Promise => { + const body: RetryRuleMigrationRequestBody = { + connector_id: connectorId, + failed, + not_fully_translated: notFullyTranslated, + }; + if (langSmithOptions) { + body.langsmith_options = langSmithOptions; + } + return KibanaServices.get().http.put( + replaceParams(SIEM_RULE_MIGRATION_RETRY_PATH, { migration_id: migrationId }), + { body: JSON.stringify(body), version: '1', signal } + ); +}; + export interface GetRuleMigrationParams { /** `id` of the migration to get rules documents for */ migrationId: string; diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/bulk_actions.tsx b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/bulk_actions.tsx index 8f32308ed52c4..60cd2418c8bf8 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/bulk_actions.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/bulk_actions.tsx @@ -6,21 +6,17 @@ */ import React from 'react'; -import { - EuiButton, - EuiButtonEmpty, - EuiFlexGroup, - EuiFlexItem, - EuiLoadingSpinner, -} from '@elastic/eui'; +import { EuiButton, EuiButtonEmpty, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import * as i18n from './translations'; export interface BulkActionsProps { isTableLoading: boolean; + numberOfFailedRules: number; numberOfTranslatedRules: number; numberOfSelectedRules: number; installTranslatedRule?: () => void; installSelectedRule?: () => void; + reprocessFailedRules?: () => void; } /** @@ -29,43 +25,60 @@ export interface BulkActionsProps { export const BulkActions: React.FC = React.memo( ({ isTableLoading, + numberOfFailedRules, numberOfTranslatedRules, numberOfSelectedRules, installTranslatedRule, installSelectedRule, + reprocessFailedRules, }) => { const disableInstallTranslatedRulesButton = isTableLoading || !numberOfTranslatedRules; - const showInstallSelectedRulesButton = isTableLoading || numberOfSelectedRules > 0; + const showInstallSelectedRulesButton = numberOfSelectedRules > 0; + const showRetryFailedRulesButton = numberOfFailedRules > 0; return ( - {showInstallSelectedRulesButton ? ( + {showInstallSelectedRulesButton && ( installSelectedRule?.()} disabled={isTableLoading} + isLoading={isTableLoading} data-test-subj="installSelectedRulesButton" aria-label={i18n.INSTALL_SELECTED_ARIA_LABEL} > {i18n.INSTALL_SELECTED_RULES(numberOfSelectedRules)} - {isTableLoading && } - ) : null} + )} + {showRetryFailedRulesButton && ( + + reprocessFailedRules?.()} + disabled={isTableLoading} + isLoading={isTableLoading} + data-test-subj="reprocessFailedRulesButton" + aria-label={i18n.REPROCESS_FAILED_ARIA_LABEL} + > + {i18n.REPROCESS_FAILED_RULES(numberOfFailedRules)} + + + )} installTranslatedRule?.()} disabled={disableInstallTranslatedRulesButton} + isLoading={isTableLoading} + data-test-subj="installTranslatedRulesButton" aria-label={i18n.INSTALL_TRANSLATED_ARIA_LABEL} > {numberOfTranslatedRules > 0 ? i18n.INSTALL_TRANSLATED_RULES(numberOfTranslatedRules) : i18n.INSTALL_TRANSLATED_RULES_EMPTY_STATE} - {isTableLoading && } diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/index.tsx index b883934a0bdcb..65a7628185bbe 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/index.tsx @@ -33,6 +33,7 @@ import { BulkActions } from './bulk_actions'; import { SearchField } from './search_field'; import { RuleTranslationResult } from '../../../../../common/siem_migrations/constants'; import * as i18n from './translations'; +import { useRetryRuleMigration } from '../../service/hooks/use_retry_rules'; const DEFAULT_PAGE_SIZE = 10; const DEFAULT_SORT_FIELD = 'translation_result'; @@ -43,13 +44,18 @@ export interface MigrationRulesTableProps { * Selected rule migration id */ migrationId: string; + + /** + * Re-fetches latest rule migration data + */ + refetchData?: () => void; } /** * Table Component for displaying SIEM rules migrations */ export const MigrationRulesTable: React.FC = React.memo( - ({ migrationId }) => { + ({ migrationId, refetchData }) => { const { addError } = useAppToasts(); const [pageIndex, setPageIndex] = useState(0); @@ -132,6 +138,7 @@ export const MigrationRulesTable: React.FC = React.mem const { mutateAsync: installMigrationRules } = useInstallMigrationRules(migrationId); const { mutateAsync: installTranslatedMigrationRules } = useInstallTranslatedMigrationRules(migrationId); + const { retryRuleMigration, isLoading: isRetryLoading } = useRetryRuleMigration(refetchData); const [isTableLoading, setTableLoading] = useState(false); const installSingleRule = useCallback( @@ -180,7 +187,12 @@ export const MigrationRulesTable: React.FC = React.mem [addError, installTranslatedMigrationRules] ); - const isLoading = isStatsLoading || isPrebuiltRulesLoading || isDataLoading || isTableLoading; + const reprocessFailedRules = useCallback(async () => { + retryRuleMigration(migrationId, { failed: true }); + }, [migrationId, retryRuleMigration]); + + const isLoading = + isStatsLoading || isPrebuiltRulesLoading || isDataLoading || isTableLoading || isRetryLoading; const ruleActionsFactory = useCallback( (ruleMigration: RuleMigration, closeRulePreview: () => void) => { @@ -268,10 +280,12 @@ export const MigrationRulesTable: React.FC = React.mem diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/translations.ts b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/translations.ts index 79b5a1fe00900..b553b6dfd7358 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/translations.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/translations.ts @@ -49,6 +49,13 @@ export const INSTALL_SELECTED_RULES = (numberOfSelectedRules: number) => { }); }; +export const REPROCESS_FAILED_RULES = (numberOfFailedRules: number) => { + return i18n.translate('xpack.securitySolution.siemMigrations.rules.table.reprocessFailedRules', { + defaultMessage: 'Reprocess rules ({numberOfFailedRules})', + values: { numberOfFailedRules }, + }); +}; + export const INSTALL_TRANSLATED_RULES_EMPTY_STATE = i18n.translate( 'xpack.securitySolution.siemMigrations.rules.table.installTranslatedRulesEmptyState', { @@ -81,6 +88,13 @@ export const INSTALL_TRANSLATED_ARIA_LABEL = i18n.translate( } ); +export const REPROCESS_FAILED_ARIA_LABEL = i18n.translate( + 'xpack.securitySolution.siemMigrations.rules.table.reprocessFailedRulesButtonAriaLabel', + { + defaultMessage: 'Reprocess failed rules', + } +); + export const ALREADY_TRANSLATED_RULE_TOOLTIP = i18n.translate( 'xpack.securitySolution.siemMigrations.rules.table.alreadyTranslatedTooltip', { diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/actions.tsx b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/actions.tsx index 45de70582d4b1..a8175cbffc4db 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/actions.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/actions.tsx @@ -7,12 +7,19 @@ import React from 'react'; import { EuiLink } from '@elastic/eui'; +import { + RuleTranslationResult, + SiemMigrationStatus, +} from '../../../../../common/siem_migrations/constants'; import { getRuleDetailsUrl } from '../../../../common/components/link_to'; import { useKibana } from '../../../../common/lib/kibana'; import { APP_UI_ID, SecurityPageName } from '../../../../../common'; -import type { RuleMigration } from '../../../../../common/siem_migrations/model/rule_migration.gen'; +import { + RuleMigrationStatusEnum, + type RuleMigration, +} from '../../../../../common/siem_migrations/model/rule_migration.gen'; import * as i18n from './translations'; -import type { TableColumn } from './constants'; +import { type TableColumn } from './constants'; interface ActionNameProps { disableActions?: boolean; @@ -46,7 +53,7 @@ const ActionName = ({ ); } - if (migrationRule.status === 'failed') { + if (migrationRule.status === SiemMigrationStatus.FAILED) { return ( {}} data-test-subj="restartRule"> {i18n.ACTIONS_RESTART_LABEL} @@ -54,7 +61,7 @@ const ActionName = ({ ); } - if (migrationRule.translation_result === 'full') { + if (migrationRule.translation_result === RuleTranslationResult.FULL) { return ( { - return ( + render: (_, rule: RuleMigration) => { + return rule.status === RuleMigrationStatusEnum.failed ? null : ( diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/author.tsx b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/author.tsx index 23980f5612f89..25aad27f2751c 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/author.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/author.tsx @@ -7,9 +7,10 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiIcon } from '@elastic/eui'; -import type { RuleMigration } from '../../../../../common/siem_migrations/model/rule_migration.gen'; +import { SiemMigrationStatus } from '../../../../../common/siem_migrations/constants'; +import { type RuleMigration } from '../../../../../common/siem_migrations/model/rule_migration.gen'; import * as i18n from './translations'; -import type { TableColumn } from './constants'; +import { COLUMN_EMPTY_VALUE, type TableColumn } from './constants'; const Author = ({ isPrebuiltRule }: { isPrebuiltRule: boolean }) => { return ( @@ -31,7 +32,11 @@ export const createAuthorColumn = (): TableColumn => { field: 'elastic_rule.prebuilt_rule_id', name: i18n.COLUMN_AUTHOR, render: (_, rule: RuleMigration) => { - return ; + return rule.status === SiemMigrationStatus.FAILED ? ( + <>{COLUMN_EMPTY_VALUE} + ) : ( + + ); }, sortable: true, width: '10%', diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/constants.tsx b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/constants.tsx index 724e4dcb101a1..1576b13f76dc6 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/constants.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/constants.tsx @@ -9,3 +9,5 @@ import type { EuiBasicTableColumn } from '@elastic/eui'; import type { RuleMigration } from '../../../../../common/siem_migrations/model/rule_migration.gen'; export type TableColumn = EuiBasicTableColumn; + +export const COLUMN_EMPTY_VALUE = '-'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/name.tsx b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/name.tsx index ce0e1d3c99d8d..56f4123403c97 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/name.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/name.tsx @@ -7,7 +7,8 @@ import React from 'react'; import { EuiLink, EuiText } from '@elastic/eui'; -import type { RuleMigration } from '../../../../../common/siem_migrations/model/rule_migration.gen'; +import { SiemMigrationStatus } from '../../../../../common/siem_migrations/constants'; +import { type RuleMigration } from '../../../../../common/siem_migrations/model/rule_migration.gen'; import * as i18n from './translations'; import type { TableColumn } from './constants'; @@ -17,7 +18,7 @@ interface NameProps { } const Name = ({ rule, openMigrationRuleDetails }: NameProps) => { - if (!rule.elastic_rule) { + if (rule.status === SiemMigrationStatus.FAILED) { return ( {rule.original_rule.title} @@ -31,7 +32,7 @@ const Name = ({ rule, openMigrationRuleDetails }: NameProps) => { }} data-test-subj="ruleName" > - {rule.elastic_rule.title} + {rule.elastic_rule?.title ?? rule.original_rule.title} ); }; diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/risk_score.tsx b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/risk_score.tsx index 0fb78ae8bf709..d0584cc14e2af 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/risk_score.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/risk_score.tsx @@ -7,17 +7,23 @@ import React from 'react'; import { EuiText } from '@elastic/eui'; -import { DEFAULT_TRANSLATION_RISK_SCORE } from '../../../../../common/siem_migrations/constants'; +import { type RuleMigration } from '../../../../../common/siem_migrations/model/rule_migration.gen'; +import { + DEFAULT_TRANSLATION_RISK_SCORE, + SiemMigrationStatus, +} from '../../../../../common/siem_migrations/constants'; import * as i18n from './translations'; -import type { TableColumn } from './constants'; +import { COLUMN_EMPTY_VALUE, type TableColumn } from './constants'; export const createRiskScoreColumn = (): TableColumn => { return { field: 'risk_score', name: i18n.COLUMN_RISK_SCORE, - render: () => ( + render: (_, rule: RuleMigration) => ( - {DEFAULT_TRANSLATION_RISK_SCORE} + {rule.status === SiemMigrationStatus.FAILED + ? COLUMN_EMPTY_VALUE + : DEFAULT_TRANSLATION_RISK_SCORE} ), sortable: true, diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/severity.tsx b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/severity.tsx index 9a6c0b98ff317..2a97288eef267 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/severity.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table_columns/severity.tsx @@ -7,16 +7,25 @@ import React from 'react'; import type { Severity } from '@kbn/securitysolution-io-ts-alerting-types'; -import { DEFAULT_TRANSLATION_SEVERITY } from '../../../../../common/siem_migrations/constants'; +import { type RuleMigration } from '../../../../../common/siem_migrations/model/rule_migration.gen'; +import { + DEFAULT_TRANSLATION_SEVERITY, + SiemMigrationStatus, +} from '../../../../../common/siem_migrations/constants'; import { SeverityBadge } from '../../../../common/components/severity_badge'; -import type { TableColumn } from './constants'; +import { COLUMN_EMPTY_VALUE, type TableColumn } from './constants'; import * as i18n from './translations'; export const createSeverityColumn = (): TableColumn => { return { field: 'elastic_rule.severity', name: i18n.COLUMN_SEVERITY, - render: (value?: Severity) => , + render: (value: Severity = DEFAULT_TRANSLATION_SEVERITY, rule: RuleMigration) => + rule.status === SiemMigrationStatus.FAILED ? ( + <>{COLUMN_EMPTY_VALUE} + ) : ( + + ), sortable: true, truncateText: true, width: '12%', diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/translations.ts b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/translations.ts index ef3521fd37301..e83293ec61097 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/translations.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/translations.ts @@ -41,3 +41,10 @@ export const UPDATE_MIGRATION_RULES_FAILURE = i18n.translate( defaultMessage: 'Failed to update migration rules', } ); + +export const RETRY_FAILED_RULES_FAILURE = i18n.translate( + 'xpack.securitySolution.siemMigrations.rules.retryFailedRulesFailDescription', + { + defaultMessage: 'Failed to reprocess migration rules', + } +); diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_get_migration_rules.ts b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_get_migration_rules.ts index b06f041e2c58e..ffa382e5a3a40 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_get_migration_rules.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_get_migration_rules.ts @@ -52,20 +52,23 @@ export const useGetMigrationRules = (params: { * * @returns A rule migrations cache invalidation callback */ -export const useInvalidateGetMigrationRules = (migrationId: string) => { +export const useInvalidateGetMigrationRules = () => { const queryClient = useQueryClient(); - const SPECIFIC_MIGRATION_PATH = replaceParams(SIEM_RULE_MIGRATION_PATH, { - migration_id: migrationId, - }); + return useCallback( + (migrationId: string) => { + const SPECIFIC_MIGRATION_PATH = replaceParams(SIEM_RULE_MIGRATION_PATH, { + migration_id: migrationId, + }); - return useCallback(() => { - /** - * Invalidate all queries that start with SPECIFIC_MIGRATION_PATH. This - * includes the in-memory query cache and paged query cache. - */ - queryClient.invalidateQueries(['GET', SPECIFIC_MIGRATION_PATH], { - refetchType: 'active', - }); - }, [SPECIFIC_MIGRATION_PATH, queryClient]); + /** + * Invalidate all queries that start with SPECIFIC_MIGRATION_PATH. This + * includes the in-memory query cache and paged query cache. + */ + queryClient.invalidateQueries(['GET', SPECIFIC_MIGRATION_PATH], { + refetchType: 'active', + }); + }, + [queryClient] + ); }; diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_get_migration_translation_stats.ts b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_get_migration_translation_stats.ts index b19a1133e3061..0111c3382cfe2 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_get_migration_translation_stats.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_get_migration_translation_stats.ts @@ -44,19 +44,22 @@ export const useGetMigrationTranslationStats = (migrationId: string) => { * * @returns A translation stats cache invalidation callback */ -export const useInvalidateGetMigrationTranslationStats = (migrationId: string) => { +export const useInvalidateGetMigrationTranslationStats = () => { const queryClient = useQueryClient(); - const SPECIFIC_MIGRATION_TRANSLATION_PATH = replaceParams( - SIEM_RULE_MIGRATION_TRANSLATION_STATS_PATH, - { - migration_id: migrationId, - } - ); + return useCallback( + (migrationId: string) => { + const SPECIFIC_MIGRATION_TRANSLATION_PATH = replaceParams( + SIEM_RULE_MIGRATION_TRANSLATION_STATS_PATH, + { + migration_id: migrationId, + } + ); - return useCallback(() => { - queryClient.invalidateQueries(['GET', SPECIFIC_MIGRATION_TRANSLATION_PATH], { - refetchType: 'active', - }); - }, [SPECIFIC_MIGRATION_TRANSLATION_PATH, queryClient]); + queryClient.invalidateQueries(['GET', SPECIFIC_MIGRATION_TRANSLATION_PATH], { + refetchType: 'active', + }); + }, + [queryClient] + ); }; diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_install_migration_rules.ts b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_install_migration_rules.ts index 2b28b3b944990..b69be3b86d11c 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_install_migration_rules.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_install_migration_rules.ts @@ -19,9 +19,8 @@ export const INSTALL_MIGRATION_RULES_MUTATION_KEY = ['POST', SIEM_RULE_MIGRATION export const useInstallMigrationRules = (migrationId: string) => { const { addError } = useAppToasts(); - const invalidateGetRuleMigrations = useInvalidateGetMigrationRules(migrationId); - const invalidateGetMigrationTranslationStats = - useInvalidateGetMigrationTranslationStats(migrationId); + const invalidateGetRuleMigrations = useInvalidateGetMigrationRules(); + const invalidateGetMigrationTranslationStats = useInvalidateGetMigrationTranslationStats(); return useMutation( ({ ids, enabled = false }) => installMigrationRules({ migrationId, ids, enabled }), @@ -31,8 +30,8 @@ export const useInstallMigrationRules = (migrationId: string) => { addError(error, { title: i18n.INSTALL_MIGRATION_RULES_FAILURE }); }, onSettled: () => { - invalidateGetRuleMigrations(); - invalidateGetMigrationTranslationStats(); + invalidateGetRuleMigrations(migrationId); + invalidateGetMigrationTranslationStats(migrationId); }, } ); diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_install_translated_migration_rules.ts b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_install_translated_migration_rules.ts index b0d9e11136396..bcce981a4cfb5 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_install_translated_migration_rules.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_install_translated_migration_rules.ts @@ -22,9 +22,8 @@ export const INSTALL_ALL_MIGRATION_RULES_MUTATION_KEY = [ export const useInstallTranslatedMigrationRules = (migrationId: string) => { const { addError } = useAppToasts(); - const invalidateGetRuleMigrations = useInvalidateGetMigrationRules(migrationId); - const invalidateGetMigrationTranslationStats = - useInvalidateGetMigrationTranslationStats(migrationId); + const invalidateGetRuleMigrations = useInvalidateGetMigrationRules(); + const invalidateGetMigrationTranslationStats = useInvalidateGetMigrationTranslationStats(); return useMutation( () => installTranslatedMigrationRules({ migrationId }), @@ -34,8 +33,8 @@ export const useInstallTranslatedMigrationRules = (migrationId: string) => { addError(error, { title: i18n.INSTALL_MIGRATION_RULES_FAILURE }); }, onSettled: () => { - invalidateGetRuleMigrations(); - invalidateGetMigrationTranslationStats(); + invalidateGetRuleMigrations(migrationId); + invalidateGetMigrationTranslationStats(migrationId); }, } ); diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_update_migration_rules.ts b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_update_migration_rules.ts index 1e0fa22c466f0..2c39da63f8374 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_update_migration_rules.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/logic/use_update_migration_rules.ts @@ -20,9 +20,8 @@ export const UPDATE_MIGRATION_RULES_MUTATION_KEY = ['PUT', SIEM_RULE_MIGRATIONS_ export const useUpdateMigrationRules = (migrationId: string) => { const { addError } = useAppToasts(); - const invalidateGetRuleMigrations = useInvalidateGetMigrationRules(migrationId); - const invalidateGetMigrationTranslationStats = - useInvalidateGetMigrationTranslationStats(migrationId); + const invalidateGetRuleMigrations = useInvalidateGetMigrationRules(); + const invalidateGetMigrationTranslationStats = useInvalidateGetMigrationTranslationStats(); return useMutation( (rulesToUpdate) => updateMigrationRules({ rulesToUpdate }), @@ -32,8 +31,8 @@ export const useUpdateMigrationRules = (migrationId: string) => { addError(error, { title: i18n.UPDATE_MIGRATION_RULES_FAILURE }); }, onSettled: () => { - invalidateGetRuleMigrations(); - invalidateGetMigrationTranslationStats(); + invalidateGetRuleMigrations(migrationId); + invalidateGetMigrationTranslationStats(migrationId); }, } ); diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/pages/index.tsx b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/pages/index.tsx index 3877a6f46cbe7..f0f14bce70bbf 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/pages/index.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/pages/index.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import React, { useEffect, useMemo } from 'react'; +import React, { useCallback, useEffect, useMemo } from 'react'; import { EuiSkeletonLoading, EuiSkeletonText, EuiSkeletonTitle } from '@elastic/eui'; import type { RouteComponentProps } from 'react-router-dom'; @@ -22,6 +22,11 @@ import { MissingPrivilegesCallOut } from '../../../detections/components/callout import { HeaderButtons } from '../components/header_buttons'; import { UnknownMigration } from '../components/unknown_migration'; import { useLatestStats } from '../service/hooks/use_latest_stats'; +import { RuleMigrationDataInputWrapper } from '../components/data_input_flyout/data_input_wrapper'; +import { MigrationReadyPanel } from '../components/migration_status_panels/migration_ready_panel'; +import { MigrationProgressPanel } from '../components/migration_status_panels/migration_progress_panel'; +import { useInvalidateGetMigrationRules } from '../logic/use_get_migration_rules'; +import { useInvalidateGetMigrationTranslationStats } from '../logic/use_get_migration_translation_stats'; type MigrationRulesPageProps = RouteComponentProps<{ migrationId?: string }>; @@ -32,25 +37,15 @@ export const MigrationRulesPage: React.FC = React.memo( }, }) => { const { navigateTo } = useNavigation(); - - const { data: ruleMigrationsStatsAll, isLoading: isLoadingMigrationsStats } = useLatestStats(); - - const finishedRuleMigrationsStats = useMemo(() => { - if (isLoadingMigrationsStats || !ruleMigrationsStatsAll?.length) { - return []; - } - return ruleMigrationsStatsAll.filter( - (migration) => migration.status === SiemMigrationTaskStatus.FINISHED - ); - }, [isLoadingMigrationsStats, ruleMigrationsStatsAll]); + const { data: ruleMigrationsStats, isLoading, refreshStats } = useLatestStats(); useEffect(() => { - if (isLoadingMigrationsStats) { + if (isLoading) { return; } // Navigate to landing page if there are no migrations - if (!finishedRuleMigrationsStats.length) { + if (!ruleMigrationsStats.length) { navigateTo({ deepLinkId: SecurityPageName.landing, path: 'siem_migrations' }); return; } @@ -59,21 +54,52 @@ export const MigrationRulesPage: React.FC = React.memo( if (!migrationId) { navigateTo({ deepLinkId: SecurityPageName.siemMigrationsRules, - path: finishedRuleMigrationsStats[0].id, + path: ruleMigrationsStats[0].id, }); } - }, [isLoadingMigrationsStats, migrationId, finishedRuleMigrationsStats, navigateTo]); + }, [isLoading, migrationId, navigateTo, ruleMigrationsStats]); const onMigrationIdChange = (selectedId?: string) => { navigateTo({ deepLinkId: SecurityPageName.siemMigrationsRules, path: selectedId }); }; + const invalidateGetRuleMigrations = useInvalidateGetMigrationRules(); + const invalidateGetMigrationTranslationStats = useInvalidateGetMigrationTranslationStats(); + const refetchData = useCallback(() => { + if (!migrationId) { + return; + } + refreshStats(); + invalidateGetRuleMigrations(migrationId); + invalidateGetMigrationTranslationStats(migrationId); + }, [ + invalidateGetMigrationTranslationStats, + invalidateGetRuleMigrations, + migrationId, + refreshStats, + ]); + const content = useMemo(() => { - if (!migrationId || !finishedRuleMigrationsStats.some((stats) => stats.id === migrationId)) { + const migrationStats = ruleMigrationsStats.find((stats) => stats.id === migrationId); + if (!migrationId || !migrationStats) { return ; } - return ; - }, [migrationId, finishedRuleMigrationsStats]); + if (migrationStats.status === SiemMigrationTaskStatus.FINISHED) { + return ; + } + return ( + + <> + {migrationStats.status === SiemMigrationTaskStatus.READY && ( + + )} + {migrationStats.status === SiemMigrationTaskStatus.RUNNING && ( + + )} + + + ); + }, [migrationId, refetchData, ruleMigrationsStats]); return ( <> @@ -83,13 +109,13 @@ export const MigrationRulesPage: React.FC = React.memo( diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/service/hooks/use_retry_rules.ts b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/service/hooks/use_retry_rules.ts new file mode 100644 index 0000000000000..6755d2da738a6 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/service/hooks/use_retry_rules.ts @@ -0,0 +1,51 @@ +/* + * 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. + */ + +import { useCallback, useReducer } from 'react'; +import { i18n } from '@kbn/i18n'; +import { useKibana } from '../../../../common/lib/kibana/kibana_react'; +import { reducer, initialState } from './common/api_request_reducer'; +import type { RetryRuleMigrationFilter } from '../../types'; + +export const RETRY_RULE_MIGRATION_SUCCESS = i18n.translate( + 'xpack.securitySolution.siemMigrations.rules.service.retryMigrationRulesSuccess', + { defaultMessage: 'Retry rule migration started successfully.' } +); +export const RETRY_RULE_MIGRATION_ERROR = i18n.translate( + 'xpack.securitySolution.siemMigrations.rules.service.retryMigrationRulesError', + { defaultMessage: 'Error retrying a rule migration.' } +); + +export type RetryRuleMigration = (migrationId: string, filter?: RetryRuleMigrationFilter) => void; +export type OnSuccess = () => void; + +export const useRetryRuleMigration = (onSuccess?: OnSuccess) => { + const { siemMigrations, notifications } = useKibana().services; + const [state, dispatch] = useReducer(reducer, initialState); + + const retryRuleMigration = useCallback( + (migrationId, filter) => { + (async () => { + try { + dispatch({ type: 'start' }); + await siemMigrations.rules.retryRuleMigration(migrationId, filter); + + notifications.toasts.addSuccess(RETRY_RULE_MIGRATION_SUCCESS); + dispatch({ type: 'success' }); + onSuccess?.(); + } catch (err) { + const apiError = err.body ?? err; + notifications.toasts.addError(apiError, { title: RETRY_RULE_MIGRATION_ERROR }); + dispatch({ type: 'error', error: apiError }); + } + })(); + }, + [siemMigrations.rules, notifications.toasts, onSuccess] + ); + + return { isLoading: state.loading, error: state.error, retryRuleMigration }; +}; diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/service/rule_migrations_service.ts b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/service/rule_migrations_service.ts index 83ead556b09cc..21642c87fde11 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/service/rule_migrations_service.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/service/rule_migrations_service.ts @@ -19,8 +19,9 @@ import type { } from '../../../../common/siem_migrations/model/rule_migration.gen'; import type { CreateRuleMigrationRequestBody, - GetAllStatsRuleMigrationResponse, GetRuleMigrationStatsResponse, + RetryRuleMigrationResponse, + StartRuleMigrationResponse, UpsertRuleMigrationResourcesRequestBody, } from '../../../../common/siem_migrations/model/api/rules/rule_migration.gen'; import { SiemMigrationTaskStatus } from '../../../../common/siem_migrations/constants'; @@ -35,8 +36,9 @@ import { type GetRuleMigrationsStatsAllParams, getMissingResources, upsertMigrationResources, + retryRuleMigration, } from '../api'; -import type { RuleMigrationStats } from '../types'; +import type { RetryRuleMigrationFilter, RuleMigrationStats } from '../types'; import { getSuccessToast } from './success_notification'; import { RuleMigrationsStorage } from './storage'; import * as i18n from './translations'; @@ -119,7 +121,7 @@ export class SiemRulesMigrationsService { } } - public async startRuleMigration(migrationId: string): Promise { + public async startRuleMigration(migrationId: string): Promise { const connectorId = this.connectorIdStorage.get(); if (!connectorId) { throw new Error(i18n.MISSING_CONNECTOR_ERROR); @@ -139,6 +141,34 @@ export class SiemRulesMigrationsService { return result; } + public async retryRuleMigration( + migrationId: string, + filter?: RetryRuleMigrationFilter + ): Promise { + const connectorId = this.connectorIdStorage.get(); + if (!connectorId) { + throw new Error(i18n.MISSING_CONNECTOR_ERROR); + } + + const langSmithSettings = this.traceOptionsStorage.get(); + let langSmithOptions: LangSmithOptions | undefined; + if (langSmithSettings) { + langSmithOptions = { + project_name: langSmithSettings.langSmithProject, + api_key: langSmithSettings.langSmithApiKey, + }; + } + + const result = await retryRuleMigration({ + migrationId, + connectorId, + langSmithOptions, + ...filter, + }); + this.startPolling(); + return result; + } + public async getRuleMigrationStats(migrationId: string): Promise { return getRuleMigrationStats({ migrationId }); } @@ -213,7 +243,12 @@ export class SiemRulesMigrationsService { } } - await new Promise((resolve) => setTimeout(resolve, REQUEST_POLLING_INTERVAL_SECONDS * 1000)); + // Do not wait if there are no more pending migrations + if (pendingMigrationIds.length > 0) { + await new Promise((resolve) => + setTimeout(resolve, REQUEST_POLLING_INTERVAL_SECONDS * 1000) + ); + } } while (pendingMigrationIds.length > 0); } } diff --git a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/types.ts b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/types.ts index bcc11327d1051..b852a62e8c29f 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/types.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/types.ts @@ -13,3 +13,8 @@ export interface RuleMigrationStats extends RuleMigrationTaskStats { /** The sequential number of the migration */ number: number; } + +export interface RetryRuleMigrationFilter { + failed?: boolean; + notFullyTranslated?: boolean; +} diff --git a/x-pack/solutions/security/plugins/security_solution/public/timelines/components/modal/actions/save_timeline_button.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/timelines/components/modal/actions/save_timeline_button.test.tsx index de1ccc5e7587b..31103f0932d2e 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/timelines/components/modal/actions/save_timeline_button.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/timelines/components/modal/actions/save_timeline_button.test.tsx @@ -58,7 +58,7 @@ describe('SaveTimelineButton', () => { expect(getByTestId('timeline-modal-save-timeline')).toBeInTheDocument(); expect(getByText('Save')).toBeInTheDocument(); - expect(getByTestId('timeline-modal-save-timeline')).toHaveStyle('background-color: #07C'); + expect(getByTestId('timeline-modal-save-timeline').className).toContain('primary'); expect(queryByTestId('save-timeline-modal')).not.toBeInTheDocument(); }); @@ -87,7 +87,7 @@ describe('SaveTimelineButton', () => { expect(queryByText('Save')).not.toBeInTheDocument(); expect(getByText('TEST')).toBeInTheDocument(); - expect(getByTestId('TEST_ID')).toHaveStyle('background-color: #FEC514'); + expect(getByTestId('TEST_ID').className).toContain('warning'); }); it('should open the timeline save modal', async () => { diff --git a/x-pack/solutions/security/plugins/security_solution/public/timelines/components/notes/save_timeline.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/timelines/components/notes/save_timeline.test.tsx index 8a024aec79840..6f57ade03eb47 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/timelines/components/notes/save_timeline.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/timelines/components/notes/save_timeline.test.tsx @@ -41,7 +41,7 @@ describe('SaveTimelineCallout', () => { ); expect(getByTestId(SAVE_TIMELINE_BUTTON_TEST_ID)).toBeInTheDocument(); - expect(getByTestId(SAVE_TIMELINE_BUTTON_TEST_ID)).toHaveStyle('background-color: #BD271E'); + expect(getByTestId(SAVE_TIMELINE_BUTTON_TEST_ID).className).toContain('danger'); expect(getByTestId(SAVE_TIMELINE_BUTTON_TEST_ID)).toHaveTextContent('Save Timeline'); expect(getByTestId(SAVE_TIMELINE_CALLOUT_TEST_ID)).toBeInTheDocument(); expect(getAllByText('Save Timeline')).toHaveLength(2); diff --git a/x-pack/solutions/security/plugins/security_solution/server/deprecations/index.ts b/x-pack/solutions/security/plugins/security_solution/server/deprecations/index.ts new file mode 100644 index 0000000000000..c84748c86dc2a --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/server/deprecations/index.ts @@ -0,0 +1,26 @@ +/* + * 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. + */ +import type { CoreSetup, Logger } from '@kbn/core/server'; +import type { ConfigType } from '../config'; + +import { getSignalsMigrationDeprecationsInfo } from './signals_migration'; + +export const registerDeprecations = ({ + core, + config, + logger, +}: { + core: CoreSetup; + config: ConfigType; + logger: Logger; +}) => { + core.deprecations.registerDeprecations({ + getDeprecations: async (ctx) => { + return [...(await getSignalsMigrationDeprecationsInfo(ctx, config, logger, core.docLinks))]; + }, + }); +}; diff --git a/x-pack/solutions/security/plugins/security_solution/server/deprecations/signals_migration.ts b/x-pack/solutions/security/plugins/security_solution/server/deprecations/signals_migration.ts new file mode 100644 index 0000000000000..7af8a05cc2218 --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/server/deprecations/signals_migration.ts @@ -0,0 +1,85 @@ +/* + * 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. + */ + +import type { + DeprecationsDetails, + GetDeprecationsContext, + Logger, + DocLinksServiceSetup, +} from '@kbn/core/server'; + +import { i18n } from '@kbn/i18n'; +import { DETECTION_ENGINE_SIGNALS_MIGRATION_STATUS_URL } from '../../common/constants'; +import type { ConfigType } from '../config'; + +import { getNonMigratedSignalsInfo } from '../lib/detection_engine/migrations/get_non_migrated_signals_info'; + +const constructMigrationApiCall = (space: string, range: string) => + `GET :${ + space === 'default' ? '' : `/s/${space}` + }${DETECTION_ENGINE_SIGNALS_MIGRATION_STATUS_URL}?from=${range}`; + +export const getSignalsMigrationDeprecationsInfo = async ( + ctx: GetDeprecationsContext, + config: ConfigType, + logger: Logger, + docLinks: DocLinksServiceSetup +): Promise => { + const esClient = ctx.esClient.asInternalUser; + const { isMigrationRequired, spaces } = await getNonMigratedSignalsInfo({ + esClient, + signalsIndex: config.signalsIndex, + logger, + }); + // Deprecation API requires time range to be part of request (https://www.elastic.co/guide/en/security/current/signals-migration-api.html#migration-1) + // Return the earliest date, so it would capture the oldest possible signals + const fromRange = new Date(0).toISOString(); + + if (isMigrationRequired) { + return [ + { + deprecationType: 'feature', + title: i18n.translate('xpack.securitySolution.deprecations.signalsMigrationTitle', { + defaultMessage: 'Found not migrated detection alerts', + }), + level: 'warning', + message: i18n.translate('xpack.securitySolution.deprecations.signalsMigrationMessage', { + defaultMessage: `After upgrading Kibana, the latest Elastic Security features will be available for any newly generated detection alerts. However, in order to enable new features for existing detection alerts, migration may be necessary.`, + }), + documentationUrl: docLinks.links.securitySolution.signalsMigrationApi, + correctiveActions: { + manualSteps: [ + i18n.translate( + 'xpack.securitySolution.deprecations.migrateIndexIlmPolicy.signalsMigrationManualStepOne', + { + defaultMessage: `Visit "Learn more" link for instructions how to migrate detection alerts. Migrate indices for each space.`, + } + ), + i18n.translate( + 'xpack.securitySolution.deprecations.migrateIndexIlmPolicy.signalsMigrationManualStepTwo', + { + defaultMessage: 'Spaces with at least one non-migrated signals index: {spaces}.', + values: { + spaces: spaces.join(', '), + }, + } + ), + i18n.translate( + 'xpack.securitySolution.deprecations.migrateIndexIlmPolicy.signalsMigrationManualStepFour', + { + defaultMessage: 'Example of migration API calls:', + } + ), + ...spaces.map((space) => constructMigrationApiCall(space, fromRange)), + ], + }, + }, + ]; + } + + return []; +}; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/fleet_integrations/api/get_all_integrations/route.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/fleet_integrations/api/get_all_integrations/route.ts index 4b5642b9d199b..5adc103cfff7c 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/fleet_integrations/api/get_all_integrations/route.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/fleet_integrations/api/get_all_integrations/route.ts @@ -6,6 +6,7 @@ */ import { transformError } from '@kbn/securitysolution-es-utils'; +import { SO_SEARCH_LIMIT } from '@kbn/fleet-plugin/common/constants'; import { PREBUILT_RULES_PACKAGE_NAME } from '../../../../../../common/detection_engine/constants'; import { buildSiemResponse } from '../../../routes/utils'; import type { SecuritySolutionPluginRouter } from '../../../../../types'; @@ -43,7 +44,9 @@ export const getAllIntegrationsRoute = (router: SecuritySolutionPluginRouter) => const [packages, packagePolicies] = await Promise.all([ fleet.packages.getPackages(), - fleet.packagePolicy.list(fleet.savedObjects.createInternalScopedSoClient(), {}), + fleet.packagePolicy.list(fleet.savedObjects.createInternalScopedSoClient(), { + perPage: SO_SEARCH_LIMIT, + }), ]); // Elastic prebuilt rules is a special package and should be skipped const packagesWithoutPrebuiltSecurityRules = packages.filter( diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/create_migration_index.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/create_migration_index.ts index 30e4eb0b4e276..c2a625abd8112 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/create_migration_index.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/create_migration_index.ts @@ -42,6 +42,11 @@ export const createMigrationIndex = async ({ }, }, }, + mappings: { + _meta: { + version, + }, + }, }, }); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/get_non_migrated_signals_info.test.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/get_non_migrated_signals_info.test.ts index 36252ab792342..8128af890bed3 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/get_non_migrated_signals_info.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/get_non_migrated_signals_info.test.ts @@ -7,7 +7,10 @@ import { elasticsearchServiceMock } from '@kbn/core/server/mocks'; import { loggerMock } from '@kbn/logging-mocks'; -import { getNonMigratedSignalsInfo } from './get_non_migrated_signals_info'; +import { + getNonMigratedSignalsInfo, + checkIfMigratedIndexOutdated, +} from './get_non_migrated_signals_info'; import { getIndexVersionsByIndex } from './get_index_versions_by_index'; import { getSignalVersionsByIndex } from './get_signal_versions_by_index'; import { getLatestIndexTemplateVersion } from './get_latest_index_template_version'; @@ -132,6 +135,39 @@ describe('getNonMigratedSignalsInfo', () => { spaces: ['default'], }); }); + it('return empty result for migrated in v8 index', async () => { + getIndexAliasPerSpaceMock.mockReturnValue({ + '.reindexed-v8-siem-signals-another-1-000001': { + alias: '.siem-signals-another-1', + indexName: '.reindexed-v8-siem-signals-another-1-000001', + space: 'another-1-000001', + }, + '.siem-signals-another-1-000002': { + alias: '.siem-signals-another-1', + indexName: '.siem-signals-another-1-000002', + space: 'another-1', + }, + }); + + getIndexVersionsByIndexMock.mockReturnValue({ + '.reindexed-v8-siem-signals-another-1-000001': 57, + '.siem-signals-another-1-000002': TEMPLATE_VERSION, + '.reindexed-v8-siem-signals-another-1-000001-r000077': TEMPLATE_VERSION, // outdated .reindexed-v8-siem-signals-another-1-000001 is already migrated + }); + getSignalVersionsByIndexMock.mockReturnValue({}); + + const result = await getNonMigratedSignalsInfo({ + esClient, + signalsIndex: 'siem-signals', + logger, + }); + + expect(result).toEqual({ + indices: [], + isMigrationRequired: false, + spaces: [], + }); + }); it('returns results for outdated signals in index', async () => { getIndexVersionsByIndexMock.mockReturnValue({ '.siem-signals-another-1-legacy': TEMPLATE_VERSION, @@ -175,3 +211,49 @@ describe('getNonMigratedSignalsInfo', () => { }); }); }); + +describe('checkIfMigratedIndexOutdated', () => { + const indexVersionsByIndex = { + '.siem-signals-default-000001': 57, + '.siem-signals-another-6-000001': 57, + '.siem-signals-default-000002': 77, + '.siem-signals-another-5-000001': 57, + '.reindexed-v8-siem-signals-another-1-000001': 57, + '.siem-signals-another-7-000001': 57, + '.reindexed-v8-siem-signals-another-2-000001': 57, + '.siem-signals-another-3-000001': 57, + '.reindexed-v8-siem-signals-another-4-000001': 57, + '.siem-signals-another-3-000002': 77, + '.siem-signals-another-9-000001': 57, + '.siem-signals-another-8-000001': 57, + '.siem-signals-another-2-000002': 77, + '.siem-signals-another-10-000001': 57, + '.siem-signals-another-1-000002': 77, + '.siem-signals-another-2-000001-r000077': 77, + '.reindexed-v8-siem-signals-another-1-000001-r000077': 77, + }; + + const migratedIndices = [ + '.reindexed-v8-siem-signals-another-1-000001', + '.reindexed-v8-siem-signals-another-2-000001', + '.reindexed-v8-siem-signals-another-1-000001-r000077', + ]; + + migratedIndices.forEach((index) => { + it(`should correctly find index "${index}" is migrated`, () => { + expect(checkIfMigratedIndexOutdated(index, indexVersionsByIndex, TEMPLATE_VERSION)).toBe( + false + ); + }); + }); + + it('should find non migrated index', () => { + expect( + checkIfMigratedIndexOutdated( + '.reindexed-v8-siem-signals-another-4-000001', + indexVersionsByIndex, + TEMPLATE_VERSION + ) + ).toBe(true); + }); +}); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/get_non_migrated_signals_info.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/get_non_migrated_signals_info.ts index d1f561fb3846c..9fadf2a1ab337 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/get_non_migrated_signals_info.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations/get_non_migrated_signals_info.ts @@ -17,6 +17,41 @@ import { isOutdated as getIsOutdated, signalsAreOutdated } from './helpers'; import { getLatestIndexTemplateVersion } from './get_latest_index_template_version'; import { getIndexAliasPerSpace } from './get_index_alias_per_space'; +const REINDEXED_PREFIX = '.reindexed-v8-'; + +export const checkIfMigratedIndexOutdated = ( + indexName: string, + indexVersionsByIndex: IndexVersionsByIndex, + latestTemplateVersion: number +) => { + const isIndexOutdated = getIsOutdated({ + current: indexVersionsByIndex[indexName] ?? 0, + target: latestTemplateVersion, + }); + + if (!isIndexOutdated) { + return false; + } + + const nameWithoutPrefix = indexName.replace(REINDEXED_PREFIX, '.'); + + const hasOutdatedMigratedIndices = Object.entries(indexVersionsByIndex).every( + ([index, version]) => { + if (index === indexName) { + return true; + } + + if (index.startsWith(nameWithoutPrefix) || index.startsWith(indexName)) { + return getIsOutdated({ current: version ?? 0, target: latestTemplateVersion }); + } + + return true; + } + ); + + return hasOutdatedMigratedIndices; +}; + interface OutdatedSpaces { isMigrationRequired: boolean; spaces: string[]; @@ -85,6 +120,14 @@ export const getNonMigratedSignalsInfo = async ({ const version = indexVersionsByIndex[indexName] ?? 0; const signalVersions = signalVersionsByIndex[indexName] ?? []; + // filter out migrated from 7.x to 8 indices + if ( + indexName.startsWith(REINDEXED_PREFIX) && + !checkIfMigratedIndexOutdated(indexName, indexVersionsByIndex, latestTemplateVersion) + ) { + return acc; + } + const isOutdated = getIsOutdated({ current: version, target: latestTemplateVersion }) || signalsAreOutdated({ signalVersions, target: latestTemplateVersion }); diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/api/retry.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/api/retry.ts index 0fb96d9aaf72c..0062e21a8124f 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/api/retry.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/api/retry.ts @@ -10,13 +10,14 @@ import { buildRouteValidationWithZod } from '@kbn/zod-helpers'; import { APMTracer } from '@kbn/langchain/server/tracers/apm'; import { getLangSmithTracer } from '@kbn/langchain/server/tracers/langsmith'; import { - StartRuleMigrationRequestBody, - StartRuleMigrationRequestParams, - type StartRuleMigrationResponse, + RetryRuleMigrationRequestBody, + RetryRuleMigrationRequestParams, + type RetryRuleMigrationResponse, } from '../../../../../common/siem_migrations/model/api/rules/rule_migration.gen'; import { SIEM_RULE_MIGRATION_RETRY_PATH } from '../../../../../common/siem_migrations/constants'; import type { SecuritySolutionPluginRouter } from '../../../../types'; import { withLicense } from './util/with_license'; +import type { RuleMigrationFilters } from '../data/rule_migrations_data_rules_client'; export const registerSiemRuleMigrationsRetryRoute = ( router: SecuritySolutionPluginRouter, @@ -33,15 +34,20 @@ export const registerSiemRuleMigrationsRetryRoute = ( version: '1', validate: { request: { - params: buildRouteValidationWithZod(StartRuleMigrationRequestParams), - body: buildRouteValidationWithZod(StartRuleMigrationRequestBody), + params: buildRouteValidationWithZod(RetryRuleMigrationRequestParams), + body: buildRouteValidationWithZod(RetryRuleMigrationRequestBody), }, }, }, withLicense( - async (context, req, res): Promise> => { + async (context, req, res): Promise> => { const migrationId = req.params.migration_id; - const { langsmith_options: langsmithOptions, connector_id: connectorId } = req.body; + const { + langsmith_options: langsmithOptions, + connector_id: connectorId, + failed, + not_fully_translated: notFullyTranslated, + } = req.body; try { const ctx = await context.resolve(['core', 'actions', 'alerting', 'securitySolution']); @@ -59,7 +65,8 @@ export const registerSiemRuleMigrationsRetryRoute = ( ], }; - const { updated } = await ruleMigrationsClient.task.updateToRetry(migrationId); + const filters: RuleMigrationFilters = { failed, notFullyTranslated }; + const { updated } = await ruleMigrationsClient.task.updateToRetry(migrationId, filters); if (!updated) { return res.ok({ body: { started: false } }); } diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/data/rule_migrations_data_rules_client.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/data/rule_migrations_data_rules_client.ts index 47bcd56e6433e..e03f334209377 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/data/rule_migrations_data_rules_client.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/data/rule_migrations_data_rules_client.ts @@ -43,6 +43,8 @@ export interface RuleMigrationFilters { ids?: string[]; installable?: boolean; prebuilt?: boolean; + failed?: boolean; + notFullyTranslated?: boolean; searchTerm?: string; } export interface RuleMigrationGetOptions { @@ -239,7 +241,7 @@ export class RuleMigrationsDataRulesClient extends RuleMigrationsDataBaseClient async releaseProcessing(migrationId: string): Promise { return this.updateStatus( migrationId, - SiemMigrationStatus.PROCESSING, + { status: SiemMigrationStatus.PROCESSING }, SiemMigrationStatus.PENDING ); } @@ -247,12 +249,12 @@ export class RuleMigrationsDataRulesClient extends RuleMigrationsDataBaseClient /** Updates all the rule migration with the provided id and with status `statusToQuery` to `statusToUpdate` */ async updateStatus( migrationId: string, - statusToQuery: SiemMigrationStatus | SiemMigrationStatus[] | undefined, + filter: RuleMigrationFilters, statusToUpdate: SiemMigrationStatus, { refresh = false }: { refresh?: boolean } = {} ): Promise { const index = await this.getIndexName(); - const query = this.getFilterQuery(migrationId, { status: statusToQuery }); + const query = this.getFilterQuery(migrationId, filter); const script = { source: `ctx._source['status'] = '${statusToUpdate}'` }; await this.esClient.updateByQuery({ index, query, script, refresh }).catch((error) => { this.logger.error(`Error updating rule migrations status: ${error.message}`); @@ -397,7 +399,15 @@ export class RuleMigrationsDataRulesClient extends RuleMigrationsDataBaseClient private getFilterQuery( migrationId: string, - { status, ids, installable, prebuilt, searchTerm }: RuleMigrationFilters = {} + { + status, + ids, + installable, + prebuilt, + searchTerm, + failed, + notFullyTranslated, + }: RuleMigrationFilters = {} ): QueryDslQueryContainer { const filter: QueryDslQueryContainer[] = [{ term: { migration_id: migrationId } }]; if (status) { @@ -419,6 +429,12 @@ export class RuleMigrationsDataRulesClient extends RuleMigrationsDataBaseClient if (searchTerm?.length) { filter.push(searchConditions.matchTitle(searchTerm)); } + if (failed) { + filter.push(searchConditions.isFailed()); + } + if (notFullyTranslated) { + filter.push(searchConditions.isNotFullyTranslated()); + } return { bool: { filter } }; } } diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/data/search.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/data/search.ts index 3bd8da066a45f..34db599df8edc 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/data/search.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/data/search.ts @@ -6,12 +6,18 @@ */ import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; -import { RuleTranslationResult } from '../../../../../common/siem_migrations/constants'; +import { + RuleTranslationResult, + SiemMigrationStatus, +} from '../../../../../common/siem_migrations/constants'; export const conditions = { isFullyTranslated(): QueryDslQueryContainer { return { term: { translation_result: RuleTranslationResult.FULL } }; }, + isNotFullyTranslated(): QueryDslQueryContainer { + return { bool: { must_not: conditions.isFullyTranslated() } }; + }, isNotInstalled(): QueryDslQueryContainer { return { nested: { @@ -39,4 +45,7 @@ export const conditions = { isInstallable(): QueryDslQueryContainer[] { return [this.isFullyTranslated(), this.isNotInstalled()]; }, + isFailed(): QueryDslQueryContainer { + return { term: { status: SiemMigrationStatus.FAILED } }; + }, }; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/task/rule_migrations_task_client.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/task/rule_migrations_task_client.ts index 1edd1b449070c..663a8f5218f33 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/task/rule_migrations_task_client.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/rules/task/rule_migrations_task_client.ts @@ -14,7 +14,10 @@ import { } from '../../../../../common/siem_migrations/constants'; import type { RuleMigrationTaskStats } from '../../../../../common/siem_migrations/model/rule_migration.gen'; import type { RuleMigrationsDataClient } from '../data/rule_migrations_data_client'; -import type { RuleMigrationDataStats } from '../data/rule_migrations_data_rules_client'; +import type { + RuleMigrationDataStats, + RuleMigrationFilters, +} from '../data/rule_migrations_data_rules_client'; import { getRuleMigrationAgent } from './agent'; import type { MigrateRuleState } from './agent/types'; import { RuleMigrationsRetriever } from './retrievers'; @@ -49,7 +52,7 @@ export class RuleMigrationsTaskClient { // Just in case some previous execution was interrupted without cleaning up await this.data.rules.updateStatus( migrationId, - SiemMigrationStatus.PROCESSING, + { status: SiemMigrationStatus.PROCESSING }, SiemMigrationStatus.PENDING, { refresh: true } ); @@ -203,12 +206,15 @@ export class RuleMigrationsTaskClient { } /** Updates all the rules in a migration to be re-executed */ - public async updateToRetry(migrationId: string): Promise<{ updated: boolean }> { + public async updateToRetry( + migrationId: string, + filter: RuleMigrationFilters = {} + ): Promise<{ updated: boolean }> { if (this.migrationsRunning.has(migrationId)) { return { updated: false }; } // Update all the rules in the migration to pending - await this.data.rules.updateStatus(migrationId, undefined, SiemMigrationStatus.PENDING, { + await this.data.rules.updateStatus(migrationId, filter, SiemMigrationStatus.PENDING, { refresh: true, }); return { updated: true }; 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/security_solution/server/plugin.ts b/x-pack/solutions/security/plugins/security_solution/server/plugin.ts index 7e19e2162e3a8..f88528588af18 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/plugin.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/plugin.ts @@ -45,6 +45,7 @@ import { AppClientFactory } from './client'; import type { ConfigType } from './config'; import { createConfig } from './config'; import { initUiSettings } from './ui_settings'; +import { registerDeprecations } from './deprecations'; import { APP_ID, APP_UI_ID, @@ -212,6 +213,8 @@ export class Plugin implements ISecuritySolutionPlugin { this.ruleMonitoringService.setup(core, plugins); + registerDeprecations({ core, config: this.config, logger: this.logger }); + if (experimentalFeatures.riskScoringPersistence) { registerRiskScoringTask({ getStartServices: core.getStartServices, diff --git a/x-pack/solutions/security/plugins/security_solution/tsconfig.json b/x-pack/solutions/security/plugins/security_solution/tsconfig.json index 655fe3a489694..ab99f07246fb2 100644 --- a/x-pack/solutions/security/plugins/security_solution/tsconfig.json +++ b/x-pack/solutions/security/plugins/security_solution/tsconfig.json @@ -235,8 +235,9 @@ "@kbn/react-hooks", "@kbn/index-adapter", "@kbn/core-http-server-utils", - "@kbn/llm-tasks-plugin", + "@kbn/core-chrome-browser-mocks", "@kbn/ai-assistant-icon", + "@kbn/llm-tasks-plugin", "@kbn/charts-theme" ] } diff --git a/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/index.tsx b/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/index.tsx index a6201ea2ed504..b493591b94370 100644 --- a/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/index.tsx +++ b/x-pack/solutions/security/plugins/session_view/public/components/process_tree_node/index.tsx @@ -316,7 +316,12 @@ export function ProcessTreeNode({ - + diff --git a/x-pack/solutions/security/plugins/session_view/public/components/session_view/index.tsx b/x-pack/solutions/security/plugins/session_view/public/components/session_view/index.tsx index bdb7e3ddc8c2b..5cf2a444fb92e 100644 --- a/x-pack/solutions/security/plugins/session_view/public/components/session_view/index.tsx +++ b/x-pack/solutions/security/plugins/session_view/public/components/session_view/index.tsx @@ -62,6 +62,10 @@ export const SessionView = ({ loadAlertDetails, canReadPolicyManagement, trackEvent, + openDetailsInExpandableFlyout, + closeDetailsInExpandableFlyout, + resetJumpToEntityId, + resetJumpToCursor, }: SessionViewDeps & { trackEvent: (name: SessionViewTelemetryKey) => void }) => { // don't engage jumpTo if jumping to session leader. if (jumpToEntityId === sessionEntityId) { @@ -114,9 +118,18 @@ export const SessionView = ({ return !!(!displayOptions?.verboseMode && searchQuery && searchResults?.length === 0); }, [displayOptions?.verboseMode, searchResults, searchQuery]); - const onProcessSelected = useCallback((process: Process | null) => { - setSelectedProcess(process); - }, []); + const onProcessSelected = useCallback( + (process: Process | null) => { + setSelectedProcess(process); + + // used when SessionView is displayed in the expandable flyout + // This refreshes the detailed panel rendered in the flyout preview panel + if (openDetailsInExpandableFlyout) { + openDetailsInExpandableFlyout(process); + } + }, + [openDetailsInExpandableFlyout] + ); const onJumpToEvent = useCallback( (event: ProcessEvent) => { @@ -182,11 +195,29 @@ export const SessionView = ({ const onToggleTTY = useCallback(() => { if (hasTTYOutput) { setShowTTY(!showTTY); + + // used when SessionView is displayed in the expandable flyout + // This closes the detailed panel rendered in the flyout preview panel when the user activate the TTY output mode + // then reopens the detailed panel to the previously selected process when the user deactivates the TTY output mode + if (closeDetailsInExpandableFlyout && !showTTY) { + closeDetailsInExpandableFlyout(); + } + if (openDetailsInExpandableFlyout && showTTY) { + openDetailsInExpandableFlyout(selectedProcess); + } + trackEvent('tty_loaded'); } else { trackEvent('disabled_tty_clicked'); } - }, [hasTTYOutput, showTTY, trackEvent]); + }, [ + closeDetailsInExpandableFlyout, + hasTTYOutput, + openDetailsInExpandableFlyout, + selectedProcess, + showTTY, + trackEvent, + ]); const handleRefresh = useCallback(() => { refetch({ refetchPage: (_page, i, allPages) => allPages.length - 1 === i }); @@ -220,6 +251,19 @@ export const SessionView = ({ fetchAlertStatus[0] ?? '' ); + /** + * This useEffect should only impact the SessionView component when displayed in the expandable flyout. + * The SessionView tree and its detailed panel are separated and this allows the detailed panel to reset the + * view of the tree from the preview panel. + */ + useEffect(() => { + if (resetJumpToEntityId && resetJumpToCursor) { + setSelectedProcess(null); + setCurrentJumpToEntityId(resetJumpToEntityId); + setCurrentJumpToCursor(resetJumpToCursor); + } + }, [resetJumpToCursor, resetJumpToEntityId]); + useEffect(() => { if (newUpdatedAlertsStatus) { setUpdatedAlertsStatus({ ...newUpdatedAlertsStatus }); @@ -261,6 +305,12 @@ export const SessionView = ({ } }, [isDetailOpen, trackEvent]); + const toggleDetailPanelInFlyout = useCallback(() => { + if (openDetailsInExpandableFlyout) { + openDetailsInExpandableFlyout(selectedProcess); + } + }, [openDetailsInExpandableFlyout, selectedProcess]); + const onShowAlertDetails = useCallback( (alertUuid: string) => { if (loadAlertDetails) { @@ -294,6 +344,86 @@ export const SessionView = ({ [displayOptions?.timestamp, displayOptions?.verboseMode, setDisplayOptions, trackEvent] ); + const errorEmptyPrompt = useMemo( + () => + hasError ? ( + + + + } + body={ +

+ +

+ } + /> + ) : null, + [hasError] + ); + + const processTree = useMemo( + () => + hasData ? ( +
+ +
+ ) : null, + [ + currentJumpToCursor, + currentJumpToEntityId, + data?.pages, + displayOptions?.timestamp, + displayOptions?.verboseMode, + fetchNextPage, + fetchPreviousPage, + hasData, + hasNextPage, + hasPreviousPage, + investigatedAlertId, + isFetching, + onJumpToOutput, + onProcessSelected, + onShowAlertDetails, + searchQuery, + selectedProcess, + sessionEntityId, + styles.processTree, + trackEvent, + updatedAlertsStatus, + ] + ); + if (renderIsLoading) { return ( @@ -390,103 +520,66 @@ export const SessionView = ({ - - {DETAIL_PANEL} - + {openDetailsInExpandableFlyout ? ( + + ) : ( + + {DETAIL_PANEL} + + )} - - {(EuiResizablePanel, EuiResizableButton, { togglePanel }) => { - detailPanelCollapseFn.current = () => { - togglePanel?.(sessionViewId, { direction: 'left' }); - }; - - return ( - <> - - {hasError ? ( - - - - } - body={ -

- -

- } + {openDetailsInExpandableFlyout ? ( + <> + {errorEmptyPrompt} + {processTree} + + ) : ( + + {(EuiResizablePanel, EuiResizableButton, { togglePanel }) => { + detailPanelCollapseFn.current = () => { + togglePanel?.(sessionViewId, { direction: 'left' }); + }; + + return ( + <> + + {errorEmptyPrompt} + {processTree} + + + + - ) : null} - - {hasData && ( -
- -
- )} -
- - - - - - - ); - }} -
+
+ + ); + }} +
+ )} void ) => void; canReadPolicyManagement?: boolean; + /** + * Allows to open the detailed panel outside of the SessionView component. This is necessary when the session view is rendered in the + * expandable flyout, where the tree and the detailed panel are separated and need to communicate with each other. + */ + openDetailsInExpandableFlyout?: (selectedProcess: Process | null) => void; + /** + * Allows to close the detailed panel outside of the SessionView component. This is necessary when the session view is rendered in the + * expandable flyout: when the user clicks on the TTY output button we need to close the detailed panel. + */ + closeDetailsInExpandableFlyout?: () => void; + /** + * Allows to reset the view from an external component. This is necessary when the session view is rendered in the + * expandable flyout, where the tree and the detailed panels are separated and need to communicate with each other. + */ + resetJumpToEntityId?: string; + /** + * Allows to reset the view from an external component. This is necessary when the session view is rendered in the + * expandable flyout, where the tree and the detailed panels are separated and need to communicate with each other. + */ + resetJumpToCursor?: string; } export interface EuiTabProps { 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/alerting_api_integration/common/config.ts b/x-pack/test/alerting_api_integration/common/config.ts index 04d6a1c48b98e..caea4cbb06190 100644 --- a/x-pack/test/alerting_api_integration/common/config.ts +++ b/x-pack/test/alerting_api_integration/common/config.ts @@ -13,6 +13,7 @@ import { getAllExternalServiceSimulatorPaths } from '@kbn/actions-simulators-plu import { ExperimentalConfigKeys } from '@kbn/stack-connectors-plugin/common/experimental_features'; import { SENTINELONE_CONNECTOR_ID } from '@kbn/stack-connectors-plugin/common/sentinelone/constants'; import { CROWDSTRIKE_CONNECTOR_ID } from '@kbn/stack-connectors-plugin/common/crowdstrike/constants'; +import { MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID } from '@kbn/stack-connectors-plugin/common/microsoft_defender_endpoint/constants'; import { services } from './services'; import { getTlsWebhookServerUrls } from './lib/get_tls_webhook_servers'; @@ -55,6 +56,7 @@ const enabledActionTypes = [ '.d3security', SENTINELONE_CONNECTOR_ID, CROWDSTRIKE_CONNECTOR_ID, + MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID, '.slack', '.slack_api', '.thehive', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/config.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/config.ts index 2f36b70282291..6392b9b7114ef 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/config.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/config.ts @@ -16,5 +16,9 @@ export default createTestConfig('security_and_spaces', { publicBaseUrl: true, testFiles: [require.resolve('./tests')], useDedicatedTaskRunner: true, - experimentalFeatures: ['sentinelOneConnectorOn', 'crowdstrikeConnectorOn'], + experimentalFeatures: [ + 'sentinelOneConnectorOn', + 'crowdstrikeConnectorOn', + 'microsoftDefenderEndpointOn', + ], }); diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts index 71d7cdd8dbb27..4d0f9523fae5a 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts @@ -16,5 +16,9 @@ export default createTestConfig('security_and_spaces', { publicBaseUrl: true, testFiles: [require.resolve('./tests')], useDedicatedTaskRunner: false, - experimentalFeatures: ['sentinelOneConnectorOn', 'crowdstrikeConnectorOn'], + experimentalFeatures: [ + 'sentinelOneConnectorOn', + 'crowdstrikeConnectorOn', + 'microsoftDefenderEndpointOn', + ], }); diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/config.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/config.ts index ac06b20e3438c..f311ad4d2f5d2 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/config.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/config.ts @@ -16,5 +16,9 @@ export default createTestConfig('security_and_spaces', { publicBaseUrl: true, testFiles: [require.resolve('.')], useDedicatedTaskRunner: true, - experimentalFeatures: ['sentinelOneConnectorOn', 'crowdstrikeConnectorOn'], + experimentalFeatures: [ + 'sentinelOneConnectorOn', + 'crowdstrikeConnectorOn', + 'microsoftDefenderEndpointOn', + ], }); diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/microsoft_defender_endpoint.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/microsoft_defender_endpoint.ts new file mode 100644 index 0000000000000..ab694d0865134 --- /dev/null +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/microsoft_defender_endpoint.ts @@ -0,0 +1,260 @@ +/* + * 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. + */ + +import { FeaturesPrivileges, Role } from '@kbn/security-plugin-types-common'; +import { + MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID, + MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION, +} from '@kbn/stack-connectors-plugin/common/microsoft_defender_endpoint/constants'; +import SuperTest from 'supertest'; +import expect from '@kbn/expect'; +import { getUrlPrefix } from '../../../../../common/lib'; +import { FtrProviderContext } from '../../../../../common/ftr_provider_context'; +import { createSupertestErrorLogger } from '../../../../../common/lib/log_supertest_errors'; + +// eslint-disable-next-line import/no-default-export +export default function createMicrosoftDefenderEndpointTests({ getService }: FtrProviderContext) { + const supertest = getService('supertest'); + const supertestWithoutAuth = getService('supertestWithoutAuth'); + const securityService = getService('security'); + const log = getService('log'); + const logErrorDetails = createSupertestErrorLogger(log); + + interface CreatedUser { + username: string; + password: string; + deleteUser: () => Promise; + } + + // TODO:PT create service for user creation since this code is now duplicated across SentinelOne, Crowdstrike and here for MS Defender + const createUser = async ({ + username, + password = 'changeme', + kibanaFeatures = { actions: ['all'] }, + }: { + username: string; + password?: string; + kibanaFeatures?: FeaturesPrivileges; + }): Promise => { + const role: Role = { + name: username, + elasticsearch: { + cluster: [], + indices: [], + run_as: [], + }, + kibana: [ + { + base: [], + feature: { + // Important: Saved Objects Managemnt should be set to `all` to ensure that authz + // is not defaulted to the check done against SO's for SentinelOne + savedObjectsManagement: ['all'], + ...kibanaFeatures, + }, + spaces: ['*'], + }, + ], + }; + + await securityService.role.create(role.name, { + kibana: role.kibana, + elasticsearch: role.elasticsearch, + }); + + await securityService.user.create(username, { + password: 'changeme', + full_name: role.name, + roles: [role.name], + }); + + return { + username, + password, + deleteUser: async () => { + await securityService.user.delete(role.name); + await securityService.role.delete(role.name); + }, + }; + }; + + describe('Microsoft Defender for Endpoint Connector', () => { + let connectorId: string = ''; + + const executeSubAction = async ({ + subAction, + subActionParams, + expectedHttpCode = 200, + username = 'elastic', + password = 'changeme', + errorLogger = logErrorDetails, + }: { + supertest: SuperTest.Agent; + subAction: string; + subActionParams: Record; + expectedHttpCode?: number; + username?: string; + password?: string; + errorLogger?: (err: any) => void; + }) => { + return supertestWithoutAuth + .post(`${getUrlPrefix('default')}/api/actions/connector/${connectorId}/_execute`) + .set('kbn-xsrf', 'foo') + .on('error', errorLogger) + .auth(username, password) + .send({ + params: { + subAction, + subActionParams, + }, + }) + .expect(expectedHttpCode); + }; + + const subActions: MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION[] = [ + MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.TEST_CONNECTOR, + MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.RELEASE_HOST, + MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.ISOLATE_HOST, + MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.GET_AGENT_DETAILS, + ]; + + before(async () => { + const response = await supertest + .post(`${getUrlPrefix('default')}/api/actions/connector`) + .set('kbn-xsrf', 'foo') + .on('error', logErrorDetails) + .send({ + name: 'My sub connector', + connector_type_id: MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID, + config: { + clientId: 'client-abc', + tenantId: 'tenant-123', + oAuthServerUrl: 'https://some.non.existent.com', + oAuthScope: 'scope-a', + apiUrl: 'https://some.non.existent.com', + }, + secrets: { clientSecret: 'abc-123' }, + }) + .expect(200); + + connectorId = response.body.id; + }); + + after(async () => { + if (connectorId) { + await supertest + .delete(`${getUrlPrefix('default')}/api/actions/connector/${connectorId}`) + .set('kbn-xsrf', 'true') + .send() + .expect(({ ok, status }) => { + // Should cover all success codes (ex. 204 (no content), 200, etc...) + if (!ok) { + throw new Error( + `Expected delete to return a status code in the 200, but got ${status}` + ); + } + }); + + connectorId = ''; + } + }); + + describe('Sub-action authz', () => { + describe('and user has NO privileges', () => { + let user: CreatedUser; + + before(async () => { + user = await createUser({ + username: 'read_access_user', + kibanaFeatures: { actions: ['read'] }, + }); + }); + + after(async () => { + if (user) { + await user.deleteUser(); + } + }); + + for (const subActionValue of subActions) { + it(`should deny execute of ${subActionValue}`, async () => { + const execRes = await executeSubAction({ + supertest: supertestWithoutAuth, + subAction: subActionValue, + subActionParams: {}, + username: user.username, + password: user.password, + expectedHttpCode: 403, + errorLogger: logErrorDetails.ignoreCodes([403]), + }); + + expect(execRes.body).to.eql({ + statusCode: 403, + error: 'Forbidden', + message: `Unauthorized to execute a "${MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID}" action`, + }); + }); + } + }); + + describe('and user has proper privileges', () => { + let user: CreatedUser; + + before(async () => { + user = await createUser({ + username: 'all_access_user', + }); + }); + + after(async () => { + if (user) { + await user.deleteUser(); + // @ts-expect-error + user = undefined; + } + }); + + for (const subActionValue of subActions) { + const isAllowedSubAction = + subActionValue === MICROSOFT_DEFENDER_ENDPOINT_SUB_ACTION.TEST_CONNECTOR; + + it(`should ${ + isAllowedSubAction ? 'allow' : 'deny' + } execute of ${subActionValue}`, async () => { + const { + // eslint-disable-next-line @typescript-eslint/naming-convention + body: { status, message, connector_id, statusCode, error }, + } = await executeSubAction({ + supertest: supertestWithoutAuth, + subAction: subActionValue, + subActionParams: {}, + username: user.username, + password: user.password, + ...(isAllowedSubAction + ? {} + : { expectedHttpCode: 403, errorLogger: logErrorDetails.ignoreCodes([403]) }), + }); + + if (isAllowedSubAction) { + expect({ status, message, connector_id }).to.eql({ + status: 'error', + message: 'an error occurred while running the action', + connector_id: connectorId, + }); + } else { + expect({ statusCode, message, error }).to.eql({ + statusCode: 403, + error: 'Forbidden', + message: `Unauthorized to execute a "${MICROSOFT_DEFENDER_ENDPOINT_CONNECTOR_ID}" action`, + }); + } + }); + } + }); + }); + }); +} diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/index.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/index.ts index fdfba7c5c2cf3..91561b4b3bad8 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/index.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/index.ts @@ -46,6 +46,7 @@ export default function connectorsTests({ loadTestFile, getService }: FtrProvide loadTestFile(require.resolve('./connector_types/thehive')); loadTestFile(require.resolve('./connector_types/bedrock')); loadTestFile(require.resolve('./connector_types/gemini')); + loadTestFile(require.resolve('./connector_types/microsoft_defender_endpoint')); loadTestFile(require.resolve('./create')); loadTestFile(require.resolve('./delete')); loadTestFile(require.resolve('./execute')); diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/check_registered_connector_types.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/check_registered_connector_types.ts index 4b7dd28d63b5c..1700cf0c25b23 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/check_registered_connector_types.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/check_registered_connector_types.ts @@ -56,6 +56,7 @@ export default function createRegisteredConnectorTypeTests({ getService }: FtrPr '.sentinelone', '.cases', '.crowdstrike', + '.microsoft_defender_endpoint', ].sort() ); }); diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/config.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/config.ts index d4de1e05c1d53..0ef75b695a679 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/config.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/config.ts @@ -22,5 +22,5 @@ export default createTestConfig('spaces_only', { testFiles: [require.resolve('.')], reportName: 'X-Pack Alerting API Integration Tests - Actions', enableFooterInEmail: false, - experimentalFeatures: ['crowdstrikeConnectorOn'], + experimentalFeatures: ['crowdstrikeConnectorOn', 'microsoftDefenderEndpointOn'], }); diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/install_resources.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/install_resources.ts index ec8c06d06b036..ca8b501bc3907 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/install_resources.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/install_resources.ts @@ -147,6 +147,7 @@ export default function createAlertsAsDataInstallResourcesTest({ getService }: F expect(contextIndexTemplate.name).to.eql(indexTemplateName); expect(contextIndexTemplate.index_template.index_patterns).to.eql([ '.internal.alerts-test.patternfiring.alerts-default-*', + '.reindexed-v8-internal.alerts-test.patternfiring.alerts-default-*', ]); expect(contextIndexTemplate.index_template.composed_of).to.eql([ '.alerts-test.patternfiring.alerts-mappings', diff --git a/x-pack/test/api_integration/apis/streams/assets/dashboard.ts b/x-pack/test/api_integration/apis/streams/assets/dashboard.ts new file mode 100644 index 0000000000000..7886a52da6165 --- /dev/null +++ b/x-pack/test/api_integration/apis/streams/assets/dashboard.ts @@ -0,0 +1,341 @@ +/* + * 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. + */ +import expect from '@kbn/expect'; +import { enableStreams, indexDocument } from '../helpers/requests'; +import { createStreamsRepositorySupertestClient } from '../helpers/repository_client'; +import { FtrProviderContext } from '../../../ftr_provider_context'; +import { cleanUpRootStream } from '../helpers/cleanup'; + +export default function ({ getService }: FtrProviderContext) { + const supertest = getService('supertest'); + const esClient = getService('es'); + + const kibanaServer = getService('kibanaServer'); + + const apiClient = createStreamsRepositorySupertestClient(supertest); + + const SPACE_ID = 'default'; + const ARCHIVES = [ + 'test/api_integration/fixtures/kbn_archiver/saved_objects/search.json', + 'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json', + ]; + + const SEARCH_DASHBOARD_ID = 'b70c7ae0-3224-11e8-a572-ffca06da1357'; + const BASIC_DASHBOARD_ID = 'be3733a0-9efe-11e7-acb3-3dab96693fab'; + const BASIC_DASHBOARD_TITLE = 'Requests'; + + async function loadDashboards() { + for (const archive of ARCHIVES) { + await kibanaServer.importExport.load(archive, { space: SPACE_ID }); + } + } + + async function unloadDashboards() { + for (const archive of ARCHIVES) { + await kibanaServer.importExport.unload(archive, { space: SPACE_ID }); + } + } + + async function linkDashboard(id: string) { + const response = await apiClient.fetch('PUT /api/streams/{id}/dashboards/{dashboardId}', { + params: { path: { id: 'logs', dashboardId: id } }, + }); + + expect(response.status).to.be(200); + } + + async function unlinkDashboard(id: string) { + const response = await apiClient.fetch('DELETE /api/streams/{id}/dashboards/{dashboardId}', { + params: { path: { id: 'logs', dashboardId: id } }, + }); + + expect(response.status).to.be(200); + } + + async function bulkLinkDashboard(...ids: string[]) { + const response = await apiClient.fetch('POST /api/streams/{id}/dashboards/_bulk', { + params: { + path: { id: 'logs' }, + body: { + operations: ids.map((id) => { + return { + index: { + id, + }, + }; + }), + }, + }, + }); + + expect(response.status).to.be(200); + } + + async function bulkUnlinkDashboard(...ids: string[]) { + const response = await apiClient.fetch('POST /api/streams/{id}/dashboards/_bulk', { + params: { + path: { id: 'logs' }, + body: { + operations: ids.map((id) => { + return { + delete: { + id, + }, + }; + }), + }, + }, + }); + + expect(response.status).to.be(200); + } + + async function deleteAssetIndices() { + const concreteIndices = await esClient.indices.resolveIndex({ + name: '.kibana_streams_assets*', + }); + + if (concreteIndices.indices.length) { + await esClient.indices.delete({ + index: concreteIndices.indices.map((index) => index.name), + }); + } + } + + describe('Asset links', () => { + before(async () => { + await enableStreams(supertest); + + await indexDocument(esClient, 'logs', { + '@timestamp': '2024-01-01T00:00:10.000Z', + message: '2023-01-01T00:00:10.000Z error test', + }); + }); + + after(async () => { + await cleanUpRootStream(esClient); + + await esClient.indices.deleteDataStream({ + name: ['logs*'], + }); + + await deleteAssetIndices(); + }); + + describe('without writing', () => { + it('creates no indices initially', async () => { + const exists = await esClient.indices.exists({ index: '.kibana_streams_assets' }); + + expect(exists).to.eql(false); + }); + + it('creates no indices after reading the assets', async () => { + const response = await apiClient.fetch('GET /api/streams/{id}/dashboards', { + params: { path: { id: 'logs' } }, + }); + + expect(response.status).to.be(200); + + const exists = await esClient.indices.exists({ index: '.kibana_streams_assets' }); + + expect(exists).to.eql(false); + }); + }); + + describe('after linking a dashboard', () => { + before(async () => { + await loadDashboards(); + + await linkDashboard(SEARCH_DASHBOARD_ID); + }); + + after(async () => { + await unloadDashboards(); + await unlinkDashboard(SEARCH_DASHBOARD_ID); + }); + + it('creates the index', async () => { + const exists = await esClient.indices.exists({ index: '.kibana_streams_assets' }); + + expect(exists).to.be(true); + }); + + it('lists the dashboard in the stream response', async () => { + const response = await apiClient.fetch('GET /api/streams/{id}', { + params: { path: { id: 'logs' } }, + }); + + expect(response.status).to.eql(200); + + expect(response.body.dashboards?.length).to.eql(1); + }); + + it('lists the dashboard in the dashboards get response', async () => { + const response = await apiClient.fetch('GET /api/streams/{id}/dashboards', { + params: { path: { id: 'logs' } }, + }); + + expect(response.status).to.eql(200); + + expect(response.body.dashboards.length).to.eql(1); + }); + + describe('after manually rolling over the index and relinking the dashboard', () => { + before(async () => { + await esClient.indices.updateAliases({ + actions: [ + { + add: { + index: `.kibana_streams_assets-000001`, + alias: `.kibana_streams_assets`, + is_write_index: false, + }, + }, + ], + }); + + await esClient.indices.create({ + index: `.kibana_streams_assets-000002`, + }); + + await unlinkDashboard(SEARCH_DASHBOARD_ID); + await linkDashboard(SEARCH_DASHBOARD_ID); + }); + + it('there are no duplicates', async () => { + const response = await apiClient.fetch('GET /api/streams/{id}/dashboards', { + params: { path: { id: 'logs' } }, + }); + + expect(response.status).to.eql(200); + + expect(response.body.dashboards.length).to.eql(1); + + const esResponse = await esClient.search({ + index: `.kibana_streams_assets`, + }); + + expect(esResponse.hits.hits.length).to.eql(1); + }); + }); + + describe('after deleting the indices and relinking the dashboard', () => { + before(async () => { + await deleteAssetIndices(); + + await unlinkDashboard(SEARCH_DASHBOARD_ID); + await linkDashboard(SEARCH_DASHBOARD_ID); + }); + + it('recovers on write and lists the linked dashboard ', async () => { + const response = await apiClient.fetch('GET /api/streams/{id}/dashboards', { + params: { path: { id: 'logs' } }, + }); + + expect(response.status).to.eql(200); + + expect(response.body.dashboards.length).to.eql(1); + }); + }); + + describe('after deleting the dashboards', () => { + before(async () => { + await unloadDashboards(); + }); + + it('no longer lists the dashboard as a linked asset', async () => { + const response = await apiClient.fetch('GET /api/streams/{id}/dashboards', { + params: { path: { id: 'logs' } }, + }); + + expect(response.status).to.eql(200); + + expect(response.body.dashboards.length).to.eql(0); + }); + }); + }); + + describe('after using the bulk API', () => { + before(async () => { + await loadDashboards(); + + await bulkLinkDashboard(SEARCH_DASHBOARD_ID, BASIC_DASHBOARD_ID); + }); + + after(async () => { + await bulkUnlinkDashboard(SEARCH_DASHBOARD_ID, BASIC_DASHBOARD_ID); + await unloadDashboards(); + }); + + it('shows the linked dashboards', async () => { + const response = await apiClient.fetch('GET /api/streams/{id}/dashboards', { + params: { path: { id: 'logs' } }, + }); + + expect(response.body.dashboards.length).to.eql(2); + }); + + describe('after unlinking one dashboard', () => { + before(async () => { + await bulkUnlinkDashboard(SEARCH_DASHBOARD_ID); + }); + + it('only shows the remaining linked dashboard', async () => { + const response = await apiClient.fetch('GET /api/streams/{id}/dashboards', { + params: { path: { id: 'logs' } }, + }); + + expect(response.body.dashboards.length).to.eql(1); + + expect(response.body.dashboards[0].id).to.eql(BASIC_DASHBOARD_ID); + }); + }); + }); + + describe('suggestions', () => { + before(async () => { + await loadDashboards(); + + await linkDashboard(SEARCH_DASHBOARD_ID); + }); + + after(async () => { + await unlinkDashboard(SEARCH_DASHBOARD_ID); + await unloadDashboards(); + }); + + describe('after creating multiple dashboards', () => { + it('suggests dashboards to link', async () => { + const response = await apiClient.fetch('POST /api/streams/{id}/dashboards/_suggestions', { + params: { path: { id: 'logs' }, body: { tags: [] }, query: { query: '' } }, + }); + + expect(response.status).to.eql(200); + expect(response.body.suggestions.length).to.eql(2); + }); + + // TODO: needs a dataset with dashboards with tags + it.skip('filters suggested dashboards based on tags', () => {}); + + it('filters suggested dashboards based on the query', async () => { + const response = await apiClient.fetch('POST /api/streams/{id}/dashboards/_suggestions', { + params: { + path: { id: 'logs' }, + body: { tags: [] }, + query: { query: BASIC_DASHBOARD_TITLE }, + }, + }); + + expect(response.status).to.eql(200); + expect(response.body.suggestions.length).to.eql(1); + + expect(response.body.suggestions[0].id).to.eql(BASIC_DASHBOARD_ID); + }); + }); + }); + }); +} diff --git a/x-pack/test/api_integration/apis/streams/classic.ts b/x-pack/test/api_integration/apis/streams/classic.ts index 67d72bcb0a0ac..af23eb783ead5 100644 --- a/x-pack/test/api_integration/apis/streams/classic.ts +++ b/x-pack/test/api_integration/apis/streams/classic.ts @@ -6,19 +6,11 @@ */ import expect from '@kbn/expect'; -import { JsonObject } from '@kbn/utility-types'; -import { - deleteStream, - enableStreams, - fetchDocument, - getStream, - indexDocument, - listStreams, - putStream, -} from './helpers/requests'; -import { FtrProviderContext } from '../../ftr_provider_context'; import { waitForDocumentInIndex } from '../../../alerting_api_integration/observability/helpers/alerting_wait_for_helpers'; +import { FtrProviderContext } from '../../ftr_provider_context'; import { cleanUpRootStream } from './helpers/cleanup'; +import { createStreamsRepositorySupertestClient } from './helpers/repository_client'; +import { fetchDocument, indexDocument } from './helpers/requests'; export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); @@ -26,27 +18,40 @@ export default function ({ getService }: FtrProviderContext) { const retryService = getService('retry'); const logger = getService('log'); + const TEST_STREAM_NAME = 'logs-test-default'; + + const apiClient = createStreamsRepositorySupertestClient(supertest); + describe('Classic streams', () => { - after(async () => { - await cleanUpRootStream(esClient); + before(async () => { + await apiClient.fetch('POST /api/streams/_enable'); }); - before(async () => { - await enableStreams(supertest); + after(async () => { + await cleanUpRootStream(esClient); + await esClient.indices.deleteDataStream({ + name: ['logs*'], + }); }); it('Shows non-wired data streams', async () => { const doc = { message: '2023-01-01T00:00:10.000Z error test', }; - const response = await indexDocument(esClient, 'logs-test-default', doc); + const response = await indexDocument(esClient, TEST_STREAM_NAME, doc); expect(response.result).to.eql('created'); - const streams = await listStreams(supertest); - const classicStream = streams.streams.find( - (stream: JsonObject) => stream.name === 'logs-test-default' - ); + + const { + body: { streams }, + status, + } = await apiClient.fetch('GET /api/streams'); + + expect(status).to.eql(200); + + const classicStream = streams.find((stream) => stream.name === TEST_STREAM_NAME); + expect(classicStream).to.eql({ - name: 'logs-test-default', + name: TEST_STREAM_NAME, stream: { ingest: { processing: [], @@ -57,28 +62,44 @@ export default function ({ getService }: FtrProviderContext) { }); it('Allows setting processing on classic streams', async () => { - const response = await putStream(supertest, 'logs-test-default', { - ingest: { - processing: [ - { - config: { - grok: { - field: 'message', - patterns: [ - '%{TIMESTAMP_ISO8601:inner_timestamp} %{LOGLEVEL:log.level} %{GREEDYDATA:message2}', - ], + const putResponse = await apiClient.fetch('PUT /api/streams/{id}', { + params: { + path: { + id: TEST_STREAM_NAME, + }, + body: { + ingest: { + processing: [ + { + config: { + grok: { + field: 'message', + patterns: [ + '%{TIMESTAMP_ISO8601:inner_timestamp} %{LOGLEVEL:log.level} %{GREEDYDATA:message2}', + ], + }, + }, }, - }, + ], }, - ], - routing: [], + }, }, }); - expect(response).to.have.property('acknowledged', true); - const streamBody = await getStream(supertest, 'logs-test-default'); - expect(streamBody).to.eql({ - name: 'logs-test-default', - inherited_fields: {}, + + expect(putResponse.status).to.eql(200); + + expect(putResponse.body).to.have.property('acknowledged', true); + + const getResponse = await apiClient.fetch('GET /api/streams/{id}', { + params: { path: { id: TEST_STREAM_NAME } }, + }); + + expect(getResponse.status).to.eql(200); + + expect(getResponse.body).to.eql({ + name: TEST_STREAM_NAME, + dashboards: [], + inherited_fields: [], stream: { ingest: { processing: [ @@ -104,16 +125,16 @@ export default function ({ getService }: FtrProviderContext) { '@timestamp': '2024-01-01T00:00:10.000Z', message: '2023-01-01T00:00:10.000Z error test', }; - const response = await indexDocument(esClient, 'logs-test-default', doc); + const response = await indexDocument(esClient, TEST_STREAM_NAME, doc); expect(response.result).to.eql('created'); await waitForDocumentInIndex({ esClient, - indexName: 'logs-test-default', + indexName: TEST_STREAM_NAME, retryService, logger, docCountTarget: 2, }); - const result = await fetchDocument(esClient, 'logs-test-default', response._id); + const result = await fetchDocument(esClient, TEST_STREAM_NAME, response._id); expect(result._source).to.eql({ '@timestamp': '2024-01-01T00:00:10.000Z', message: '2023-01-01T00:00:10.000Z error test', @@ -126,13 +147,21 @@ export default function ({ getService }: FtrProviderContext) { }); it('Allows removing processing on classic streams', async () => { - const response = await putStream(supertest, 'logs-test-default', { - ingest: { - processing: [], - routing: [], + const response = await apiClient.fetch('PUT /api/streams/{id}', { + params: { + path: { id: TEST_STREAM_NAME }, + body: { + ingest: { + processing: [], + routing: [], + }, + }, }, }); - expect(response).to.have.property('acknowledged', true); + + expect(response.status).to.eql(200); + + expect(response.body).to.have.property('acknowledged', true); }); it('Executes processing on classic streams after removing processing', async () => { @@ -140,16 +169,16 @@ export default function ({ getService }: FtrProviderContext) { // default logs pipeline fills in timestamp with current date if not set message: '2023-01-01T00:00:10.000Z info mylogger this is the message', }; - const response = await indexDocument(esClient, 'logs-test-default', doc); + const response = await indexDocument(esClient, TEST_STREAM_NAME, doc); expect(response.result).to.eql('created'); await waitForDocumentInIndex({ esClient, - indexName: 'logs-test-default', + indexName: TEST_STREAM_NAME, retryService, logger, docCountTarget: 3, }); - const result = await fetchDocument(esClient, 'logs-test-default', response._id); + const result = await fetchDocument(esClient, TEST_STREAM_NAME, response._id); expect(result._source).to.eql({ // accept any date '@timestamp': (result._source as { [key: string]: unknown })['@timestamp'], @@ -158,10 +187,22 @@ export default function ({ getService }: FtrProviderContext) { }); it('Allows deleting classic streams', async () => { - await deleteStream(supertest, 'logs-test-default'); - const streams = await listStreams(supertest); - const classicStream = streams.streams.find( - (stream: JsonObject) => stream.name === 'logs-test-default' + const deleteStreamResponse = await apiClient.fetch('DELETE /api/streams/{id}', { + params: { + path: { + id: TEST_STREAM_NAME, + }, + }, + }); + + expect(deleteStreamResponse.status).to.eql(200); + + const getStreamsResponse = await apiClient.fetch('GET /api/streams'); + + expect(getStreamsResponse.status).to.eql(200); + + const classicStream = getStreamsResponse.body.streams.find( + (stream) => stream.name === TEST_STREAM_NAME ); expect(classicStream).to.eql(undefined); }); diff --git a/x-pack/test/api_integration/apis/streams/config.ts b/x-pack/test/api_integration/apis/streams/config.ts index c737db9499836..2fbcac9ff3b8d 100644 --- a/x-pack/test/api_integration/apis/streams/config.ts +++ b/x-pack/test/api_integration/apis/streams/config.ts @@ -5,12 +5,26 @@ * 2.0. */ -import { FtrConfigProviderContext } from '@kbn/test'; +import { FtrConfigProviderContext, getKibanaCliLoggers } from '@kbn/test'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const baseIntegrationTestsConfig = await readConfigFile(require.resolve('../../config.ts')); return { ...baseIntegrationTestsConfig.getAll(), + kbnTestServer: { + ...baseIntegrationTestsConfig.get('kbnTestServer'), + serverArgs: [ + ...baseIntegrationTestsConfig.get('kbnTestServer.serverArgs'), + `--logging.loggers=${JSON.stringify([ + ...getKibanaCliLoggers(baseIntegrationTestsConfig.get('kbnTestServer.serverArgs')), + { + name: 'plugins.streams', + level: 'debug', + appenders: ['default'], + }, + ])}`, + ], + }, testFiles: [require.resolve('.')], }; } diff --git a/x-pack/test/api_integration/apis/streams/enrichment.ts b/x-pack/test/api_integration/apis/streams/enrichment.ts index e9fb604438ee6..43e8d51962dfb 100644 --- a/x-pack/test/api_integration/apis/streams/enrichment.ts +++ b/x-pack/test/api_integration/apis/streams/enrichment.ts @@ -8,7 +8,14 @@ import expect from '@kbn/expect'; import { SearchTotalHits } from '@elastic/elasticsearch/lib/api/types'; import { WiredStreamConfigDefinition } from '@kbn/streams-schema'; -import { enableStreams, fetchDocument, indexDocument, putStream } from './helpers/requests'; +import { + deleteStream, + enableStreams, + fetchDocument, + forkStream, + indexDocument, + putStream, +} from './helpers/requests'; import { FtrProviderContext } from '../../ftr_provider_context'; import { waitForDocumentInIndex } from '../../../alerting_api_integration/observability/helpers/alerting_wait_for_helpers'; import { cleanUpRootStream } from './helpers/cleanup'; @@ -20,12 +27,28 @@ export default function ({ getService }: FtrProviderContext) { const logger = getService('log'); describe('Enrichment', () => { - after(async () => { - await cleanUpRootStream(esClient); - }); - before(async () => { await enableStreams(supertest); + const body = { + stream: { + name: 'logs.nginx', + }, + condition: { + field: 'host.name', + operator: 'eq', + value: 'routeme', + }, + }; + // We use a forked stream as processing changes cannot be made to the root stream + await forkStream(supertest, 'logs', body); + }); + + after(async () => { + await deleteStream(supertest, 'logs.nginx'); + await cleanUpRootStream(esClient); + await esClient.indices.deleteDataStream({ + name: ['logs*'], + }); }); it('Place processing steps', async () => { @@ -78,7 +101,7 @@ export default function ({ getService }: FtrProviderContext) { }, }, }; - const response = await putStream(supertest, 'logs', body); + const response = await putStream(supertest, 'logs.nginx', body); expect(response).to.have.property('acknowledged', true); }); @@ -86,15 +109,28 @@ export default function ({ getService }: FtrProviderContext) { const doc = { '@timestamp': '2024-01-01T00:00:10.000Z', message: '2023-01-01T00:00:10.000Z error test', + ['host.name']: 'routeme', }; const response = await indexDocument(esClient, 'logs', doc); expect(response.result).to.eql('created'); - await waitForDocumentInIndex({ esClient, indexName: 'logs', retryService, logger }); + const reroutedDocResponse = await waitForDocumentInIndex({ + esClient, + indexName: 'logs.nginx', + retryService, + logger, + }); - const result = await fetchDocument(esClient, 'logs', response._id); + const result = await fetchDocument( + esClient, + 'logs.nginx', + reroutedDocResponse.hits?.hits[0]?._id! + ); expect(result._source).to.eql({ '@timestamp': '2024-01-01T00:00:10.000Z', message: '2023-01-01T00:00:10.000Z error test', + host: { + name: 'routeme', + }, inner_timestamp: '2023-01-01T00:00:10.000Z', message2: 'test', log: { @@ -107,22 +143,30 @@ export default function ({ getService }: FtrProviderContext) { const doc = { '@timestamp': '2024-01-01T00:00:11.000Z', message: '2023-01-01T00:00:10.000Z info mylogger this is the message', + ['host.name']: 'routeme', }; const response = await indexDocument(esClient, 'logs', doc); expect(response.result).to.eql('created'); - await waitForDocumentInIndex({ + const reroutedDocResponse = await waitForDocumentInIndex({ esClient, - indexName: 'logs', + indexName: 'logs.nginx', retryService, logger, docCountTarget: 2, }); - const result = await fetchDocument(esClient, 'logs', response._id); + const result = await fetchDocument( + esClient, + 'logs.nginx', + reroutedDocResponse.hits?.hits[0]?._id! + ); expect(result._source).to.eql({ '@timestamp': '2024-01-01T00:00:11.000Z', message: '2023-01-01T00:00:10.000Z info mylogger this is the message', inner_timestamp: '2023-01-01T00:00:10.000Z', + host: { + name: 'routeme', + }, log: { level: 'info', logger: 'mylogger', @@ -134,7 +178,7 @@ export default function ({ getService }: FtrProviderContext) { it('Doc is searchable', async () => { const response = await esClient.search({ - index: 'logs', + index: 'logs.nginx', body: { query: { match: { @@ -148,7 +192,7 @@ export default function ({ getService }: FtrProviderContext) { it('Non-indexed field is not searchable', async () => { const response = await esClient.search({ - index: 'logs', + index: 'logs.nginx', body: { query: { match: { diff --git a/x-pack/test/api_integration/apis/streams/flush_config.ts b/x-pack/test/api_integration/apis/streams/flush_config.ts index b04b5ff7959a9..d8b95ef92e62b 100644 --- a/x-pack/test/api_integration/apis/streams/flush_config.ts +++ b/x-pack/test/api_integration/apis/streams/flush_config.ts @@ -6,99 +6,101 @@ */ import expect from '@kbn/expect'; -import { SearchTotalHits } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { StreamDefinition } from '@kbn/streams-schema'; -import { deleteStream, enableStreams, indexDocument } from './helpers/requests'; +import { ClientRequestParamsOf } from '@kbn/server-route-repository-utils'; +import type { StreamsRouteRepository } from '@kbn/streams-plugin/server'; import { FtrProviderContext } from '../../ftr_provider_context'; -import { waitForDocumentInIndex } from '../../../alerting_api_integration/observability/helpers/alerting_wait_for_helpers'; import { cleanUpRootStream } from './helpers/cleanup'; +import { createStreamsRepositorySupertestClient } from './helpers/repository_client'; +import { enableStreams, indexDocument } from './helpers/requests'; -const streams: StreamDefinition[] = [ +type StreamPutItem = ClientRequestParamsOf< + StreamsRouteRepository, + 'PUT /api/streams/{id}' +>['params']['body'] & { name: string }; + +const streams: StreamPutItem[] = [ { name: 'logs', - stream: { - ingest: { - processing: [], - wired: { - fields: { - '@timestamp': { - type: 'date', - }, - message: { - type: 'match_only_text', - }, - 'host.name': { - type: 'keyword', - }, - 'log.level': { - type: 'keyword', - }, + ingest: { + processing: [], + wired: { + fields: { + '@timestamp': { + type: 'date', }, - }, - routing: [ - { - name: 'logs.test', - condition: { - and: [ - { - field: 'numberfield', - operator: 'gt', - value: 15, - }, - ], - }, + message: { + type: 'match_only_text', }, - { - name: 'logs.test2', - condition: { - and: [ - { - field: 'field2', - operator: 'eq', - value: 'abc', - }, - ], - }, + 'host.name': { + type: 'keyword', + }, + 'log.level': { + type: 'keyword', }, - ], + }, }, + routing: [ + { + name: 'logs.test', + condition: { + and: [ + { + field: 'numberfield', + operator: 'gt', + value: 15, + }, + ], + }, + }, + { + name: 'logs.test2', + condition: { + and: [ + { + field: 'field2', + operator: 'eq', + value: 'abc', + }, + ], + }, + }, + ], }, }, { name: 'logs.test', - stream: { - ingest: { - processing: [], - wired: { - fields: {}, + ingest: { + processing: [], + wired: { + fields: { + numberfield: { + type: 'long', + }, }, - routing: [], }, }, }, { name: 'logs.test2', - stream: { - ingest: { - processing: [ - { - config: { - grok: { - field: 'message', - patterns: ['%{NUMBER:numberfield}'], - }, + ingest: { + processing: [ + { + config: { + grok: { + field: 'message', + patterns: ['%{NUMBER:numberfield}'], }, }, - ], - wired: { - fields: { - numberfield: { - type: 'long', - }, + }, + ], + wired: { + fields: { + field2: { + type: 'keyword', }, }, - routing: [], }, + routing: [], }, }, ]; @@ -106,34 +108,68 @@ const streams: StreamDefinition[] = [ export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esClient = getService('es'); - const retryService = getService('retry'); - const logger = getService('log'); + + const apiClient = createStreamsRepositorySupertestClient(supertest); // An anticipated use case is that a user will want to flush a tree of streams from a config file describe('Flush from config file', () => { after(async () => { - await deleteStream(supertest, 'logs.nginx'); await cleanUpRootStream(esClient); + await esClient.indices.deleteDataStream({ + name: ['logs*'], + }); }); - // Note: Each step is dependent on the previous - it('Enable streams', async () => { + before(async () => { await enableStreams(supertest); + await createStreams(); + await indexDocuments(); }); - it('PUTs all streams one by one without errors', async () => { - for (const { name, stream } of streams) { - const response = await supertest - .put(`/api/streams/${name}`) - .set('kbn-xsrf', 'xxx') - .send(stream) - .expect(200); + it('puts the data in the right data streams', async () => { + const logsResponse = await esClient.search({ + index: 'logs', + query: { + match: { 'log.level': 'info' }, + }, + }); - expect(response.body).to.have.property('acknowledged', true); - } + expect(logsResponse.hits.total).to.eql({ value: 1, relation: 'eq' }); + + const logsTestResponse = await esClient.search({ + index: 'logs.test', + query: { + match: { numberfield: 20 }, + }, + }); + + expect(logsTestResponse.hits.total).to.eql({ value: 1, relation: 'eq' }); + + const logsTest2Response = await esClient.search({ + index: 'logs.test2', + query: { + match: { field2: 'abc' }, + }, + }); + + expect(logsTest2Response.hits.total).to.eql({ value: 1, relation: 'eq' }); }); - it('send data and it is handled properly', async () => { + async function createStreams() { + for (const { name: streamId, ...stream } of streams) { + await apiClient + .fetch('PUT /api/streams/{id}', { + params: { + body: stream, + path: { id: streamId }, + }, + }) + .expect(200) + .then((response) => expect(response.body.acknowledged).to.eql(true)); + } + } + + async function indexDocuments() { // send data that stays in logs const doc = { '@timestamp': '2024-01-01T00:00:00.000Z', @@ -142,7 +178,6 @@ export default function ({ getService }: FtrProviderContext) { }; const response = await indexDocument(esClient, 'logs', doc); expect(response.result).to.eql('created'); - await waitForDocumentInIndex({ esClient, indexName: 'logs', retryService, logger }); // send data that lands in logs.test const doc2 = { @@ -152,7 +187,6 @@ export default function ({ getService }: FtrProviderContext) { }; const response2 = await indexDocument(esClient, 'logs', doc2); expect(response2.result).to.eql('created'); - await waitForDocumentInIndex({ esClient, indexName: 'logs.test', retryService, logger }); // send data that lands in logs.test2 const doc3 = { @@ -162,15 +196,6 @@ export default function ({ getService }: FtrProviderContext) { }; const response3 = await indexDocument(esClient, 'logs', doc3); expect(response3.result).to.eql('created'); - await waitForDocumentInIndex({ esClient, indexName: 'logs.test2', retryService, logger }); - }); - - it('makes data searchable as expected', async () => { - const query = { - match: { numberfield: 123 }, - }; - const response = await esClient.search({ index: 'logs.test2', query }); - expect((response.hits.total as SearchTotalHits).value).to.eql(1); - }); + } }); } diff --git a/x-pack/test/api_integration/apis/streams/full_flow.ts b/x-pack/test/api_integration/apis/streams/full_flow.ts index fd46df8002d74..610f160f7419b 100644 --- a/x-pack/test/api_integration/apis/streams/full_flow.ts +++ b/x-pack/test/api_integration/apis/streams/full_flow.ts @@ -6,13 +6,7 @@ */ import expect from '@kbn/expect'; -import { - deleteStream, - enableStreams, - fetchDocument, - forkStream, - indexDocument, -} from './helpers/requests'; +import { enableStreams, fetchDocument, forkStream, indexDocument } from './helpers/requests'; import { FtrProviderContext } from '../../ftr_provider_context'; import { waitForDocumentInIndex } from '../../../alerting_api_integration/observability/helpers/alerting_wait_for_helpers'; import { cleanUpRootStream } from './helpers/cleanup'; @@ -25,8 +19,10 @@ export default function ({ getService }: FtrProviderContext) { describe('Basic functionality', () => { after(async () => { - await deleteStream(supertest, 'logs.nginx'); await cleanUpRootStream(esClient); + await esClient.indices.deleteDataStream({ + name: ['logs*'], + }); }); // Note: Each step is dependent on the previous diff --git a/x-pack/test/api_integration/apis/streams/helpers/repository_client.ts b/x-pack/test/api_integration/apis/streams/helpers/repository_client.ts new file mode 100644 index 0000000000000..581243abbba11 --- /dev/null +++ b/x-pack/test/api_integration/apis/streams/helpers/repository_client.ts @@ -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. + */ +import type { StreamsRouteRepository } from '@kbn/streams-plugin/server'; +import supertest from 'supertest'; +import { + RepositorySupertestClient, + getApiClientFromSupertest, +} from '../../../../common/utils/server_route_repository/create_supertest_service_from_repository'; + +export function createStreamsRepositorySupertestClient( + st: supertest.Agent +): RepositorySupertestClient { + return getApiClientFromSupertest(st); +} diff --git a/x-pack/test/api_integration/apis/streams/helpers/requests.ts b/x-pack/test/api_integration/apis/streams/helpers/requests.ts index f26c53aaaf0aa..748e2f627c5e5 100644 --- a/x-pack/test/api_integration/apis/streams/helpers/requests.ts +++ b/x-pack/test/api_integration/apis/streams/helpers/requests.ts @@ -18,7 +18,7 @@ export async function enableStreams(supertest: Agent) { } export async function indexDocument(esClient: Client, index: string, document: JsonObject) { - const response = await esClient.index({ index, document }); + const response = await esClient.index({ index, document, refresh: 'wait_for' }); return response; } @@ -37,14 +37,19 @@ export async function forkStream(supertest: Agent, root: string, body: JsonObjec return response.body; } -export async function putStream(supertest: Agent, name: string, body: StreamConfigDefinition) { - const req = supertest.put(`/api/streams/${name}`).set('kbn-xsrf', 'xxx'); - const response = await req.send(body).expect(200); +export async function putStream( + supertest: Agent, + name: string, + body: StreamConfigDefinition, + expectStatusCode?: number +) { + const req = supertest.put(`/api/streams/${encodeURIComponent(name)}`).set('kbn-xsrf', 'xxx'); + const response = await req.send(body).expect(expectStatusCode ?? 200); return response.body; } export async function getStream(supertest: Agent, name: string) { - const req = supertest.get(`/api/streams/${name}`).set('kbn-xsrf', 'xxx'); + const req = supertest.get(`/api/streams/${encodeURIComponent(name)}`).set('kbn-xsrf', 'xxx'); const response = await req.send().expect(200); return response.body; } diff --git a/x-pack/test/api_integration/apis/streams/index.ts b/x-pack/test/api_integration/apis/streams/index.ts index 6c4cf358b8ac3..f481bfcf03639 100644 --- a/x-pack/test/api_integration/apis/streams/index.ts +++ b/x-pack/test/api_integration/apis/streams/index.ts @@ -13,6 +13,8 @@ export default function ({ loadTestFile }: FtrProviderContext) { loadTestFile(require.resolve('./enrichment')); loadTestFile(require.resolve('./classic')); loadTestFile(require.resolve('./flush_config')); + loadTestFile(require.resolve('./assets/dashboard')); loadTestFile(require.resolve('./schema')); + loadTestFile(require.resolve('./root_stream')); }); } diff --git a/x-pack/test/api_integration/apis/streams/root_stream.ts b/x-pack/test/api_integration/apis/streams/root_stream.ts new file mode 100644 index 0000000000000..42215c834eb50 --- /dev/null +++ b/x-pack/test/api_integration/apis/streams/root_stream.ts @@ -0,0 +1,116 @@ +/* + * 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. + */ + +import expect from '@kbn/expect'; +import { WiredStreamConfigDefinition, WiredStreamDefinition } from '@kbn/streams-schema'; +import { FtrProviderContext } from '../../ftr_provider_context'; +import { cleanUpRootStream } from './helpers/cleanup'; +import { enableStreams, putStream } from './helpers/requests'; + +const rootStreamDefinition: WiredStreamDefinition = { + name: 'logs', + stream: { + ingest: { + processing: [], + routing: [], + wired: { + fields: { + '@timestamp': { + type: 'date', + }, + message: { + type: 'match_only_text', + }, + 'host.name': { + type: 'keyword', + }, + 'log.level': { + type: 'keyword', + }, + }, + }, + }, + }, +}; + +export default function ({ getService }: FtrProviderContext) { + const supertest = getService('supertest'); + const esClient = getService('es'); + + describe('Root stream', () => { + before(async () => { + await enableStreams(supertest); + }); + + after(async () => { + await cleanUpRootStream(esClient); + }); + + it('Should not allow processing changes', async () => { + const body: WiredStreamConfigDefinition = { + ingest: { + ...rootStreamDefinition.stream.ingest, + processing: [ + { + config: { + grok: { + field: 'message', + patterns: [ + '%{TIMESTAMP_ISO8601:inner_timestamp} %{LOGLEVEL:log.level} %{GREEDYDATA:message2}', + ], + }, + }, + }, + ], + }, + }; + const response = await putStream(supertest, 'logs', body, 400); + expect(response).to.have.property( + 'message', + 'Root stream processing rules cannot be changed' + ); + }); + + it('Should not allow fields changes', async () => { + const body: WiredStreamConfigDefinition = { + ingest: { + ...rootStreamDefinition.stream.ingest, + wired: { + fields: { + ...rootStreamDefinition.stream.ingest.wired.fields, + 'log.level': { + type: 'boolean', + }, + }, + }, + }, + }; + const response = await putStream(supertest, 'logs', body, 400); + expect(response).to.have.property('message', 'Root stream fields cannot be changed'); + }); + + it('Should allow routing changes', async () => { + const body: WiredStreamConfigDefinition = { + ingest: { + ...rootStreamDefinition.stream.ingest, + routing: [ + { + name: 'logs.gcpcloud', + condition: { + field: 'cloud.provider', + operator: 'eq', + value: 'gcp', + }, + }, + ], + }, + }; + const response = await putStream(supertest, 'logs', body); + expect(response).to.have.property('acknowledged', true); + }); + }); +} diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/index.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/index.ts index 17ce93321b511..fd2a7e85baed1 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/index.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/index.ts @@ -10,6 +10,7 @@ import { DeploymentAgnosticFtrProviderContext } from '../../../ftr_provider_cont export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) { describe('Dataset quality', () => { loadTestFile(require.resolve('./integrations')); + loadTestFile(require.resolve('./integration_dashboards')); loadTestFile(require.resolve('./degraded_field_analyze')); loadTestFile(require.resolve('./data_stream_settings')); loadTestFile(require.resolve('./data_stream_rollover')); diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/integration_dashboards.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/integration_dashboards.ts new file mode 100644 index 0000000000000..4d9b6355cf3e9 --- /dev/null +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/integration_dashboards.ts @@ -0,0 +1,145 @@ +/* + * 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. + */ + +import expect from '@kbn/expect'; +import { CustomIntegration } from '../../../services/package_api'; +import { DeploymentAgnosticFtrProviderContext } from '../../../ftr_provider_context'; +import { RoleCredentials, SupertestWithRoleScopeType } from '../../../services'; + +export default function ({ getService }: DeploymentAgnosticFtrProviderContext) { + const samlAuth = getService('samlAuth'); + const roleScopedSupertest = getService('roleScopedSupertest'); + const packageApi = getService('packageApi'); + + const integrationPackages = ['nginx', 'apache']; + const customIntegrations: CustomIntegration[] = [ + { + integrationName: 'my.custom.integration', + datasets: [ + { + name: 'my.custom.integration', + type: 'logs', + }, + ], + }, + ]; + + async function callApiAs( + roleScopedSupertestWithCookieCredentials: SupertestWithRoleScopeType, + integration: string + ) { + return roleScopedSupertestWithCookieCredentials.get( + `/internal/dataset_quality/integrations/${integration}/dashboards` + ); + } + + describe('Integration dashboards', () => { + let adminRoleAuthc: RoleCredentials; + before(async () => { + adminRoleAuthc = await samlAuth.createM2mApiKeyWithRoleScope('admin'); + await Promise.all( + integrationPackages.map((pkg) => + packageApi.installPackage({ + roleAuthc: adminRoleAuthc, + pkg, + }) + ) + ); + + await Promise.all( + customIntegrations.map((customIntegration) => + packageApi.installCustomIntegration({ + roleAuthc: adminRoleAuthc, + customIntegration, + }) + ) + ); + }); + + after(async () => { + await Promise.all( + integrationPackages.map((pkg) => + packageApi.uninstallPackage({ roleAuthc: adminRoleAuthc, pkg }) + ) + ); + + await Promise.all( + customIntegrations.map((customIntegration) => + packageApi.uninstallPackage({ + roleAuthc: adminRoleAuthc, + pkg: customIntegration.integrationName, + }) + ) + ); + + await samlAuth.invalidateM2mApiKeyWithRoleScope(adminRoleAuthc); + }); + + describe('gets the installed integration dashboards', () => { + let supertestViewerWithCookieCredentials: SupertestWithRoleScopeType; + before(async () => { + supertestViewerWithCookieCredentials = await roleScopedSupertest.getSupertestWithRoleScope( + 'viewer', + { + useCookieHeader: true, + withInternalHeaders: true, + } + ); + }); + + it('returns a non-empty body', async () => { + const resp = await callApiAs(supertestViewerWithCookieCredentials, integrationPackages[0]); + expect(resp.body).not.empty(); + }); + + it('returns correct number of dashboard', async () => { + const resp = await callApiAs(supertestViewerWithCookieCredentials, integrationPackages[1]); + expect(resp.body.dashboards.length).to.eql(2); + }); + + it('returns a list of dashboards in the correct format', async () => { + const expectedResult = { + dashboards: [ + { + id: 'nginx-023d2930-f1a5-11e7-a9ef-93c69af7b129', + title: '[Metrics Nginx] Overview', + }, + { + id: 'nginx-046212a0-a2a1-11e7-928f-5dbe6f6f5519', + title: '[Logs Nginx] Access and error logs', + }, + { + id: 'nginx-55a9e6e0-a29e-11e7-928f-5dbe6f6f5519', + title: '[Logs Nginx] Overview', + }, + ], + }; + const resp = await callApiAs(supertestViewerWithCookieCredentials, integrationPackages[0]); + expect(resp.body).to.eql(expectedResult); + }); + + it('returns an empty array for an integration without dashboards', async () => { + const expectedResult = { + dashboards: [], + }; + const resp = await callApiAs( + supertestViewerWithCookieCredentials, + customIntegrations[0].integrationName + ); + expect(resp.body).to.eql(expectedResult); + }); + + it('returns an empty array for an invalid integration', async () => { + const expectedResult = { + dashboards: [], + }; + const resp = await callApiAs(supertestViewerWithCookieCredentials, 'invalid'); + expect(resp.body).to.eql(expectedResult); + }); + }); + }); +} diff --git a/x-pack/test/api_integration/services/security_solution_api.gen.ts b/x-pack/test/api_integration/services/security_solution_api.gen.ts index 9ffdc1c43a2a1..e2bc6fd051a48 100644 --- a/x-pack/test/api_integration/services/security_solution_api.gen.ts +++ b/x-pack/test/api_integration/services/security_solution_api.gen.ts @@ -138,6 +138,10 @@ import { PreviewRiskScoreRequestBodyInput } from '@kbn/security-solution-plugin/ import { ReadAlertsMigrationStatusRequestQueryInput } from '@kbn/security-solution-plugin/common/api/detection_engine/signals_migration/read_signals_migration_status/read_signals_migration_status.gen'; import { ReadRuleRequestQueryInput } from '@kbn/security-solution-plugin/common/api/detection_engine/rule_management/crud/read_rule/read_rule_route.gen'; import { ResolveTimelineRequestQueryInput } from '@kbn/security-solution-plugin/common/api/timeline/resolve_timeline/resolve_timeline_route.gen'; +import { + RetryRuleMigrationRequestParamsInput, + RetryRuleMigrationRequestBodyInput, +} from '@kbn/security-solution-plugin/common/siem_migrations/model/api/rules/rule_migration.gen'; import { RulePreviewRequestQueryInput, RulePreviewRequestBodyInput, @@ -1402,6 +1406,22 @@ detection engine rules. .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') .query(props.query); }, + /** + * Retries a SIEM rules migration using the migration id provided + */ + retryRuleMigration(props: RetryRuleMigrationProps, kibanaSpace: string = 'default') { + return supertest + .put( + routeWithNamespace( + replaceParams('/internal/siem_migrations/rules/{migration_id}/retry', props.params), + kibanaSpace + ) + ) + .set('kbn-xsrf', 'true') + .set(ELASTIC_HTTP_VERSION_HEADER, '1') + .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') + .send(props.body as object); + }, riskEngineGetPrivileges(kibanaSpace: string = 'default') { return supertest .get(routeWithNamespace('/internal/risk_engine/privileges', kibanaSpace)) @@ -1875,6 +1895,10 @@ export interface ReadRuleProps { export interface ResolveTimelineProps { query: ResolveTimelineRequestQueryInput; } +export interface RetryRuleMigrationProps { + params: RetryRuleMigrationRequestParamsInput; + body: RetryRuleMigrationRequestBodyInput; +} export interface RulePreviewProps { query: RulePreviewRequestQueryInput; body: RulePreviewRequestBodyInput; diff --git a/x-pack/test/cases_api_integration/security_and_spaces/config_trial_common.ts b/x-pack/test/cases_api_integration/security_and_spaces/config_trial_common.ts new file mode 100644 index 0000000000000..0a46cbcda1f02 --- /dev/null +++ b/x-pack/test/cases_api_integration/security_and_spaces/config_trial_common.ts @@ -0,0 +1,16 @@ +/* + * 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. + */ + +import { createTestConfig } from '../common/config'; + +// eslint-disable-next-line import/no-default-export +export default createTestConfig('security_and_spaces', { + license: 'trial', + ssl: true, + testFiles: [require.resolve('./tests/common/index_common_trial')], + publicBaseUrl: true, +}); diff --git a/x-pack/test/cases_api_integration/security_and_spaces/tests/common/index_common_trial/index.ts b/x-pack/test/cases_api_integration/security_and_spaces/tests/common/index_common_trial/index.ts new file mode 100644 index 0000000000000..532e53421b46f --- /dev/null +++ b/x-pack/test/cases_api_integration/security_and_spaces/tests/common/index_common_trial/index.ts @@ -0,0 +1,31 @@ +/* + * 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. + */ + +import { FtrProviderContext } from '../../../../common/ftr_provider_context'; +import { + createSpacesAndUsers, + deleteSpacesAndUsers, + activateUserProfiles, +} from '../../../../common/lib/authentication'; + +// eslint-disable-next-line import/no-default-export +export default ({ loadTestFile, getService }: FtrProviderContext): void => { + describe('cases security and spaces enabled: trial', function () { + before(async () => { + await createSpacesAndUsers(getService); + // once a user profile is created the only way to remove it is to delete the user and roles, so best to activate + // before all the tests + await activateUserProfiles(getService); + }); + + after(async () => { + await deleteSpacesAndUsers(getService); + }); + + loadTestFile(require.resolve('..')); + }); +}; diff --git a/x-pack/test/cases_api_integration/security_and_spaces/tests/trial/index.ts b/x-pack/test/cases_api_integration/security_and_spaces/tests/trial/index.ts index 2b3c282ad6c2b..0862434256f0e 100644 --- a/x-pack/test/cases_api_integration/security_and_spaces/tests/trial/index.ts +++ b/x-pack/test/cases_api_integration/security_and_spaces/tests/trial/index.ts @@ -51,9 +51,6 @@ export default ({ loadTestFile, getService }: FtrProviderContext): void => { // Connectors loadTestFile(require.resolve('./connectors/cases/cases_connector')); - // Common - loadTestFile(require.resolve('../common')); - // NOTE: These need to be at the end because they could delete the .kibana index and inadvertently remove the users and spaces loadTestFile(require.resolve('../common/migrations')); diff --git a/x-pack/test/common/utils/server_route_repository/create_supertest_service_from_repository.ts b/x-pack/test/common/utils/server_route_repository/create_supertest_service_from_repository.ts new file mode 100644 index 0000000000000..4c0b3da777a1e --- /dev/null +++ b/x-pack/test/common/utils/server_route_repository/create_supertest_service_from_repository.ts @@ -0,0 +1,211 @@ +/* + * 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. + */ + +import { + formatRequest, + ServerRouteRepository, + EndpointOf, + ReturnOf, + ClientRequestParamsOf, +} from '@kbn/server-route-repository'; +import supertest from 'supertest'; +import { Subtract, RequiredKeys } from 'utility-types'; +import { format, UrlObject } from 'url'; +import { kbnTestConfig } from '@kbn/test'; + +type MaybeOptional> = RequiredKeys extends never + ? [TArgs] | [] + : [TArgs]; + +export interface RepositorySupertestClient { + fetch: >( + endpoint: TEndpoint, + ...options: MaybeOptional< + { + type?: 'form-data'; + } & ClientRequestParamsOf + > + ) => RepositorySupertestReturnOf; +} + +type RepositorySupertestReturnOf< + TServerRouteRepository extends ServerRouteRepository, + TEndpoint extends EndpointOf +> = OverwriteThisMethods< + WithoutPromise, + Promise<{ + text: string; + status: number; + body: ReturnOf; + }> +>; + +type ScopedApiClientWithBasicAuthFactory = ( + kibanaServer: UrlObject, + username: string +) => RepositorySupertestClient; + +type ApiClientFromSupertestFactory = ( + st: supertest.Agent +) => RepositorySupertestClient; + +interface RepositorySupertestClientFactory { + getScopedApiClientWithBasicAuth: ScopedApiClientWithBasicAuthFactory; + getApiClientFromSupertest: ApiClientFromSupertestFactory; +} + +export function createSupertestClientFactoryFromRepository< + TServerRouteRepository extends ServerRouteRepository +>(): RepositorySupertestClientFactory { + return { + getScopedApiClientWithBasicAuth: (kibanaServer, username) => { + return getScopedApiClientWithBasicAuth(kibanaServer, username); + }, + getApiClientFromSupertest: (st) => { + return getApiClientFromSupertest(st); + }, + }; +} + +function getScopedApiClientWithBasicAuth( + kibanaServer: UrlObject, + username: string +): RepositorySupertestClient { + const { password } = kbnTestConfig.getUrlParts(); + const baseUrlWithAuth = format({ + ...kibanaServer, + auth: `${username}:${password}`, + }); + + return getApiClientFromSupertest(supertest(baseUrlWithAuth)); +} + +export function getApiClientFromSupertest( + st: supertest.Agent +): RepositorySupertestClient { + return { + fetch: (endpoint, ...rest) => { + const options = rest.length ? rest[0] : { type: undefined }; + + const { type } = options; + + const params = 'params' in options ? (options.params as Record) : {}; + + const { method, pathname, version } = formatRequest(endpoint, params.path); + const url = format({ pathname, query: params?.query }); + + const headers: Record = { 'kbn-xsrf': 'foo' }; + + if (version) { + headers['Elastic-Api-Version'] = version; + } + + let res: supertest.Test; + if (type === 'form-data') { + const fields: Array<[string, any]> = Object.entries(params.body); + const formDataRequest = st[method](url) + .set(headers) + .set('Content-type', 'multipart/form-data'); + + for (const field of fields) { + void formDataRequest.field(field[0], field[1]); + } + + res = formDataRequest; + } else if (params.body) { + res = st[method](url).send(params.body).set(headers); + } else { + res = st[method](url).set(headers); + } + + return res as RepositorySupertestReturnOf< + TServerRouteRepository, + EndpointOf + >; + }, + }; +} + +type WithoutPromise> = Subtract>; + +// this is a little intense, but without it, method overrides are lost +// e.g., { +// end(one:string) +// end(one:string, two:string) +// } +// would lose the first signature. This keeps up to eight signatures. +type OverloadedParameters = T extends { + (...args: infer A1): any; + (...args: infer A2): any; + (...args: infer A3): any; + (...args: infer A4): any; + (...args: infer A5): any; + (...args: infer A6): any; + (...args: infer A7): any; + (...args: infer A8): any; +} + ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 + : T extends { + (...args: infer A1): any; + (...args: infer A2): any; + (...args: infer A3): any; + (...args: infer A4): any; + (...args: infer A5): any; + (...args: infer A6): any; + (...args: infer A7): any; + } + ? A1 | A2 | A3 | A4 | A5 | A6 | A7 + : T extends { + (...args: infer A1): any; + (...args: infer A2): any; + (...args: infer A3): any; + (...args: infer A4): any; + (...args: infer A5): any; + (...args: infer A6): any; + } + ? A1 | A2 | A3 | A4 | A5 | A6 + : T extends { + (...args: infer A1): any; + (...args: infer A2): any; + (...args: infer A3): any; + (...args: infer A4): any; + (...args: infer A5): any; + } + ? A1 | A2 | A3 | A4 | A5 + : T extends { + (...args: infer A1): any; + (...args: infer A2): any; + (...args: infer A3): any; + (...args: infer A4): any; + } + ? A1 | A2 | A3 | A4 + : T extends { + (...args: infer A1): any; + (...args: infer A2): any; + (...args: infer A3): any; + } + ? A1 | A2 | A3 + : T extends { + (...args: infer A1): any; + (...args: infer A2): any; + } + ? A1 | A2 + : T extends (...args: infer A) => any + ? A + : any; + +type OverrideReturnType any, TNextReturnType> = ( + ...args: OverloadedParameters +) => WithoutPromise> & TNextReturnType; + +type OverwriteThisMethods, TNextReturnType> = TNextReturnType & { + [key in keyof T]: T[key] extends (...args: infer TArgs) => infer TReturnType + ? TReturnType extends Promise + ? OverrideReturnType + : (...args: TArgs) => TReturnType + : T[key]; +}; diff --git a/x-pack/test/dataset_quality_api_integration/common/config.ts b/x-pack/test/dataset_quality_api_integration/common/config.ts index f8e3fdc92016a..c27d6536c53da 100644 --- a/x-pack/test/dataset_quality_api_integration/common/config.ts +++ b/x-pack/test/dataset_quality_api_integration/common/config.ts @@ -28,7 +28,6 @@ import { InheritedFtrProviderContext, InheritedServices, } from './ftr_provider_context'; -import { PackageService } from './package_service'; import { RegistryProvider } from './registry'; export interface DatasetQualityFtrConfig { @@ -81,7 +80,6 @@ export interface CreateTest { context: InheritedFtrProviderContext ) => SyntheticsSynthtraceEsClient; datasetQualityApiClient: (context: InheritedFtrProviderContext) => DatasetQualityApiClient; - packageService: ({ getService }: FtrProviderContext) => ReturnType; }; junit: { reportName: string }; esTestCluster: any; @@ -132,7 +130,6 @@ export function createTestConfig( servicesRequiredForTestAnalysis: ['datasetQualityFtrConfig', 'registry'], services: { ...services, - packageService: PackageService, datasetQualityFtrConfig: () => config, registry: RegistryProvider, logSynthtraceEsClient: (context: InheritedFtrProviderContext) => diff --git a/x-pack/test/dataset_quality_api_integration/common/package_service.ts b/x-pack/test/dataset_quality_api_integration/common/package_service.ts deleted file mode 100644 index 0449fd9f921dd..0000000000000 --- a/x-pack/test/dataset_quality_api_integration/common/package_service.ts +++ /dev/null @@ -1,30 +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. - */ - -import { FtrProviderContext } from './ftr_provider_context'; - -interface IntegrationPackage { - name: string; - version: string; -} - -export function PackageService({ getService }: FtrProviderContext) { - const supertest = getService('supertest'); - - function uninstallPackage({ name, version }: IntegrationPackage) { - return supertest.delete(`/api/fleet/epm/packages/${name}/${version}`).set('kbn-xsrf', 'xxxx'); - } - - function installPackage({ name, version }: IntegrationPackage) { - return supertest - .post(`/api/fleet/epm/packages/${name}/${version}`) - .set('kbn-xsrf', 'xxxx') - .send({ force: true }); - } - - return { uninstallPackage, installPackage }; -} diff --git a/x-pack/test/dataset_quality_api_integration/tests/data_streams/es_utils.ts b/x-pack/test/dataset_quality_api_integration/tests/data_streams/es_utils.ts index d4b7eb2dc0824..607522089952f 100644 --- a/x-pack/test/dataset_quality_api_integration/tests/data_streams/es_utils.ts +++ b/x-pack/test/dataset_quality_api_integration/tests/data_streams/es_utils.ts @@ -6,7 +6,6 @@ */ import { Client } from '@elastic/elasticsearch'; -import { IndicesIndexSettings } from '@elastic/elasticsearch/lib/api/types'; export async function addIntegrationToLogIndexTemplate({ esClient, @@ -53,35 +52,3 @@ export async function cleanLogIndexTemplate({ esClient }: { esClient: Client }) }, }); } - -function getCurrentDateFormatted() { - const date = new Date(); - const year = date.getFullYear(); - const month = String(date.getMonth() + 1).padStart(2, '0'); - const day = String(date.getDate()).padStart(2, '0'); - - return `${year}.${month}.${day}`; -} - -export function createBackingIndexNameWithoutVersion({ - type, - dataset, - namespace = 'default', -}: { - type: string; - dataset: string; - namespace: string; -}) { - return `.ds-${type}-${dataset}-${namespace}-${getCurrentDateFormatted()}`; -} - -export async function setDataStreamSettings( - esClient: Client, - name: string, - settings: IndicesIndexSettings -) { - return esClient.indices.putSettings({ - index: name, - settings, - }); -} diff --git a/x-pack/test/dataset_quality_api_integration/tests/integrations/integration_dashboards.spec.ts b/x-pack/test/dataset_quality_api_integration/tests/integrations/integration_dashboards.spec.ts deleted file mode 100644 index 70567202c4341..0000000000000 --- a/x-pack/test/dataset_quality_api_integration/tests/integrations/integration_dashboards.spec.ts +++ /dev/null @@ -1,86 +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. - */ - -import expect from '@kbn/expect'; -import { DatasetQualityApiClientKey } from '../../common/config'; -import { FtrProviderContext } from '../../common/ftr_provider_context'; -import { installPackage, uninstallPackage } from './package_utils'; - -export default function ApiTest({ getService }: FtrProviderContext) { - const registry = getService('registry'); - const supertest = getService('supertest'); - const datasetQualityApiClient = getService('datasetQualityApiClient'); - - const integrationPackages = ['nginx', 'apm']; - - async function callApiAs(integration: string) { - const user = 'datasetQualityMonitorUser' as DatasetQualityApiClientKey; - return await datasetQualityApiClient[user]({ - endpoint: 'GET /internal/dataset_quality/integrations/{integration}/dashboards', - params: { - path: { - integration, - }, - }, - }); - } - - registry.when('Integration dashboards', { config: 'basic' }, () => { - describe('gets the installed integration dashboards', () => { - before(async () => { - await Promise.all(integrationPackages.map((pkg) => installPackage({ supertest, pkg }))); - }); - - it('returns a non-empty body', async () => { - const resp = await callApiAs(integrationPackages[0]); - expect(resp.body).not.empty(); - }); - - it('returns a list of dashboards in the correct format', async () => { - const expectedResult = { - dashboards: [ - { - id: 'nginx-023d2930-f1a5-11e7-a9ef-93c69af7b129', - title: '[Metrics Nginx] Overview', - }, - { - id: 'nginx-046212a0-a2a1-11e7-928f-5dbe6f6f5519', - title: '[Logs Nginx] Access and error logs', - }, - { - id: 'nginx-55a9e6e0-a29e-11e7-928f-5dbe6f6f5519', - title: '[Logs Nginx] Overview', - }, - ], - }; - const resp = await callApiAs(integrationPackages[0]); - expect(resp.body).to.eql(expectedResult); - }); - - it('returns an empty array for an integration without dashboards', async () => { - const expectedResult = { - dashboards: [], - }; - const resp = await callApiAs(integrationPackages[1]); - expect(resp.body).to.eql(expectedResult); - }); - - it('returns an empty array for an invalid integration', async () => { - const expectedResult = { - dashboards: [], - }; - const resp = await callApiAs('invalid'); - expect(resp.body).to.eql(expectedResult); - }); - - after( - async () => - await Promise.all(integrationPackages.map((pkg) => uninstallPackage({ supertest, pkg }))) - ); - }); - }); -} diff --git a/x-pack/test/dataset_quality_api_integration/tests/integrations/package_utils.ts b/x-pack/test/dataset_quality_api_integration/tests/integrations/package_utils.ts deleted file mode 100644 index 728d9e0b81e2e..0000000000000 --- a/x-pack/test/dataset_quality_api_integration/tests/integrations/package_utils.ts +++ /dev/null @@ -1,40 +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. - */ - -import { Agent as SuperTestAgent } from 'supertest'; - -export async function installPackage({ - supertest, - pkg, -}: { - supertest: SuperTestAgent; - pkg: string; -}) { - const { - body: { - item: { latestVersion: version }, - }, - } = await supertest - .get(`/api/fleet/epm/packages/${pkg}`) - .set('kbn-xsrf', 'xxxx') - .send({ force: true }); - - return supertest - .post(`/api/fleet/epm/packages/${pkg}/${version}`) - .set('kbn-xsrf', 'xxxx') - .send({ force: true }); -} - -export async function uninstallPackage({ - supertest, - pkg, -}: { - supertest: SuperTestAgent; - pkg: string; -}) { - return supertest.delete(`/api/fleet/epm/packages/${pkg}`).set('kbn-xsrf', 'xxxx'); -} diff --git a/x-pack/test/dataset_quality_api_integration/utils/data_stream.ts b/x-pack/test/dataset_quality_api_integration/utils/data_stream.ts deleted file mode 100644 index bdf5187db0725..0000000000000 --- a/x-pack/test/dataset_quality_api_integration/utils/data_stream.ts +++ /dev/null @@ -1,26 +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. - */ - -import { Client } from '@elastic/elasticsearch'; - -export async function rolloverDataStream(es: Client, name: string) { - return es.indices.rollover({ alias: name }); -} - -export async function getDataStreamSettingsOfEarliestIndex(es: Client, name: string) { - const matchingIndexesObj = await es.indices.getSettings({ index: name }); - - const matchingIndexes = Object.keys(matchingIndexesObj ?? {}); - matchingIndexes.sort((a, b) => { - return ( - Number(matchingIndexesObj[a].settings?.index?.creation_date) - - Number(matchingIndexesObj[b].settings?.index?.creation_date) - ); - }); - - return matchingIndexesObj[matchingIndexes[0]].settings; -} diff --git a/x-pack/test/dataset_quality_api_integration/utils/index.ts b/x-pack/test/dataset_quality_api_integration/utils/index.ts index 31fae4fe71199..ae42a0d359d0b 100644 --- a/x-pack/test/dataset_quality_api_integration/utils/index.ts +++ b/x-pack/test/dataset_quality_api_integration/utils/index.ts @@ -8,4 +8,3 @@ export { joinByKey } from './join_by_key'; export { maybe } from './maybe'; export { expectToReject } from './expect_to_reject'; -export * from './data_stream'; diff --git a/x-pack/test/functional/apps/index_management/data_streams_tab/data_streams_tab.ts b/x-pack/test/functional/apps/index_management/data_streams_tab/data_streams_tab.ts index e91bdeeb5e417..ae32297fe96a0 100644 --- a/x-pack/test/functional/apps/index_management/data_streams_tab/data_streams_tab.ts +++ b/x-pack/test/functional/apps/index_management/data_streams_tab/data_streams_tab.ts @@ -282,6 +282,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { // Click update template await pageObjects.indexManagement.clickNextButton(); + await pageObjects.header.waitUntilLoadingHasFinished(); // Verify index mode and close detail tab expect(await testSubjects.getVisibleText('indexModeValue')).to.be(indexModeName); @@ -322,11 +323,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await changeIndexMode('index_mode_logsdb'); // Navigate to the last step of the wizard - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-5'); + await pageObjects.header.waitUntilLoadingHasFinished(); await verifyModeHasBeenChanged(INDEX_MODE.LOGSDB); }); @@ -339,11 +337,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await changeIndexMode('index_mode_standard'); // Navigate to the last step of the wizard - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-5'); + await pageObjects.header.waitUntilLoadingHasFinished(); await verifyModeHasBeenChanged(INDEX_MODE.STANDARD); }); @@ -357,16 +352,15 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await changeIndexMode('index_mode_logsdb'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-2'); + await pageObjects.header.waitUntilLoadingHasFinished(); // Modify Index settings await testSubjects.setValue('kibanaCodeEditor', '{}', { clearWithKeyboard: true, }); // Navigate to the last step of the wizard - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-5'); + await pageObjects.header.waitUntilLoadingHasFinished(); await verifyModeHasBeenChanged(INDEX_MODE.LOGSDB); }); @@ -379,8 +373,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await changeIndexMode('index_mode_time_series'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-2'); + await pageObjects.header.waitUntilLoadingHasFinished(); // Modify Index settings await testSubjects.setValue( 'kibanaCodeEditor', @@ -390,9 +384,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { } ); // Navigate to the last step of the wizard - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-5'); + await pageObjects.header.waitUntilLoadingHasFinished(); await verifyModeHasBeenChanged(INDEX_MODE.TIME_SERIES); }); diff --git a/x-pack/test/functional/apps/index_management/index_templates_tab/index_template_tab.ts b/x-pack/test/functional/apps/index_management/index_templates_tab/index_template_tab.ts index 75f022eaf7555..32337c04f05ad 100644 --- a/x-pack/test/functional/apps/index_management/index_templates_tab/index_template_tab.ts +++ b/x-pack/test/functional/apps/index_management/index_templates_tab/index_template_tab.ts @@ -47,11 +47,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await testSubjects.click('show-filters-button'); await testSubjects.click('filter-option-h'); // Navigate to the last step of the wizard - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-5'); + await pageObjects.header.waitUntilLoadingHasFinished(); expect(await testSubjects.getVisibleText('lifecycleValue')).to.be('7 hours'); @@ -71,11 +68,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await testSubjects.click('index_mode_logsdb'); // Navigate to the last step of the wizard - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-5'); + await pageObjects.header.waitUntilLoadingHasFinished(); expect(await testSubjects.exists('indexModeTitle')).to.be(true); expect(await testSubjects.getVisibleText('indexModeValue')).to.be('LogsDB'); diff --git a/x-pack/test/functional/apps/infra/hosts_view.ts b/x-pack/test/functional/apps/infra/hosts_view.ts index 52b3484ed50e5..39573d5ebbd0a 100644 --- a/x-pack/test/functional/apps/infra/hosts_view.ts +++ b/x-pack/test/functional/apps/infra/hosts_view.ts @@ -236,7 +236,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { { feature: { infrastructure: ['read'], + apm: ['read'], advancedSettings: ['read'], + streams: ['read'], }, spaces: ['*'], }, diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation.ts index 11333741acf48..8ee2e23e2be84 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation.ts @@ -123,7 +123,8 @@ export default function ({ getService }: FtrProviderContext) { section: 'state', // Don't include the 'Create time' value entry as it's not stable. expectedEntries: [ - 'STOPPED', + 'Status', + 'stopped', 'Create time', 'Model memory limit', '25mb', diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts index b3789ceeac28b..a76d0fb27d92c 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/classification_creation_saved_search.ts @@ -119,7 +119,8 @@ export default function ({ getService }: FtrProviderContext) { section: 'state', // Don't include the 'Create time' value entry as it's not stable. expectedEntries: [ - 'STOPPED', + 'Status', + 'stopped', 'Create time', 'Model memory limit', '20mb', @@ -219,7 +220,8 @@ export default function ({ getService }: FtrProviderContext) { section: 'state', // Don't include the 'Create time' value entry as it's not stable. expectedEntries: [ - 'STOPPED', + 'Status', + 'stopped', 'Create time', 'Model memory limit', '20mb', @@ -317,7 +319,14 @@ export default function ({ getService }: FtrProviderContext) { { section: 'state', // Don't include the 'Create time' value entry as it's not stable. - expectedEntries: ['STOPPED', 'Create time', 'Model memory limit', '7mb', 'Version'], + expectedEntries: [ + 'Status', + 'stopped', + 'Create time', + 'Model memory limit', + '7mb', + 'Version', + ], }, { section: 'stats', @@ -407,7 +416,14 @@ export default function ({ getService }: FtrProviderContext) { { section: 'state', // Don't include the 'Create time' value entry as it's not stable. - expectedEntries: ['STOPPED', 'Create time', 'Model memory limit', '6mb', 'Version'], + expectedEntries: [ + 'Status', + 'stopped', + 'Create time', + 'Model memory limit', + '6mb', + 'Version', + ], }, { section: 'stats', diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts index 52d81d2663cc5..d706cb4ec9468 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation.ts @@ -135,7 +135,14 @@ export default function ({ getService }: FtrProviderContext) { { section: 'state', // Don't include the 'Create time' value entry as it's not stable. - expectedEntries: ['STOPPED', 'Create time', 'Model memory limit', '2mb', 'Version'], + expectedEntries: [ + 'Status', + 'stopped', + 'Create time', + 'Model memory limit', + '2mb', + 'Version', + ], }, { section: 'stats', diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts index ddfc9e540bee1..98e8e45c241d2 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/outlier_detection_creation_saved_search.ts @@ -83,7 +83,14 @@ export default function ({ getService }: FtrProviderContext) { { section: 'state', // Don't include the 'Create time' value entry as it's not stable. - expectedEntries: ['STOPPED', 'Create time', 'Model memory limit', '1mb', 'Version'], + expectedEntries: [ + 'Status', + 'stopped', + 'Create time', + 'Model memory limit', + '1mb', + 'Version', + ], }, { section: 'stats', @@ -160,7 +167,14 @@ export default function ({ getService }: FtrProviderContext) { { section: 'state', // Don't include the 'Create time' value entry as it's not stable. - expectedEntries: ['STOPPED', 'Create time', 'Model memory limit', '1mb', 'Version'], + expectedEntries: [ + 'Status', + 'stopped', + 'Create time', + 'Model memory limit', + '1mb', + 'Version', + ], }, { section: 'stats', @@ -237,7 +251,14 @@ export default function ({ getService }: FtrProviderContext) { { section: 'state', // Don't include the 'Create time' value entry as it's not stable. - expectedEntries: ['STOPPED', 'Create time', 'Model memory limit', '1mb', 'Version'], + expectedEntries: [ + 'Status', + 'stopped', + 'Create time', + 'Model memory limit', + '1mb', + 'Version', + ], }, { section: 'stats', @@ -315,7 +336,14 @@ export default function ({ getService }: FtrProviderContext) { { section: 'state', // Don't include the 'Create time' value entry as it's not stable. - expectedEntries: ['STOPPED', 'Create time', 'Model memory limit', '1mb', 'Version'], + expectedEntries: [ + 'Status', + 'stopped', + 'Create time', + 'Model memory limit', + '1mb', + 'Version', + ], }, { section: 'stats', diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation.ts index 6978452afdc32..07126c69a250c 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation.ts @@ -119,7 +119,8 @@ export default function ({ getService }: FtrProviderContext) { section: 'state', // Don't include the 'Create time' value entry as it's not stable. expectedEntries: [ - 'STOPPED', + 'Status', + 'stopped', 'Create time', 'Model memory limit', '16mb', diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts index fb5702e98ac1d..b9553fd69be71 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/regression_creation_saved_search.ts @@ -89,7 +89,8 @@ export default function ({ getService }: FtrProviderContext) { section: 'state', // Don't include the 'Create time' value entry as it's not stable. expectedEntries: [ - 'STOPPED', + 'Status', + 'stopped', 'Create time', 'Model memory limit', '10mb', @@ -177,7 +178,8 @@ export default function ({ getService }: FtrProviderContext) { section: 'state', // Don't include the 'Create time' value entry as it's not stable. expectedEntries: [ - 'STOPPED', + 'Status', + 'stopped', 'Create time', 'Model memory limit', '10mb', @@ -264,7 +266,14 @@ export default function ({ getService }: FtrProviderContext) { { section: 'state', // Don't include the 'Create time' value entry as it's not stable. - expectedEntries: ['STOPPED', 'Create time', 'Model memory limit', '5mb', 'Version'], + expectedEntries: [ + 'Status', + 'stopped', + 'Create time', + 'Model memory limit', + '5mb', + 'Version', + ], }, { section: 'stats', @@ -346,7 +355,14 @@ export default function ({ getService }: FtrProviderContext) { { section: 'state', // Don't include the 'Create time' value entry as it's not stable. - expectedEntries: ['STOPPED', 'Create time', 'Model memory limit', '5mb', 'Version'], + expectedEntries: [ + 'Status', + 'stopped', + 'Create time', + 'Model memory limit', + '5mb', + 'Version', + ], }, { section: 'stats', diff --git a/x-pack/test/functional/es_archives/signals/legacy_signals_index_non_default_space/data.json b/x-pack/test/functional/es_archives/signals/legacy_signals_index_non_default_space/data.json new file mode 100644 index 0000000000000..2547b46171e44 --- /dev/null +++ b/x-pack/test/functional/es_archives/signals/legacy_signals_index_non_default_space/data.json @@ -0,0 +1,12 @@ +{ + "type": "doc", + "value": { + "id": "1", + "index": ".siem-signals-another-space-legacy", + "source": { + "@timestamp": "2020-10-10T00:00:00.000Z", + "signal": {} + }, + "type": "_doc" + } + } \ No newline at end of file diff --git a/x-pack/test/functional/es_archives/signals/legacy_signals_index_non_default_space/mappings.json b/x-pack/test/functional/es_archives/signals/legacy_signals_index_non_default_space/mappings.json new file mode 100644 index 0000000000000..0dbbf1d4e833e --- /dev/null +++ b/x-pack/test/functional/es_archives/signals/legacy_signals_index_non_default_space/mappings.json @@ -0,0 +1,29 @@ +{ + "type": "index", + "value": { + "aliases": { + ".siem-signals-another-space": { + "is_write_index": false + } + }, + "index": ".siem-signals-another-space-legacy", + "mappings": { + "_meta": { + "version": 1 + }, + "properties": { + "@timestamp": { + "type": "date" + }, + "signal": { "type": "object" } + } + }, + "settings": { + "index": { + "lifecycle": { + "indexing_complete": true + } + } + } + } + } \ No newline at end of file diff --git a/x-pack/test/plugin_api_integration/config.ts b/x-pack/test/plugin_api_integration/config.ts index 8f145b346d402..492ee59611bbc 100644 --- a/x-pack/test/plugin_api_integration/config.ts +++ b/x-pack/test/plugin_api_integration/config.ts @@ -36,6 +36,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { '--xpack.task_manager.monitored_aggregated_stats_refresh_rate=5000', `--xpack.stack_connectors.enableExperimental=${JSON.stringify([ 'crowdstrikeConnectorOn', + 'microsoftDefenderEndpointOn', 'inferenceConnectorOn', ])}`, ...findTestPluginPaths(path.resolve(__dirname, 'plugins')), diff --git a/x-pack/test/plugin_api_integration/test_suites/task_manager/check_registered_task_types.ts b/x-pack/test/plugin_api_integration/test_suites/task_manager/check_registered_task_types.ts index 4242048d00664..682b2b9ec5f7d 100644 --- a/x-pack/test/plugin_api_integration/test_suites/task_manager/check_registered_task_types.ts +++ b/x-pack/test/plugin_api_integration/test_suites/task_manager/check_registered_task_types.ts @@ -65,6 +65,7 @@ export default function ({ getService }: FtrProviderContext) { 'actions:.index', 'actions:.inference', 'actions:.jira', + 'actions:.microsoft_defender_endpoint', 'actions:.observability-ai-assistant', 'actions:.opsgenie', 'actions:.pagerduty', diff --git a/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/basic_license_essentials_tier/ess_specific_index_logic/migrations/deprecations.ts b/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/basic_license_essentials_tier/ess_specific_index_logic/migrations/deprecations.ts new file mode 100644 index 0000000000000..6ec6d3d8aaeb1 --- /dev/null +++ b/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/basic_license_essentials_tier/ess_specific_index_logic/migrations/deprecations.ts @@ -0,0 +1,94 @@ +/* + * 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. + */ + +import expect from 'expect'; +import type { DeprecationsDetails } from '@kbn/core/server'; + +import { + createAlertsIndex, + deleteAllAlerts, +} from '../../../../../../../../common/utils/security_solution'; + +import { FtrProviderContext } from '../../../../../../../ftr_provider_context'; + +export default ({ getService }: FtrProviderContext): void => { + const esArchiver = getService('esArchiver'); + const supertest = getService('supertest'); + const log = getService('log'); + const es = getService('es'); + + const getDeprecations = async (): Promise => { + const { body } = await supertest.get('/api/deprecations/').set('kbn-xsrf', 'true').expect(200); + return body.deprecations; + }; + + const getLegacyIndicesDeprecation = async (): Promise => { + const deprecations = await getDeprecations(); + + return deprecations.find(({ title }) => title === 'Found not migrated detection alerts'); + }; + + describe('@ess Alerts migration deprecations API', () => { + describe('no siem legacy indices exist', () => { + it('should return empty siem signals deprecation', async () => { + const deprecation = await getLegacyIndicesDeprecation(); + + expect(deprecation).toBeUndefined(); + }); + }); + + describe('siem legacy indices exist', () => { + beforeEach(async () => { + await esArchiver.load('x-pack/test/functional/es_archives/signals/legacy_signals_index'); + await createAlertsIndex(supertest, log); + }); + + afterEach(async () => { + await esArchiver.unload('x-pack/test/functional/es_archives/signals/legacy_signals_index'); + await deleteAllAlerts(supertest, log, es); + }); + + it('should return legacy siem signals deprecation', async () => { + const deprecation = await getLegacyIndicesDeprecation(); + + expect(deprecation?.level).toBe('warning'); + + // ensures space included in manual steps + expect(deprecation?.correctiveActions.manualSteps[1]).toContain( + 'Spaces with at least one non-migrated signals index: default.' + ); + expect(deprecation?.correctiveActions.manualSteps[2]).toContain( + 'Example of migration API calls:' + ); + expect(deprecation?.correctiveActions.manualSteps[3]).toContain( + 'GET :/api/detection_engine/signals/migration_status?from=1970-01-01T00:00:00.000Z' + ); + }); + + describe('multiple spaces', () => { + beforeEach(async () => { + await esArchiver.load( + 'x-pack/test/functional/es_archives/signals/legacy_signals_index_non_default_space' + ); + }); + + afterEach(async () => { + await esArchiver.unload( + 'x-pack/test/functional/es_archives/signals/legacy_signals_index_non_default_space' + ); + }); + + it('should return legacy siem signals deprecation with multiple spaces', async () => { + const deprecation = await getLegacyIndicesDeprecation(); + + expect(deprecation?.correctiveActions.manualSteps[1]).toContain('another-space'); + expect(deprecation?.correctiveActions.manualSteps[1]).toContain('default'); + }); + }); + }); + }); +}; diff --git a/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/basic_license_essentials_tier/ess_specific_index_logic/migrations/index.ts b/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/basic_license_essentials_tier/ess_specific_index_logic/migrations/index.ts index 2c1aed2b1387b..2266e653b2493 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/basic_license_essentials_tier/ess_specific_index_logic/migrations/index.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/basic_license_essentials_tier/ess_specific_index_logic/migrations/index.ts @@ -12,5 +12,6 @@ export default function ({ loadTestFile }: FtrProviderContext) { loadTestFile(require.resolve('./delete_alerts_migrations')); loadTestFile(require.resolve('./finalize_alerts_migrations')); loadTestFile(require.resolve('./get_alerts_migration_status')); + loadTestFile(require.resolve('./deprecations')); }); } diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/investigations/alerts/expandable_flyout/alert_details_right_panel.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/investigations/alerts/expandable_flyout/alert_details_right_panel.cy.ts index 8eac8a410f600..b10606f3d44f1 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/investigations/alerts/expandable_flyout/alert_details_right_panel.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/investigations/alerts/expandable_flyout/alert_details_right_panel.cy.ts @@ -65,6 +65,15 @@ import { ALERTS_URL } from '../../../../urls/navigation'; import { waitForAlertsToPopulate } from '../../../../tasks/create_new_rule'; import { TOASTER } from '../../../../screens/alerts_detection_rules'; import { ELASTICSEARCH_USERNAME, IS_SERVERLESS } from '../../../../env_var_names_constants'; +import { + goToAcknowledgedAlerts, + goToClosedAlerts, + toggleKPICharts, +} from '../../../../tasks/alerts'; +import { + DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_WORKFLOW_STATUS_DETAILS, + DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_WORKFLOW_STATUS_TITLE, +} from '../../../../screens/expandable_flyout/alert_details_right_panel_overview_tab'; // We need to use the 'soc_manager' role in order to have the 'Respond' action displayed in serverless const isServerless = Cypress.env(IS_SERVERLESS); @@ -171,6 +180,21 @@ describe('Alert details expandable flyout right panel', { tags: ['@ess', '@serve cy.get(TOASTER).should('have.text', 'Successfully marked 1 alert as acknowledged.'); cy.get(EMPTY_ALERT_TABLE).should('exist'); + + // collapsing the KPI section prevents the test from being flaky, as when the KPI is expanded, the view + // scrolls to the bottom of the page (for some unknown reason) and the test can't select the page filter... + toggleKPICharts(); + goToAcknowledgedAlerts(); + expandAlertAtIndexExpandableFlyout(); + + cy.get(DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_WORKFLOW_STATUS_TITLE).should( + 'have.text', + 'Last alert status change' + ); + cy.get(DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_WORKFLOW_STATUS_DETAILS).should( + 'contain.text', + 'Alert status updated' + ); }); it('should mark as closed', () => { @@ -181,6 +205,21 @@ describe('Alert details expandable flyout right panel', { tags: ['@ess', '@serve cy.get(TOASTER).should('have.text', 'Successfully closed 1 alert.'); cy.get(EMPTY_ALERT_TABLE).should('exist'); + + // collapsing the KPI section prevents the test from being flaky, as when the KPI is expanded, the view + // scrolls to the bottom of the page (for some unknown reason) and the test can't select the page filter... + toggleKPICharts(); + goToClosedAlerts(); + expandAlertAtIndexExpandableFlyout(); + + cy.get(DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_WORKFLOW_STATUS_TITLE).should( + 'have.text', + 'Last alert status change' + ); + cy.get(DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_WORKFLOW_STATUS_DETAILS).should( + 'contain.text', + 'Alert status updated' + ); }); // these actions are now grouped together as we're not really testing their functionality but just the existence of the option in the dropdown diff --git a/x-pack/test/security_solution_cypress/cypress/screens/ai_assistant.ts b/x-pack/test/security_solution_cypress/cypress/screens/ai_assistant.ts index fcdd9b42304a6..6935eb993e3f0 100644 --- a/x-pack/test/security_solution_cypress/cypress/screens/ai_assistant.ts +++ b/x-pack/test/security_solution_cypress/cypress/screens/ai_assistant.ts @@ -8,7 +8,7 @@ export const ADD_NEW_CONNECTOR = '[data-test-subj="addNewConnectorButton"]'; export const ADD_QUICK_PROMPT = '[data-test-subj="addQuickPrompt"]'; export const ASSISTANT_SETTINGS_BUTTON = 'button[data-test-subj="settings"]'; -export const AI_ASSISTANT_BUTTON = '[data-test-subj="assistantHeaderLink"]'; +export const AI_ASSISTANT_BUTTON = '[data-test-subj="assistantNavLink"]'; export const ASSISTANT_CHAT_BODY = '[data-test-subj="assistantChat"]'; export const CHAT_CONTEXT_MENU = '[data-test-subj="chat-context-menu"]'; export const CHAT_ICON = '[data-test-subj="newChat"]'; diff --git a/x-pack/test/security_solution_cypress/cypress/screens/expandable_flyout/alert_details_right_panel_overview_tab.ts b/x-pack/test/security_solution_cypress/cypress/screens/expandable_flyout/alert_details_right_panel_overview_tab.ts index 2d267bee721dc..3f5eada5ef136 100644 --- a/x-pack/test/security_solution_cypress/cypress/screens/expandable_flyout/alert_details_right_panel_overview_tab.ts +++ b/x-pack/test/security_solution_cypress/cypress/screens/expandable_flyout/alert_details_right_panel_overview_tab.ts @@ -36,6 +36,10 @@ export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_MITRE_ATTACK_TITLE = getDataTe export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_MITRE_ATTACK_DETAILS = getDataTestSubjectSelector( 'securitySolutionFlyoutMitreAttackDetails' ); +export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_WORKFLOW_STATUS_TITLE = + getDataTestSubjectSelector('securitySolutionFlyoutWorkflowStatusTitle'); +export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_WORKFLOW_STATUS_DETAILS = + getDataTestSubjectSelector('securitySolutionFlyoutWorkflowStatusDetails'); /* Investigation section */ 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/x-pack/test/tsconfig.json b/x-pack/test/tsconfig.json index a591c2b6b4573..c44db155280c4 100644 --- a/x-pack/test/tsconfig.json +++ b/x-pack/test/tsconfig.json @@ -190,6 +190,8 @@ "@kbn/integration-assistant-plugin", "@kbn/core-elasticsearch-server", "@kbn/streams-schema", + "@kbn/server-route-repository-utils", + "@kbn/streams-plugin", "@kbn/response-ops-rule-params" ] } diff --git a/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_migration.spec.ts b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_migration.spec.ts new file mode 100644 index 0000000000000..11ca83a896759 --- /dev/null +++ b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_migration.spec.ts @@ -0,0 +1,162 @@ +/* + * 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. + */ + +import expect from '@kbn/expect'; +import { + deleteInferenceEndpoint, + createKnowledgeBaseModel, + TINY_ELSER, + deleteKnowledgeBaseModel, + clearKnowledgeBase, +} from '@kbn/test-suites-xpack/observability_ai_assistant_api_integration/tests/knowledge_base/helpers'; +import { AI_ASSISTANT_KB_INFERENCE_ID } from '@kbn/observability-ai-assistant-plugin/server/service/inference_endpoint'; +import { SearchResponse } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import { KnowledgeBaseEntry } from '@kbn/observability-ai-assistant-plugin/common'; +import { orderBy } from 'lodash'; +import { FtrProviderContext } from '../../common/ftr_provider_context'; + +export default function ApiTest({ getService }: FtrProviderContext) { + const ml = getService('ml'); + const es = getService('es'); + const esArchiver = getService('esArchiver'); + const observabilityAIAssistantAPIClient = getService('observabilityAIAssistantAPIClient'); + + const archive = + 'x-pack/test/functional/es_archives/observability/ai_assistant/knowledge_base_8_15'; + + async function getKnowledgeBaseEntries() { + const res = (await es.search({ + index: '.kibana-observability-ai-assistant-kb*', + body: { + query: { + match_all: {}, + }, + }, + })) as SearchResponse< + KnowledgeBaseEntry & { + semantic_text: { + text: string; + inference: { inference_id: string; chunks: Array<{ text: string; embeddings: any }> }; + }; + } + >; + + return res.hits.hits; + } + + describe('When there are knowledge base entries (from 8.15 or earlier) that does not contain semantic_text embeddings', function () { + this.tags(['skipMKI']); + + before(async () => { + await clearKnowledgeBase(es); + await esArchiver.load(archive); + await createKnowledgeBaseModel(ml); + await observabilityAIAssistantAPIClient + .slsAdmin({ + endpoint: 'POST /internal/observability_ai_assistant/kb/setup', + params: { + query: { + model_id: TINY_ELSER.id, + }, + }, + }) + .expect(200); + }); + + after(async () => { + await clearKnowledgeBase(es); + await esArchiver.unload(archive); + await deleteKnowledgeBaseModel(ml); + await deleteInferenceEndpoint({ es }); + }); + + describe('before migrating', () => { + it('the docs do not have semantic_text embeddings', async () => { + const hits = await getKnowledgeBaseEntries(); + const hasSemanticTextEmbeddings = hits.some((hit) => hit._source?.semantic_text); + expect(hasSemanticTextEmbeddings).to.be(false); + }); + }); + + describe('after migrating', () => { + before(async () => { + await observabilityAIAssistantAPIClient + .slsEditor({ + endpoint: 'POST /internal/observability_ai_assistant/kb/semantic_text_migration', + }) + .expect(200); + }); + + it('the docs have semantic_text embeddings', async () => { + const hits = await getKnowledgeBaseEntries(); + const hasSemanticTextEmbeddings = hits.every((hit) => hit._source?.semantic_text); + expect(hasSemanticTextEmbeddings).to.be(true); + + expect( + orderBy(hits, '_source.title').map(({ _source }) => { + const { text, inference } = _source?.semantic_text!; + + return { + text, + inferenceId: inference.inference_id, + chunkCount: inference.chunks.length, + }; + }) + ).to.eql([ + { + text: 'To infinity and beyond!', + inferenceId: AI_ASSISTANT_KB_INFERENCE_ID, + chunkCount: 1, + }, + { + text: "The user's favourite color is blue.", + inferenceId: AI_ASSISTANT_KB_INFERENCE_ID, + chunkCount: 1, + }, + ]); + }); + + it('returns entries correctly via API', async () => { + await observabilityAIAssistantAPIClient + .slsEditor({ + endpoint: 'POST /internal/observability_ai_assistant/kb/semantic_text_migration', + }) + .expect(200); + + const res = await observabilityAIAssistantAPIClient + .slsEditor({ + endpoint: 'GET /internal/observability_ai_assistant/kb/entries', + params: { + query: { + query: '', + sortBy: 'title', + sortDirection: 'asc', + }, + }, + }) + .expect(200); + + expect( + res.body.entries.map(({ title, text, role, type }) => ({ title, text, role, type })) + ).to.eql([ + { + role: 'user_entry', + title: 'Toy Story quote', + type: 'contextual', + text: 'To infinity and beyond!', + }, + { + role: 'assistant_summarization', + title: "User's favourite color", + type: 'contextual', + text: "The user's favourite color is blue.", + }, + ]); + }); + }); + }); +} diff --git a/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_status.spec.ts b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_status.spec.ts index b51587bc7bd68..11c039a40411b 100644 --- a/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_status.spec.ts +++ b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_status.spec.ts @@ -24,6 +24,9 @@ export default function ApiTest({ getService }: FtrProviderContext) { const observabilityAIAssistantAPIClient = getService('observabilityAIAssistantAPIClient'); describe('/internal/observability_ai_assistant/kb/status', function () { + // Fails on MKI: https://github.com/elastic/kibana/issues/205677 + this.tags(['failsOnMKI']); + before(async () => { await createKnowledgeBaseModel(ml); await observabilityAIAssistantAPIClient diff --git a/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_user_instructions.spec.ts b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_user_instructions.spec.ts index d2b8f96060527..162097400090b 100644 --- a/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_user_instructions.spec.ts +++ b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_user_instructions.spec.ts @@ -37,7 +37,8 @@ export default function ApiTest({ getService }: FtrProviderContext) { const svlCommonApi = getService('svlCommonApi'); const retry = getService('retry'); - describe('Knowledge base user instructions', function () { + // Failing: See https://github.com/elastic/kibana/issues/205656 + describe.skip('Knowledge base user instructions', function () { // TODO: https://github.com/elastic/kibana/issues/192751 this.tags(['skipMKI']); let editorRoleAuthc: RoleCredentials; diff --git a/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts b/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts index 1007c89cb171a..fe2fb08501450 100644 --- a/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts +++ b/x-pack/test_serverless/functional/test_suites/common/discover_ml_uptime/discover/search_source_alert.ts @@ -553,9 +553,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { // change title await testSubjects.click('editIndexPatternButton'); - await testSubjects.setValue('createIndexPatternTitleInput', 'search-s', { - clearWithKeyboard: true, - typeCharByChar: true, + await PageObjects.header.waitUntilLoadingHasFinished(); + await retry.try(async () => { + await PageObjects.settings.setIndexPatternField('search-s*'); }); await testSubjects.click('saveIndexPatternButton'); await testSubjects.click('confirmModalConfirmButton'); diff --git a/x-pack/test_serverless/functional/test_suites/common/management/index_management/data_streams.ts b/x-pack/test_serverless/functional/test_suites/common/management/index_management/data_streams.ts index f1b0b34ba94ac..7b7b71d5cfa5e 100644 --- a/x-pack/test_serverless/functional/test_suites/common/management/index_management/data_streams.ts +++ b/x-pack/test_serverless/functional/test_suites/common/management/index_management/data_streams.ts @@ -199,6 +199,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { // Click update template await pageObjects.indexManagement.clickNextButton(); + await pageObjects.header.waitUntilLoadingHasFinished(); // Verify index mode and close detail tab expect(await testSubjects.getVisibleText('indexModeValue')).to.be(indexModeName); @@ -246,11 +247,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await changeIndexMode('index_mode_logsdb'); // Navigate to the last step of the wizard - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-5'); + await pageObjects.header.waitUntilLoadingHasFinished(); await verifyModeHasBeenChanged(INDEX_MODE.LOGSDB); }); @@ -263,11 +261,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await changeIndexMode('index_mode_standard'); // Navigate to the last step of the wizard - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-5'); + await pageObjects.header.waitUntilLoadingHasFinished(); await verifyModeHasBeenChanged(INDEX_MODE.STANDARD); }); @@ -281,16 +276,14 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await changeIndexMode('index_mode_logsdb'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-2'); + await pageObjects.header.waitUntilLoadingHasFinished(); // Modify Index settings await testSubjects.setValue('kibanaCodeEditor', '{}', { clearWithKeyboard: true, }); // Navigate to the last step of the wizard - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-5'); await verifyModeHasBeenChanged(INDEX_MODE.LOGSDB); }); @@ -303,8 +296,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await changeIndexMode('index_mode_time_series'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-2'); + await pageObjects.header.waitUntilLoadingHasFinished(); // Modify Index settings await testSubjects.setValue( 'kibanaCodeEditor', @@ -314,9 +307,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { } ); // Navigate to the last step of the wizard - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); - await testSubjects.click('nextButton'); + await testSubjects.click('formWizardStep-5'); await verifyModeHasBeenChanged(INDEX_MODE.TIME_SERIES); }); diff --git a/x-pack/test_serverless/functional/test_suites/common/management/index_management/index_templates.ts b/x-pack/test_serverless/functional/test_suites/common/management/index_management/index_templates.ts index 30ed3c30104e3..5e2cfba50997f 100644 --- a/x-pack/test_serverless/functional/test_suites/common/management/index_management/index_templates.ts +++ b/x-pack/test_serverless/functional/test_suites/common/management/index_management/index_templates.ts @@ -117,10 +117,12 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { // Click form summary step and then the submit button await testSubjects.click('formWizardStep-5'); + await pageObjects.header.waitUntilLoadingHasFinished(); expect(await testSubjects.getVisibleText('indexModeValue')).to.be('LogsDB'); // Click update template await pageObjects.indexManagement.clickNextButton(); + await pageObjects.header.waitUntilLoadingHasFinished(); // Close detail tab expect(await testSubjects.getVisibleText('indexModeValue')).to.be('LogsDB'); diff --git a/yarn.lock b/yarn.lock index cd4006a47fdaa..4b2ec974f4314 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4089,7 +4089,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 "" @@ -4121,15 +4121,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 "" @@ -4229,7 +4229,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 "" @@ -4249,15 +4249,15 @@ version "0.0.0" uid "" -"@kbn/content-management-content-editor@link:packages/content-management/content_editor": +"@kbn/content-management-content-editor@link:src/platform/packages/shared/content-management/content_editor": version "0.0.0" uid "" -"@kbn/content-management-content-insights-public@link:packages/content-management/content_insights/content_insights_public": +"@kbn/content-management-content-insights-public@link:src/platform/packages/shared/content-management/content_insights/content_insights_public": version "0.0.0" uid "" -"@kbn/content-management-content-insights-server@link:packages/content-management/content_insights/content_insights_server": +"@kbn/content-management-content-insights-server@link:src/platform/packages/shared/content-management/content_insights/content_insights_server": version "0.0.0" uid "" @@ -4265,15 +4265,15 @@ version "0.0.0" uid "" -"@kbn/content-management-favorites-common@link:packages/content-management/favorites/favorites_common": +"@kbn/content-management-favorites-common@link:src/platform/packages/shared/content-management/favorites/favorites_common": version "0.0.0" uid "" -"@kbn/content-management-favorites-public@link:packages/content-management/favorites/favorites_public": +"@kbn/content-management-favorites-public@link:src/platform/packages/shared/content-management/favorites/favorites_public": version "0.0.0" uid "" -"@kbn/content-management-favorites-server@link:packages/content-management/favorites/favorites_server": +"@kbn/content-management-favorites-server@link:src/platform/packages/shared/content-management/favorites/favorites_server": version "0.0.0" uid "" @@ -4281,23 +4281,23 @@ version "0.0.0" uid "" -"@kbn/content-management-tabbed-table-list-view@link:packages/content-management/tabbed_table_list_view": +"@kbn/content-management-tabbed-table-list-view@link:src/platform/packages/shared/content-management/tabbed_table_list_view": version "0.0.0" uid "" -"@kbn/content-management-table-list-view-common@link:packages/content-management/table_list_view_common": +"@kbn/content-management-table-list-view-common@link:src/platform/packages/shared/content-management/table_list_view_common": version "0.0.0" uid "" -"@kbn/content-management-table-list-view-table@link:packages/content-management/table_list_view_table": +"@kbn/content-management-table-list-view-table@link:src/platform/packages/shared/content-management/table_list_view_table": version "0.0.0" uid "" -"@kbn/content-management-table-list-view@link:packages/content-management/table_list_view": +"@kbn/content-management-table-list-view@link:src/platform/packages/shared/content-management/table_list_view": version "0.0.0" uid "" -"@kbn/content-management-user-profiles@link:packages/content-management/user_profiles": +"@kbn/content-management-user-profiles@link:src/platform/packages/shared/content-management/user_profiles": version "0.0.0" uid "" @@ -4417,7 +4417,7 @@ version "0.0.0" uid "" -"@kbn/core-chrome-browser-internal@link:packages/core/chrome/core-chrome-browser-internal": +"@kbn/core-chrome-browser-internal@link:src/core/packages/chrome/browser-internal": version "0.0.0" uid "" @@ -4433,31 +4433,31 @@ version "0.0.0" uid "" -"@kbn/core-custom-branding-browser-internal@link:packages/core/custom-branding/core-custom-branding-browser-internal": +"@kbn/core-custom-branding-browser-internal@link:src/core/packages/custom-branding/browser-internal": version "0.0.0" uid "" -"@kbn/core-custom-branding-browser-mocks@link:packages/core/custom-branding/core-custom-branding-browser-mocks": +"@kbn/core-custom-branding-browser-mocks@link:src/core/packages/custom-branding/browser-mocks": version "0.0.0" uid "" -"@kbn/core-custom-branding-browser@link:packages/core/custom-branding/core-custom-branding-browser": +"@kbn/core-custom-branding-browser@link:src/core/packages/custom-branding/browser": version "0.0.0" uid "" -"@kbn/core-custom-branding-common@link:packages/core/custom-branding/core-custom-branding-common": +"@kbn/core-custom-branding-common@link:src/core/packages/custom-branding/common": version "0.0.0" uid "" -"@kbn/core-custom-branding-server-internal@link:packages/core/custom-branding/core-custom-branding-server-internal": +"@kbn/core-custom-branding-server-internal@link:src/core/packages/custom-branding/server-internal": version "0.0.0" uid "" -"@kbn/core-custom-branding-server-mocks@link:packages/core/custom-branding/core-custom-branding-server-mocks": +"@kbn/core-custom-branding-server-mocks@link:src/core/packages/custom-branding/server-mocks": version "0.0.0" uid "" -"@kbn/core-custom-branding-server@link:packages/core/custom-branding/core-custom-branding-server": +"@kbn/core-custom-branding-server@link:src/core/packages/custom-branding/server": version "0.0.0" uid "" @@ -5121,7 +5121,7 @@ version "0.0.0" uid "" -"@kbn/core-ui-settings-browser-internal@link:packages/core/ui-settings/core-ui-settings-browser-internal": +"@kbn/core-ui-settings-browser-internal@link:src/core/packages/ui-settings/browser-internal": version "0.0.0" uid "" @@ -5129,15 +5129,15 @@ version "0.0.0" uid "" -"@kbn/core-ui-settings-browser@link:packages/core/ui-settings/core-ui-settings-browser": +"@kbn/core-ui-settings-browser@link:src/core/packages/ui-settings/browser": version "0.0.0" uid "" -"@kbn/core-ui-settings-common@link:packages/core/ui-settings/core-ui-settings-common": +"@kbn/core-ui-settings-common@link:src/core/packages/ui-settings/common": version "0.0.0" uid "" -"@kbn/core-ui-settings-server-internal@link:packages/core/ui-settings/core-ui-settings-server-internal": +"@kbn/core-ui-settings-server-internal@link:src/core/packages/ui-settings/server-internal": version "0.0.0" uid "" @@ -5145,7 +5145,7 @@ version "0.0.0" uid "" -"@kbn/core-ui-settings-server@link:packages/core/ui-settings/core-ui-settings-server": +"@kbn/core-ui-settings-server@link:src/core/packages/ui-settings/server": version "0.0.0" uid "" @@ -5253,7 +5253,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 "" @@ -5265,7 +5265,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 "" @@ -5429,7 +5429,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 "" @@ -5613,19 +5613,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 "" @@ -5657,11 +5657,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 "" @@ -5669,7 +5669,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 "" @@ -5677,11 +5677,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 "" @@ -5697,11 +5697,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 "" @@ -5709,7 +5709,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 "" @@ -5829,7 +5829,7 @@ version "0.0.0" uid "" -"@kbn/generate-csv@link:packages/kbn-generate-csv": +"@kbn/generate-csv@link:src/platform/packages/private/kbn-generate-csv": version "0.0.0" uid "" @@ -5857,7 +5857,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 "" @@ -6021,7 +6021,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 "" @@ -6137,7 +6137,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 "" @@ -6145,7 +6145,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 "" @@ -6213,7 +6213,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 "" @@ -6373,10 +6373,6 @@ version "0.0.0" uid "" -"@kbn/ml-kibana-theme@link:x-pack/platform/packages/private/ml/kibana_theme": - version "0.0.0" - uid "" - "@kbn/ml-local-storage@link:x-pack/platform/packages/private/ml/local_storage": version "0.0.0" uid "" @@ -6481,11 +6477,11 @@ version "0.0.0" uid "" -"@kbn/object-versioning-utils@link:packages/kbn-object-versioning-utils": +"@kbn/object-versioning-utils@link:src/platform/packages/shared/kbn-object-versioning-utils": version "0.0.0" uid "" -"@kbn/object-versioning@link:packages/kbn-object-versioning": +"@kbn/object-versioning@link:src/platform/packages/shared/kbn-object-versioning": version "0.0.0" uid "" @@ -6697,7 +6693,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 "" @@ -6737,7 +6733,7 @@ version "0.0.0" uid "" -"@kbn/recently-accessed@link:packages/kbn-recently-accessed": +"@kbn/recently-accessed@link:src/platform/packages/shared/kbn-recently-accessed": version "0.0.0" uid "" @@ -6781,39 +6777,39 @@ version "0.0.0" uid "" -"@kbn/reporting-common@link:packages/kbn-reporting/common": +"@kbn/reporting-common@link:src/platform/packages/private/kbn-reporting/common": version "0.0.0" uid "" -"@kbn/reporting-csv-share-panel@link:packages/kbn-reporting/get_csv_panel_actions": +"@kbn/reporting-csv-share-panel@link:src/platform/packages/private/kbn-reporting/get_csv_panel_actions": version "0.0.0" uid "" -"@kbn/reporting-export-types-csv-common@link:packages/kbn-reporting/export_types/csv_common": +"@kbn/reporting-export-types-csv-common@link:src/platform/packages/private/kbn-reporting/export_types/csv_common": version "0.0.0" uid "" -"@kbn/reporting-export-types-csv@link:packages/kbn-reporting/export_types/csv": +"@kbn/reporting-export-types-csv@link:src/platform/packages/private/kbn-reporting/export_types/csv": version "0.0.0" uid "" -"@kbn/reporting-export-types-pdf-common@link:packages/kbn-reporting/export_types/pdf_common": +"@kbn/reporting-export-types-pdf-common@link:src/platform/packages/private/kbn-reporting/export_types/pdf_common": version "0.0.0" uid "" -"@kbn/reporting-export-types-pdf@link:packages/kbn-reporting/export_types/pdf": +"@kbn/reporting-export-types-pdf@link:src/platform/packages/private/kbn-reporting/export_types/pdf": version "0.0.0" uid "" -"@kbn/reporting-export-types-png-common@link:packages/kbn-reporting/export_types/png_common": +"@kbn/reporting-export-types-png-common@link:src/platform/packages/private/kbn-reporting/export_types/png_common": version "0.0.0" uid "" -"@kbn/reporting-export-types-png@link:packages/kbn-reporting/export_types/png": +"@kbn/reporting-export-types-png@link:src/platform/packages/private/kbn-reporting/export_types/png": version "0.0.0" uid "" -"@kbn/reporting-mocks-server@link:packages/kbn-reporting/mocks_server": +"@kbn/reporting-mocks-server@link:src/platform/packages/private/kbn-reporting/mocks_server": version "0.0.0" uid "" @@ -6821,11 +6817,11 @@ version "0.0.0" uid "" -"@kbn/reporting-public@link:packages/kbn-reporting/public": +"@kbn/reporting-public@link:src/platform/packages/private/kbn-reporting/public": version "0.0.0" uid "" -"@kbn/reporting-server@link:packages/kbn-reporting/server": +"@kbn/reporting-server@link:src/platform/packages/private/kbn-reporting/server": version "0.0.0" uid "" @@ -6953,7 +6949,7 @@ version "0.0.0" uid "" -"@kbn/saved-objects-tagging-plugin@link:x-pack/platform/plugins/private/saved_objects_tagging": +"@kbn/saved-objects-tagging-plugin@link:x-pack/platform/plugins/shared/saved_objects_tagging": version "0.0.0" uid "" @@ -6993,7 +6989,7 @@ version "0.0.0" uid "" -"@kbn/screenshotting-server@link:packages/kbn-screenshotting-server": +"@kbn/screenshotting-server@link:src/platform/packages/private/kbn-screenshotting-server": version "0.0.0" uid "" @@ -7549,7 +7545,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 "" @@ -7729,7 +7725,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 "" @@ -7737,7 +7733,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 "" @@ -7753,7 +7749,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 "" @@ -7785,7 +7781,7 @@ version "0.0.0" uid "" -"@kbn/ui-actions-browser@link:packages/kbn-ui-actions-browser": +"@kbn/ui-actions-browser@link:src/platform/packages/shared/kbn-ui-actions-browser": version "0.0.0" uid "" @@ -7853,7 +7849,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 "" @@ -7877,7 +7873,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 "" @@ -7929,15 +7925,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 "" @@ -7945,51 +7941,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 "" @@ -11398,10 +11394,10 @@ resolved "https://registry.yarnpkg.com/@types/cssstyle/-/cssstyle-2.2.4.tgz#3d333ab9f8e6c40183ad1d6ebeebfcb8da2bfe4b" integrity sha512-FTGMeuHZtLB7hRm+NGvOLZElslR1UkKvZmEmFevOZe/e7Av0nFleka1s8ZwoX+QvbJ2y7r9NDZXIzyqpRWDJXQ== -"@types/cytoscape@^3.14.0": - version "3.14.0" - resolved "https://registry.yarnpkg.com/@types/cytoscape/-/cytoscape-3.14.0.tgz#346b5430a7a1533784bcf44fcbe6c5255b948d36" - integrity sha512-qOhhZFGb35457vmCu9YHqwjqleraSAEikaIFmMUPWzTC7FrwkS7VR/6ymqRHW7Z8wivHuzsZDYCoePIepd69qg== +"@types/cytoscape@^3.21.8": + version "3.21.8" + resolved "https://registry.yarnpkg.com/@types/cytoscape/-/cytoscape-3.21.8.tgz#6166a2eabd66d3ae3259024875e037492adb8db6" + integrity sha512-6Bo9ZDrv0vfwe8Sg/ERc5VL0yU0gYvP4dgZi0fAXYkKHfyHaNqWRMcwYm3mu4sLsXbB8ZuXE75sR7qnaOL5JgQ== "@types/d3-array@^2.12.1": version "2.12.3" @@ -11634,10 +11630,10 @@ dependencies: "@types/jquery" "*" -"@types/fnv-plus@^1.3.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@types/fnv-plus/-/fnv-plus-1.3.0.tgz#0f43f0b7e7b4b24de3a1cab69bfa009508f4c084" - integrity sha512-ijls8MsO6Q9JUSd5w1v4y2ijM6S4D/nmOyI/FwcepvrZfym0wZhLdYGFD5TJID7tga0O3I7SmtK69RzpSJ1Fcw== +"@types/fnv-plus@^1.3.2": + version "1.3.2" + resolved "https://registry.yarnpkg.com/@types/fnv-plus/-/fnv-plus-1.3.2.tgz#bd591c1031ae48a18c99eaa60f659288aea545c0" + integrity sha512-Bgr5yn2dph2q8HZKDS002Pob6vaRTRfhqN9E+TOhjKsJvnfZXULPR3ihH8dL5ZjgxbNhqhTn9hijpbAMPtKZzw== "@types/geojson@*", "@types/geojson@^7946.0.10", "@types/geojson@^7946.0.7": version "7946.0.10" @@ -16521,20 +16517,17 @@ cypress@13.17.0: untildify "^4.0.0" yauzl "^2.10.0" -cytoscape-dagre@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/cytoscape-dagre/-/cytoscape-dagre-2.2.2.tgz#5f32a85c0ba835f167efee531df9e89ac58ff411" - integrity sha512-zsg36qNwua/L2stJSWkcbSDcvW3E6VZf6KRe6aLnQJxuXuz89tMqI5EVYVKEcNBgzTEzFMFv0PE3T0nD4m6VDw== +cytoscape-dagre@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/cytoscape-dagre/-/cytoscape-dagre-2.5.0.tgz#47d9835ab64dd0b596d9c94731f070282f82fc5a" + integrity sha512-VG2Knemmshop4kh5fpLO27rYcyUaaDkRw+6PiX4bstpB+QFt0p2oauMrsjVbUamGWQ6YNavh7x2em2uZlzV44g== dependencies: - dagre "^0.8.2" + dagre "^0.8.5" -cytoscape@^3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/cytoscape/-/cytoscape-3.10.0.tgz#3b462e0d35121ecd2d2702f470915fd6dae01777" - integrity sha512-lWOnG4HJQD0cy+tCiBmbV/QRknInuZ8HvjcUifQZ7E4LWmKMvl6d5eP0LaaRLfBJAplXWcJfwc17ZJ/nwPeaYg== - dependencies: - heap "^0.2.6" - lodash.debounce "^4.0.8" +cytoscape@^3.30.4: + version "3.30.4" + resolved "https://registry.yarnpkg.com/cytoscape/-/cytoscape-3.30.4.tgz#3404da0a159c00a1a3df2c85b2b43fdc66a0e28e" + integrity sha512-OxtlZwQl1WbwMmLiyPSEBuzeTIQnwZhJYYWFzZ2PhEHVFwpeaqNIkUzSiso00D98qk60l8Gwon2RP304d3BJ1A== "d3-array@1 - 3", "d3-array@2 - 3", "d3-array@2.10.0 - 3", "d3-array@2.5.0 - 3", d3-array@3.2.2, d3-array@^3.2.2: version "3.2.2" @@ -16800,7 +16793,7 @@ d@1, d@^1.0.1, d@^1.0.2: es5-ext "^0.10.64" type "^2.7.2" -dagre@^0.8.2: +dagre@^0.8.5: version "0.8.5" resolved "https://registry.yarnpkg.com/dagre/-/dagre-0.8.5.tgz#ba30b0055dac12b6c1fcc247817442777d06afee" integrity sha512-/aTqmnRta7x7MCCpExk7HQL2O4owCT2h8NT//9I1OQ9vt29Pa0BzSAkR5lwFUcQ7491yVi/3CXU9jQ5o0Mn2Sw== @@ -20709,11 +20702,6 @@ headers-polyfill@^4.0.2: resolved "https://registry.yarnpkg.com/headers-polyfill/-/headers-polyfill-4.0.3.tgz#922a0155de30ecc1f785bcf04be77844ca95ad07" integrity sha512-IScLbePpkvO846sIwOtOTDjutRMWdXdJmXdMvk6gCBHxFO8d+QKOQedyZSxFTTFYRSmlgSTDtXqqq4pcenBXLQ== -heap@^0.2.6: - version "0.2.6" - resolved "https://registry.yarnpkg.com/heap/-/heap-0.2.6.tgz#087e1f10b046932fc8594dd9e6d378afc9d1e5ac" - integrity sha1-CH4fELBGky/IWU3Z5tN4r8nR5aw= - hexoid@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/hexoid/-/hexoid-2.0.0.tgz#fb36c740ebbf364403fa1ec0c7efd268460ec5b9"