kibana/packages
2022-08-03 10:08:07 -07:00
..
analytics add flexible EBT Performance Metric Schema (#136395) 2022-08-03 15:21:24 +03:00
core Migrate core's browser-side saved objects service to packages (#137921) 2022-08-03 10:08:07 -07:00
elastic-apm-synthtrace [APM] Improve synthtrace environment (#137697) 2022-08-01 06:16:04 -07:00
elastic-safer-lodash-set chore(NA): eslint rule for disallowing naked eslint-disable (#136408) 2022-07-19 17:11:04 +01:00
home [eslint] fix and skip violations for cross-boundary imports (#136911) 2022-07-29 13:57:55 -05:00
kbn-ace chore(NA): eslint rule for disallowing naked eslint-disable (#136408) 2022-07-19 17:11:04 +01:00
kbn-alerts [core] remove root index.ts file (#137001) 2022-07-22 15:04:23 -07:00
kbn-ambient-storybook-types [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-ambient-ui-types Added a gif module to be able to import gif files (#136015) 2022-07-08 17:43:10 +02:00
kbn-analytics [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-apm-config-loader fix apm label isPr&prId (#136869) 2022-07-22 13:22:57 +02:00
kbn-apm-utils [type-summarizer] enable @kbn/analytics, @kbn/apm-config-loader and @kbn/apm-utils (#128206) 2022-03-22 16:28:49 -06:00
kbn-axe-config [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-babel-plugin-synthetic-packages docs(NA): adds @kbn/babel-plugin-synthentic-packages into ops devdocs (#132512) 2022-05-19 19:28:05 -07:00
kbn-babel-preset Initialize ops documentation section (#132262) 2022-05-17 15:22:38 -05:00
kbn-bazel-packages [Shared UX][packages] Split up dependencies; add Storybook mock (#136488) 2022-07-28 09:57:04 -07:00
kbn-bazel-runner [bazel] on CI, log buffered log lines that start with INFO: (#136981) 2022-07-22 12:03:28 -07:00
kbn-ci-stats-core [kbn/pm] rewrite to avoid needing a build process (#136207) 2022-07-18 08:46:13 -07:00
kbn-ci-stats-performance-metrics [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-ci-stats-reporter [ci-stats] ship buildkiteJobId with metrics and support backfilling (#137123) 2022-07-25 22:24:57 -05:00
kbn-cli-dev-mode [cli-dev-mode/base-path-proxy] switch to integration tests (#136545) 2022-07-18 10:49:22 -05:00
kbn-coloring [Lens] Dimension editor design changes (#136544) 2022-08-03 17:02:51 +03:00
kbn-config [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-config-mocks [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-config-schema [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-crypto Migrate types to packages: Client-side HTTP service (#135562) 2022-07-11 12:25:55 -07:00
kbn-crypto-browser Migrate types to packages: Client-side HTTP service (#135562) 2022-07-11 12:25:55 -07:00
kbn-datemath [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-dev-cli-errors [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-dev-cli-runner [kbn/pm] rewrite to avoid needing a build process (#136207) 2022-07-18 08:46:13 -07:00
kbn-dev-proc-runner [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-dev-utils [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-doc-links [Reporting] use docLinks service in reporting (#137531) 2022-07-29 15:59:40 -07:00
kbn-docs-utils [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-ebt-tools add flexible EBT Performance Metric Schema (#136395) 2022-08-03 15:21:24 +03:00
kbn-es Update simple-git 1.116.0 -> 3.10.0 (#137232) 2022-07-28 14:35:04 -04:00
kbn-es-archiver Replace npm zlib with native zlib (#136139) 2022-07-11 14:56:25 -05:00
kbn-es-errors [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-es-query [KQL] Update literal type to include isQuoted (#134397) 2022-07-26 10:03:18 -07:00
kbn-eslint-config [eslint] fix and skip violations for cross-boundary imports (#136911) 2022-07-29 13:57:55 -05:00
kbn-eslint-plugin-disable chore(NA): prevent disabling eslint protected rules (#137066) 2022-07-26 16:40:01 -07:00
kbn-eslint-plugin-eslint [eslint] fix and skip violations for cross-boundary imports (#136911) 2022-07-29 13:57:55 -05:00
kbn-eslint-plugin-imports [eslint] add rule for validating cross-boundary imports (#137116) 2022-07-25 18:49:17 -05:00
kbn-expect chore(NA): eslint rule for disallowing naked eslint-disable (#136408) 2022-07-19 17:11:04 +01:00
kbn-field-types [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-find-used-node-modules [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-flot-charts Remove/replace uses of "sanity" in comments and test code (#134541) 2022-06-30 19:21:23 -07:00
kbn-generate [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-get-repo-files [eslint] add rule for validating cross-boundary imports (#137116) 2022-07-25 18:49:17 -05:00
kbn-handlebars [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-hapi-mocks Migrate server-side http types to @kbn/core-http-server (#135808) 2022-07-11 13:28:39 +02:00
kbn-i18n [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-i18n-react [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-import-resolver [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-interpreter [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-io-ts-utils [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-jest-serializers [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-kibana-json-schema [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-logging [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-logging-mocks [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-mapbox-gl [Maps] Custom raster source example plugin (#136761) 2022-07-26 14:41:45 -07:00
kbn-monaco Bump webpack-dev-server, cli (#136352) 2022-07-21 08:58:30 +02:00
kbn-optimizer [Lens] add new metric visualization (#136567) 2022-07-26 14:18:20 -05:00
kbn-optimizer-webpack-helpers [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-performance-testing-dataset-extractor [scalability testing] get ES queries for each single user performance journey (#137895) 2022-08-03 14:46:39 +02:00
kbn-plugin-discovery [kbn/pm] rewrite to avoid needing a build process (#136207) 2022-07-18 08:46:13 -07:00
kbn-plugin-generator [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-plugin-helpers [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-react-field [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-repo-source-classifier [eslint] fix and skip violations for cross-boundary imports (#136911) 2022-07-29 13:57:55 -05:00
kbn-repo-source-classifier-cli [eslint] add rule for validating cross-boundary imports (#137116) 2022-07-25 18:49:17 -05:00
kbn-rule-data-utils [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-securitysolution-autocomplete [Security Solution] [Platform] fix autosuggest for exceptions (#137503) 2022-07-28 16:41:58 -07:00
kbn-securitysolution-es-utils [Security Solution][Lists] - Update lists index template logic (#133067) 2022-07-26 15:43:03 -05:00
kbn-securitysolution-hook-utils [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-securitysolution-io-ts-alerting-types [Security Solution][Alerts] New terms security rule type (#134526) 2022-07-22 10:11:27 -07:00
kbn-securitysolution-io-ts-list-types [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-securitysolution-io-ts-types [Security Solution][Detections] Extended rule execution logging to Event Log (#126063) 2022-07-25 13:09:17 -07:00
kbn-securitysolution-io-ts-utils [eslint] fix and skip violations for cross-boundary imports (#136911) 2022-07-29 13:57:55 -05:00
kbn-securitysolution-list-api [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-securitysolution-list-constants [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-securitysolution-list-hooks [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-securitysolution-list-utils [Security Solution][Platform] Only allow wildcard exceptions on string fields (#137129) 2022-07-26 12:41:19 -07:00
kbn-securitysolution-rules [Security Solution][Alerts] New terms security rule type (#134526) 2022-07-22 10:11:27 -07:00
kbn-securitysolution-t-grid [Security solution] Fix bug for rendering CTI enrichments (#137645) 2022-08-01 13:45:22 -07:00
kbn-securitysolution-utils [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-server-http-tools [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-server-route-repository [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-shared-svg [APM] Create kibana package for shared svg (#137559) 2022-08-03 08:12:58 +01:00
kbn-shared-ux-components [Shared UX][packages] Split up dependencies; add Storybook mock (#136488) 2022-07-28 09:57:04 -07:00
kbn-shared-ux-services [eslint] fix and skip violations for cross-boundary imports (#136911) 2022-07-29 13:57:55 -05:00
kbn-shared-ux-storybook [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-shared-ux-utility [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-some-dev-log [kbn/pm] rewrite to avoid needing a build process (#136207) 2022-07-18 08:46:13 -07:00
kbn-sort-package-json [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-spec-to-console fix all violations 2022-04-16 01:37:30 -05:00
kbn-std [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-stdio-dev-helpers [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-storybook Bump postcss to ^8 (#136303) 2022-07-19 14:06:20 -05:00
kbn-synthetic-package-map [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-telemetry-tools [IDM] Assign author: Kibana Core to packages owned by core (#137887) 2022-08-02 10:25:53 -07:00
kbn-test [eslint] add rule for validating cross-boundary imports (#137116) 2022-07-25 18:49:17 -05:00
kbn-test-jest-helpers [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-test-subj-selector docs(NA): adds @kbn/test-subj-selector into ops devdocs (#132505) 2022-05-20 02:30:01 +01:00
kbn-timelion-grammar [eslint] ensure that all imports are resolvable (#129002) 2022-04-04 15:37:06 -04:00
kbn-tinymath chore(NA): eslint rule for disallowing naked eslint-disable (#136408) 2022-07-19 17:11:04 +01:00
kbn-tooling-log [kbn/pm] rewrite to avoid needing a build process (#136207) 2022-07-18 08:46:13 -07:00
kbn-type-summarizer [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-type-summarizer-cli [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-type-summarizer-core [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-typed-react-router-config [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-ui-framework Minify legacy css files (#136986) 2022-08-02 08:30:55 -05:00
kbn-ui-shared-deps-npm Bump webpack-dev-server, cli (#136352) 2022-07-21 08:58:30 +02:00
kbn-ui-shared-deps-src Bump webpack-dev-server, cli (#136352) 2022-07-21 08:58:30 +02:00
kbn-ui-theme [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-utility-types Migrate server-side http types to @kbn/core-http-server (#135808) 2022-07-11 13:28:39 +02:00
kbn-utility-types-jest [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
kbn-utils [kbn/pm] rewrite to avoid needing a build process (#136207) 2022-07-18 08:46:13 -07:00
kbn-yarn-lock-validator [kbn/pm] rewrite to avoid needing a build process (#136207) 2022-07-18 08:46:13 -07:00
shared-ux [Shared UX][packages] Split up dependencies; add Storybook mock (#136488) 2022-07-28 09:57:04 -07:00
BUILD.bazel Migrate core's browser-side saved objects service to packages (#137921) 2022-08-03 10:08:07 -07:00
README.md [kbn/pm] rewrite to avoid needing a build process (#136207) 2022-07-18 08:46:13 -07:00

Kibana-related packages

This folder contains packages that are intended for use in Kibana and Kibana plugins.

tl;dr:

  • Don't publish to npm registry
  • Always use the @kbn namespace
  • Always set "private": true in package.json

Using these packages

We no longer publish these packages to the npm registry. Now, instead of specifying a version when including these packages, we rely on yarn workspaces, which sets up a symlink to the package.

For example if you want to use the @kbn/i18n package in Kibana itself, you can specify the dependency like this:

"@kbn/i18n": "1.0.0"

However, if you want to use this from a Kibana plugin, you need to use a link: dependency and account for the relative location of the Kibana repo, so it would instead be:

"@kbn/i18n": "link:../../kibana/packages/kbn-i18n"

Creating a new package

Create a new sub-folder. The name of the folder should mirror the name in the package's package.json. E.g. if the name is @kbn/i18n the folder name should be kbn-i18n.

All new packages should use the @kbn namespace, and should be marked with "private": true.

Unit tests for a package

Currently there is only one tool being used in order to test packages which is Jest. Below we will explain how it should be done.

Jest

A package should follow the pattern of having .test.js files as siblings of the source code files, and these run by Jest.

A package using the .test.js naming convention will have those tests automatically picked up by Jest and run by the unit test runner, currently mapped to the Kibana test script in the root package.json.

  • yarn test runs all unit tests.
  • yarn jest runs all Jest tests in Kibana.

In order for the plugin or package to use Jest, a jest.config.js file must be present in it's root. However, there are safeguards for this in CI should a test file be added without a corresponding config file.


Each package can also specify its own test script in the package's package.json, for cases where you'd prefer to run the tests from the local package directory.