@splunk/dashboard-definition
Advanced tools
Comparing version 18.1.1 to 18.2.0
@@ -336,6 +336,6 @@ /*! | ||
* @method createMonacoSchema | ||
* @param {object} config | ||
* @param {object} config.newSchema | ||
* @param {string} config.modelUri | ||
* @returns {object} monaco schema | ||
* @param {Object} config | ||
* @param {Object} config.newSchema | ||
* @param {String} config.modelUri | ||
* @returns {Object} monaco schema | ||
*/ | ||
@@ -358,3 +358,3 @@ | ||
* @method combineSchema | ||
* @param {object} componentDict {type : optionSchema} | ||
* @param {Object} componentDict {type : optionSchema} | ||
* @returns {array} allOf statement of if else statements | ||
@@ -393,8 +393,8 @@ */ | ||
* @method createSchemaBasedOnDicts | ||
* @param {object} config | ||
* @param {object} layoutDict {type : optionSchema} | ||
* @param {object} dataSourceDict {type : optionSchema} | ||
* @param {object} visualizationDict {type : optionSchema} | ||
* @param {object} inputDict {type : optionSchema} | ||
* @returns {object} schema | ||
* @param {Object} config | ||
* @param {Object} layoutDict {type : optionSchema} | ||
* @param {Object} dataSourceDict {type : optionSchema} | ||
* @param {Object} visualizationDict {type : optionSchema} | ||
* @param {Object} inputDict {type : optionSchema} | ||
* @returns {Object} schema | ||
*/ | ||
@@ -461,4 +461,4 @@ | ||
* @method createComponentDict | ||
* @param {object} preset | ||
* @returns {object} component object {type : optionSchema} | ||
* @param {Object} preset | ||
* @returns {Object} component object {type : optionSchema} | ||
*/ | ||
@@ -476,4 +476,4 @@ | ||
* @method createSchemaBasedOnPresets | ||
* @param {object} presets combined with all custom presets | ||
* @returns {object} schema | ||
* @param {Object} presets combined with all custom presets | ||
* @returns {Object} schema | ||
*/ | ||
@@ -666,7 +666,7 @@ | ||
* @private | ||
* @param {object} def dashboard definition json object | ||
* @param {Object} def dashboard definition json object | ||
*/ | ||
var normalizeLayoutStructure = function normalizeLayoutStructure(def) { | ||
// in absolute layout the layer is decided by the order in the array, so we need a temporaty solution to reflect this info. | ||
// in absolute layout the layer is decided by the order in the array, so we need a temporary solution to reflect this info. | ||
var structureWithExplicitLayers = def.layout.structure.map(function (viz, index) { | ||
@@ -690,3 +690,4 @@ return _babel_runtime_corejs2_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_7___default()({}, viz, { | ||
options: {}, | ||
structure: [] | ||
structure: [], | ||
globalInputs: [] | ||
} | ||
@@ -842,2 +843,7 @@ }; | ||
try { | ||
// Prevent warnings when adding a new schema with the same id | ||
if (ajv.getSchema(newSchema.$id)) { | ||
ajv.removeSchema(newSchema.$id); | ||
} | ||
this.validateDefinition = ajv.compile(newSchema); | ||
@@ -1120,3 +1126,3 @@ } catch (error) { | ||
* @method updateLayoutType | ||
* @param {String} type Layout type, e.g. grid, absolute, rowcolumn | ||
* @param {String} type Layout type, e.g. grid, absolute | ||
* @returns {DashboardDefinition} | ||
@@ -1421,3 +1427,3 @@ */ | ||
* @param {*} dataSourceType dataSource binding type such as primary, annotation | ||
* @param {*} dataSourceDefinition dataSoure definition | ||
* @param {*} dataSourceDefinition dataSource definition | ||
*/ | ||
@@ -1424,0 +1430,0 @@ |
@@ -311,6 +311,6 @@ /*! | ||
* @method createMonacoSchema | ||
* @param {object} config | ||
* @param {object} config.newSchema | ||
* @param {string} config.modelUri | ||
* @returns {object} monaco schema | ||
* @param {Object} config | ||
* @param {Object} config.newSchema | ||
* @param {String} config.modelUri | ||
* @returns {Object} monaco schema | ||
*/ | ||
@@ -333,3 +333,3 @@ | ||
* @method combineSchema | ||
* @param {object} componentDict {type : optionSchema} | ||
* @param {Object} componentDict {type : optionSchema} | ||
* @returns {array} allOf statement of if else statements | ||
@@ -368,8 +368,8 @@ */ | ||
* @method createSchemaBasedOnDicts | ||
* @param {object} config | ||
* @param {object} layoutDict {type : optionSchema} | ||
* @param {object} dataSourceDict {type : optionSchema} | ||
* @param {object} visualizationDict {type : optionSchema} | ||
* @param {object} inputDict {type : optionSchema} | ||
* @returns {object} schema | ||
* @param {Object} config | ||
* @param {Object} layoutDict {type : optionSchema} | ||
* @param {Object} dataSourceDict {type : optionSchema} | ||
* @param {Object} visualizationDict {type : optionSchema} | ||
* @param {Object} inputDict {type : optionSchema} | ||
* @returns {Object} schema | ||
*/ | ||
@@ -436,4 +436,4 @@ | ||
* @method createComponentDict | ||
* @param {object} preset | ||
* @returns {object} component object {type : optionSchema} | ||
* @param {Object} preset | ||
* @returns {Object} component object {type : optionSchema} | ||
*/ | ||
@@ -451,4 +451,4 @@ | ||
* @method createSchemaBasedOnPresets | ||
* @param {object} presets combined with all custom presets | ||
* @returns {object} schema | ||
* @param {Object} presets combined with all custom presets | ||
* @returns {Object} schema | ||
*/ | ||
@@ -455,0 +455,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"author": "Splunk", | ||
"version": "18.1.1", | ||
"version": "18.2.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": "18.1.1", | ||
"@splunk/dashboard-build-tools": "18.2.0", | ||
"jest": "^25.1.0", | ||
@@ -31,0 +31,0 @@ "webpack": "^4.29.6", |
@@ -104,4 +104,4 @@ /*! | ||
* @method createTestSchema | ||
* @param {object} optionsSchema | ||
* @returns {object} schema for validation | ||
* @param {Object} optionsSchema | ||
* @returns {Object} schema for validation | ||
*/ | ||
@@ -108,0 +108,0 @@ var createTestSchema = function createTestSchema(optionsSchema) { |
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
184215
1947