Publish `v5.30.0`
This commit is contained in:
parent
03c833bad6
commit
a4d704f792
|
@ -3,9 +3,9 @@
|
||||||
https://github.com/josdejong/jsoneditor
|
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.
|
Thanks @RobAley.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
|
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
|
||||||
*
|
*
|
||||||
* @author Jos de Jong, <wjosdejong@gmail.com>
|
* @author Jos de Jong, <wjosdejong@gmail.com>
|
||||||
* @version 5.29.1
|
* @version 5.30.0
|
||||||
* @date 2019-02-20
|
* @date 2019-03-02
|
||||||
*/
|
*/
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
@ -258,7 +258,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
'ajv', 'schema', 'schemaRefs','templates',
|
'ajv', 'schema', 'schemaRefs','templates',
|
||||||
'ace', 'theme', 'autocomplete',
|
'ace', 'theme', 'autocomplete',
|
||||||
'onChange', 'onChangeJSON', 'onChangeText',
|
'onChange', 'onChangeJSON', 'onChangeText',
|
||||||
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate',
|
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate', 'onCreateMenu',
|
||||||
'onSelectionChange', 'onTextSelectionChange', 'onClassName',
|
'onSelectionChange', 'onTextSelectionChange', 'onClassName',
|
||||||
'colorPicker', 'onColorPicker',
|
'colorPicker', 'onColorPicker',
|
||||||
'timestampTag',
|
'timestampTag',
|
||||||
|
@ -3157,6 +3157,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});
|
var menu = new ContextMenu(items, {close: onClose});
|
||||||
menu.show(anchor, this.frame);
|
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});
|
var menu = new ContextMenu(items, {close: onClose});
|
||||||
menu.show(anchor, this.editor.frame);
|
menu.show(anchor, this.editor.frame);
|
||||||
};
|
};
|
||||||
|
@ -13658,6 +13666,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});
|
var menu = new ContextMenu(items, {close: onClose});
|
||||||
menu.show(anchor, this.editor.content);
|
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
|
@ -24,8 +24,8 @@
|
||||||
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
|
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
|
||||||
*
|
*
|
||||||
* @author Jos de Jong, <wjosdejong@gmail.com>
|
* @author Jos de Jong, <wjosdejong@gmail.com>
|
||||||
* @version 5.29.1
|
* @version 5.30.0
|
||||||
* @date 2019-02-20
|
* @date 2019-03-02
|
||||||
*/
|
*/
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
@ -258,7 +258,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
'ajv', 'schema', 'schemaRefs','templates',
|
'ajv', 'schema', 'schemaRefs','templates',
|
||||||
'ace', 'theme', 'autocomplete',
|
'ace', 'theme', 'autocomplete',
|
||||||
'onChange', 'onChangeJSON', 'onChangeText',
|
'onChange', 'onChangeJSON', 'onChangeText',
|
||||||
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate',
|
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate', 'onCreateMenu',
|
||||||
'onSelectionChange', 'onTextSelectionChange', 'onClassName',
|
'onSelectionChange', 'onTextSelectionChange', 'onClassName',
|
||||||
'colorPicker', 'onColorPicker',
|
'colorPicker', 'onColorPicker',
|
||||||
'timestampTag',
|
'timestampTag',
|
||||||
|
@ -31799,6 +31799,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});
|
var menu = new ContextMenu(items, {close: onClose});
|
||||||
menu.show(anchor, this.frame);
|
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});
|
var menu = new ContextMenu(items, {close: onClose});
|
||||||
menu.show(anchor, this.editor.frame);
|
menu.show(anchor, this.editor.frame);
|
||||||
};
|
};
|
||||||
|
@ -42300,6 +42308,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});
|
var menu = new ContextMenu(items, {close: onClose});
|
||||||
menu.show(anchor, this.editor.content);
|
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
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "jsoneditor",
|
"name": "jsoneditor",
|
||||||
"version": "5.29.1",
|
"version": "5.30.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "jsoneditor",
|
"name": "jsoneditor",
|
||||||
"version": "5.29.1",
|
"version": "5.30.0",
|
||||||
"main": "./index",
|
"main": "./index",
|
||||||
"description": "A web-based tool to view, edit, format, and validate JSON",
|
"description": "A web-based tool to view, edit, format, and validate JSON",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
|
Loading…
Reference in New Issue