Skip to content

Commit bbb3c9a

Browse files
committed
Update README.md
1 parent a8e3ef4 commit bbb3c9a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,15 +575,20 @@ Please open an issue: https://github.com/CarlosNZ/json-edit-react/issues
575575
The main features I'd like to introduce are:
576576
577577
1. **JSON Schema validation**. We can currently specify a reasonable degree of control over what can be edited using [Filter functions](#filter-functions) with the restriction props, but I'd like to go a step further and be able to pass in a [JSON Schema](https://json-schema.org/) and have the data be automatically validated against it, with the results reflected in the UI. This would allow control over data types and prevent missing properties, something that is not currently possible.
578-
2. **Visibility filter function** — *hide* properties from the UI completely based on a Filter function. This should arguably be done outside the component though (filter the data upstream), so would be less of a priority (though it would be fairly simple to implement, so 🤷‍♂️)
579-
3. ~~**Search** — allow the user to narrow the list of visible keys with a simple search input. This would be useful for very large data objects, but is possibly getting a bit too much in terms of opinionated UI, so would need to ensure it can be styled easily. Perhaps it would be better if the "Search" input was handled outside this package, and we just accepted a "search" string prop?~~ 👍 [Done](#searchfiltering)
578+
2. ~~**Search/Visibility filter** — allow the user to narrow the list of visible keys with a simple search input. This would be useful for very large data objects, but is possibly getting a bit too much in terms of opinionated UI, so would need to ensure it can be styled easily. Perhaps it would be better if the "Search" input was handled outside this package, and we just accepted a "search" string prop?~~ 👍 [Done](#searchfiltering)
580579
581580
## Inspiration
582581
583582
This component is heavily inspired by [react-json-view](https://github.com/mac-s-g/react-json-view), a great package that I've used in my own projects. However, it seems to have been abandoned now, and requires a few critical fixes, so I decided to create my own from scratch and extend the functionality while I was at it.
584583
585584
## Changelog
586585
586+
- **1.9.0**:
587+
- Increment number input using up/down arrow keys
588+
- Option to display string values without "quotes"
589+
- Add [`onChange` prop](#onchange-function) to allow validation/restriction of user input as they type
590+
- Don't update `data` if user hasn't actually changed a value (prevents Undo from being unnecessarily triggered)
591+
- Misc HTML warnings, React compatibility fixes
587592
- **1.8.0**: Further improvements/fixes to collection custom nodes, including additional `wrapperElement` [prop](#custom-collection-nodes)
588593
- Add optional `id` prop
589594
- **1.7.2**:

0 commit comments

Comments
 (0)