Skip to content

Commit 1a3e850

Browse files
Merge branch '7.x' into backport/7.x/pr-56922
2 parents 133d097 + 8ca0cef commit 1a3e850

File tree

210 files changed

+2758
-3869
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+2758
-3869
lines changed

.eslintrc.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,7 @@ module.exports = {
359359
settings: {
360360
// instructs import/no-extraneous-dependencies to treat certain modules
361361
// as core modules, even if they aren't listed in package.json
362-
'import/core-modules': [
363-
'plugins',
364-
'legacy/ui',
365-
'uiExports',
366-
// TODO: Remove once https://github.com/benmosher/eslint-plugin-import/issues/1374 is fixed
367-
'querystring',
368-
],
362+
'import/core-modules': ['plugins', 'legacy/ui', 'uiExports'],
369363

370364
'import/resolver': {
371365
'@kbn/eslint-import-resolver-kibana': {

.i18nrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@
3737
"savedObjects": "src/plugins/saved_objects",
3838
"server": "src/legacy/server",
3939
"statusPage": "src/legacy/core_plugins/status_page",
40-
"telemetry": "src/legacy/core_plugins/telemetry",
40+
"telemetry": [
41+
"src/legacy/core_plugins/telemetry",
42+
"src/plugins/telemetry"
43+
],
4144
"tileMap": "src/legacy/core_plugins/tile_map",
4245
"timelion": ["src/legacy/core_plugins/timelion", "src/legacy/core_plugins/vis_type_timelion", "src/plugins/timelion"],
4346
"uiActions": "src/plugins/ui_actions",

NOTICE.txt

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -218,28 +218,3 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
218218
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
219219
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
220220

221-
---
222-
This product includes code that was extracted from angular@1.3.
223-
Original license:
224-
The MIT License
225-
226-
Copyright (c) 2010-2014 Google, Inc. http://angularjs.org
227-
228-
Permission is hereby granted, free of charge, to any person obtaining a copy
229-
of this software and associated documentation files (the "Software"), to deal
230-
in the Software without restriction, including without limitation the rights
231-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
232-
copies of the Software, and to permit persons to whom the Software is
233-
furnished to do so, subject to the following conditions:
234-
235-
The above copyright notice and this permission notice shall be included in
236-
all copies or substantial portions of the Software.
237-
238-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
239-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
240-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
241-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
242-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
243-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
244-
THE SOFTWARE.
245-
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-public](./kibana-plugin-public.md) &gt; [ApplicationStart](./kibana-plugin-public.applicationstart.md) &gt; [currentAppId$](./kibana-plugin-public.applicationstart.currentappid_.md)
4+
5+
## ApplicationStart.currentAppId$ property
6+
7+
An observable that emits the current application id and each subsequent id update.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
currentAppId$: Observable<string | undefined>;
13+
```

docs/development/core/public/kibana-plugin-public.applicationstart.geturlforapp.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44

55
## ApplicationStart.getUrlForApp() method
66

7-
Returns a relative URL to a given app, including the global base path.
7+
Returns an URL to a given app, including the global base path. By default, the URL is relative (/basePath/app/my-app). Use the `absolute` option to generate an absolute url (http://host:port/basePath/app/my-app)
8+
9+
Note that when generating absolute urls, the protocol, host and port are determined from the browser location.
810

911
<b>Signature:</b>
1012

1113
```typescript
1214
getUrlForApp(appId: string, options?: {
1315
path?: string;
16+
absolute?: boolean;
1417
}): string;
1518
```
1619

@@ -19,7 +22,7 @@ getUrlForApp(appId: string, options?: {
1922
| Parameter | Type | Description |
2023
| --- | --- | --- |
2124
| appId | <code>string</code> | |
22-
| options | <code>{</code><br/><code> path?: string;</code><br/><code> }</code> | |
25+
| options | <code>{</code><br/><code> path?: string;</code><br/><code> absolute?: boolean;</code><br/><code> }</code> | |
2326

2427
<b>Returns:</b>
2528

docs/development/core/public/kibana-plugin-public.applicationstart.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ export interface ApplicationStart
1616
| Property | Type | Description |
1717
| --- | --- | --- |
1818
| [capabilities](./kibana-plugin-public.applicationstart.capabilities.md) | <code>RecursiveReadonly&lt;Capabilities&gt;</code> | Gets the read-only capabilities. |
19+
| [currentAppId$](./kibana-plugin-public.applicationstart.currentappid_.md) | <code>Observable&lt;string &#124; undefined&gt;</code> | An observable that emits the current application id and each subsequent id update. |
1920

2021
## Methods
2122

2223
| Method | Description |
2324
| --- | --- |
24-
| [getUrlForApp(appId, options)](./kibana-plugin-public.applicationstart.geturlforapp.md) | Returns a relative URL to a given app, including the global base path. |
25+
| [getUrlForApp(appId, options)](./kibana-plugin-public.applicationstart.geturlforapp.md) | Returns an URL to a given app, including the global base path. By default, the URL is relative (/basePath/app/my-app). Use the <code>absolute</code> option to generate an absolute url (http://host:port/basePath/app/my-app)<!-- -->Note that when generating absolute urls, the protocol, host and port are determined from the browser location. |
2526
| [navigateToApp(appId, options)](./kibana-plugin-public.applicationstart.navigatetoapp.md) | Navigate to a given app |
2627
| [registerMountContext(contextName, provider)](./kibana-plugin-public.applicationstart.registermountcontext.md) | Register a context provider for application mounting. Will only be available to applications that depend on the plugin that registered this context. Deprecated, use [CoreSetup.getStartServices()](./kibana-plugin-public.coresetup.getstartservices.md)<!-- -->. |
2728

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
"prop-types": "15.6.0",
228228
"proxy-from-env": "1.0.0",
229229
"pug": "^2.0.4",
230-
"querystring-browser": "1.0.4",
230+
"query-string": "6.10.1",
231231
"raw-loader": "3.1.0",
232232
"react": "^16.12.0",
233233
"react-color": "^2.13.8",

packages/kbn-eslint-import-resolver-kibana/lib/get_webpack_config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ exports.getWebpackConfig = function(kibanaPath, projectRoot, config) {
2929
// Kibana defaults https://github.com/elastic/kibana/blob/6998f074542e8c7b32955db159d15661aca253d7/src/legacy/ui/ui_bundler_env.js#L30-L36
3030
ui: fromKibana('src/legacy/ui/public'),
3131
test_harness: fromKibana('src/test_harness/public'),
32-
querystring: 'querystring-browser',
3332

3433
// Dev defaults for test bundle https://github.com/elastic/kibana/blob/6998f074542e8c7b32955db159d15661aca253d7/src/core_plugins/tests_bundle/index.js#L73-L78
3534
ng_mock$: fromKibana('src/test_utils/public/ng_mock'),

packages/kbn-pm/dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108561,7 +108561,9 @@ __webpack_require__.r(__webpack_exports__);
108561108561
* to Kibana itself.
108562108562
*/
108563108563

108564-
const isKibanaDep = depVersion => depVersion.includes('../../packages/');
108564+
const isKibanaDep = depVersion => // For ../kibana-extra/ directory (legacy only)
108565+
depVersion.includes('../../kibana/packages/') || // For plugins/ directory
108566+
depVersion.includes('../../packages/');
108565108567
/**
108566108568
* This prepares the dependencies for an _external_ project.
108567108569
*/

packages/kbn-pm/src/production/prepare_project_dependencies.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ import { Project } from '../utils/project';
2525
* to the Kibana root directory or `../kibana-extra/{plugin}` relative
2626
* to Kibana itself.
2727
*/
28-
const isKibanaDep = (depVersion: string) => depVersion.includes('../../packages/');
28+
const isKibanaDep = (depVersion: string) =>
29+
// For ../kibana-extra/ directory (legacy only)
30+
depVersion.includes('../../kibana/packages/') ||
31+
// For plugins/ directory
32+
depVersion.includes('../../packages/');
2933

3034
/**
3135
* This prepares the dependencies for an _external_ project.

0 commit comments

Comments
 (0)