Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rjsf-team/react-jsonschema-form
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a9afe48adf5791c2054b58b851e51a9634a2f96e
Choose a base ref
...
head repository: rjsf-team/react-jsonschema-form
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f1f99ff4fdba623350c4c5f1570896b66304c802
Choose a head ref
Loading
Showing with 20,899 additions and 10,831 deletions.
  1. +13 −11 .babelrc
  2. +127 −2 .gitignore
  3. +6 −0 .travis.yml
  4. +15 −0 CODE_OF_CONDUCT.md
  5. +2 −3 ISSUE_TEMPLATE.md
  6. +201 −0 LICENSE.md
  7. +2 −4 PULL_REQUEST_TEMPLATE.md
  8. +9 −1,872 README.md
  9. +645 −0 docs/advanced-customization.md
  10. +29 −0 docs/definitions.md
  11. +157 −0 docs/dependencies.md
  12. +758 −0 docs/form-customization.md
  13. +301 −0 docs/index.md
  14. +94 −0 docs/theme-customization.md
  15. +165 −0 docs/validation.md
  16. +17 −0 mkdocs.yml
  17. +2 −0 netlify.toml
  18. +9,721 −7,944 package-lock.json
  19. +37 −29 package.json
  20. +73 −51 playground/app.js
  21. +0 −7 playground/index.html
  22. +0 −7 playground/index.prod.html
  23. +21 −0 playground/samples/alternatives.js
  24. +59 −0 playground/samples/anyOf.js
  25. +2 −2 playground/samples/customArray.js
  26. +1 −1 playground/samples/customObject.js
  27. +10 −1 playground/samples/files.js
  28. +8 −0 playground/samples/index.js
  29. +28 −0 playground/samples/null.js
  30. +73 −0 playground/samples/nullable.js
  31. +24 −0 playground/samples/oneOf.js
  32. +6 −20 playground/samples/propertyDependencies.js
  33. +2 −8 playground/samples/schemaDependencies.js
  34. +1 −1 playground/samples/validation.js
  35. +7 −1 playground/samples/widgets.js
  36. +141 −22 src/components/Form.js
  37. +152 −63 src/components/fields/ArrayField.js
  38. +23 −27 src/components/fields/BooleanField.js
  39. +1 −2 src/components/fields/DescriptionField.js
  40. +186 −0 src/components/fields/MultiSchemaField.js
  41. +20 −0 src/components/fields/NullField.js
  42. +85 −18 src/components/fields/NumberField.js
  43. +87 −35 src/components/fields/ObjectField.js
  44. +153 −57 src/components/fields/SchemaField.js
  45. +7 −26 src/components/fields/StringField.js
  46. +5 −0 src/components/fields/index.js
  47. +30 −14 src/components/widgets/AltDateWidget.js
  48. +34 −2 src/components/widgets/BaseInput.js
  49. +39 −1 src/components/widgets/CheckboxWidget.js
  50. +6 −3 src/components/widgets/CheckboxesWidget.js
  51. +5 −4 src/components/widgets/FileWidget.js
  52. +6 −1 src/components/widgets/RadioWidget.js
  53. +18 −3 src/components/widgets/SelectWidget.js
  54. +2 −0 src/index.js
  55. +36 −0 src/types.js
  56. +279 −30 src/utils.js
  57. +116 −23 src/validate.js
  58. +28 −0 src/withTheme.js
  59. +234 −77 test/ArrayFieldTemplate_test.js
  60. +383 −13 test/ArrayField_test.js
  61. +428 −1 test/BooleanField_test.js
  62. +52 −12 test/FieldTemplate_test.js
  63. +967 −25 test/Form_test.js
  64. +60 −0 test/NullField_test.js
  65. +377 −103 test/NumberField_test.js
  66. +67 −24 test/ObjectFieldTemplate_test.js
  67. +155 −5 test/ObjectField_test.js
  68. +3 −3 test/SchemaField_test.js
  69. +116 −7 test/StringField_test.js
  70. +712 −0 test/anyOf_test.js
  71. +60 −0 test/const_test.js
  72. +590 −0 test/oneOf_test.js
  73. +1 −1 test/performance_test.js
  74. +1 −0 test/setup-jsdom.js
  75. +18 −1 test/test_utils.js
  76. +271 −3 test/uiSchema_test.js
  77. +1,795 −210 test/utils_test.js
  78. +281 −47 test/validate_test.js
  79. +236 −0 test/withTheme_test.js
  80. +5 −1 webpack.config.dev.js
  81. +4 −0 webpack.config.dist.js
  82. +8 −3 webpack.config.prod.js
24 changes: 13 additions & 11 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{
"presets": ["react", "env"],
"presets": [
"@babel/preset-react",
"@babel/preset-env"
],
"plugins": [
"transform-object-rest-spread",
"transform-class-properties",
"transform-runtime"
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties",
[
"@babel/plugin-transform-runtime",
{
"corejs": 2
}
]
],
"env": {
"development": {
"plugins": [
["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}]
"@babel/plugin-transform-react-jsx"
]
}
}
129 changes: 127 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,131 @@
npm-debug.log
node_modules
# Created by https://www.gitignore.io/api/osx,node,linux,windows
# Edit at https://www.gitignore.io/?templates=osx,node,linux,windows

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

### OSX ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Windows ###
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.gitignore.io/api/osx,node,linux,windows

# Package specific files

build
_build
site
dist
lib
yarn.lock

# IDE
.vscode
.idea

# Code coverage
coverage
.nyc_output
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -3,6 +3,12 @@ language:
- node_js
node_js:
- "6"
- "7"
- "8"
- "9"
- "10"
- "11"
- "12"
env:
- ACTION=test
- ACTION="run lint"
15 changes: 15 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Community Participation Guidelines

This repository is governed by Mozilla's code of conduct and etiquette guidelines.
For more details, please read the
[Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/).

## How to Report
For more information on how to report violations of the Community Participation Guidelines, please read our '[How to Report](https://www.mozilla.org/about/governance/policies/participation/reporting/)' page.

<!--
## Project Specific Etiquette
In some cases, there will be additional project etiquette i.e.: (https://bugzilla.mozilla.org/page.cgi?id=etiquette.html).
Please update for your project.
-->
5 changes: 2 additions & 3 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### Prerequisites

- [ ] I have read the [documentation](https://github.com/mozilla-services/react-jsonschema-form/blob/master/README.md#readme);
- [ ] I have read the [documentation](https://react-jsonschema-form.readthedocs.io/);
- [ ] In the case of a bug report, I understand that providing a [SSCCE](http://sscce.org/) example is tremendously useful to the maintainers.
- [ ] Ideally, I'm providing a [sample JSFiddle](https://jsfiddle.net/n1k0/f2y3fq7L/6/) or a [shared playground link](https://mozilla-services.github.io/react-jsonschema-form/) demonstrating the issue.

### Description

@@ -13,8 +14,6 @@
2. [Second Step]
3. [and so on...]

Ideally, I'm providing a [sample JSFiddle](https://jsfiddle.net/n1k0/f2y3fq7L/6/) or a [shared playground link](https://mozilla-services.github.io/react-jsonschema-form/) demonstrating the issue.

#### Expected behavior

[What you expected to happen]
Loading