Commit Graph

1488 Commits

Author SHA1 Message Date
jos 1e29d2a94a Check whether `onNodeName` is defined before calling the function (see #617) 2019-01-04 21:11:27 +01:00
jos 535a47c347 Updated history 2019-01-04 21:04:37 +01:00
jos b6e34ea476 Merge remote-tracking branch 'origin/develop' into develop 2019-01-04 21:03:58 +01:00
Bastian Nanchen 93232a09cc Customize object names 2 (#617)
* Customize object names

* Fix: the object's name updates when its properties change

* Creation of node.prototype.updateObjectName method

* Implementation of recursivelyUpdateObjectName method

* Callback arguments: path and size

* New callback argument - type: array | object

* Code improvement and callback function renaming: onNodeName
2019-01-04 21:03:45 +01:00
jos b202627f6e Update history 2019-01-04 21:00:21 +01:00
Meir Rotstein 78194051b0 Hide show error table (#620)
* allow to hide adn show the error table

* code mode: scroll to line on text selection

* validation icon - pointer cursor

* (1) toggle validation errors table by clicking validation count
(2) preserve show/hide state after fixing parse errors

* remove arrow function (no ES6 support)
2019-01-04 20:57:19 +01:00
jos bc5c133b52 Updated history 2018-12-20 21:18:07 +01:00
Anthony Fu ea119df821 i18n for ModeSwitcher (#616)
* unquote keys

* i18n for ModeSwitcher
2018-12-20 21:14:04 +01:00
jos 72ab51002c Publish v5.26.3 2018-12-06 21:44:37 +01:00
jos 6551701153 Fixed #610: JSON Repair now removes trailing commas 2018-12-06 20:15:14 +01:00
jos 550e0a2c4e Updated history 2018-12-05 09:38:51 +01:00
Pawel Raszewski 404fa036f9 Gulp4 (#608)
* update for gulp 4.0.0

* added gulp 4.0.0
2018-12-05 09:35:52 +01:00
jos 9ac82e24d2 Publish v5.26.2 2018-11-13 20:39:02 +01:00
jos db8652baa6 Publish v5.26.1 2018-11-13 20:29:22 +01:00
jos 2cd9cc168a Fixed #598: Search field can't be focused in object view 2018-11-13 20:27:54 +01:00
Jacob Page 3065dad0f5 Fix deepEqual for null values (#600)
When doing a `.update` on an editor that was showing an object and
replacing it with `null`, a runtime exception occurs. This is because
the `deepEqual` check doesn't account for the fact that `typeof null ===
'object'`, so it tries to access properties of a null value.
2018-11-13 20:04:54 +01:00
jos bd8bac03bd Publish v5.26.0 2018-11-12 20:14:03 +01:00
Tanmay Rajani d7551da7e6 Create option to hide the blue main menu bar on top (#596)
* ability to hide main menu bar; minor fixes for typos, JSDoc etc.

* fix CSS issue when mainMenuBar is hidden in all modes; other minor refactoring
2018-11-12 20:11:09 +01:00
jos 4e24601823 Publish v5.25.0 2018-10-29 20:31:10 +01:00
jos d0b49fbf12 Fixed #589 for undo/redo and duplicate actions too 2018-10-29 20:28:27 +01:00
jos 67ef58bef3 Fixed #595: navigation bar path link not working 2018-10-24 21:58:56 +02:00
jos 07b341546e Updated history 2018-10-18 20:43:23 +02:00
Tanmay Rajani 6403c0bd17 Adds ability to hide sort and transform options (#588)
* adds ability to hide sort and transform buttons

* adds new options to API doc

* cover context-menu sort, transform options; remove negations

* update readme wordings
2018-10-18 20:42:02 +02:00
jos 9c23ca9791 Fixed not preventing default selection of text when selecting nodes 2018-10-17 15:31:42 +02:00
jos e08250c3cb Fixed duplicate and remove of the action menu of multiple selected nodes not working 2018-10-17 15:26:05 +02:00
jos 7d2d669191 Fixed #590: validation failing in code and text mode when status bar is disabled 2018-10-17 14:50:47 +02:00
jos 37e609d4d8 Fixed #589: when deleting or moving a node, the navigation bar is not updated with the correct path 2018-10-17 13:40:48 +02:00
jos b45993ccd5 Release v5.24.7 2018-10-08 20:07:21 +02:00
Meir Rotstein 4d7bb3c6e3 refresh annotations with error type only (#587)
* Fix #582: parse error annotations not always up to date in code editor

* refresh annotations with error type only
2018-10-08 19:52:47 +02:00
Mark Herhold 68aba366ad Don't package CONTRIBUTING.md or examples folder (#579)
* Don't package CONTRIBUTING.md or examples folder

If you don't want this, please just close.

Thanks for the awesome module!

* Update .npmignore

don't ignore examples/
2018-09-18 19:53:57 +02:00
jos ef764df37d Release v5.24.6 2018-09-12 09:44:23 +02:00
jos 655990c2a7 Fix #548: `import JSONEditor from 'jsoneditor'` not working in TypeScript projects 2018-09-12 09:41:07 +02:00
jos f27bd97d9d Release `v5.24.5` 2018-09-06 20:44:14 +02:00
jos 70140b0712 Release `v5.24.4` 2018-09-06 20:33:04 +02:00
jos c680a1ca4c Fixed #576: Visualization in mode `view` when an array with more than 100 items is rendered 2018-09-06 20:24:18 +02:00
jos 36f79de242 Throw console errors when Promise is missing (on IE 11) 2018-09-06 20:18:31 +02:00
jos 1736b11b41 Fixed `onClose` of color picker not always being fired 2018-08-29 21:10:13 +02:00
jos 1f1a92354d Merge remote-tracking branch 'origin/master' 2018-08-29 11:32:19 +02:00
jos 384859b132 Release `v5.24.3` for real (exclude vanilla-picker from minimalist bundle again) 2018-08-29 11:32:07 +02:00
jos 53da7fb8df Release `v5.24.3` 2018-08-29 11:27:29 +02:00
jos 321f947e72 Fixed color picker closing immediately after the first `onChange` event, and `onChange` events are now debounced 2018-08-29 11:06:11 +02:00
jos ed9a6d48f3 Fixed color picker not working in ES6 projects 2018-08-29 10:53:33 +02:00
Jos de Jong 9ae7c22286
Fixed #574: removed outdated ways to install `jsoneditor` 2018-08-28 20:14:41 +02:00
jos d528c37909 Release `v5.24.2` 2018-08-27 19:56:01 +02:00
Meir Rotstein d720a94d45 Improvements for errors panel (#567)
* util.getPositionForPath

* utils.getPositionForPath - allow multiple paths

* code mode - show validation errors on gutter

* show all validation errors with scroll indication on text mode

* import json-source-map in favor of getting validation errors location

* revert dist change

* add statusbar indication for validation errors

* reset valodation errors indication  + code clean

* change display indication for validationErrorIndication

* extend schema validatin example with additional errors to demonstrate recent changes

* minor css change

* text mode: navigation from error to code

* bugfix: validation errors scroll indication remains on json error

* show parse errors on the editor bottom and add a status bar indication

* give more helpful tooltip for parse error

* errors container - set onscroll only when needed

* (1) Json parse erros: replace jsonLint errors newline with breakdown
(2) scroll to line on text selection
(3) bugfix: 'show more errors' indication stays when there are no errors
2018-08-27 19:47:22 +02:00
jos ed28e91b9f Release `v5.24.1` for real 2018-08-26 17:47:41 +02:00
jos 2644cb9d1c Release `v5.24.1` 2018-08-26 17:47:02 +02:00
jos d3192e9fbe Fixed `transform` not creating/removing expand button when the type of a node changed 2018-08-26 17:35:45 +02:00
jos 00f2ab0b76 Revert small test editors 2018-08-25 15:31:58 +02:00
jos 4c364dc404 Update history 2018-08-25 15:27:53 +02:00