Released version `5.10.0`

This commit is contained in:
jos 2017-11-15 11:00:02 +01:00
parent 40e4ac9302
commit b28677d6d1
11 changed files with 1300 additions and 748 deletions

View File

@ -3,7 +3,7 @@
https://github.com/josdejong/jsoneditor https://github.com/josdejong/jsoneditor
## not yet released, version 5.10.0 ## 2017-11-15, version 5.10.0
- Implemented a navigation bar showing the path. Thanks @meirotstein. - Implemented a navigation bar showing the path. Thanks @meirotstein.
- Implemented a status bar showing cursor location. - Implemented a status bar showing cursor location.
@ -13,6 +13,7 @@ https://github.com/josdejong/jsoneditor
in `text` and `code` mode. in `text` and `code` mode.
- Implemented repairing JSON objects containing special white space - Implemented repairing JSON objects containing special white space
characters like non-breaking space. characters like non-breaking space.
- Upgraded dependency `ajv` to version `5.3.0`.
- Fixed #481: A polyfill required `DocumentType` which is not defined - Fixed #481: A polyfill required `DocumentType` which is not defined
in all environments. in all environments.

View File

@ -11,7 +11,7 @@
height="144" height="144"
id="svg4136" id="svg4136"
version="1.1" version="1.1"
inkscape:version="0.91 r" inkscape:version="0.91 r13725"
sodipodi:docname="jsoneditor-icons.svg"> sodipodi:docname="jsoneditor-icons.svg">
<title <title
id="title6512">JSON Editor Icons</title> id="title6512">JSON Editor Icons</title>
@ -39,12 +39,12 @@
inkscape:pageopacity="0" inkscape:pageopacity="0"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:window-width="1920" inkscape:window-width="1920"
inkscape:window-height="1028" inkscape:window-height="1027"
id="namedview4144" id="namedview4144"
showgrid="true" showgrid="true"
inkscape:zoom="4" inkscape:zoom="32"
inkscape:cx="97.217248" inkscape:cx="101.13921"
inkscape:cy="59.950227" inkscape:cy="34.512712"
inkscape:window-x="0" inkscape:window-x="0"
inkscape:window-y="0" inkscape:window-y="0"
inkscape:window-maximized="1" inkscape:window-maximized="1"
@ -710,49 +710,49 @@
width="15.99999" width="15.99999"
y="101" y="101"
x="76.000008" x="76.000008"
style="fill:#ffffff;fill-opacity:0.80000007;stroke:none;stroke-width:0" /> style="fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:0" />
<rect <rect
id="rect4761-0" id="rect4761-0"
height="1.9999945" height="1.9999945"
width="15.99999" width="15.99999"
y="105" y="105"
x="76.000008" x="76.000008"
style="fill:#ffffff;fill-opacity:0.80000007;stroke:none;stroke-width:0" /> style="fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:0" />
<rect <rect
id="rect4761-7" id="rect4761-7"
height="1.9999945" height="1.9999945"
width="9" width="9"
y="109" y="109"
x="76.000008" x="76.000008"
style="fill:#ffffff;fill-opacity:0.80000007;stroke:none;stroke-width:0" /> style="fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:0" />
<rect <rect
id="rect4761-1-1" id="rect4761-1-1"
height="1.9999945" height="1.9999945"
width="12" width="12"
y="125" y="125"
x="76.000008" x="76.000008"
style="fill:#ffffff;fill-opacity:0.80000007;stroke:none;stroke-width:0" /> style="fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:0" />
<rect <rect
id="rect4761-1-1-4" id="rect4761-1-1-4"
height="1.9999945" height="1.9999945"
width="10" width="10"
y="137" y="137"
x="76.000008" x="76.000008"
style="fill:#ffffff;fill-opacity:0.80000007;stroke:none;stroke-width:0" /> style="fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:0" />
<rect <rect
id="rect4761-1-1-4-4" id="rect4761-1-1-4-4"
height="1.9999945" height="1.9999945"
width="10" width="10"
y="129" y="129"
x="82" x="82"
style="fill:#ffffff;fill-opacity:0.80000007;stroke:none;stroke-width:0" /> style="fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:0" />
<rect <rect
id="rect4761-1-1-4-4-3" id="rect4761-1-1-4-4-3"
height="1.9999945" height="1.9999945"
width="9" width="9"
y="133" y="133"
x="82" x="82"
style="fill:#ffffff;fill-opacity:0.80000007;stroke:none;stroke-width:0" /> style="fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:0" />
<path <path
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.8;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.66157866;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.8;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.66157866;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
@ -890,4 +890,10 @@
id="path4300-6" id="path4300-6"
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" /> sodipodi:nodetypes="cccc" />
<path
style="fill:#ffffff;fill-opacity:0.8;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:0.80000001"
d="M 99.994369,113.0221 102,114.98353 l 7,-6.9558 3,0.97227 2,-1 1,-2 0,-3 -3,3 -3,-3 3,-3 -3,0 -2,1 -1,2 0.99437,3.0221 z"
id="path4268"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccccccccc" />
</svg> </svg>

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 36 KiB

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

94
dist/jsoneditor.css vendored
View File

@ -228,6 +228,16 @@ div.jsoneditor-outer {
box-sizing: border-box; box-sizing: border-box;
} }
div.jsoneditor-outer.has-nav-bar {
margin: -61px 0 0 0;
padding: 61px 0 0 0;
}
div.jsoneditor-outer.has-status-bar {
margin: -35px 0 -16px 0;
padding: 35px 0 16px 0;
}
textarea.jsoneditor-text, textarea.jsoneditor-text,
.ace-jsoneditor { .ace-jsoneditor {
min-height: 150px; min-height: 150px;
@ -831,6 +841,10 @@ div.jsoneditor-menu > button.jsoneditor-format {
background-position: -72px -120px; background-position: -72px -120px;
} }
div.jsoneditor-menu > button.jsoneditor-repair {
background-position: -96px -96px;
}
div.jsoneditor-menu > div.jsoneditor-modes { div.jsoneditor-menu > div.jsoneditor-modes {
display: inline-block; display: inline-block;
float: left; float: left;
@ -977,3 +991,83 @@ div.jsoneditor div.autocomplete.hint {
top: 4px; top: 4px;
left: 4px; left: 4px;
} }
div.jsoneditor-treepath {
padding: 3px 0 2px 5px;
overflow: hidden;
}
div.jsoneditor-treepath div.jsoneditor-contextmenu-root {
position: absolute;
left: 0;
}
div.jsoneditor-treepath span.jsoneditor-treepath-element {
margin: 1px;
font-family: arial, sans-serif;
font-size: 10pt;
}
div.jsoneditor-treepath span.jsoneditor-treepath-seperator {
margin: 2px;
font-size: 9pt;
font-family: arial, sans-serif;
}
div.jsoneditor-treepath span.jsoneditor-treepath-element:hover,
div.jsoneditor-treepath span.jsoneditor-treepath-seperator:hover {
cursor: pointer;
text-decoration: underline;
}
div.jsoneditor-statusbar {
line-height: 17px;
height: 17px;
color: #808080;
background-color: #dcdcdc;
margin-top: -17px;
}
div.jsoneditor-statusbar > .jsoneditor-curserinfo-label {
margin: 0 2px 0 4px;
}
div.jsoneditor-statusbar > .jsoneditor-curserinfo-val {
margin-right: 4px;
}
div.jsoneditor-statusbar > .jsoneditor-curserinfo-count {
margin-left: 4px;
}
div.jsoneditor-statusbar > span {
font-size: 12px;
}
div.jsoneditor-navigation-bar {
width: 100%;
height: 26px;
padding: 2px;
margin: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #808080;
background-color: #dcdcdc;
}
div.jsoneditor-navigation-bar:before {
content: '';
width: 100%;
height: 1px;
background-color: white;
opacity: 0.8;
position: absolute;
left: 0;
margin-top: -3px;
}
div.jsoneditor-navigation-bar.nav-bar-empty:after {
content: 'Select a node ...';
color: rgba(104, 104, 91, 0.56);
position: absolute;
margin-left: 6px;
margin-top: -1px;
}

1317
dist/jsoneditor.js vendored

File diff suppressed because one or more lines are too long

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

View File

@ -1,6 +1,6 @@
{ {
"name": "jsoneditor", "name": "jsoneditor",
"version": "5.9.6", "version": "5.10.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": [
@ -23,7 +23,7 @@
"test": "mocha test" "test": "mocha test"
}, },
"dependencies": { "dependencies": {
"ajv": "5.2.0", "ajv": "5.3.0",
"brace": "0.10.0", "brace": "0.10.0",
"javascript-natural-sort": "0.7.1" "javascript-natural-sort": "0.7.1"
}, },