json-schema-viewer
json-schema-viewer copied to clipboard
feat: add ability to Expand/Collapse All
Motivation and Context
Our documentation consumers wished to have the ability to quickly expand or collapse all the collapsible rows of the schema.
Description
This introduces a new property named showExpandAll (defaults to false) that display a button that allows to easily expand or collapse all rows.
The button shows up in both the breadcrumbs toolbar as above the top schema row.
Replace jotai related deprecated functions to the suggested new alternative functions to avoid the spamming of deprecation warnings in the developer console.
How Has This Been Tested?
This has been tested via fork of the component at work as part of our API reference documentation.
Screenshot(s)/recordings(s)
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
- [X] This PR's code follows as closely as possible the coding style/guidelines of this project.
- [ ] I have added error reporting and followed the error reporting guidelines.
- [ ] I have added event tracking and followed the event tracking guidelines.
- [ ] I have updated any relevant documentation accordingly to reflect this PR's changes.
- [ ] I have added automated tests (unit/integration/e2e/other) to cover my changes.
- [X] All new and existing tests pass locally (excluding flaky CI tests).
Any more changes needed?
Any news on this PR? Love to have it merged so I don't need mess around with a internal fork :)
What’s needed please to get this merged? We use this library as it’s brilliant but the deprecation warnings are killing our user monitoring and make the console unusable. We’d dearly like to not have to fork this internally - if there aren’t objections to this PR, please could we have this merged and released at the earliest opportunity?
This library is awesome and has become an instrumental piece of a project at work. Unfortunately, we've had to fork simply to overcome these deprecation warnings, as they're quite noisy. Wondering what is needed to get this PR merged... or if it's OK to create a new PR reducing the scope of these changes to focus on updating the deprecated jotai methods, so that can be merged instead?
+1 for getting rid of the deprecation warnings. If ready please merge :)
Hey folks. What is the possibility of getting this over the line? :)