Publish `v5.30.0`

This commit is contained in:
jos 2019-03-02 10:51:50 +01:00
parent 03c833bad6
commit a4d704f792
9 changed files with 50 additions and 26 deletions

View File

@ -3,9 +3,9 @@
https://github.com/josdejong/jsoneditor
## not yet released, version 5.30.0
## 2019-03-02, version 5.30.0
- Implemented new feature `onCreateMenu` to customize the action menu.
- Implemented a new option `onCreateMenu` to customize the action menu.
Thanks @RobAley.

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.29.1
* @date 2019-02-20
* @version 5.30.0
* @date 2019-03-02
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
@ -258,7 +258,7 @@ return /******/ (function(modules) { // webpackBootstrap
'ajv', 'schema', 'schemaRefs','templates',
'ace', 'theme', 'autocomplete',
'onChange', 'onChangeJSON', 'onChangeText',
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate',
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate', 'onCreateMenu',
'onSelectionChange', 'onTextSelectionChange', 'onClassName',
'colorPicker', 'onColorPicker',
'timestampTag',
@ -3156,6 +3156,10 @@ return /******/ (function(modules) { // webpackBootstrap
Node.onRemove(selectedNodes);
}
});
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
}
var menu = new ContextMenu(items, {close: onClose});
menu.show(anchor, this.frame);
@ -11525,6 +11529,10 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
}
var menu = new ContextMenu(items, {close: onClose});
menu.show(anchor, this.editor.frame);
};
@ -13657,6 +13665,10 @@ return /******/ (function(modules) { // webpackBootstrap
'submenu': appendSubmenu
}
];
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
}
var menu = new ContextMenu(items, {close: onClose});
menu.show(anchor, this.editor.content);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

18
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.29.1
* @date 2019-02-20
* @version 5.30.0
* @date 2019-03-02
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
@ -258,7 +258,7 @@ return /******/ (function(modules) { // webpackBootstrap
'ajv', 'schema', 'schemaRefs','templates',
'ace', 'theme', 'autocomplete',
'onChange', 'onChangeJSON', 'onChangeText',
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate',
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate', 'onCreateMenu',
'onSelectionChange', 'onTextSelectionChange', 'onClassName',
'colorPicker', 'onColorPicker',
'timestampTag',
@ -31798,6 +31798,10 @@ return /******/ (function(modules) { // webpackBootstrap
Node.onRemove(selectedNodes);
}
});
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
}
var menu = new ContextMenu(items, {close: onClose});
menu.show(anchor, this.frame);
@ -40167,6 +40171,10 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
}
var menu = new ContextMenu(items, {close: onClose});
menu.show(anchor, this.editor.frame);
};
@ -42299,6 +42307,10 @@ return /******/ (function(modules) { // webpackBootstrap
'submenu': appendSubmenu
}
];
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
}
var menu = new ContextMenu(items, {close: onClose});
menu.show(anchor, this.editor.content);

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.29.1",
"version": "5.30.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

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