-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into new-nav
- Loading branch information
Showing
130 changed files
with
5,148 additions
and
432 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
24 changes: 24 additions & 0 deletions
24
docs/development/core/public/kibana-plugin-core-public.assertnever.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,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [assertNever](./kibana-plugin-core-public.assertnever.md) | ||
|
||
## assertNever() function | ||
|
||
Can be used in switch statements to ensure we perform exhaustive checks, see https://www.typescriptlang.org/docs/handbook/advanced-types.html\#exhaustiveness-checking | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function assertNever(x: never): never; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| x | <code>never</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`never` | ||
|
24 changes: 24 additions & 0 deletions
24
docs/development/core/public/kibana-plugin-core-public.deepfreeze.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,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [deepFreeze](./kibana-plugin-core-public.deepfreeze.md) | ||
|
||
## deepFreeze() function | ||
|
||
Apply Object.freeze to a value recursively and convert the return type to Readonly variant recursively | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function deepFreeze<T extends Freezable>(object: T): RecursiveReadonly<T>; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| object | <code>T</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`RecursiveReadonly<T>` | ||
|
14 changes: 14 additions & 0 deletions
14
docs/development/core/public/kibana-plugin-core-public.freezable.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,14 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [Freezable](./kibana-plugin-core-public.freezable.md) | ||
|
||
## Freezable type | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type Freezable = { | ||
[k: string]: any; | ||
} | any[]; | ||
``` |
30 changes: 30 additions & 0 deletions
30
docs/development/core/public/kibana-plugin-core-public.getflattenedobject.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,30 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [getFlattenedObject](./kibana-plugin-core-public.getflattenedobject.md) | ||
|
||
## getFlattenedObject() function | ||
|
||
Flattens a deeply nested object to a map of dot-separated paths pointing to all primitive values \*\*and arrays\*\* from `rootValue`<!-- -->. | ||
|
||
example: getFlattenedObject(<!-- -->{ a: { b: 1, c: \[2,3\] } }<!-- -->) // =<!-- -->> { 'a.b': 1, 'a.c': \[2,3\] } | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function getFlattenedObject(rootValue: Record<string, any>): { | ||
[key: string]: any; | ||
}; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| rootValue | <code>Record<string, any></code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`{ | ||
[key: string]: any; | ||
}` | ||
|
24 changes: 24 additions & 0 deletions
24
docs/development/core/public/kibana-plugin-core-public.isrelativeurl.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,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [isRelativeUrl](./kibana-plugin-core-public.isrelativeurl.md) | ||
|
||
## isRelativeUrl() function | ||
|
||
Determine if a url is relative. Any url including a protocol, hostname, or port is not considered relative. This means that absolute \*paths\* are considered to be relative \*urls\* | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function isRelativeUrl(candidatePath: string): boolean; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| candidatePath | <code>string</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`boolean` | ||
|
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
31 changes: 31 additions & 0 deletions
31
docs/development/core/public/kibana-plugin-core-public.modifyurl.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,31 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [modifyUrl](./kibana-plugin-core-public.modifyurl.md) | ||
|
||
## modifyUrl() function | ||
|
||
Takes a URL and a function that takes the meaningful parts of the URL as a key-value object, modifies some or all of the parts, and returns the modified parts formatted again as a url. | ||
|
||
Url Parts sent: - protocol - slashes (does the url have the //) - auth - hostname (just the name of the host, no port or auth information) - port - pathname (the path after the hostname, no query or hash, starts with a slash if there was a path) - query (always an object, even when no query on original url) - hash | ||
|
||
Why? - The default url library in node produces several conflicting properties on the "parsed" output. Modifying any of these might lead to the modifications being ignored (depending on which property was modified) - It's not always clear whether to use path/pathname, host/hostname, so this tries to add helpful constraints | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function modifyUrl(url: string, urlModifier: (urlParts: URLMeaningfulParts) => Partial<URLMeaningfulParts> | void): string; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| url | <code>string</code> | | | ||
| urlModifier | <code>(urlParts: URLMeaningfulParts) => Partial<URLMeaningfulParts> | void</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`string` | ||
|
||
The modified and reformatted url | ||
|
11 changes: 11 additions & 0 deletions
11
docs/development/core/public/kibana-plugin-core-public.urlmeaningfulparts.auth.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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [URLMeaningfulParts](./kibana-plugin-core-public.urlmeaningfulparts.md) > [auth](./kibana-plugin-core-public.urlmeaningfulparts.auth.md) | ||
|
||
## URLMeaningfulParts.auth property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
auth?: string | null; | ||
``` |
11 changes: 11 additions & 0 deletions
11
docs/development/core/public/kibana-plugin-core-public.urlmeaningfulparts.hash.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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [URLMeaningfulParts](./kibana-plugin-core-public.urlmeaningfulparts.md) > [hash](./kibana-plugin-core-public.urlmeaningfulparts.hash.md) | ||
|
||
## URLMeaningfulParts.hash property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
hash?: string | null; | ||
``` |
11 changes: 11 additions & 0 deletions
11
...evelopment/core/public/kibana-plugin-core-public.urlmeaningfulparts.hostname.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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [URLMeaningfulParts](./kibana-plugin-core-public.urlmeaningfulparts.md) > [hostname](./kibana-plugin-core-public.urlmeaningfulparts.hostname.md) | ||
|
||
## URLMeaningfulParts.hostname property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
hostname?: string | null; | ||
``` |
27 changes: 27 additions & 0 deletions
27
docs/development/core/public/kibana-plugin-core-public.urlmeaningfulparts.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,27 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [URLMeaningfulParts](./kibana-plugin-core-public.urlmeaningfulparts.md) | ||
|
||
## URLMeaningfulParts interface | ||
|
||
We define our own typings because the current version of @<!-- -->types/node declares properties to be optional "hostname?: string". Although, parse call returns "hostname: null \| string". | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface URLMeaningfulParts | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [auth](./kibana-plugin-core-public.urlmeaningfulparts.auth.md) | <code>string | null</code> | | | ||
| [hash](./kibana-plugin-core-public.urlmeaningfulparts.hash.md) | <code>string | null</code> | | | ||
| [hostname](./kibana-plugin-core-public.urlmeaningfulparts.hostname.md) | <code>string | null</code> | | | ||
| [pathname](./kibana-plugin-core-public.urlmeaningfulparts.pathname.md) | <code>string | null</code> | | | ||
| [port](./kibana-plugin-core-public.urlmeaningfulparts.port.md) | <code>string | null</code> | | | ||
| [protocol](./kibana-plugin-core-public.urlmeaningfulparts.protocol.md) | <code>string | null</code> | | | ||
| [query](./kibana-plugin-core-public.urlmeaningfulparts.query.md) | <code>ParsedQuery</code> | | | ||
| [slashes](./kibana-plugin-core-public.urlmeaningfulparts.slashes.md) | <code>boolean | null</code> | | | ||
|
11 changes: 11 additions & 0 deletions
11
...evelopment/core/public/kibana-plugin-core-public.urlmeaningfulparts.pathname.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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [URLMeaningfulParts](./kibana-plugin-core-public.urlmeaningfulparts.md) > [pathname](./kibana-plugin-core-public.urlmeaningfulparts.pathname.md) | ||
|
||
## URLMeaningfulParts.pathname property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
pathname?: string | null; | ||
``` |
11 changes: 11 additions & 0 deletions
11
docs/development/core/public/kibana-plugin-core-public.urlmeaningfulparts.port.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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [URLMeaningfulParts](./kibana-plugin-core-public.urlmeaningfulparts.md) > [port](./kibana-plugin-core-public.urlmeaningfulparts.port.md) | ||
|
||
## URLMeaningfulParts.port property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
port?: string | null; | ||
``` |
11 changes: 11 additions & 0 deletions
11
...evelopment/core/public/kibana-plugin-core-public.urlmeaningfulparts.protocol.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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [URLMeaningfulParts](./kibana-plugin-core-public.urlmeaningfulparts.md) > [protocol](./kibana-plugin-core-public.urlmeaningfulparts.protocol.md) | ||
|
||
## URLMeaningfulParts.protocol property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
protocol?: string | null; | ||
``` |
11 changes: 11 additions & 0 deletions
11
docs/development/core/public/kibana-plugin-core-public.urlmeaningfulparts.query.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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [URLMeaningfulParts](./kibana-plugin-core-public.urlmeaningfulparts.md) > [query](./kibana-plugin-core-public.urlmeaningfulparts.query.md) | ||
|
||
## URLMeaningfulParts.query property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
query: ParsedQuery; | ||
``` |
11 changes: 11 additions & 0 deletions
11
...development/core/public/kibana-plugin-core-public.urlmeaningfulparts.slashes.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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [URLMeaningfulParts](./kibana-plugin-core-public.urlmeaningfulparts.md) > [slashes](./kibana-plugin-core-public.urlmeaningfulparts.slashes.md) | ||
|
||
## URLMeaningfulParts.slashes property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
slashes?: boolean | null; | ||
``` |
24 changes: 24 additions & 0 deletions
24
docs/development/core/server/kibana-plugin-core-server.assertnever.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,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [assertNever](./kibana-plugin-core-server.assertnever.md) | ||
|
||
## assertNever() function | ||
|
||
Can be used in switch statements to ensure we perform exhaustive checks, see https://www.typescriptlang.org/docs/handbook/advanced-types.html\#exhaustiveness-checking | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function assertNever(x: never): never; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| x | <code>never</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`never` | ||
|
24 changes: 24 additions & 0 deletions
24
docs/development/core/server/kibana-plugin-core-server.deepfreeze.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,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [deepFreeze](./kibana-plugin-core-server.deepfreeze.md) | ||
|
||
## deepFreeze() function | ||
|
||
Apply Object.freeze to a value recursively and convert the return type to Readonly variant recursively | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function deepFreeze<T extends Freezable>(object: T): RecursiveReadonly<T>; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| object | <code>T</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`RecursiveReadonly<T>` | ||
|
14 changes: 14 additions & 0 deletions
14
docs/development/core/server/kibana-plugin-core-server.freezable.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,14 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [Freezable](./kibana-plugin-core-server.freezable.md) | ||
|
||
## Freezable type | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type Freezable = { | ||
[k: string]: any; | ||
} | any[]; | ||
``` |
Oops, something went wrong.