Publish `v5.28.1`

This commit is contained in:
jos 2019-01-22 20:48:08 +01:00
parent 3f9ea75f20
commit 21ae2180e7
11 changed files with 40 additions and 39 deletions

View File

@ -3,7 +3,7 @@
https://github.com/josdejong/jsoneditor https://github.com/josdejong/jsoneditor
## not yet released, version 5.28.1 ## 2019-01-22, version 5.28.1
- Fix #637: vertical white border left/right from the main menu in some - Fix #637: vertical white border left/right from the main menu in some
specific circumstances. specific circumstances.

View File

@ -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.28.0 * @version 5.28.1
* @date 2019-01-21 * @date 2019-01-22
*/ */
(function webpackUniversalModuleDefinition(root, factory) { (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object') if(typeof exports === 'object' && typeof module === 'object')
@ -6994,7 +6994,7 @@ return /******/ (function(modules) { // webpackBootstrap
this.editor = editor; this.editor = editor;
this.dom = {}; this.dom = {};
this.expanded = false; this.expanded = false;
if(params && (params instanceof Object)) { if(params && (params instanceof Object)) {
this.setField(params.field, params.fieldEditable); this.setField(params.field, params.fieldEditable);
if ('value' in params) { if ('value' in params) {
@ -7011,6 +7011,7 @@ return /******/ (function(modules) { // webpackBootstrap
this._debouncedOnChangeValue = util.debounce(this._onChangeValue.bind(this), Node.prototype.DEBOUNCE_INTERVAL); this._debouncedOnChangeValue = util.debounce(this._onChangeValue.bind(this), Node.prototype.DEBOUNCE_INTERVAL);
this._debouncedOnChangeField = util.debounce(this._onChangeField.bind(this), Node.prototype.DEBOUNCE_INTERVAL); this._debouncedOnChangeField = util.debounce(this._onChangeField.bind(this), Node.prototype.DEBOUNCE_INTERVAL);
// starting value for visible children // starting value for visible children
this.visibleChilds = this.getMaxVisibleChilds(); this.visibleChilds = this.getMaxVisibleChilds();
} }
@ -7873,14 +7874,14 @@ return /******/ (function(modules) { // webpackBootstrap
// reset max visible childs // reset max visible childs
if (!options || options.resetVisibleChilds) { if (!options || options.resetVisibleChilds) {
delete this.visibleChilds; this.visibleChilds = this.getMaxVisibleChilds();
} }
}; };
/** /**
* set custom css classes on a node * set custom css classes on a node
*/ */
Node.prototype._updateCssClassName = function () { Node.prototype._updateCssClassName = function () {
if(this.dom.field if(this.dom.field
&& this.editor && this.editor
&& this.editor.options && this.editor.options
@ -7888,15 +7889,14 @@ return /******/ (function(modules) { // webpackBootstrap
&& this.dom.tree){ && this.dom.tree){
util.removeAllClassNames(this.dom.tree); util.removeAllClassNames(this.dom.tree);
const addClasses = this.editor.options.onClassName({ path: this.getPath(), field: this.field, value: this.value }) || ""; const addClasses = this.editor.options.onClassName({ path: this.getPath(), field: this.field, value: this.value }) || "";
util.addClassName(this.dom.tree, "jsoneditor-values " + addClasses); util.addClassName(this.dom.tree, "jsoneditor-values " + addClasses);
} }
} };
Node.prototype.recursivelyUpdateCssClassesOnNodes = function () { Node.prototype.recursivelyUpdateCssClassesOnNodes = function () {
this._updateCssClassName(); this._updateCssClassName();
if (this.childs !== 'undefined') { if (this.childs !== 'undefined') {
var i; for (var i = 0; i < this.childs.length; i++) {
for (i in this.childs) {
this.childs[i].recursivelyUpdateCssClassesOnNodes(); this.childs[i].recursivelyUpdateCssClassesOnNodes();
} }
} }
@ -8636,7 +8636,7 @@ return /******/ (function(modules) { // webpackBootstrap
} }
if (this.searchValue) { if (this.searchValue) {
classNames.push('jsoneditor-highlight'); classNames.push('jsoneditor-highlight');
} }
domValue.className = classNames.join(' '); domValue.className = classNames.join(' ');
@ -8807,7 +8807,7 @@ return /******/ (function(modules) { // webpackBootstrap
*/ */
Node.prototype._updateDomField = function () { Node.prototype._updateDomField = function () {
var domField = this.dom.field; var domField = this.dom.field;
if (domField) { if (domField) {
// make backgound color lightgray when empty // make backgound color lightgray when empty
var isEmpty = (String(this.field) == '' && this.parent.type != 'array'); var isEmpty = (String(this.field) == '' && this.parent.type != 'array');
if (isEmpty) { if (isEmpty) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

3
dist/jsoneditor.css vendored
View File

@ -244,7 +244,8 @@ div.jsoneditor-tree div.jsoneditor-date {
div.jsoneditor { div.jsoneditor {
color: #1A1A1A; color: #1A1A1A;
border: 1px solid #3883fa; border: thin solid #3883fa;
/* we use thin and not 1px to work around an issue in Chrome/IE, see #637 */
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;

24
dist/jsoneditor.js vendored
View File

@ -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.28.0 * @version 5.28.1
* @date 2019-01-21 * @date 2019-01-22
*/ */
(function webpackUniversalModuleDefinition(root, factory) { (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object') if(typeof exports === 'object' && typeof module === 'object')
@ -35636,7 +35636,7 @@ return /******/ (function(modules) { // webpackBootstrap
this.editor = editor; this.editor = editor;
this.dom = {}; this.dom = {};
this.expanded = false; this.expanded = false;
if(params && (params instanceof Object)) { if(params && (params instanceof Object)) {
this.setField(params.field, params.fieldEditable); this.setField(params.field, params.fieldEditable);
if ('value' in params) { if ('value' in params) {
@ -35653,6 +35653,7 @@ return /******/ (function(modules) { // webpackBootstrap
this._debouncedOnChangeValue = util.debounce(this._onChangeValue.bind(this), Node.prototype.DEBOUNCE_INTERVAL); this._debouncedOnChangeValue = util.debounce(this._onChangeValue.bind(this), Node.prototype.DEBOUNCE_INTERVAL);
this._debouncedOnChangeField = util.debounce(this._onChangeField.bind(this), Node.prototype.DEBOUNCE_INTERVAL); this._debouncedOnChangeField = util.debounce(this._onChangeField.bind(this), Node.prototype.DEBOUNCE_INTERVAL);
// starting value for visible children // starting value for visible children
this.visibleChilds = this.getMaxVisibleChilds(); this.visibleChilds = this.getMaxVisibleChilds();
} }
@ -36515,14 +36516,14 @@ return /******/ (function(modules) { // webpackBootstrap
// reset max visible childs // reset max visible childs
if (!options || options.resetVisibleChilds) { if (!options || options.resetVisibleChilds) {
delete this.visibleChilds; this.visibleChilds = this.getMaxVisibleChilds();
} }
}; };
/** /**
* set custom css classes on a node * set custom css classes on a node
*/ */
Node.prototype._updateCssClassName = function () { Node.prototype._updateCssClassName = function () {
if(this.dom.field if(this.dom.field
&& this.editor && this.editor
&& this.editor.options && this.editor.options
@ -36530,15 +36531,14 @@ return /******/ (function(modules) { // webpackBootstrap
&& this.dom.tree){ && this.dom.tree){
util.removeAllClassNames(this.dom.tree); util.removeAllClassNames(this.dom.tree);
const addClasses = this.editor.options.onClassName({ path: this.getPath(), field: this.field, value: this.value }) || ""; const addClasses = this.editor.options.onClassName({ path: this.getPath(), field: this.field, value: this.value }) || "";
util.addClassName(this.dom.tree, "jsoneditor-values " + addClasses); util.addClassName(this.dom.tree, "jsoneditor-values " + addClasses);
} }
} };
Node.prototype.recursivelyUpdateCssClassesOnNodes = function () { Node.prototype.recursivelyUpdateCssClassesOnNodes = function () {
this._updateCssClassName(); this._updateCssClassName();
if (this.childs !== 'undefined') { if (this.childs !== 'undefined') {
var i; for (var i = 0; i < this.childs.length; i++) {
for (i in this.childs) {
this.childs[i].recursivelyUpdateCssClassesOnNodes(); this.childs[i].recursivelyUpdateCssClassesOnNodes();
} }
} }
@ -37278,7 +37278,7 @@ return /******/ (function(modules) { // webpackBootstrap
} }
if (this.searchValue) { if (this.searchValue) {
classNames.push('jsoneditor-highlight'); classNames.push('jsoneditor-highlight');
} }
domValue.className = classNames.join(' '); domValue.className = classNames.join(' ');
@ -37449,7 +37449,7 @@ return /******/ (function(modules) { // webpackBootstrap
*/ */
Node.prototype._updateDomField = function () { Node.prototype._updateDomField = function () {
var domField = this.dom.field; var domField = this.dom.field;
if (domField) { if (domField) {
// make backgound color lightgray when empty // make backgound color lightgray when empty
var isEmpty = (String(this.field) == '' && this.parent.type != 'array'); var isEmpty = (String(this.field) == '' && this.parent.type != 'array');
if (isEmpty) { if (isEmpty) {

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

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "jsoneditor", "name": "jsoneditor",
"version": "5.28.0", "version": "5.28.1",
"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": [