Publish `v5.19.2`
This commit is contained in:
parent
46593c24c5
commit
ca86cb54bc
|
@ -5,7 +5,8 @@ https://github.com/josdejong/jsoneditor
|
|||
|
||||
## 2018-08-02, version 5.19.2
|
||||
|
||||
- Fixed #558: scrolling to search results broken (regression since v5.19.1).
|
||||
- Fixed #558: scrolling to search results and automatically scrolling up/down
|
||||
when dragging an item broken (regression since v5.19.1).
|
||||
|
||||
|
||||
## 2018-07-28, version 5.19.1
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
* Copyright (c) 2011-2017 Jos de Jong, http://jsoneditoronline.org
|
||||
*
|
||||
* @author Jos de Jong, <wjosdejong@gmail.com>
|
||||
* @version 5.19.1
|
||||
* @date 2018-07-28
|
||||
* @version 5.19.2
|
||||
* @date 2018-08-02
|
||||
*/
|
||||
(function webpackUniversalModuleDefinition(root, factory) {
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
|
@ -772,7 +772,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
* - to the first button in the top menu
|
||||
*/
|
||||
treemode.focus = function () {
|
||||
var input = this.content.querySelector('[contenteditable=true]');
|
||||
var input = this.scrollableContent.querySelector('[contenteditable=true]');
|
||||
if (input) {
|
||||
input.focus();
|
||||
}
|
||||
|
@ -1005,7 +1005,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
*/
|
||||
treemode.startAutoScroll = function (mouseY) {
|
||||
var me = this;
|
||||
var content = this.content;
|
||||
var content = this.scrollableContent;
|
||||
var top = util.getAbsoluteTop(content);
|
||||
var height = content.clientHeight;
|
||||
var bottom = top + height;
|
||||
|
@ -1069,9 +1069,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
return;
|
||||
}
|
||||
|
||||
if ('scrollTop' in selection && this.content) {
|
||||
if ('scrollTop' in selection && this.scrollableContent) {
|
||||
// TODO: animated scroll
|
||||
this.content.scrollTop = selection.scrollTop;
|
||||
this.scrollableContent.scrollTop = selection.scrollTop;
|
||||
}
|
||||
if (selection.nodes) {
|
||||
// multi-select
|
||||
|
@ -1104,7 +1104,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
dom: this.focusTarget,
|
||||
range: range,
|
||||
nodes: this.multiselection.nodes.slice(0),
|
||||
scrollTop: this.content ? this.content.scrollTop : 0
|
||||
scrollTop: this.scrollableContent ? this.scrollableContent.scrollTop : 0
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1118,7 +1118,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
* when not.
|
||||
*/
|
||||
treemode.scrollTo = function (top, callback) {
|
||||
var content = this.content;
|
||||
var content = this.scrollableContent;
|
||||
if (content) {
|
||||
var editor = this;
|
||||
// cancel any running animation
|
||||
|
@ -1421,13 +1421,13 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
|
||||
/**
|
||||
* Update TreePath components
|
||||
* @param {Array<Node>} pathNodes list of nodes in path from root to selection
|
||||
* @param {Array<Node>} pathNodes list of nodes in path from root to selection
|
||||
* @private
|
||||
*/
|
||||
treemode._updateTreePath = function (pathNodes) {
|
||||
if (pathNodes && pathNodes.length) {
|
||||
util.removeClassName(this.navBar, 'nav-bar-empty');
|
||||
|
||||
|
||||
var pathObjs = [];
|
||||
pathNodes.forEach(function (node) {
|
||||
var pathObj = {
|
||||
|
@ -1623,7 +1623,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
/**
|
||||
* deselect currently selected nodes
|
||||
* @param {boolean} [clearStartAndEnd=false] If true, the `start` and `end`
|
||||
* state is cleared too.
|
||||
* state is cleared too.
|
||||
*/
|
||||
treemode.deselect = function (clearStartAndEnd) {
|
||||
var selectionChanged = !!this.multiselection.nodes.length;
|
||||
|
@ -1810,7 +1810,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
this.autocomplete.hideDropDown();
|
||||
|
||||
}.bind(this, node, event.target), 50);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (handled) {
|
||||
|
|
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-2017 Jos de Jong, http://jsoneditoronline.org
|
||||
*
|
||||
* @author Jos de Jong, <wjosdejong@gmail.com>
|
||||
* @version 5.19.1
|
||||
* @date 2018-07-28
|
||||
* @version 5.19.2
|
||||
* @date 2018-08-02
|
||||
*/
|
||||
(function webpackUniversalModuleDefinition(root, factory) {
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
|
@ -8330,7 +8330,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
* - to the first button in the top menu
|
||||
*/
|
||||
treemode.focus = function () {
|
||||
var input = this.content.querySelector('[contenteditable=true]');
|
||||
var input = this.scrollableContent.querySelector('[contenteditable=true]');
|
||||
if (input) {
|
||||
input.focus();
|
||||
}
|
||||
|
@ -8563,7 +8563,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
*/
|
||||
treemode.startAutoScroll = function (mouseY) {
|
||||
var me = this;
|
||||
var content = this.content;
|
||||
var content = this.scrollableContent;
|
||||
var top = util.getAbsoluteTop(content);
|
||||
var height = content.clientHeight;
|
||||
var bottom = top + height;
|
||||
|
@ -8627,9 +8627,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
return;
|
||||
}
|
||||
|
||||
if ('scrollTop' in selection && this.content) {
|
||||
if ('scrollTop' in selection && this.scrollableContent) {
|
||||
// TODO: animated scroll
|
||||
this.content.scrollTop = selection.scrollTop;
|
||||
this.scrollableContent.scrollTop = selection.scrollTop;
|
||||
}
|
||||
if (selection.nodes) {
|
||||
// multi-select
|
||||
|
@ -8662,7 +8662,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
dom: this.focusTarget,
|
||||
range: range,
|
||||
nodes: this.multiselection.nodes.slice(0),
|
||||
scrollTop: this.content ? this.content.scrollTop : 0
|
||||
scrollTop: this.scrollableContent ? this.scrollableContent.scrollTop : 0
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -8676,7 +8676,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
* when not.
|
||||
*/
|
||||
treemode.scrollTo = function (top, callback) {
|
||||
var content = this.content;
|
||||
var content = this.scrollableContent;
|
||||
if (content) {
|
||||
var editor = this;
|
||||
// cancel any running animation
|
||||
|
@ -8979,13 +8979,13 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
|
||||
/**
|
||||
* Update TreePath components
|
||||
* @param {Array<Node>} pathNodes list of nodes in path from root to selection
|
||||
* @param {Array<Node>} pathNodes list of nodes in path from root to selection
|
||||
* @private
|
||||
*/
|
||||
treemode._updateTreePath = function (pathNodes) {
|
||||
if (pathNodes && pathNodes.length) {
|
||||
util.removeClassName(this.navBar, 'nav-bar-empty');
|
||||
|
||||
|
||||
var pathObjs = [];
|
||||
pathNodes.forEach(function (node) {
|
||||
var pathObj = {
|
||||
|
@ -9181,7 +9181,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
/**
|
||||
* deselect currently selected nodes
|
||||
* @param {boolean} [clearStartAndEnd=false] If true, the `start` and `end`
|
||||
* state is cleared too.
|
||||
* state is cleared too.
|
||||
*/
|
||||
treemode.deselect = function (clearStartAndEnd) {
|
||||
var selectionChanged = !!this.multiselection.nodes.length;
|
||||
|
@ -9368,7 +9368,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
this.autocomplete.hideDropDown();
|
||||
|
||||
}.bind(this, node, event.target), 50);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (handled) {
|
||||
|
|
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",
|
||||
"version": "5.19.1",
|
||||
"version": "5.19.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "jsoneditor",
|
||||
"version": "5.19.1",
|
||||
"version": "5.19.2",
|
||||
"main": "./index",
|
||||
"description": "A web-based tool to view, edit, format, and validate JSON",
|
||||
"tags": [
|
||||
|
|
Loading…
Reference in New Issue