-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addon-controls: Add JSON tree editor for Object/Array Type args #12824
Merged
shilman
merged 38 commits into
storybookjs:next
from
hydrosquall:cameron.yick/feature/ui-editable-json-tree-knob
Feb 24, 2021
Merged
Changes from 5 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
c9f8a8f
[dependencies][lib/components] Add react-editable-json-tree
hydrosquall 718299b
(feat:controls) Add React-editable-tree for Object type
hydrosquall 87149e8
(feat:controls) Update documentation examples for object controls to …
hydrosquall c93b353
Merge branch 'next' into pr/12824
shilman d591865
Merge branch 'next' into pr/12824
shilman 866f4b2
Merge branch 'next' into cameron.yick/feature/ui-editable-json-tree-knob
ghengeveld f30528e
Merge remote-tracking branch 'origin/next' into cameron.yick/feature/…
ghengeveld e3e2415
Fix lockfile
ghengeveld cba8343
Many styling tweaks
ghengeveld 91d51d3
More tweaks
ghengeveld d9c58c2
Design tweaks
ghengeveld 51e6b81
Copy react-editable-json-tree into the project
ghengeveld adf06ce
Replace react-hotkeys with own key listeners.
ghengeveld ed2eced
Fix first-child warning
ghengeveld c8967b5
Replace componentWillReceiveProps with getDerivedStateFromProps
ghengeveld 063af6a
Many tweaks and fixes
ghengeveld af7cb07
Delete objects and arrays rather than nullifying them
ghengeveld 55d3df4
Dark theme tweaks
ghengeveld 609b901
Tweaks
ghengeveld 5c03dbb
Cleanup
ghengeveld 2f2896a
Drop prop-types and comment blocks
ghengeveld fa10ff5
Improve addon-controls story
ghengeveld ca34d99
Use text control for unknown arg types
ghengeveld 9168b45
Add support for entering raw JSON
ghengeveld 5bec7e0
Use JSON editor for arrays
ghengeveld 0472b6c
Fix standalone style
ghengeveld 3a72d71
Remove unused import
ghengeveld ca4ccb9
Fix data sync
ghengeveld 26ec6b2
Restore propTypes and fix string value editing
ghengeveld 63d3284
Merge branch 'next' into cameron.yick/feature/ui-editable-json-tree-knob
ghengeveld 10dc235
Support removing the root node
ghengeveld 3d7f7a7
Add RAW toggle and fix menu icon hover style
ghengeveld c3e79d4
Style tweaks
ghengeveld e13c905
Fix null handling
ghengeveld 6a400ff
Don't show RAW toggle when there's no data
ghengeveld 9ef5b3a
Fix dark style
ghengeveld 5c20661
Merge remote-tracking branch 'origin/next' into cameron.yick/feature/…
ghengeveld 7a1601a
Fix textarea height
ghengeveld File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11331,7 +11331,7 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: | |
safe-buffer "^5.0.1" | ||
sha.js "^2.4.8" | ||
|
||
create-react-class@^15.6.0: | ||
create-react-class@^15.5.2, create-react-class@^15.6.0: | ||
version "15.7.0" | ||
resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.7.0.tgz#7499d7ca2e69bb51d13faf59bd04f0c65a1d6c1e" | ||
integrity sha512-QZv4sFWG9S5RUvkTYWbflxeZX+JG7Cz0Tn33rQBJ+WFQTqTfUTjMjiv9tnfXazjsO5r0KhPs+AqCjyrQX6h2ng== | ||
|
@@ -21591,7 +21591,7 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" | ||
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== | ||
|
||
[email protected], "lodash@>=3.5 <5", lodash@^4.0.0, lodash@^4.0.1, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.1, lodash@^4.5.1, lodash@~4.17.10, lodash@~4.17.19: | ||
[email protected], "lodash@>=3.5 <5", lodash@^4.0.0, lodash@^4.0.1, lodash@^4.13.1, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.1, lodash@^4.5.1, lodash@~4.17.10, lodash@~4.17.19: | ||
version "4.17.20" | ||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" | ||
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== | ||
|
@@ -22767,6 +22767,11 @@ mount-point@^3.0.0: | |
pify "^2.3.0" | ||
pinkie-promise "^2.0.1" | ||
|
||
mousetrap@^1.5.2: | ||
version "1.6.5" | ||
resolved "https://registry.yarnpkg.com/mousetrap/-/mousetrap-1.6.5.tgz#8a766d8c272b08393d5f56074e0b5ec183485bf9" | ||
integrity sha512-QNo4kEepaIBwiT8CDhP98umTetp+JNfQYBWvC1pc6/OAibuXtRcxZ58Qz8skvEHYvURne/7R8T5VoOI7rDsEUA== | ||
|
||
mout@^1.0.0: | ||
version "1.2.2" | ||
resolved "https://registry.yarnpkg.com/mout/-/mout-1.2.2.tgz#c9b718a499806a0632cede178e80f436259e777d" | ||
|
@@ -26880,6 +26885,14 @@ react-draggable@^4.0.3: | |
classnames "^2.2.5" | ||
prop-types "^15.6.0" | ||
|
||
react-editable-json-tree@^2.2.1: | ||
version "2.2.1" | ||
resolved "https://registry.yarnpkg.com/react-editable-json-tree/-/react-editable-json-tree-2.2.1.tgz#1ae3f13a4b4358c3cf058e47c200baaf690bfacb" | ||
integrity sha512-GwhhcvU5ptg9rbaMWr+hTGwfxX6JNfV+fwdrNaqIAlEQu+GJKi4PKICRrlvibKNl2z5DOmL6x3ppEBSusY1K+g== | ||
dependencies: | ||
prop-types "^15.6.0" | ||
react-hotkeys "^0.10.0" | ||
|
||
react-element-to-jsx-string@^14.3.1: | ||
version "14.3.2" | ||
resolved "https://registry.yarnpkg.com/react-element-to-jsx-string/-/react-element-to-jsx-string-14.3.2.tgz#c0000ed54d1f8b4371731b669613f2d4e0f63d5c" | ||
|
@@ -26928,6 +26941,16 @@ [email protected]: | |
dependencies: | ||
prop-types "^15.6.1" | ||
|
||
react-hotkeys@^0.10.0: | ||
version "0.10.0" | ||
resolved "https://registry.yarnpkg.com/react-hotkeys/-/react-hotkeys-0.10.0.tgz#d1e78bd63f16d6db58d550d33c8eb071f35d94fb" | ||
integrity sha1-0eeL1j8W1ttY1VDTPI6wcfNdlPs= | ||
dependencies: | ||
create-react-class "^15.5.2" | ||
lodash "^4.13.1" | ||
mousetrap "^1.5.2" | ||
prop-types "^15.5.8" | ||
|
||
react-input-autosize@^2.2.2: | ||
version "2.2.2" | ||
resolved "https://registry.yarnpkg.com/react-input-autosize/-/react-input-autosize-2.2.2.tgz#fcaa7020568ec206bc04be36f4eb68e647c4d8c2" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should lazy-load these components?