Skip to content

Commit a4d704f

Browse files
committed
Publish v5.30.0
1 parent 03c833b commit a4d704f

9 files changed

+50
-26
lines changed

HISTORY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
https://github.com/josdejong/jsoneditor
44

55

6-
## not yet released, version 5.30.0
6+
## 2019-03-02, version 5.30.0
77

8-
- Implemented new feature `onCreateMenu` to customize the action menu.
8+
- Implemented a new option `onCreateMenu` to customize the action menu.
99
Thanks @RobAley.
1010

1111

dist/jsoneditor-minimalist.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
2525
*
2626
* @author Jos de Jong, <wjosdejong@gmail.com>
27-
* @version 5.29.1
28-
* @date 2019-02-20
27+
* @version 5.30.0
28+
* @date 2019-03-02
2929
*/
3030
(function webpackUniversalModuleDefinition(root, factory) {
3131
if(typeof exports === 'object' && typeof module === 'object')
@@ -258,7 +258,7 @@ return /******/ (function(modules) { // webpackBootstrap
258258
'ajv', 'schema', 'schemaRefs','templates',
259259
'ace', 'theme', 'autocomplete',
260260
'onChange', 'onChangeJSON', 'onChangeText',
261-
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate',
261+
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate', 'onCreateMenu',
262262
'onSelectionChange', 'onTextSelectionChange', 'onClassName',
263263
'colorPicker', 'onColorPicker',
264264
'timestampTag',
@@ -3156,6 +3156,10 @@ return /******/ (function(modules) { // webpackBootstrap
31563156
Node.onRemove(selectedNodes);
31573157
}
31583158
});
3159+
3160+
if (this.editor.options.onCreateMenu) {
3161+
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
3162+
}
31593163

31603164
var menu = new ContextMenu(items, {close: onClose});
31613165
menu.show(anchor, this.frame);
@@ -11525,6 +11529,10 @@ return /******/ (function(modules) { // webpackBootstrap
1152511529
}
1152611530
}
1152711531

11532+
if (this.editor.options.onCreateMenu) {
11533+
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
11534+
}
11535+
1152811536
var menu = new ContextMenu(items, {close: onClose});
1152911537
menu.show(anchor, this.editor.frame);
1153011538
};
@@ -13657,6 +13665,10 @@ return /******/ (function(modules) { // webpackBootstrap
1365713665
'submenu': appendSubmenu
1365813666
}
1365913667
];
13668+
13669+
if (this.editor.options.onCreateMenu) {
13670+
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
13671+
}
1366013672

1366113673
var menu = new ContextMenu(items, {close: onClose});
1366213674
menu.show(anchor, this.editor.content);

dist/jsoneditor-minimalist.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jsoneditor-minimalist.min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jsoneditor.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
2525
*
2626
* @author Jos de Jong, <wjosdejong@gmail.com>
27-
* @version 5.29.1
28-
* @date 2019-02-20
27+
* @version 5.30.0
28+
* @date 2019-03-02
2929
*/
3030
(function webpackUniversalModuleDefinition(root, factory) {
3131
if(typeof exports === 'object' && typeof module === 'object')
@@ -258,7 +258,7 @@ return /******/ (function(modules) { // webpackBootstrap
258258
'ajv', 'schema', 'schemaRefs','templates',
259259
'ace', 'theme', 'autocomplete',
260260
'onChange', 'onChangeJSON', 'onChangeText',
261-
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate',
261+
'onEditable', 'onError', 'onEvent', 'onModeChange', 'onNodeName', 'onValidate', 'onCreateMenu',
262262
'onSelectionChange', 'onTextSelectionChange', 'onClassName',
263263
'colorPicker', 'onColorPicker',
264264
'timestampTag',
@@ -31798,6 +31798,10 @@ return /******/ (function(modules) { // webpackBootstrap
3179831798
Node.onRemove(selectedNodes);
3179931799
}
3180031800
});
31801+
31802+
if (this.editor.options.onCreateMenu) {
31803+
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
31804+
}
3180131805

3180231806
var menu = new ContextMenu(items, {close: onClose});
3180331807
menu.show(anchor, this.frame);
@@ -40167,6 +40171,10 @@ return /******/ (function(modules) { // webpackBootstrap
4016740171
}
4016840172
}
4016940173

40174+
if (this.editor.options.onCreateMenu) {
40175+
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
40176+
}
40177+
4017040178
var menu = new ContextMenu(items, {close: onClose});
4017140179
menu.show(anchor, this.editor.frame);
4017240180
};
@@ -42299,6 +42307,10 @@ return /******/ (function(modules) { // webpackBootstrap
4229942307
'submenu': appendSubmenu
4230042308
}
4230142309
];
42310+
42311+
if (this.editor.options.onCreateMenu) {
42312+
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
42313+
}
4230242314

4230342315
var menu = new ContextMenu(items, {close: onClose});
4230442316
menu.show(anchor, this.editor.content);

dist/jsoneditor.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jsoneditor.min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsoneditor",
3-
"version": "5.29.1",
3+
"version": "5.30.0",
44
"main": "./index",
55
"description": "A web-based tool to view, edit, format, and validate JSON",
66
"tags": [

0 commit comments

Comments
 (0)