diff --git a/packages/kbn-ui-shared-deps-src/BUILD.bazel b/packages/kbn-ui-shared-deps-src/BUILD.bazel index e8ff7302faa67..fdc69c9b0216d 100644 --- a/packages/kbn-ui-shared-deps-src/BUILD.bazel +++ b/packages/kbn-ui-shared-deps-src/BUILD.bazel @@ -39,6 +39,9 @@ webpack_cli( "//packages/shared-ux/error_boundary", "//packages/kbn-rison", "//packages/shared-ux/code_editor/impl:code_editor", + "//packages/react/kibana_context/common", + "//packages/react/kibana_context/root", + "//packages/react/kibana_context/render", "//packages/react/kibana_context/theme", ], output_dir = True, diff --git a/packages/kbn-ui-shared-deps-src/src/definitions.js b/packages/kbn-ui-shared-deps-src/src/definitions.js index 3e66e5a102f06..90aa4127f1c86 100644 --- a/packages/kbn-ui-shared-deps-src/src/definitions.js +++ b/packages/kbn-ui-shared-deps-src/src/definitions.js @@ -106,6 +106,9 @@ const externals = { '@kbn/esql-ast': '__kbnSharedDeps__.KbnEsqlAst', '@kbn/ebt-tools': '__kbnSharedDeps__.KbnEbtTools', '@elastic/apm-rum-core': '__kbnSharedDeps__.ElasticApmRumCore', + '@kbn/react-kibana-context-common': '__kbnSharedDeps__.KbnReactKibanaContextCommon', + '@kbn/react-kibana-context-root': '__kbnSharedDeps__.KbnReactKibanaContextRoot', + '@kbn/react-kibana-context-render': '__kbnSharedDeps__.KbnReactKibanaContextRender', '@kbn/react-kibana-context-theme': '__kbnSharedDeps__.KbnReactKibanaContextTheme', }; diff --git a/packages/kbn-ui-shared-deps-src/src/entry.js b/packages/kbn-ui-shared-deps-src/src/entry.js index 1d7e6442e29d0..bd0e8ae2efee1 100644 --- a/packages/kbn-ui-shared-deps-src/src/entry.js +++ b/packages/kbn-ui-shared-deps-src/src/entry.js @@ -79,4 +79,7 @@ export const KbnCodeEditor = require('@kbn/code-editor'); export const KbnEsqlAst = require('@kbn/esql-ast'); export const KbnEbtTools = require('@kbn/ebt-tools'); export const ElasticApmRumCore = require('@elastic/apm-rum-core'); +export const KbnReactKibanaContextCommon = require('@kbn/react-kibana-context-common'); +export const KbnReactKibanaContextRoot = require('@kbn/react-kibana-context-root'); +export const KbnReactKibanaContextRender = require('@kbn/react-kibana-context-render'); export const KbnReactKibanaContextTheme = require('@kbn/react-kibana-context-theme'); diff --git a/packages/react/kibana_context/render/BUILD.bazel b/packages/react/kibana_context/render/BUILD.bazel new file mode 100644 index 0000000000000..f1e3f4894d144 --- /dev/null +++ b/packages/react/kibana_context/render/BUILD.bazel @@ -0,0 +1,36 @@ +load("@build_bazel_rules_nodejs//:index.bzl", "js_library") + +SRCS = glob( + [ + "**/*.ts", + "**/*.tsx", + ], + exclude = [ + "**/test_helpers.ts", + "**/*.config.js", + "**/*.mock.*", + "**/*.test.*", + "**/*.stories.*", + "**/__snapshots__/**", + "**/integration_tests/**", + "**/mocks/**", + "**/scripts/**", + "**/storybook/**", + "**/test_fixtures/**", + "**/test_helpers/**", + ], +) + +DEPS = [ + "@npm//react", + "//packages/react/kibana_context/common", + "//packages/react/kibana_context/root", +] + +js_library( + name = "render", + package_name = "@kbn/react-kibana-context-render", + srcs = ["package.json"] + SRCS, + deps = DEPS, + visibility = ["//visibility:public"], +)