-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GS] Allows apps to register searchable keywords for Global Search (#…
- Loading branch information
1 parent
ca24e11
commit 3a6e2a3
Showing
24 changed files
with
555 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
docs/development/core/public/kibana-plugin-core-public.app.meta.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [App](./kibana-plugin-core-public.app.md) > [meta](./kibana-plugin-core-public.app.meta.md) | ||
|
||
## App.meta property | ||
|
||
Meta data for an application that represent additional information for the app. See [AppMeta](./kibana-plugin-core-public.appmeta.md) | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
meta?: AppMeta; | ||
``` | ||
|
||
## Remarks | ||
|
||
Used to populate navigational search results (where available). Can be updated using the [App.updater$](./kibana-plugin-core-public.app.updater_.md) observable. See [PublicAppSearchDeepLinkInfo](./kibana-plugin-core-public.publicappsearchdeeplinkinfo.md) for more details. | ||
|
||
## Example | ||
|
||
|
||
```ts | ||
core.application.register({ | ||
id: 'my_app', | ||
title: 'Translated title', | ||
meta: { | ||
keywords: ['translated keyword1', 'translated keyword2'], | ||
searchDeepLinks: [ | ||
{ id: 'sub1', title: 'Sub1', path: '/sub1', keywords: ['subpath1'] }, | ||
{ | ||
id: 'sub2', | ||
title: 'Sub2', | ||
searchDeepLinks: [ | ||
{ id: 'subsub', title: 'SubSub', path: '/sub2/sub', keywords: ['subpath2'] } | ||
] | ||
} | ||
], | ||
}, | ||
mount: () => { ... } | ||
}) | ||
|
||
``` | ||
|
42 changes: 0 additions & 42 deletions
42
docs/development/core/public/kibana-plugin-core-public.app.searchdeeplinks.md
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
docs/development/core/public/kibana-plugin-core-public.appmeta.keywords.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [AppMeta](./kibana-plugin-core-public.appmeta.md) > [keywords](./kibana-plugin-core-public.appmeta.keywords.md) | ||
|
||
## AppMeta.keywords property | ||
|
||
Keywords to represent this application | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
keywords?: string[]; | ||
``` |
23 changes: 23 additions & 0 deletions
23
docs/development/core/public/kibana-plugin-core-public.appmeta.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [AppMeta](./kibana-plugin-core-public.appmeta.md) | ||
|
||
## AppMeta interface | ||
|
||
Input type for meta data for an application. | ||
|
||
Meta fields include `keywords` and `searchDeepLinks` Keywords is an array of string with which to associate the app, must include at least one unique string as an array. `searchDeepLinks` is an array of links that represent secondary in-app locations for the app. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface AppMeta | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [keywords](./kibana-plugin-core-public.appmeta.keywords.md) | <code>string[]</code> | Keywords to represent this application | | ||
| [searchDeepLinks](./kibana-plugin-core-public.appmeta.searchdeeplinks.md) | <code>AppSearchDeepLink[]</code> | Array of links that represent secondary in-app locations for the app. | | ||
|
13 changes: 13 additions & 0 deletions
13
docs/development/core/public/kibana-plugin-core-public.appmeta.searchdeeplinks.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [AppMeta](./kibana-plugin-core-public.appmeta.md) > [searchDeepLinks](./kibana-plugin-core-public.appmeta.searchdeeplinks.md) | ||
|
||
## AppMeta.searchDeepLinks property | ||
|
||
Array of links that represent secondary in-app locations for the app. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
searchDeepLinks?: AppSearchDeepLink[]; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
docs/development/core/public/kibana-plugin-core-public.publicappmetainfo.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [PublicAppMetaInfo](./kibana-plugin-core-public.publicappmetainfo.md) | ||
|
||
## PublicAppMetaInfo type | ||
|
||
Public information about a registered app's [keywords](./kibana-plugin-core-public.appmeta.md) | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type PublicAppMetaInfo = Omit<AppMeta, 'keywords' | 'searchDeepLinks'> & { | ||
keywords: string[]; | ||
searchDeepLinks: PublicAppSearchDeepLinkInfo[]; | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.