IAnonymousPaths
| APIs for denoting certain paths for not requiring authentication |
-| [basePath](./kibana-plugin-core-public.httpsetup.basepath.md) | IBasePath
| APIs for manipulating the basePath on URL segments. |
+| [basePath](./kibana-plugin-core-public.httpsetup.basepath.md) | IBasePath
| APIs for manipulating the basePath on URL segments. See [IBasePath](./kibana-plugin-core-public.ibasepath.md) |
| [delete](./kibana-plugin-core-public.httpsetup.delete.md) | HttpHandler
| Makes an HTTP request with the DELETE method. See [HttpHandler](./kibana-plugin-core-public.httphandler.md) for options. |
| [fetch](./kibana-plugin-core-public.httpsetup.fetch.md) | HttpHandler
| Makes an HTTP request. Defaults to a GET request unless overriden. See [HttpHandler](./kibana-plugin-core-public.httphandler.md) for options. |
| [get](./kibana-plugin-core-public.httpsetup.get.md) | HttpHandler
| Makes an HTTP request with the GET method. See [HttpHandler](./kibana-plugin-core-public.httphandler.md) for options. |
diff --git a/docs/development/core/server/kibana-plugin-core-server.md b/docs/development/core/server/kibana-plugin-core-server.md
index a1158dc853918f..793684c1b37961 100644
--- a/docs/development/core/server/kibana-plugin-core-server.md
+++ b/docs/development/core/server/kibana-plugin-core-server.md
@@ -115,8 +115,6 @@ The plugin integrates with the core system via lifecycle events: `setup`
| [PluginConfigDescriptor](./kibana-plugin-core-server.pluginconfigdescriptor.md) | Describes a plugin configuration properties. |
| [PluginInitializerContext](./kibana-plugin-core-server.plugininitializercontext.md) | Context that's available to plugins during initialization stage. |
| [PluginManifest](./kibana-plugin-core-server.pluginmanifest.md) | Describes the set of required and optional properties plugin can define in its mandatory JSON manifest file. |
-| [PluginsServiceSetup](./kibana-plugin-core-server.pluginsservicesetup.md) | |
-| [PluginsServiceStart](./kibana-plugin-core-server.pluginsservicestart.md) | |
| [RequestHandlerContext](./kibana-plugin-core-server.requesthandlercontext.md) | Plugin specific context passed to a route handler.Provides the following clients and services: - [rendering](./kibana-plugin-core-server.iscopedrenderingclient.md) - Rendering client which uses the data of the incoming request - [savedObjects.client](./kibana-plugin-core-server.savedobjectsclient.md) - Saved Objects client which uses the credentials of the incoming request - [savedObjects.typeRegistry](./kibana-plugin-core-server.isavedobjecttyperegistry.md) - Type registry containing all the registered types. - [elasticsearch.dataClient](./kibana-plugin-core-server.scopedclusterclient.md) - Elasticsearch data client which uses the credentials of the incoming request - [elasticsearch.adminClient](./kibana-plugin-core-server.scopedclusterclient.md) - Elasticsearch admin client which uses the credentials of the incoming request - [uiSettings.client](./kibana-plugin-core-server.iuisettingsclient.md) - uiSettings client which uses the credentials of the incoming request |
| [RouteConfig](./kibana-plugin-core-server.routeconfig.md) | Route specific configuration. |
| [RouteConfigOptions](./kibana-plugin-core-server.routeconfigoptions.md) | Additional route options. |
diff --git a/docs/development/core/server/kibana-plugin-core-server.pluginsservicesetup.contracts.md b/docs/development/core/server/kibana-plugin-core-server.pluginsservicesetup.contracts.md
deleted file mode 100644
index 5e0543dbaa2d44..00000000000000
--- a/docs/development/core/server/kibana-plugin-core-server.pluginsservicesetup.contracts.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [PluginsServiceSetup](./kibana-plugin-core-server.pluginsservicesetup.md) > [contracts](./kibana-plugin-core-server.pluginsservicesetup.contracts.md)
-
-## PluginsServiceSetup.contracts property
-
-Signature:
-
-```typescript
-contracts: MapMap<PluginName, unknown>
| |
-| [uiPlugins](./kibana-plugin-core-server.pluginsservicesetup.uiplugins.md) | {
internal: Map<PluginName, InternalPluginInfo>;
public: Map<PluginName, DiscoveredPlugin>;
browserConfigs: Map<PluginName, Observable<unknown>>;
}
| |
-
diff --git a/docs/development/core/server/kibana-plugin-core-server.pluginsservicesetup.uiplugins.md b/docs/development/core/server/kibana-plugin-core-server.pluginsservicesetup.uiplugins.md
deleted file mode 100644
index 7168a360c244d8..00000000000000
--- a/docs/development/core/server/kibana-plugin-core-server.pluginsservicesetup.uiplugins.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [PluginsServiceSetup](./kibana-plugin-core-server.pluginsservicesetup.md) > [uiPlugins](./kibana-plugin-core-server.pluginsservicesetup.uiplugins.md)
-
-## PluginsServiceSetup.uiPlugins property
-
-Signature:
-
-```typescript
-uiPlugins: {
- internal: MapMap<PluginName, unknown>
| |
-
diff --git a/package.json b/package.json
index 4baffa8719fe3a..b5da10c71a1a13 100644
--- a/package.json
+++ b/package.json
@@ -115,8 +115,8 @@
]
},
"dependencies": {
- "@babel/core": "^7.5.5",
- "@babel/register": "^7.7.0",
+ "@babel/core": "^7.9.0",
+ "@babel/register": "^7.9.0",
"@elastic/apm-rum": "^4.6.0",
"@elastic/charts": "^18.1.0",
"@elastic/datemath": "5.0.2",
@@ -284,8 +284,8 @@
"yauzl": "2.10.0"
},
"devDependencies": {
- "@babel/parser": "^7.5.5",
- "@babel/types": "^7.5.5",
+ "@babel/parser": "^7.9.3",
+ "@babel/types": "^7.9.0",
"@elastic/elasticsearch": "^7.4.0",
"@elastic/eslint-config-kibana": "0.15.0",
"@elastic/eslint-plugin-eui": "0.0.2",
diff --git a/packages/elastic-datemath/package.json b/packages/elastic-datemath/package.json
index 57873d28d372de..8c7c93834adc67 100644
--- a/packages/elastic-datemath/package.json
+++ b/packages/elastic-datemath/package.json
@@ -11,8 +11,8 @@
"kbn:watch": "yarn build --watch"
},
"devDependencies": {
- "@babel/cli": "^7.5.5",
- "@babel/preset-env": "^7.5.5",
+ "@babel/cli": "^7.8.4",
+ "@babel/preset-env": "^7.9.0",
"babel-plugin-add-module-exports": "^1.0.2",
"moment": "^2.24.0"
},
diff --git a/packages/kbn-analytics/package.json b/packages/kbn-analytics/package.json
index 9eefa16aaca017..b7a719e5595e6a 100644
--- a/packages/kbn-analytics/package.json
+++ b/packages/kbn-analytics/package.json
@@ -14,7 +14,7 @@
"kbn:watch": "node scripts/build --source-maps --watch"
},
"devDependencies": {
- "@babel/cli": "^7.5.5",
+ "@babel/cli": "^7.8.4",
"@kbn/dev-utils": "1.0.0",
"@kbn/babel-preset": "1.0.0",
"typescript": "3.7.2"
diff --git a/packages/kbn-babel-code-parser/package.json b/packages/kbn-babel-code-parser/package.json
index a9d373d33ab38e..4321cd6ee762c7 100755
--- a/packages/kbn-babel-code-parser/package.json
+++ b/packages/kbn-babel-code-parser/package.json
@@ -15,12 +15,12 @@
"kbn:watch": "yarn build --watch"
},
"devDependencies": {
- "@babel/cli": "^7.5.5"
+ "@babel/cli": "^7.8.4"
},
"dependencies": {
"@kbn/babel-preset": "1.0.0",
- "@babel/parser": "^7.5.5",
- "@babel/traverse": "^7.5.5",
+ "@babel/parser": "^7.9.3",
+ "@babel/traverse": "^7.9.0",
"lodash": "^4.17.15"
}
}
diff --git a/packages/kbn-babel-preset/package.json b/packages/kbn-babel-preset/package.json
index 0acafbae59afd3..b82c8d0fac897b 100644
--- a/packages/kbn-babel-preset/package.json
+++ b/packages/kbn-babel-preset/package.json
@@ -4,14 +4,14 @@
"version": "1.0.0",
"license": "Apache-2.0",
"dependencies": {
- "@babel/plugin-proposal-class-properties": "^7.5.1",
- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
- "@babel/plugin-proposal-optional-chaining": "^7.6.0",
- "@babel/plugin-syntax-dynamic-import": "^7.2.0",
- "@babel/plugin-transform-modules-commonjs": "^7.5.0",
- "@babel/preset-env": "^7.5.5",
- "@babel/preset-react": "^7.7.4",
- "@babel/preset-typescript": "^7.7.4",
+ "@babel/plugin-proposal-class-properties": "^7.8.3",
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
+ "@babel/plugin-proposal-optional-chaining": "^7.9.0",
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
+ "@babel/plugin-transform-modules-commonjs": "^7.9.0",
+ "@babel/preset-env": "^7.9.0",
+ "@babel/preset-react": "^7.9.1",
+ "@babel/preset-typescript": "^7.9.0",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-filter-imports": "^3.0.0",
"babel-plugin-styled-components": "^1.10.6",
diff --git a/packages/kbn-i18n/package.json b/packages/kbn-i18n/package.json
index bbc5126da1dce0..a2b5a2c6926457 100644
--- a/packages/kbn-i18n/package.json
+++ b/packages/kbn-i18n/package.json
@@ -12,8 +12,8 @@
"kbn:watch": "node scripts/build --watch --source-maps"
},
"devDependencies": {
- "@babel/cli": "^7.5.5",
- "@babel/core": "^7.5.5",
+ "@babel/cli": "^7.8.4",
+ "@babel/core": "^7.9.0",
"@kbn/babel-preset": "1.0.0",
"@kbn/dev-utils": "1.0.0",
"@types/intl-relativeformat": "^2.1.0",
diff --git a/packages/kbn-interpreter/package.json b/packages/kbn-interpreter/package.json
index 5dede7fbf1aaa9..dee35043211f75 100644
--- a/packages/kbn-interpreter/package.json
+++ b/packages/kbn-interpreter/package.json
@@ -9,16 +9,16 @@
"kbn:watch": "node scripts/build --dev --watch"
},
"dependencies": {
- "@babel/runtime": "^7.5.5",
+ "@babel/runtime": "^7.9.2",
"@kbn/i18n": "1.0.0",
"lodash": "npm:@elastic/lodash@3.10.1-kibana4",
"lodash.clone": "^4.5.0",
"uuid": "3.3.2"
},
"devDependencies": {
- "@babel/cli": "^7.5.5",
- "@babel/core": "^7.5.5",
- "@babel/plugin-transform-runtime": "^7.5.5",
+ "@babel/cli": "^7.8.4",
+ "@babel/core": "^7.9.0",
+ "@babel/plugin-transform-runtime": "^7.9.0",
"@kbn/babel-preset": "1.0.0",
"@kbn/dev-utils": "1.0.0",
"babel-loader": "^8.0.6",
diff --git a/packages/kbn-optimizer/package.json b/packages/kbn-optimizer/package.json
index 219b9aaa7f8f25..d32c7489641a06 100644
--- a/packages/kbn-optimizer/package.json
+++ b/packages/kbn-optimizer/package.json
@@ -10,7 +10,7 @@
"kbn:watch": "yarn build --watch"
},
"dependencies": {
- "@babel/cli": "^7.5.5",
+ "@babel/cli": "^7.8.4",
"@kbn/babel-preset": "1.0.0",
"@kbn/dev-utils": "1.0.0",
"@kbn/ui-shared-deps": "1.0.0",
diff --git a/packages/kbn-plugin-helpers/package.json b/packages/kbn-plugin-helpers/package.json
index c348aa43789d17..53c998ddfaac24 100644
--- a/packages/kbn-plugin-helpers/package.json
+++ b/packages/kbn-plugin-helpers/package.json
@@ -13,7 +13,7 @@
"@kbn/babel-preset": "1.0.0"
},
"dependencies": {
- "@babel/core": "^7.5.5",
+ "@babel/core": "^7.9.0",
"argv-split": "^2.0.1",
"commander": "^3.0.0",
"del": "^5.1.0",
diff --git a/packages/kbn-pm/dist/index.js b/packages/kbn-pm/dist/index.js
index 62b12e8e38c875..4b6375b0cc0991 100644
--- a/packages/kbn-pm/dist/index.js
+++ b/packages/kbn-pm/dist/index.js
@@ -94,21 +94,21 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _cli__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "run", function() { return _cli__WEBPACK_IMPORTED_MODULE_0__["run"]; });
-/* harmony import */ var _production__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(704);
+/* harmony import */ var _production__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(703);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildProductionProjects", function() { return _production__WEBPACK_IMPORTED_MODULE_1__["buildProductionProjects"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "prepareExternalProjectDependencies", function() { return _production__WEBPACK_IMPORTED_MODULE_1__["prepareExternalProjectDependencies"]; });
-/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(500);
+/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(499);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getProjects", function() { return _utils_projects__WEBPACK_IMPORTED_MODULE_2__["getProjects"]; });
-/* harmony import */ var _utils_project__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(515);
+/* harmony import */ var _utils_project__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(514);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Project", function() { return _utils_project__WEBPACK_IMPORTED_MODULE_3__["Project"]; });
-/* harmony import */ var _utils_workspaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(577);
+/* harmony import */ var _utils_workspaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(576);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyWorkspacePackages", function() { return _utils_workspaces__WEBPACK_IMPORTED_MODULE_4__["copyWorkspacePackages"]; });
-/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(578);
+/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(577);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getProjectPaths", function() { return _config__WEBPACK_IMPORTED_MODULE_5__["getProjectPaths"]; });
/*
@@ -152,7 +152,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _commands__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17);
-/* harmony import */ var _run__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(688);
+/* harmony import */ var _run__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(687);
/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34);
/*
* Licensed to Elasticsearch B.V. under one or more contributor
@@ -2506,9 +2506,9 @@ module.exports = require("path");
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "commands", function() { return commands; });
/* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
-/* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(585);
-/* harmony import */ var _run__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(685);
-/* harmony import */ var _watch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(686);
+/* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(584);
+/* harmony import */ var _run__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(684);
+/* harmony import */ var _watch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(685);
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
@@ -2549,10 +2549,10 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _utils_link_project_executables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19);
/* harmony import */ var _utils_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(34);
-/* harmony import */ var _utils_parallelize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(499);
-/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(500);
-/* harmony import */ var _utils_project_checksums__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(579);
-/* harmony import */ var _utils_bootstrap_cache_file__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(584);
+/* harmony import */ var _utils_parallelize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(498);
+/* harmony import */ var _utils_projects__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(499);
+/* harmony import */ var _utils_project_checksums__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(578);
+/* harmony import */ var _utils_bootstrap_cache_file__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(583);
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
@@ -4493,7 +4493,7 @@ exports.ProcRunner = proc_runner_1.ProcRunner;
tslib_1.__exportStar(__webpack_require__(414), exports);
var serializers_1 = __webpack_require__(419);
exports.createAbsolutePathSerializer = serializers_1.createAbsolutePathSerializer;
-var certs_1 = __webpack_require__(444);
+var certs_1 = __webpack_require__(443);
exports.CA_CERT_PATH = certs_1.CA_CERT_PATH;
exports.ES_KEY_PATH = certs_1.ES_KEY_PATH;
exports.ES_CERT_PATH = certs_1.ES_CERT_PATH;
@@ -4505,7 +4505,7 @@ exports.KBN_KEY_PATH = certs_1.KBN_KEY_PATH;
exports.KBN_CERT_PATH = certs_1.KBN_CERT_PATH;
exports.KBN_P12_PATH = certs_1.KBN_P12_PATH;
exports.KBN_P12_PASSWORD = certs_1.KBN_P12_PASSWORD;
-var run_1 = __webpack_require__(445);
+var run_1 = __webpack_require__(444);
exports.run = run_1.run;
exports.createFailError = run_1.createFailError;
exports.createFlagError = run_1.createFlagError;
@@ -4513,9 +4513,9 @@ exports.combineErrors = run_1.combineErrors;
exports.isFailError = run_1.isFailError;
var repo_root_1 = __webpack_require__(421);
exports.REPO_ROOT = repo_root_1.REPO_ROOT;
-var kbn_client_1 = __webpack_require__(450);
+var kbn_client_1 = __webpack_require__(449);
exports.KbnClient = kbn_client_1.KbnClient;
-tslib_1.__exportStar(__webpack_require__(492), exports);
+tslib_1.__exportStar(__webpack_require__(491), exports);
/***/ }),
@@ -38173,17 +38173,11 @@ Object.defineProperty(exports, "__esModule", {
exports.codeFrameColumns = codeFrameColumns;
exports.default = _default;
-function _highlight() {
- const data = _interopRequireWildcard(__webpack_require__(434));
+var _highlight = _interopRequireWildcard(__webpack_require__(434));
- _highlight = function () {
- return data;
- };
+function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
+function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
let deprecationWarningShown = false;
@@ -38202,7 +38196,7 @@ function getMarkerLines(loc, source, opts) {
column: 0,
line: -1
}, loc.start);
- const endLoc = Object.assign({}, startLoc, loc.end);
+ const endLoc = Object.assign({}, startLoc, {}, loc.end);
const {
linesAbove = 2,
linesBelow = 3
@@ -38261,8 +38255,8 @@ function getMarkerLines(loc, source, opts) {
}
function codeFrameColumns(rawLines, loc, opts = {}) {
- const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight().shouldHighlight)(opts);
- const chalk = (0, _highlight().getChalk)(opts);
+ const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
+ const chalk = (0, _highlight.getChalk)(opts);
const defs = getDefs(chalk);
const maybeHighlight = (chalkFn, string) => {
@@ -38277,7 +38271,7 @@ function codeFrameColumns(rawLines, loc, opts = {}) {
} = getMarkerLines(loc, lines, opts);
const hasColumns = loc.start && typeof loc.start.column === "number";
const numberMaxWidth = String(end).length;
- const highlightedLines = highlighted ? (0, _highlight().default)(rawLines, opts) : rawLines;
+ const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines;
let frame = highlightedLines.split(NEWLINE).slice(start, end).map((line, index) => {
const number = start + 1 + index;
const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
@@ -38353,39 +38347,17 @@ exports.shouldHighlight = shouldHighlight;
exports.getChalk = getChalk;
exports.default = highlight;
-function _jsTokens() {
- const data = _interopRequireWildcard(__webpack_require__(435));
+var _jsTokens = _interopRequireWildcard(__webpack_require__(435));
- _jsTokens = function () {
- return data;
- };
-
- return data;
-}
+var _helperValidatorIdentifier = __webpack_require__(436);
-function _esutils() {
- const data = _interopRequireDefault(__webpack_require__(436));
-
- _esutils = function () {
- return data;
- };
-
- return data;
-}
-
-function _chalk() {
- const data = _interopRequireDefault(__webpack_require__(440));
-
- _chalk = function () {
- return data;
- };
-
- return data;
-}
+var _chalk = _interopRequireDefault(__webpack_require__(439));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
+function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
+
+function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function getDefs(chalk) {
return {
@@ -38407,10 +38379,10 @@ const BRACKET = /^[()[\]{}]$/;
function getTokenType(match) {
const [offset, text] = match.slice(-2);
- const token = (0, _jsTokens().matchToToken)(match);
+ const token = (0, _jsTokens.matchToToken)(match);
if (token.type === "name") {
- if (_esutils().default.keyword.isReservedWordES6(token.value)) {
+ if ((0, _helperValidatorIdentifier.isKeyword)(token.value) || (0, _helperValidatorIdentifier.isReservedWord)(token.value)) {
return "keyword";
}
@@ -38435,7 +38407,7 @@ function getTokenType(match) {
}
function highlightTokens(defs, text) {
- return text.replace(_jsTokens().default, function (...args) {
+ return text.replace(_jsTokens.default, function (...args) {
const type = getTokenType(args);
const colorize = defs[type];
@@ -38448,14 +38420,14 @@ function highlightTokens(defs, text) {
}
function shouldHighlight(options) {
- return _chalk().default.supportsColor || options.forceColor;
+ return _chalk.default.supportsColor || options.forceColor;
}
function getChalk(options) {
- let chalk = _chalk().default;
+ let chalk = _chalk.default;
if (options.forceColor) {
- chalk = new (_chalk().default.constructor)({
+ chalk = new _chalk.default.constructor({
enabled: true,
level: 1
});
@@ -38507,514 +38479,203 @@ exports.matchToToken = function(match) {
/* 436 */
/***/ (function(module, exports, __webpack_require__) {
-/*
- Copyright (C) 2013 Yusuke Suzuki
+
+ {
+ "datatable": {
+ "type": "datatable",
+ "columns": [
+ {
+ "name": "@timestamp",
+ "type": "date"
+ },
+ {
+ "name": "time",
+ "type": "date"
+ },
+ {
+ "name": "cost",
+ "type": "number"
+ },
+ {
+ "name": "username",
+ "type": "string"
+ },
+ {
+ "name": "price",
+ "type": "number"
+ },
+ {
+ "name": "age",
+ "type": "number"
+ },
+ {
+ "name": "country",
+ "type": "string"
+ },
+ {
+ "name": "state",
+ "type": "string"
+ },
+ {
+ "name": "project",
+ "type": "string"
+ },
+ {
+ "name": "percent_uptime",
+ "type": "number"
+ }
+ ],
+ "rows": [
+ {
+ "age": 63,
+ "cost": 32.15,
+ "country": "US",
+ "price": 53,
+ "project": "elasticsearch",
+ "state": "running",
+ "time": 1546334211208,
+ "@timestamp": 1546334211208,
+ "username": "aevans2e",
+ "percent_uptime": 0.83
+ },
+ {
+ "age": 68,
+ "cost": 20.52,
+ "country": "JP",
+ "price": 33,
+ "project": "beats",
+ "state": "done",
+ "time": 1546351551031,
+ "@timestamp": 1546351551031,
+ "username": "aking2c",
+ "percent_uptime": 0.9
+ },
+ {
+ "age": 57,
+ "cost": 21.15,
+ "country": "UK",
+ "price": 59,
+ "project": "apm",
+ "state": "running",
+ "time": 1546352631083,
+ "@timestamp": 1546352631083,
+ "username": "mmoore2o",
+ "percent_uptime": 0.96
+ },
+ {
+ "age": 73,
+ "cost": 35.64,
+ "country": "CN",
+ "price": 71,
+ "project": "machine-learning",
+ "state": "start",
+ "time": 1546402490956,
+ "@timestamp": 1546402490956,
+ "username": "wrodriguez1r",
+ "percent_uptime": 0.61
+ },
+ {
+ "age": 38,
+ "cost": 27.19,
+ "country": "TZ",
+ "price": 36,
+ "project": "kibana",
+ "state": "done",
+ "time": 1546467111351,
+ "@timestamp": 1546467111351,
+ "username": "wrodriguez1r",
+ "percent_uptime": 0.72
+ },
+ {
+ "age": 61,
+ "cost": 49.95,
+ "country": "NL",
+ "price": 65,
+ "project": "machine-learning",
+ "state": "start",
+ "time": 1546473771019,
+ "@timestamp": 1546473771019,
+ "username": "mmoore2o",
+ "percent_uptime": 0.72
+ },
+ {
+ "age": 53,
+ "cost": 27.36,
+ "country": "JP",
+ "price": 60,
+ "project": "x-pack",
+ "state": "running",
+ "time": 1546482171310,
+ "@timestamp": 1546482171310,
+ "username": "hcrawford2h",
+ "percent_uptime": 0.65
+ },
+ {
+ "age": 31,
+ "cost": 33.77,
+ "country": "AZ",
+ "price": 77,
+ "project": "kibana",
+ "state": "start",
+ "time": 1546493451206,
+ "@timestamp": 1546493451206,
+ "username": "aking2c",
+ "percent_uptime": 0.92
+ },
+ {
+ "age": 71,
+ "cost": 20.2,
+ "country": "TZ",
+ "price": 57,
+ "project": "swiftype",
+ "state": "running",
+ "time": 1546494651235,
+ "@timestamp": 1546494651235,
+ "username": "jlawson2p",
+ "percent_uptime": 0.59
+ },
+ {
+ "age": 54,
+ "cost": 36.65,
+ "country": "TZ",
+ "price": 72,
+ "project": "apm",
+ "state": "done",
+ "time": 1546498431195,
+ "@timestamp": 1546498431195,
+ "username": "aking2c",
+ "percent_uptime": 1
+ },
+ {
+ "age": 31,
+ "cost": 26.57,
+ "country": "BR",
+ "price": 48,
+ "project": "logstash",
+ "state": "done",
+ "time": 1546509170962,
+ "@timestamp": 1546509170962,
+ "username": "hcrawford2h",
+ "percent_uptime": 0.86
+ },
+ {
+ "age": 99,
+ "cost": 22.46,
+ "country": "TZ",
+ "price": 66,
+ "project": "swiftype",
+ "state": "done",
+ "time": 1546552371305,
+ "@timestamp": 1546552371305,
+ "username": "bmorris2n",
+ "percent_uptime": 0.76
+ },
+ {
+ "age": 87,
+ "cost": 21.54,
+ "country": "US",
+ "price": 43,
+ "project": "machine-learning",
+ "state": "start",
+ "time": 1546575231270,
+ "@timestamp": 1546575231270,
+ "username": "sadams1v",
+ "percent_uptime": 0.58
+ },
+ {
+ "age": 10,
+ "cost": 37.68,
+ "country": "CN",
+ "price": 36,
+ "project": "x-pack",
+ "state": "done",
+ "time": 1546678071026,
+ "@timestamp": 1546678071026,
+ "username": "jchavez2a",
+ "percent_uptime": 0.5
+ },
+ {
+ "age": 30,
+ "cost": 21.62,
+ "country": "DE",
+ "price": 78,
+ "project": "machine-learning",
+ "state": "running",
+ "time": 1546678911351,
+ "@timestamp": 1546678911351,
+ "username": "kbrooks23",
+ "percent_uptime": 1
+ },
+ {
+ "age": 49,
+ "cost": 26.46,
+ "country": "BR",
+ "price": 76,
+ "project": "swiftype",
+ "state": "start",
+ "time": 1546701050984,
+ "@timestamp": 1546701050984,
+ "username": "sadams1v",
+ "percent_uptime": 0.97
+ },
+ {
+ "age": 81,
+ "cost": 36.69,
+ "country": "TZ",
+ "price": 80,
+ "project": "logstash",
+ "state": "done",
+ "time": 1546702851232,
+ "@timestamp": 1546702851232,
+ "username": "smurphy1y",
+ "percent_uptime": 0.92
+ },
+ {
+ "age": 68,
+ "cost": 28.74,
+ "country": "DE",
+ "price": 56,
+ "project": "machine-learning",
+ "state": "running",
+ "time": 1546712451326,
+ "@timestamp": 1546712451326,
+ "username": "wmontgomery22",
+ "percent_uptime": 0.85
+ },
+ {
+ "age": 28,
+ "cost": 21.3,
+ "country": "SA",
+ "price": 72,
+ "project": "apm",
+ "state": "start",
+ "time": 1546728771027,
+ "@timestamp": 1546728771027,
+ "username": "hbowman1s",
+ "percent_uptime": 0.79
+ },
+ {
+ "age": 57,
+ "cost": 28.72,
+ "country": "UK",
+ "price": 34,
+ "project": "machine-learning",
+ "state": "done",
+ "time": 1546738610972,
+ "@timestamp": 1546738610972,
+ "username": "pjohnston2l",
+ "percent_uptime": 0.6
+ },
+ {
+ "age": 35,
+ "cost": 48.87,
+ "country": "US",
+ "price": 78,
+ "project": "apm",
+ "state": "running",
+ "time": 1546761591244,
+ "@timestamp": 1546761591244,
+ "username": "bfranklin27",
+ "percent_uptime": 0.52
+ },
+ {
+ "age": 89,
+ "cost": 29.48,
+ "country": "TZ",
+ "price": 69,
+ "project": "beats",
+ "state": "done",
+ "time": 1546791771183,
+ "@timestamp": 1546791771183,
+ "username": "ccarpenter2m",
+ "percent_uptime": 0.72
+ },
+ {
+ "age": 14,
+ "cost": 28.94,
+ "country": "BR",
+ "price": 49,
+ "project": "elasticsearch",
+ "state": "running",
+ "time": 1546886211287,
+ "@timestamp": 1546886211287,
+ "username": "pjohnston2l",
+ "percent_uptime": 0.75
+ },
+ {
+ "age": 39,
+ "cost": 27.16,
+ "country": "CN",
+ "price": 49,
+ "project": "elasticsearch",
+ "state": "start",
+ "time": 1546934631129,
+ "@timestamp": 1546934631129,
+ "username": "jlawson2p",
+ "percent_uptime": 0.7
+ },
+ {
+ "age": 84,
+ "cost": 35.6,
+ "country": "NL",
+ "price": 76,
+ "project": "swiftype",
+ "state": "running",
+ "time": 1546948431271,
+ "@timestamp": 1546948431271,
+ "username": "hbowman1s",
+ "percent_uptime": 0.72
+ },
+ {
+ "age": 54,
+ "cost": 27.08,
+ "country": "AZ",
+ "price": 49,
+ "project": "x-pack",
+ "state": "start",
+ "time": 1546986231297,
+ "@timestamp": 1546986231297,
+ "username": "krobinson2b",
+ "percent_uptime": 0.89
+ },
+ {
+ "age": 58,
+ "cost": 26.9,
+ "country": "DE",
+ "price": 43,
+ "project": "apm",
+ "state": "start",
+ "time": 1547041191338,
+ "@timestamp": 1547041191338,
+ "username": "hperez29",
+ "percent_uptime": 0.63
+ },
+ {
+ "age": 26,
+ "cost": 48.27,
+ "country": "DE",
+ "price": 36,
+ "project": "machine-learning",
+ "state": "start",
+ "time": 1547118111126,
+ "@timestamp": 1547118111126,
+ "username": "sadams1v",
+ "percent_uptime": 0.56
+ },
+ {
+ "age": 82,
+ "cost": 32.13,
+ "country": "SA",
+ "price": 79,
+ "project": "elasticsearch",
+ "state": "done",
+ "time": 1547159331136,
+ "@timestamp": 1547159331136,
+ "username": "dhicks28",
+ "percent_uptime": 0.71
+ },
+ {
+ "age": 26,
+ "cost": 20.59,
+ "country": "UK",
+ "price": 52,
+ "project": "kibana",
+ "state": "done",
+ "time": 1547174150962,
+ "@timestamp": 1547174150962,
+ "username": "greynolds2j",
+ "percent_uptime": 0.94
+ },
+ {
+ "age": 19,
+ "cost": 25.73,
+ "country": "RU",
+ "price": 45,
+ "project": "beats",
+ "state": "start",
+ "time": 1547205411225,
+ "@timestamp": 1547205411225,
+ "username": "sadams1v",
+ "percent_uptime": 0.6
+ },
+ {
+ "age": 53,
+ "cost": 46.19,
+ "country": "JP",
+ "price": 30,
+ "project": "apm",
+ "state": "done",
+ "time": 1547217171103,
+ "@timestamp": 1547217171103,
+ "username": "jlawson2p",
+ "percent_uptime": 0.54
+ },
+ {
+ "age": 76,
+ "cost": 40.52,
+ "country": "DE",
+ "price": 43,
+ "project": "machine-learning",
+ "state": "start",
+ "time": 1547261271103,
+ "@timestamp": 1547261271103,
+ "username": "athomas1w",
+ "percent_uptime": 0.86
+ },
+ {
+ "age": 31,
+ "cost": 27.62,
+ "country": "BR",
+ "price": 71,
+ "project": "machine-learning",
+ "state": "start",
+ "time": 1547262771238,
+ "@timestamp": 1547262771238,
+ "username": "jhanson1x",
+ "percent_uptime": 0.79
+ },
+ {
+ "age": 42,
+ "cost": 30.91,
+ "country": "US",
+ "price": 58,
+ "project": "beats",
+ "state": "running",
+ "time": 1547274291106,
+ "@timestamp": 1547274291106,
+ "username": "amartinez26",
+ "percent_uptime": 0.82
+ },
+ {
+ "age": 43,
+ "cost": 23.29,
+ "country": "UK",
+ "price": 41,
+ "project": "kibana",
+ "state": "start",
+ "time": 1547293010955,
+ "@timestamp": 1547293010955,
+ "username": "ediaz2d",
+ "percent_uptime": 0.93
+ },
+ {
+ "age": 45,
+ "cost": 21.18,
+ "country": "AZ",
+ "price": 62,
+ "project": "logstash",
+ "state": "done",
+ "time": 1547316050970,
+ "@timestamp": 1547316050970,
+ "username": "hperez29",
+ "percent_uptime": 0.75
+ },
+ {
+ "age": 39,
+ "cost": 29.66,
+ "country": "IN",
+ "price": 40,
+ "project": "swiftype",
+ "state": "start",
+ "time": 1547320011249,
+ "@timestamp": 1547320011249,
+ "username": "hcrawford2h",
+ "percent_uptime": 0.99
+ },
+ {
+ "age": 98,
+ "cost": 37.42,
+ "country": "US",
+ "price": 58,
+ "project": "beats",
+ "state": "done",
+ "time": 1547331051346,
+ "@timestamp": 1547331051346,
+ "username": "jmills21",
+ "percent_uptime": 0.51
+ },
+ {
+ "age": 96,
+ "cost": 40,
+ "country": "DE",
+ "price": 58,
+ "project": "apm",
+ "state": "start",
+ "time": 1547425371273,
+ "@timestamp": 1547425371273,
+ "username": "rsmith25",
+ "percent_uptime": 0.87
+ },
+ {
+ "age": 13,
+ "cost": 47.45,
+ "country": "AZ",
+ "price": 30,
+ "project": "apm",
+ "state": "done",
+ "time": 1547482911215,
+ "@timestamp": 1547482911215,
+ "username": "smurphy1y",
+ "percent_uptime": 0.83
+ },
+ {
+ "age": 100,
+ "cost": 24.36,
+ "country": "IN",
+ "price": 59,
+ "project": "apm",
+ "state": "done",
+ "time": 1547485611233,
+ "@timestamp": 1547485611233,
+ "username": "jlawson2p",
+ "percent_uptime": 0.64
+ },
+ {
+ "age": 10,
+ "cost": 27.59,
+ "country": "US",
+ "price": 53,
+ "project": "apm",
+ "state": "start",
+ "time": 1547518911272,
+ "@timestamp": 1547518911272,
+ "username": "wmontgomery22",
+ "percent_uptime": 0.93
+ },
+ {
+ "age": 83,
+ "cost": 37.05,
+ "country": "BR",
+ "price": 77,
+ "project": "logstash",
+ "state": "running",
+ "time": 1547521971300,
+ "@timestamp": 1547521971300,
+ "username": "hperez29",
+ "percent_uptime": 0.53
+ },
+ {
+ "age": 60,
+ "cost": 31.19,
+ "country": "CN",
+ "price": 69,
+ "project": "kibana",
+ "state": "running",
+ "time": 1547555751264,
+ "@timestamp": 1547555751264,
+ "username": "aevans2e",
+ "percent_uptime": 0.99
+ },
+ {
+ "age": 61,
+ "cost": 27.69,
+ "country": "JP",
+ "price": 39,
+ "project": "elasticsearch",
+ "state": "start",
+ "time": 1547564691226,
+ "@timestamp": 1547564691226,
+ "username": "greynolds2j",
+ "percent_uptime": 0.72
+ },
+ {
+ "age": 89,
+ "cost": 33.03,
+ "country": "JP",
+ "price": 75,
+ "project": "machine-learning",
+ "state": "done",
+ "time": 1547581671013,
+ "@timestamp": 1547581671013,
+ "username": "aevans2e",
+ "percent_uptime": 0.88
+ },
+ {
+ "age": 45,
+ "cost": 40.38,
+ "country": "JP",
+ "price": 76,
+ "project": "x-pack",
+ "state": "start",
+ "time": 1547582451365,
+ "@timestamp": 1547582451365,
+ "username": "wrodriguez1r",
+ "percent_uptime": 0.65
+ },
+ {
+ "age": 62,
+ "cost": 29.53,
+ "country": "AZ",
+ "price": 46,
+ "project": "machine-learning",
+ "state": "running",
+ "time": 1547598471186,
+ "@timestamp": 1547598471186,
+ "username": "aking2c",
+ "percent_uptime": 0.93
+ },
+ {
+ "age": 69,
+ "cost": 45.37,
+ "country": "AZ",
+ "price": 35,
+ "project": "machine-learning",
+ "state": "start",
+ "time": 1547599370965,
+ "@timestamp": 1547599370965,
+ "username": "jlawson2p",
+ "percent_uptime": 0.82
+ },
+ {
+ "age": 46,
+ "cost": 39.71,
+ "country": "UK",
+ "price": 39,
+ "project": "machine-learning",
+ "state": "done",
+ "time": 1547650491235,
+ "@timestamp": 1547650491235,
+ "username": "wmontgomery22",
+ "percent_uptime": 0.99
+ },
+ {
+ "age": 62,
+ "cost": 38.21,
+ "country": "SA",
+ "price": 31,
+ "project": "x-pack",
+ "state": "start",
+ "time": 1547667891326,
+ "@timestamp": 1547667891326,
+ "username": "greynolds2j",
+ "percent_uptime": 0.73
+ },
+ {
+ "age": 46,
+ "cost": 28.44,
+ "country": "TZ",
+ "price": 75,
+ "project": "apm",
+ "state": "running",
+ "time": 1547685471027,
+ "@timestamp": 1547685471027,
+ "username": "aking2c",
+ "percent_uptime": 0.7
+ },
+ {
+ "age": 85,
+ "cost": 30.5,
+ "country": "JP",
+ "price": 30,
+ "project": "beats",
+ "state": "running",
+ "time": 1547694951230,
+ "@timestamp": 1547694951230,
+ "username": "sjordan2k",
+ "percent_uptime": 0.5
+ },
+ {
+ "age": 51,
+ "cost": 27.1,
+ "country": "DE",
+ "price": 37,
+ "project": "kibana",
+ "state": "done",
+ "time": 1547699331145,
+ "@timestamp": 1547699331145,
+ "username": "wmontgomery22",
+ "percent_uptime": 0.79
+ },
+ {
+ "age": 84,
+ "cost": 36.47,
+ "country": "TZ",
+ "price": 43,
+ "project": "logstash",
+ "state": "start",
+ "time": 1547729571155,
+ "@timestamp": 1547729571155,
+ "username": "jchavez2a",
+ "percent_uptime": 0.67
+ },
+ {
+ "age": 66,
+ "cost": 37.74,
+ "country": "PH",
+ "price": 63,
+ "project": "x-pack",
+ "state": "start",
+ "time": 1547738331360,
+ "@timestamp": 1547738331360,
+ "username": "ccarpenter2m",
+ "percent_uptime": 0.74
+ },
+ {
+ "age": 87,
+ "cost": 49.07,
+ "country": "BR",
+ "price": 72,
+ "project": "machine-learning",
+ "state": "running",
+ "time": 1547742291143,
+ "@timestamp": 1547742291143,
+ "username": "hcrawford2h",
+ "percent_uptime": 0.99
+ },
+ {
+ "age": 92,
+ "cost": 31.7,
+ "country": "TZ",
+ "price": 55,
+ "project": "apm",
+ "state": "done",
+ "time": 1547772651030,
+ "@timestamp": 1547772651030,
+ "username": "jhanson1x",
+ "percent_uptime": 0.89
+ },
+ {
+ "age": 98,
+ "cost": 29.77,
+ "country": "US",
+ "price": 72,
+ "project": "logstash",
+ "state": "start",
+ "time": 1547786271226,
+ "@timestamp": 1547786271226,
+ "username": "wmontgomery22",
+ "percent_uptime": 0.66
+ },
+ {
+ "age": 10,
+ "cost": 20.49,
+ "country": "DE",
+ "price": 64,
+ "project": "machine-learning",
+ "state": "running",
+ "time": 1547871831230,
+ "@timestamp": 1547871831230,
+ "username": "dmarshall24",
+ "percent_uptime": 0.54
+ },
+ {
+ "age": 69,
+ "cost": 42.89,
+ "country": "AZ",
+ "price": 61,
+ "project": "kibana",
+ "state": "start",
+ "time": 1547902191247,
+ "@timestamp": 1547902191247,
+ "username": "sadams1v",
+ "percent_uptime": 0.8
+ },
+ {
+ "age": 42,
+ "cost": 32.31,
+ "country": "SA",
+ "price": 47,
+ "project": "swiftype",
+ "state": "running",
+ "time": 1547922591339,
+ "@timestamp": 1547922591339,
+ "username": "bmorris2n",
+ "percent_uptime": 0.65
+ },
+ {
+ "age": 100,
+ "cost": 30.42,
+ "country": "BR",
+ "price": 42,
+ "project": "kibana",
+ "state": "done",
+ "time": 1547926491261,
+ "@timestamp": 1547926491261,
+ "username": "jaustin1z",
+ "percent_uptime": 0.66
+ },
+ {
+ "age": 34,
+ "cost": 48.98,
+ "country": "DE",
+ "price": 70,
+ "project": "beats",
+ "state": "running",
+ "time": 1547958651364,
+ "@timestamp": 1547958651364,
+ "username": "jlawson2p",
+ "percent_uptime": 0.9
+ },
+ {
+ "age": 68,
+ "cost": 31.64,
+ "country": "NL",
+ "price": 47,
+ "project": "machine-learning",
+ "state": "done",
+ "time": 1547967231273,
+ "@timestamp": 1547967231273,
+ "username": "hbowman1s",
+ "percent_uptime": 0.55
+ },
+ {
+ "age": 91,
+ "cost": 46.82,
+ "country": "RU",
+ "price": 62,
+ "project": "swiftype",
+ "state": "done",
+ "time": 1547969691305,
+ "@timestamp": 1547969691305,
+ "username": "wmontgomery22",
+ "percent_uptime": 0.89
+ },
+ {
+ "age": 17,
+ "cost": 42.19,
+ "country": "IN",
+ "price": 79,
+ "project": "apm",
+ "state": "running",
+ "time": 1547974551309,
+ "@timestamp": 1547974551309,
+ "username": "hperez29",
+ "percent_uptime": 0.58
+ },
+ {
+ "age": 83,
+ "cost": 25.61,
+ "country": "CN",
+ "price": 54,
+ "project": "swiftype",
+ "state": "running",
+ "time": 1547977911240,
+ "@timestamp": 1547977911240,
+ "username": "aking2c",
+ "percent_uptime": 0.96
+ },
+ {
+ "age": 31,
+ "cost": 49.49,
+ "country": "JP",
+ "price": 58,
+ "project": "elasticsearch",
+ "state": "done",
+ "time": 1547984271197,
+ "@timestamp": 1547984271197,
+ "username": "dmarshall24",
+ "percent_uptime": 0.72
+ },
+ {
+ "age": 97,
+ "cost": 33.33,
+ "country": "PH",
+ "price": 34,
+ "project": "logstash",
+ "state": "start",
+ "time": 1547984631153,
+ "@timestamp": 1547984631153,
+ "username": "hbowman1s",
+ "percent_uptime": 0.56
+ },
+ {
+ "age": 67,
+ "cost": 31.1,
+ "country": "US",
+ "price": 73,
+ "project": "x-pack",
+ "state": "done",
+ "time": 1548001430974,
+ "@timestamp": 1548001430974,
+ "username": "ccarpenter2m",
+ "percent_uptime": 0.78
+ },
+ {
+ "age": 31,
+ "cost": 21.6,
+ "country": "PH",
+ "price": 73,
+ "project": "kibana",
+ "state": "running",
+ "time": 1548014391252,
+ "@timestamp": 1548014391252,
+ "username": "jmills21",
+ "percent_uptime": 0.59
+ },
+ {
+ "age": 57,
+ "cost": 25.84,
+ "country": "NL",
+ "price": 53,
+ "project": "swiftype",
+ "state": "start",
+ "time": 1548039051145,
+ "@timestamp": 1548039051145,
+ "username": "dhicks28",
+ "percent_uptime": 0.63
+ },
+ {
+ "age": 92,
+ "cost": 27.09,
+ "country": "CN",
+ "price": 34,
+ "project": "apm",
+ "state": "done",
+ "time": 1548052791195,
+ "@timestamp": 1548052791195,
+ "username": "dramirez2i",
+ "percent_uptime": 0.98
+ },
+ {
+ "age": 43,
+ "cost": 36.39,
+ "country": "US",
+ "price": 68,
+ "project": "elasticsearch",
+ "state": "done",
+ "time": 1548058071369,
+ "@timestamp": 1548058071369,
+ "username": "wmontgomery22",
+ "percent_uptime": 0.55
+ },
+ {
+ "age": 68,
+ "cost": 44.69,
+ "country": "JP",
+ "price": 66,
+ "project": "machine-learning",
+ "state": "running",
+ "time": 1548072471282,
+ "@timestamp": 1548072471282,
+ "username": "jmills21",
+ "percent_uptime": 0.68
+ },
+ {
+ "age": 47,
+ "cost": 25.34,
+ "country": "NL",
+ "price": 32,
+ "project": "kibana",
+ "state": "running",
+ "time": 1548075171245,
+ "@timestamp": 1548075171245,
+ "username": "wrodriguez1r",
+ "percent_uptime": 0.95
+ },
+ {
+ "age": 19,
+ "cost": 25.4,
+ "country": "SA",
+ "price": 42,
+ "project": "kibana",
+ "state": "start",
+ "time": 1548125331273,
+ "@timestamp": 1548125331273,
+ "username": "dhicks28",
+ "percent_uptime": 0.95
+ },
+ {
+ "age": 88,
+ "cost": 36.38,
+ "country": "TZ",
+ "price": 77,
+ "project": "x-pack",
+ "state": "start",
+ "time": 1548126771234,
+ "@timestamp": 1548126771234,
+ "username": "sjordan2k",
+ "percent_uptime": 0.84
+ },
+ {
+ "age": 36,
+ "cost": 28.62,
+ "country": "DE",
+ "price": 34,
+ "project": "kibana",
+ "state": "start",
+ "time": 1548128331153,
+ "@timestamp": 1548128331153,
+ "username": "dramirez2i",
+ "percent_uptime": 0.72
+ },
+ {
+ "age": 32,
+ "cost": 48.69,
+ "country": "AZ",
+ "price": 40,
+ "project": "swiftype",
+ "state": "start",
+ "time": 1548161391285,
+ "@timestamp": 1548161391285,
+ "username": "dramirez2i",
+ "percent_uptime": 0.69
+ },
+ {
+ "age": 53,
+ "cost": 44.25,
+ "country": "UK",
+ "price": 35,
+ "project": "machine-learning",
+ "state": "running",
+ "time": 1548192651185,
+ "@timestamp": 1548192651185,
+ "username": "wmontgomery22",
+ "percent_uptime": 0.68
+ },
+ {
+ "age": 37,
+ "cost": 32.67,
+ "country": "DE",
+ "price": 31,
+ "project": "kibana",
+ "state": "running",
+ "time": 1548218751137,
+ "@timestamp": 1548218751137,
+ "username": "ccarpenter2m",
+ "percent_uptime": 0.77
+ },
+ {
+ "age": 58,
+ "cost": 40.83,
+ "country": "PH",
+ "price": 61,
+ "project": "logstash",
+ "state": "running",
+ "time": 1548221151061,
+ "@timestamp": 1548221151061,
+ "username": "dmarshall24",
+ "percent_uptime": 0.88
+ },
+ {
+ "age": 45,
+ "cost": 42.97,
+ "country": "AZ",
+ "price": 44,
+ "project": "machine-learning",
+ "state": "running",
+ "time": 1548262131313,
+ "@timestamp": 1548262131313,
+ "username": "dmarshall24",
+ "percent_uptime": 0.64
+ },
+ {
+ "age": 21,
+ "cost": 23.16,
+ "country": "NL",
+ "price": 78,
+ "project": "machine-learning",
+ "state": "start",
+ "time": 1548265611336,
+ "@timestamp": 1548265611336,
+ "username": "jlawson2p",
+ "percent_uptime": 0.88
+ },
+ {
+ "age": 77,
+ "cost": 31.37,
+ "country": "RU",
+ "price": 52,
+ "project": "kibana",
+ "state": "start",
+ "time": 1548274611337,
+ "@timestamp": 1548274611337,
+ "username": "jhanson1x",
+ "percent_uptime": 0.68
+ },
+ {
+ "age": 34,
+ "cost": 41.41,
+ "country": "AZ",
+ "price": 52,
+ "project": "elasticsearch",
+ "state": "start",
+ "time": 1548276411368,
+ "@timestamp": 1548276411368,
+ "username": "agonzales1t",
+ "percent_uptime": 0.75
+ },
+ {
+ "age": 95,
+ "cost": 24.93,
+ "country": "AZ",
+ "price": 66,
+ "project": "logstash",
+ "state": "running",
+ "time": 1548301071035,
+ "@timestamp": 1548301071035,
+ "username": "phansen1q",
+ "percent_uptime": 0.75
+ },
+ {
+ "age": 12,
+ "cost": 32.33,
+ "country": "PH",
+ "price": 31,
+ "project": "elasticsearch",
+ "state": "start",
+ "time": 1548342711164,
+ "@timestamp": 1548342711164,
+ "username": "amartinez26",
+ "percent_uptime": 0.96
+ },
+ {
+ "age": 15,
+ "cost": 44.74,
+ "country": "IN",
+ "price": 41,
+ "project": "x-pack",
+ "state": "done",
+ "time": 1548372111228,
+ "@timestamp": 1548372111228,
+ "username": "rmartinez2g",
+ "percent_uptime": 0.51
+ },
+ {
+ "age": 83,
+ "cost": 29.03,
+ "country": "DE",
+ "price": 66,
+ "project": "machine-learning",
+ "state": "done",
+ "time": 1548417590970,
+ "@timestamp": 1548417590970,
+ "username": "agonzales1t",
+ "percent_uptime": 0.84
+ },
+ {
+ "age": 31,
+ "cost": 38.12,
+ "country": "PH",
+ "price": 35,
+ "project": "logstash",
+ "state": "done",
+ "time": 1548419931271,
+ "@timestamp": 1548419931271,
+ "username": "lperez2f",
+ "percent_uptime": 0.69
+ },
+ {
+ "age": 97,
+ "cost": 38.24,
+ "country": "RU",
+ "price": 32,
+ "project": "apm",
+ "state": "done",
+ "time": 1548474651117,
+ "@timestamp": 1548474651117,
+ "username": "sadams1v",
+ "percent_uptime": 0.77
+ },
+ {
+ "age": 87,
+ "cost": 34.16,
+ "country": "TZ",
+ "price": 38,
+ "project": "beats",
+ "state": "start",
+ "time": 1548575991155,
+ "@timestamp": 1548575991155,
+ "username": "bmorris2n",
+ "percent_uptime": 0.65
+ },
+ {
+ "age": 74,
+ "cost": 45.69,
+ "country": "AZ",
+ "price": 66,
+ "project": "elasticsearch",
+ "state": "start",
+ "time": 1548599391338,
+ "@timestamp": 1548599391338,
+ "username": "greynolds2j",
+ "percent_uptime": 0.98
+ },
+ {
+ "age": 83,
+ "cost": 33.43,
+ "country": "BR",
+ "price": 79,
+ "project": "elasticsearch",
+ "state": "done",
+ "time": 1548648171078,
+ "@timestamp": 1548648171078,
+ "username": "kbrooks23",
+ "percent_uptime": 0.57
+ },
+ {
+ "age": 89,
+ "cost": 41.87,
+ "country": "SA",
+ "price": 44,
+ "project": "apm",
+ "state": "start",
+ "time": 1548666111256,
+ "@timestamp": 1548666111256,
+ "username": "hcrawford2h",
+ "percent_uptime": 0.91
+ }
+ ]
+ },
+ "paginate": true,
+ "perPage": 10,
+ "showHeader": true
+}
+
+
+
+`;
+
+exports[`Storyshots components/Elements/Debug small payload 1`] = `
+
+
+
+ {
+ "datatable": {
+ "type": "datatable",
+ "columns": [
+ {
+ "name": "@timestamp",
+ "type": "date"
+ },
+ {
+ "name": "time",
+ "type": "date"
+ },
+ {
+ "name": "cost",
+ "type": "number"
+ },
+ {
+ "name": "username",
+ "type": "string"
+ },
+ {
+ "name": "price",
+ "type": "number"
+ },
+ {
+ "name": "age",
+ "type": "number"
+ },
+ {
+ "name": "country",
+ "type": "string"
+ },
+ {
+ "name": "state",
+ "type": "string"
+ },
+ {
+ "name": "project",
+ "type": "string"
+ },
+ {
+ "name": "percent_uptime",
+ "type": "number"
+ }
+ ],
+ "rows": [
+ {
+ "age": 63,
+ "cost": 32.15,
+ "country": "US",
+ "price": 53,
+ "project": "elasticsearch",
+ "state": "running",
+ "time": 1546334211208,
+ "@timestamp": 1546334211208,
+ "username": "aevans2e",
+ "percent_uptime": 0.83
+ },
+ {
+ "age": 68,
+ "cost": 20.52,
+ "country": "JP",
+ "price": 33,
+ "project": "beats",
+ "state": "done",
+ "time": 1546351551031,
+ "@timestamp": 1546351551031,
+ "username": "aking2c",
+ "percent_uptime": 0.9
+ },
+ {
+ "age": 57,
+ "cost": 21.15,
+ "country": "UK",
+ "price": 59,
+ "project": "apm",
+ "state": "running",
+ "time": 1546352631083,
+ "@timestamp": 1546352631083,
+ "username": "mmoore2o",
+ "percent_uptime": 0.96
+ },
+ {
+ "age": 73,
+ "cost": 35.64,
+ "country": "CN",
+ "price": 71,
+ "project": "machine-learning",
+ "state": "start",
+ "time": 1546402490956,
+ "@timestamp": 1546402490956,
+ "username": "wrodriguez1r",
+ "percent_uptime": 0.61
+ },
+ {
+ "age": 38,
+ "cost": 27.19,
+ "country": "TZ",
+ "price": 36,
+ "project": "kibana",
+ "state": "done",
+ "time": 1546467111351,
+ "@timestamp": 1546467111351,
+ "username": "wrodriguez1r",
+ "percent_uptime": 0.72
+ },
+ {
+ "age": 61,
+ "cost": 49.95,
+ "country": "NL",
+ "price": 65,
+ "project": "machine-learning",
+ "state": "start",
+ "time": 1546473771019,
+ "@timestamp": 1546473771019,
+ "username": "mmoore2o",
+ "percent_uptime": 0.72
+ },
+ {
+ "age": 53,
+ "cost": 27.36,
+ "country": "JP",
+ "price": 60,
+ "project": "x-pack",
+ "state": "running",
+ "time": 1546482171310,
+ "@timestamp": 1546482171310,
+ "username": "hcrawford2h",
+ "percent_uptime": 0.65
+ },
+ {
+ "age": 31,
+ "cost": 33.77,
+ "country": "AZ",
+ "price": 77,
+ "project": "kibana",
+ "state": "start",
+ "time": 1546493451206,
+ "@timestamp": 1546493451206,
+ "username": "aking2c",
+ "percent_uptime": 0.92
+ },
+ {
+ "age": 71,
+ "cost": 20.2,
+ "country": "TZ",
+ "price": 57,
+ "project": "swiftype",
+ "state": "running",
+ "time": 1546494651235,
+ "@timestamp": 1546494651235,
+ "username": "jlawson2p",
+ "percent_uptime": 0.59
+ },
+ {
+ "age": 54,
+ "cost": 36.65,
+ "country": "TZ",
+ "price": 72,
+ "project": "apm",
+ "state": "done",
+ "time": 1546498431195,
+ "@timestamp": 1546498431195,
+ "username": "aking2c",
+ "percent_uptime": 1
+ }
+ ]
+ },
+ "paginate": true,
+ "perPage": 10,
+ "showHeader": true
+}
+
+
+
+`;
diff --git a/x-pack/legacy/plugins/canvas/public/components/debug/__examples__/debug.examples.tsx b/x-pack/legacy/plugins/canvas/public/components/debug/__examples__/debug.examples.tsx
new file mode 100644
index 00000000000000..ade133a2e2d042
--- /dev/null
+++ b/x-pack/legacy/plugins/canvas/public/components/debug/__examples__/debug.examples.tsx
@@ -0,0 +1,14 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+import React from 'react';
+import { storiesOf } from '@storybook/react';
+import { Debug } from '../debug';
+import { largePayload, smallPayload } from './helpers';
+
+storiesOf('components/Elements/Debug', module)
+ .add('small payload', () => {JSON.stringify(payload, null, 2)}+
{JSON.stringify(payload, LimitRows, 2)}
+
{errorMessage}
-{errorMessage}
+