Publish v5.32.5

This commit is contained in:
jos 2019-04-27 17:38:12 +02:00
parent a773d5cf8f
commit f005c437db
10 changed files with 30 additions and 29 deletions

View File

@ -3,10 +3,11 @@
https://github.com/josdejong/jsoneditor
## not yet released, version 5.32.5
## 2019-04-27, version 5.32.5
- Fixed a bug in the JMESPath query wizard which didn't correctly handle
selecting multiple fields.
- Fixed context menu not working when multiple nodes are selected.
## 2019-04-10, version 5.32.4

View File

@ -24,8 +24,8 @@
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
*
* @author Jos de Jong, <wjosdejong@gmail.com>
* @version 5.32.4
* @date 2019-04-10
* @version 5.32.5
* @date 2019-04-27
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
@ -3148,8 +3148,8 @@ return /******/ (function(modules) { // webpackBootstrap
}
});
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
if (this.options.onCreateMenu) {
items = this.options.onCreateMenu(items, { path : node.getPath() });
}
var menu = new ContextMenu(items, {close: onClose});
@ -15048,14 +15048,14 @@ return /******/ (function(modules) { // webpackBootstrap
}
if (values.length === 1) {
query.value += '.' + selectedValue;
query.value += '.' + values[0];
}
else if (values.length > 1) {
query.value += '.{' +
values.map(function (value) {
var parts = value.split('.');
var last = parts[parts.length - 1];
return last + ': ' + selectedValue;
return last + ': ' + value;
}).join(', ') +
'}';
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

12
dist/jsoneditor.js vendored
View File

@ -24,8 +24,8 @@
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
*
* @author Jos de Jong, <wjosdejong@gmail.com>
* @version 5.32.4
* @date 2019-04-10
* @version 5.32.5
* @date 2019-04-27
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
@ -31790,8 +31790,8 @@ return /******/ (function(modules) { // webpackBootstrap
}
});
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
if (this.options.onCreateMenu) {
items = this.options.onCreateMenu(items, { path : node.getPath() });
}
var menu = new ContextMenu(items, {close: onClose});
@ -43690,14 +43690,14 @@ return /******/ (function(modules) { // webpackBootstrap
}
if (values.length === 1) {
query.value += '.' + selectedValue;
query.value += '.' + values[0];
}
else if (values.length > 1) {
query.value += '.{' +
values.map(function (value) {
var parts = value.split('.');
var last = parts[parts.length - 1];
return last + ': ' + selectedValue;
return last + ': ' + value;
}).join(', ') +
'}';
}

2
dist/jsoneditor.map vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "jsoneditor",
"version": "5.32.4",
"version": "5.32.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "jsoneditor",
"version": "5.32.4",
"version": "5.32.5",
"main": "./index",
"description": "A web-based tool to view, edit, format, and validate JSON",
"tags": [

View File

@ -1685,8 +1685,8 @@ treemode.showContextMenu = function (anchor, onClose) {
}
});
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
if (this.options.onCreateMenu) {
items = this.options.onCreateMenu(items, { path : node.getPath() });
}
var menu = new ContextMenu(items, {close: onClose});