# Backport This will backport the following commits from `main` to `7.17`: - [Update dependency lru-cache to ^11.1.0 (main) (#216517)](https://github.com/elastic/kibana/pull/216517) We also need to cherry-pick some changes from https://github.com/elastic/kibana/pull/206225 <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"elastic-renovate-prod[bot]","email":"174716857+elastic-renovate-prod[bot]@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-31T21:58:09Z","message":"Update dependency lru-cache to ^11.1.0 (main) (#216517)\n\nThis PR contains the following updates:\n\n| Package | Type | Update | Change |\n|---|---|---|---|\n| [lru-cache](https://redirect.github.com/isaacs/node-lru-cache) |\ndependencies | minor | [`^11.0.2` ->\n`^11.1.0`](https://renovatebot.com/diffs/npm/lru-cache/11.0.2/11.1.0) |\n\n---\n\n### Release Notes\n\n<details>\n<summary>isaacs/node-lru-cache (lru-cache)</summary>\n\n###\n[`v11.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.2...v11.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.2...v11.1.0)\n\n</details>\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - At any time (no schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has been generated by [Renovate\nBot](https://redirect.github.com/renovatebot/renovate).\n\n\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>","sha":"1846807c25e4e5030b04cca42eef85e40602c0a6","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:all-open","v8.18.0","v9.1.0","v8.19.0","v8.17.5","v8.16.7"],"title":"Update dependency lru-cache to ^11.1.0 (main)","number":216517,"url":"https://github.com/elastic/kibana/pull/216517","mergeCommit":{"message":"Update dependency lru-cache to ^11.1.0 (main) (#216517)\n\nThis PR contains the following updates:\n\n| Package | Type | Update | Change |\n|---|---|---|---|\n| [lru-cache](https://redirect.github.com/isaacs/node-lru-cache) |\ndependencies | minor | [`^11.0.2` ->\n`^11.1.0`](https://renovatebot.com/diffs/npm/lru-cache/11.0.2/11.1.0) |\n\n---\n\n### Release Notes\n\n<details>\n<summary>isaacs/node-lru-cache (lru-cache)</summary>\n\n###\n[`v11.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.2...v11.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.2...v11.1.0)\n\n</details>\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - At any time (no schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has been generated by [Renovate\nBot](https://redirect.github.com/renovatebot/renovate).\n\n\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>","sha":"1846807c25e4e5030b04cca42eef85e40602c0a6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/216557","number":216557,"state":"MERGED","mergeCommit":{"sha":"688168bdb6fee380ceea27e256580b3d0de0053c","message":"[9.0] Update dependency lru-cache to ^11.1.0 (main) (#216517) (#216557)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.0`:\n- [Update dependency lru-cache to ^11.1.0 (main)\n(#216517)](https://github.com/elastic/kibana/pull/216517)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>"}},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/216554","number":216554,"state":"MERGED","mergeCommit":{"sha":"f62aed6dafc7894d315c6c718432fb9c02fb14e8","message":"[8.18] Update dependency lru-cache to ^11.1.0 (main) (#216517) (#216554)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.18`:\n- [Update dependency lru-cache to ^11.1.0 (main)\n(#216517)](https://github.com/elastic/kibana/pull/216517)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216517","number":216517,"mergeCommit":{"message":"Update dependency lru-cache to ^11.1.0 (main) (#216517)\n\nThis PR contains the following updates:\n\n| Package | Type | Update | Change |\n|---|---|---|---|\n| [lru-cache](https://redirect.github.com/isaacs/node-lru-cache) |\ndependencies | minor | [`^11.0.2` ->\n`^11.1.0`](https://renovatebot.com/diffs/npm/lru-cache/11.0.2/11.1.0) |\n\n---\n\n### Release Notes\n\n<details>\n<summary>isaacs/node-lru-cache (lru-cache)</summary>\n\n###\n[`v11.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.2...v11.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.2...v11.1.0)\n\n</details>\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - At any time (no schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has been generated by [Renovate\nBot](https://redirect.github.com/renovatebot/renovate).\n\n\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>","sha":"1846807c25e4e5030b04cca42eef85e40602c0a6"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/216556","number":216556,"state":"MERGED","mergeCommit":{"sha":"5e0a879c735144f97c470e80497353f3136f2dac","message":"[8.x] Update dependency lru-cache to ^11.1.0 (main) (#216517) (#216556)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.x`:\n- [Update dependency lru-cache to ^11.1.0 (main)\n(#216517)](https://github.com/elastic/kibana/pull/216517)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>"}},{"branch":"8.17","label":"v8.17.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/216552","number":216552,"state":"MERGED","mergeCommit":{"sha":"3b2023a544073612a5724fd419c52e7161ded660","message":"[8.17] Update dependency lru-cache to ^11.1.0 (main) (#216517) (#216552)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.17`:\n- [Update dependency lru-cache to ^11.1.0 (main)\n(#216517)](https://github.com/elastic/kibana/pull/216517)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>"}},{"branch":"8.16","label":"v8.16.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/216551","number":216551,"state":"MERGED","mergeCommit":{"sha":"d6666dde0a084aa153a980095c0825bcfccf587d","message":"[8.16] Update dependency lru-cache to ^11.1.0 (main) (#216517) (#216551)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.16`:\n- [Update dependency lru-cache to ^11.1.0 (main)\n(#216517)](https://github.com/elastic/kibana/pull/216517)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>"}}]}] BACKPORT--> --------- Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
preset | ||
src | ||
templates | ||
BUILD.bazel | ||
package.json | ||
preset.js | ||
README.md | ||
tsconfig.json |
Kibana Storybook
This package provides ability to add Storybook to any Kibana plugin.
Setup Instructions
-
Add a
.storybook/main.js
configuration file to your plugin. For example, create a file atsrc/plugins/<plugin>/.storybook/main.js
, with the following contents:module.exports = require('@kbn/storybook').defaultConfig;
-
Add your plugin alias to
src/dev/storybook/aliases.ts
config. -
Create sample Storybook stories. For example, in your plugin create a file at
src/plugins/<plugin>/public/components/hello_world/hello_world.stories.tsx
with the following Component Story Format contents:import { MyComponent } from './my_component'; export default { component: MyComponent, title: 'Path/In/Side/Navigation/ToComponent', }; export function Example() { return <MyComponent />; }
-
Launch Storybook with
yarn storybook <plugin>
, or build a static site withyarn storybook --site <plugin>
.
Customizing configuration
The defaultConfig
object provided by the @kbn/storybook package should be all you need to get running, but you can
override this in your .storybook/main.js. Using Storybook's configuration options.