From 34d4af1ac158beb08d1df9515925e9b767503da3 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Thu, 5 Dec 2024 20:16:02 +0100 Subject: [PATCH] Relocating module `@kbn/vis-type-markdown-plugin` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/private}/vis_type_markdown/README.md | 0 .../plugins/private}/vis_type_markdown/jest.config.js | 8 ++++---- .../plugins/private}/vis_type_markdown/kibana.jsonc | 0 .../public/__snapshots__/markdown_fn.test.ts.snap | 0 .../public/__snapshots__/markdown_options.test.tsx.snap | 0 .../public/__snapshots__/to_ast.test.ts.snap | 0 .../plugins/private}/vis_type_markdown/public/index.ts | 0 .../private}/vis_type_markdown/public/markdown_fn.test.ts | 0 .../private}/vis_type_markdown/public/markdown_fn.ts | 0 .../vis_type_markdown/public/markdown_options.test.tsx | 0 .../vis_type_markdown/public/markdown_options.tsx | 0 .../vis_type_markdown/public/markdown_renderer.tsx | 0 .../private}/vis_type_markdown/public/markdown_vis.scss | 0 .../private}/vis_type_markdown/public/markdown_vis.ts | 0 .../public/markdown_vis_controller.test.tsx | 0 .../vis_type_markdown/public/markdown_vis_controller.tsx | 0 .../plugins/private}/vis_type_markdown/public/plugin.ts | 0 .../vis_type_markdown/public/settings_options.tsx | 0 .../vis_type_markdown/public/settings_options_lazy.tsx | 0 .../private}/vis_type_markdown/public/to_ast.test.ts | 0 .../plugins/private}/vis_type_markdown/public/to_ast.ts | 0 .../plugins/private}/vis_type_markdown/public/types.ts | 0 .../plugins/private}/vis_type_markdown/server/config.ts | 0 .../plugins/private}/vis_type_markdown/server/index.ts | 0 .../plugins/private}/vis_type_markdown/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 31 files changed, 12 insertions(+), 12 deletions(-) rename src/{plugins => platform/plugins/private}/vis_type_markdown/README.md (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/jest.config.js (70%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/kibana.jsonc (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/__snapshots__/markdown_fn.test.ts.snap (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/__snapshots__/markdown_options.test.tsx.snap (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/__snapshots__/to_ast.test.ts.snap (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/index.ts (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/markdown_fn.test.ts (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/markdown_fn.ts (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/markdown_options.test.tsx (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/markdown_options.tsx (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/markdown_renderer.tsx (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/markdown_vis.scss (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/markdown_vis.ts (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/markdown_vis_controller.test.tsx (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/markdown_vis_controller.tsx (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/plugin.ts (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/settings_options.tsx (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/settings_options_lazy.tsx (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/to_ast.test.ts (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/to_ast.ts (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/public/types.ts (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/server/config.ts (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/server/index.ts (100%) rename src/{plugins => platform/plugins/private}/vis_type_markdown/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2ac8fa1ed2ea5..d1586768ed3f7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -627,6 +627,7 @@ src/platform/plugins/private/input_control_vis @elastic/kibana-presentation src/platform/plugins/private/links @elastic/kibana-presentation src/platform/plugins/private/maps_ems @elastic/kibana-presentation src/platform/plugins/private/presentation_panel @elastic/kibana-presentation +src/platform/plugins/private/vis_type_markdown @elastic/kibana-presentation src/platform/plugins/shared/controls @elastic/kibana-presentation src/platform/plugins/shared/dashboard @elastic/kibana-presentation src/platform/plugins/shared/embeddable @elastic/kibana-presentation @@ -701,7 +702,6 @@ src/plugins/unified_search @elastic/kibana-visualizations src/plugins/url_forwarding @elastic/kibana-visualizations src/plugins/usage_collection @elastic/kibana-core src/plugins/vis_default_editor @elastic/kibana-visualizations -src/plugins/vis_type_markdown @elastic/kibana-presentation src/plugins/vis_types/gauge @elastic/kibana-visualizations src/plugins/vis_types/heatmap @elastic/kibana-visualizations src/plugins/vis_types/metric @elastic/kibana-visualizations diff --git a/.i18nrc.json b/.i18nrc.json index 9ec184c3b5e46..6ee1be16ededc 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -135,7 +135,7 @@ "visDefaultEditor": "src/plugins/vis_default_editor", "visTypeGauge": "src/plugins/vis_types/gauge", "visTypeHeatmap": "src/plugins/vis_types/heatmap", - "visTypeMarkdown": "src/plugins/vis_type_markdown", + "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", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index baecca16b39c5..93fc35738a99e 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -395,7 +395,7 @@ The plugin exposes the static DefaultEditorController class to consume. |WARNING: Missing README. -|{kib-repo}blob/{branch}/src/plugins/vis_type_markdown/README.md[visTypeMarkdown] +|{kib-repo}blob/{branch}/src/platform/plugins/private/vis_type_markdown/README.md[visTypeMarkdown] |The markdown visualization that can be used to place text panels on dashboards. diff --git a/package.json b/package.json index a47c204b4b0a4..9d6813a2ecbba 100644 --- a/package.json +++ b/package.json @@ -1007,7 +1007,7 @@ "@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-type-markdown-plugin": "link:src/plugins/vis_type_markdown", + "@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", diff --git a/src/plugins/vis_type_markdown/README.md b/src/platform/plugins/private/vis_type_markdown/README.md similarity index 100% rename from src/plugins/vis_type_markdown/README.md rename to src/platform/plugins/private/vis_type_markdown/README.md diff --git a/src/plugins/vis_type_markdown/jest.config.js b/src/platform/plugins/private/vis_type_markdown/jest.config.js similarity index 70% rename from src/plugins/vis_type_markdown/jest.config.js rename to src/platform/plugins/private/vis_type_markdown/jest.config.js index d74d7c51bd609..d29b5cb75cc0f 100644 --- a/src/plugins/vis_type_markdown/jest.config.js +++ b/src/platform/plugins/private/vis_type_markdown/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/vis_type_markdown'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/vis_type_markdown', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/vis_type_markdown'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_type_markdown', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/vis_type_markdown/{public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/private/vis_type_markdown/{public,server}/**/*.{ts,tsx}'], }; diff --git a/src/plugins/vis_type_markdown/kibana.jsonc b/src/platform/plugins/private/vis_type_markdown/kibana.jsonc similarity index 100% rename from src/plugins/vis_type_markdown/kibana.jsonc rename to src/platform/plugins/private/vis_type_markdown/kibana.jsonc diff --git a/src/plugins/vis_type_markdown/public/__snapshots__/markdown_fn.test.ts.snap b/src/platform/plugins/private/vis_type_markdown/public/__snapshots__/markdown_fn.test.ts.snap similarity index 100% rename from src/plugins/vis_type_markdown/public/__snapshots__/markdown_fn.test.ts.snap rename to src/platform/plugins/private/vis_type_markdown/public/__snapshots__/markdown_fn.test.ts.snap diff --git a/src/plugins/vis_type_markdown/public/__snapshots__/markdown_options.test.tsx.snap b/src/platform/plugins/private/vis_type_markdown/public/__snapshots__/markdown_options.test.tsx.snap similarity index 100% rename from src/plugins/vis_type_markdown/public/__snapshots__/markdown_options.test.tsx.snap rename to src/platform/plugins/private/vis_type_markdown/public/__snapshots__/markdown_options.test.tsx.snap diff --git a/src/plugins/vis_type_markdown/public/__snapshots__/to_ast.test.ts.snap b/src/platform/plugins/private/vis_type_markdown/public/__snapshots__/to_ast.test.ts.snap similarity index 100% rename from src/plugins/vis_type_markdown/public/__snapshots__/to_ast.test.ts.snap rename to src/platform/plugins/private/vis_type_markdown/public/__snapshots__/to_ast.test.ts.snap diff --git a/src/plugins/vis_type_markdown/public/index.ts b/src/platform/plugins/private/vis_type_markdown/public/index.ts similarity index 100% rename from src/plugins/vis_type_markdown/public/index.ts rename to src/platform/plugins/private/vis_type_markdown/public/index.ts diff --git a/src/plugins/vis_type_markdown/public/markdown_fn.test.ts b/src/platform/plugins/private/vis_type_markdown/public/markdown_fn.test.ts similarity index 100% rename from src/plugins/vis_type_markdown/public/markdown_fn.test.ts rename to src/platform/plugins/private/vis_type_markdown/public/markdown_fn.test.ts diff --git a/src/plugins/vis_type_markdown/public/markdown_fn.ts b/src/platform/plugins/private/vis_type_markdown/public/markdown_fn.ts similarity index 100% rename from src/plugins/vis_type_markdown/public/markdown_fn.ts rename to src/platform/plugins/private/vis_type_markdown/public/markdown_fn.ts diff --git a/src/plugins/vis_type_markdown/public/markdown_options.test.tsx b/src/platform/plugins/private/vis_type_markdown/public/markdown_options.test.tsx similarity index 100% rename from src/plugins/vis_type_markdown/public/markdown_options.test.tsx rename to src/platform/plugins/private/vis_type_markdown/public/markdown_options.test.tsx diff --git a/src/plugins/vis_type_markdown/public/markdown_options.tsx b/src/platform/plugins/private/vis_type_markdown/public/markdown_options.tsx similarity index 100% rename from src/plugins/vis_type_markdown/public/markdown_options.tsx rename to src/platform/plugins/private/vis_type_markdown/public/markdown_options.tsx diff --git a/src/plugins/vis_type_markdown/public/markdown_renderer.tsx b/src/platform/plugins/private/vis_type_markdown/public/markdown_renderer.tsx similarity index 100% rename from src/plugins/vis_type_markdown/public/markdown_renderer.tsx rename to src/platform/plugins/private/vis_type_markdown/public/markdown_renderer.tsx diff --git a/src/plugins/vis_type_markdown/public/markdown_vis.scss b/src/platform/plugins/private/vis_type_markdown/public/markdown_vis.scss similarity index 100% rename from src/plugins/vis_type_markdown/public/markdown_vis.scss rename to src/platform/plugins/private/vis_type_markdown/public/markdown_vis.scss diff --git a/src/plugins/vis_type_markdown/public/markdown_vis.ts b/src/platform/plugins/private/vis_type_markdown/public/markdown_vis.ts similarity index 100% rename from src/plugins/vis_type_markdown/public/markdown_vis.ts rename to src/platform/plugins/private/vis_type_markdown/public/markdown_vis.ts diff --git a/src/plugins/vis_type_markdown/public/markdown_vis_controller.test.tsx b/src/platform/plugins/private/vis_type_markdown/public/markdown_vis_controller.test.tsx similarity index 100% rename from src/plugins/vis_type_markdown/public/markdown_vis_controller.test.tsx rename to src/platform/plugins/private/vis_type_markdown/public/markdown_vis_controller.test.tsx diff --git a/src/plugins/vis_type_markdown/public/markdown_vis_controller.tsx b/src/platform/plugins/private/vis_type_markdown/public/markdown_vis_controller.tsx similarity index 100% rename from src/plugins/vis_type_markdown/public/markdown_vis_controller.tsx rename to src/platform/plugins/private/vis_type_markdown/public/markdown_vis_controller.tsx diff --git a/src/plugins/vis_type_markdown/public/plugin.ts b/src/platform/plugins/private/vis_type_markdown/public/plugin.ts similarity index 100% rename from src/plugins/vis_type_markdown/public/plugin.ts rename to src/platform/plugins/private/vis_type_markdown/public/plugin.ts diff --git a/src/plugins/vis_type_markdown/public/settings_options.tsx b/src/platform/plugins/private/vis_type_markdown/public/settings_options.tsx similarity index 100% rename from src/plugins/vis_type_markdown/public/settings_options.tsx rename to src/platform/plugins/private/vis_type_markdown/public/settings_options.tsx diff --git a/src/plugins/vis_type_markdown/public/settings_options_lazy.tsx b/src/platform/plugins/private/vis_type_markdown/public/settings_options_lazy.tsx similarity index 100% rename from src/plugins/vis_type_markdown/public/settings_options_lazy.tsx rename to src/platform/plugins/private/vis_type_markdown/public/settings_options_lazy.tsx diff --git a/src/plugins/vis_type_markdown/public/to_ast.test.ts b/src/platform/plugins/private/vis_type_markdown/public/to_ast.test.ts similarity index 100% rename from src/plugins/vis_type_markdown/public/to_ast.test.ts rename to src/platform/plugins/private/vis_type_markdown/public/to_ast.test.ts diff --git a/src/plugins/vis_type_markdown/public/to_ast.ts b/src/platform/plugins/private/vis_type_markdown/public/to_ast.ts similarity index 100% rename from src/plugins/vis_type_markdown/public/to_ast.ts rename to src/platform/plugins/private/vis_type_markdown/public/to_ast.ts diff --git a/src/plugins/vis_type_markdown/public/types.ts b/src/platform/plugins/private/vis_type_markdown/public/types.ts similarity index 100% rename from src/plugins/vis_type_markdown/public/types.ts rename to src/platform/plugins/private/vis_type_markdown/public/types.ts diff --git a/src/plugins/vis_type_markdown/server/config.ts b/src/platform/plugins/private/vis_type_markdown/server/config.ts similarity index 100% rename from src/plugins/vis_type_markdown/server/config.ts rename to src/platform/plugins/private/vis_type_markdown/server/config.ts diff --git a/src/plugins/vis_type_markdown/server/index.ts b/src/platform/plugins/private/vis_type_markdown/server/index.ts similarity index 100% rename from src/plugins/vis_type_markdown/server/index.ts rename to src/platform/plugins/private/vis_type_markdown/server/index.ts diff --git a/src/plugins/vis_type_markdown/tsconfig.json b/src/platform/plugins/private/vis_type_markdown/tsconfig.json similarity index 90% rename from src/plugins/vis_type_markdown/tsconfig.json rename to src/platform/plugins/private/vis_type_markdown/tsconfig.json index dbe601fad3f35..296f05fdbc559 100644 --- a/src/plugins/vis_type_markdown/tsconfig.json +++ b/src/platform/plugins/private/vis_type_markdown/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index eec12e87c5d70..de7394200e6e0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -2022,8 +2022,8 @@ "@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-type-markdown-plugin": ["src/plugins/vis_type_markdown"], - "@kbn/vis-type-markdown-plugin/*": ["src/plugins/vis_type_markdown/*"], + "@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"], diff --git a/yarn.lock b/yarn.lock index a6334378b60db..58333e1e1847d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7860,7 +7860,7 @@ version "0.0.0" uid "" -"@kbn/vis-type-markdown-plugin@link:src/plugins/vis_type_markdown": +"@kbn/vis-type-markdown-plugin@link:src/platform/plugins/private/vis_type_markdown": version "0.0.0" uid ""