kibana/packages
Kibana Machine 09897d7ce4
[Enterprise Search] Doclinks for 8.5 (#141515) (#141653)
(cherry picked from commit 64d805ab62)

Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
2022-09-23 08:40:47 -07:00
..
analytics add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
content-management [TableListView] Group title description and tags (#140947) (#141618) 2022-09-23 06:26:43 -07:00
core Add a default 'User-Agent' HTTP header (#141631) 2022-09-23 07:30:51 -07:00
home add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-ace add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-alerts add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-ambient-storybook-types add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-ambient-ui-types add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-analytics add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-apm-config-loader [pkgs/manifest] allow owner to be an array of users/teams (#140740) 2022-09-14 09:39:01 -07:00
kbn-apm-synthtrace [APM] Synthtrace - Add service.name in metricsetPicker for breakdown metrics (#140256) 2022-09-21 09:38:13 -05:00
kbn-apm-utils add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-axe-config add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-babel-plugin-synthetic-packages add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-babel-preset Update dependency core-js to ^3.25.1 (main) (#140776) 2022-09-16 07:28:22 +09:30
kbn-bazel-packages [Table list view] Improve UX (phase 1) (#135892) 2022-09-19 12:29:23 +02:00
kbn-bazel-runner add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-chart-icons add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-ci-stats-core add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-ci-stats-performance-metrics add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-ci-stats-reporter add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-cli-dev-mode add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-coloring add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-config add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-config-mocks Fix another static version snapshot in tests (#141345) (#141568) 2022-09-23 01:22:19 -07:00
kbn-config-schema add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-crypto add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-crypto-browser add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-datemath add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-dev-cli-errors add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-dev-cli-runner add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-dev-proc-runner [ftr] support redirecting server logs to a file (#140334) 2022-09-09 10:44:00 -07:00
kbn-dev-utils add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-doc-links [Enterprise Search] Doclinks for 8.5 (#141515) (#141653) 2022-09-23 08:40:47 -07:00
kbn-docs-utils add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-ebt-tools add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-es [ftr] support redirecting server logs to a file (#140334) 2022-09-09 10:44:00 -07:00
kbn-es-archiver add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-es-errors add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-es-query [Dashboard] [Controls] Fix dashboard to dashboard drilldowns where source dashboard has controls (#140548) (#141306) 2022-09-21 14:50:25 -07:00
kbn-es-types Move src/core/types/elasticsearch to @kbn/es-types (#140522) 2022-09-20 10:32:13 +02:00
kbn-eslint-config add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-eslint-plugin-disable add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-eslint-plugin-eslint add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-eslint-plugin-imports add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-expect add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-field-types add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-find-used-node-modules add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-flot-charts add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-generate [pkgs/manifest] allow owner to be an array of users/teams (#140740) 2022-09-14 09:39:01 -07:00
kbn-get-repo-files add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-handlebars add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-hapi-mocks add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-i18n add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-i18n-react add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-import-resolver add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-interpreter add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-io-ts-utils add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-jest-serializers add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-kibana-manifest-schema [pkgs/manifest] allow owner to be an array of users/teams (#140740) 2022-09-14 09:39:01 -07:00
kbn-logging add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-logging-mocks add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-managed-vscode-config add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-managed-vscode-config-cli add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-mapbox-gl add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-monaco add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-optimizer [Lens] Tsvb to lens for annotations (#140718) 2022-09-20 18:46:29 +02:00
kbn-optimizer-webpack-helpers add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-performance-testing-dataset-extractor add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-plugin-discovery add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-plugin-generator add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-plugin-helpers add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-react-field add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-repo-source-classifier add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-repo-source-classifier-cli add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-rule-data-utils add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-safer-lodash-set add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-securitysolution-autocomplete [Security Solution] Value list exceptions (#133254) 2022-09-19 22:41:28 +02:00
kbn-securitysolution-es-utils add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-securitysolution-hook-utils add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-securitysolution-io-ts-alerting-types add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-securitysolution-io-ts-list-types [Security Solution] Value list exceptions (#133254) 2022-09-19 22:41:28 +02:00
kbn-securitysolution-io-ts-types [Security Solution][Detections] Add Bulk Scheduling for rules (#140166) 2022-09-19 22:36:44 +02:00
kbn-securitysolution-io-ts-utils add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-securitysolution-list-api [Security Solution] Value list exceptions (#133254) 2022-09-19 22:41:28 +02:00
kbn-securitysolution-list-constants [Security Solution] Value list exceptions (#133254) 2022-09-19 22:41:28 +02:00
kbn-securitysolution-list-hooks [Security Solution] Value list exceptions (#133254) 2022-09-19 22:41:28 +02:00
kbn-securitysolution-list-utils [Security Solution] Value list exceptions (#133254) 2022-09-19 22:41:28 +02:00
kbn-securitysolution-rules add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-securitysolution-t-grid add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-securitysolution-utils add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-server-http-tools add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-server-route-repository add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-shared-svg add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-shared-ux-utility add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-some-dev-log add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-sort-package-json add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-spec-to-console add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-std add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-stdio-dev-helpers add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-storybook Migrate client-side coreApp domain to packages - again (#140662) 2022-09-13 15:29:08 -07:00
kbn-synthetic-package-map add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-telemetry-tools @kbn/telemetry-tools ensures alphabetical order (#140970) 2022-09-19 09:32:23 -07:00
kbn-test [Terminal Output] tty toggle now shows number of bytes in tooltip, if no output we disa… (#141174) 2022-09-20 19:06:09 -07:00
kbn-test-jest-helpers [Table list view] Improve UX (phase 1) (#135892) 2022-09-19 12:29:23 +02:00
kbn-test-subj-selector modernize test-subj-selector (#140847) 2022-09-15 22:08:51 -07:00
kbn-timelion-grammar add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-tinymath add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-tooling-log add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-type-summarizer add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-type-summarizer-cli add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-type-summarizer-core add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-typed-react-router-config [Profiling] Add Profiling application (#140722) 2022-09-15 19:24:41 +02:00
kbn-ui-framework add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-ui-shared-deps-npm add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-ui-shared-deps-src add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-ui-theme add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-user-profile-components Add no assignees option to user profiles selectable (#140036) 2022-09-14 16:52:34 +01:00
kbn-utility-types add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-utility-types-jest add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-utils add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
kbn-yarn-lock-validator add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
shared-ux Bumping EUI to version 64.0.4 (#140323) 2022-09-20 08:50:15 -05:00
BUILD.bazel Move src/core/types/elasticsearch to @kbn/es-types (#140522) 2022-09-20 10:32:13 +02: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.