@splunk/dashboard-definition
Advanced tools
Comparing version 19.0.0 to 19.1.0
@@ -95,3 +95,4 @@ /*! | ||
/* 0 */, | ||
/* 1 */ | ||
/* 1 */, | ||
/* 2 */ | ||
/***/ (function(module, exports) { | ||
@@ -102,3 +103,2 @@ | ||
/***/ }), | ||
/* 2 */, | ||
/* 3 */ | ||
@@ -137,3 +137,3 @@ /***/ (function(module, exports) { | ||
/* harmony import */ var _babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_keys__WEBPACK_IMPORTED_MODULE_0__); | ||
/* harmony import */ var _babel_runtime_corejs2_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1); | ||
/* harmony import */ var _babel_runtime_corejs2_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2); | ||
/* harmony import */ var _babel_runtime_corejs2_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__); | ||
@@ -339,2 +339,3 @@ /* harmony import */ var lodash_each__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5); | ||
* @param {Object} componentDict {type : optionSchema} | ||
* @param {Boolean} [additionalProperties=true] allow extra properties in options object | ||
* @returns {array} allOf statement of if else statements | ||
@@ -344,2 +345,3 @@ */ | ||
var combineSchema = function combineSchema(componentDict) { | ||
var additionalProperties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; | ||
var allOfStatement = []; | ||
@@ -362,3 +364,3 @@ lodash_each__WEBPACK_IMPORTED_MODULE_2___default()(componentDict, function (optionSchema, type) { | ||
// TODO: Revisit additionalProperties to disallow unkown keys as a warning | ||
additionalProperties: true | ||
additionalProperties: additionalProperties | ||
} | ||
@@ -395,3 +397,3 @@ } | ||
var visualizationAllOfStatement = combineSchema(visualizationDict); | ||
var inputAllOfStatement = combineSchema(inputDict); | ||
var inputAllOfStatement = combineSchema(inputDict, false); | ||
var newSchema = defaultSchema; | ||
@@ -398,0 +400,0 @@ newSchema.$id = 'http://www.splunk.com/dashboard.newSchema.json'; |
@@ -6,3 +6,3 @@ { | ||
"author": "Splunk", | ||
"version": "19.0.0", | ||
"version": "19.1.0", | ||
"scripts": { | ||
@@ -28,3 +28,3 @@ "build": "NODE_ENV=production webpack --config ./webpack.config.js --bail", | ||
"@babel/core": "^7.5.5", | ||
"@splunk/dashboard-build-tools": "19.0.0", | ||
"@splunk/dashboard-build-tools": "19.1.0", | ||
"jest": "^25.1.0", | ||
@@ -31,0 +31,0 @@ "webpack": "^4.29.6", |
@@ -90,3 +90,3 @@ /*! | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 25); | ||
/******/ return __webpack_require__(__webpack_require__.s = 27); | ||
/******/ }) | ||
@@ -96,3 +96,3 @@ /************************************************************************/ | ||
/***/ 25: | ||
/***/ 27: | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
@@ -99,0 +99,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
208803
2229