Skip to content

3.0.0-MUI-4 - Stable Release

Compare
Choose a tag to compare
@vip-git vip-git released this 19 Sep 19:24
· 225 commits to main since this release
3ff59c7

This release marks final support for MUI 4

npm install --save react-jsonschema-form-material-ui@3.0.0-mui-4

Features:

Next Releases

Demo URL: https://react-jsonschema-form-material-ui.github56.now.sh

Example Usage:

  • Form Schema
{
  "title": "Auto Complete example",
  "description": "Example demo for Material UI Autocomplete component usage",
  "type": "object",
  "properties": {
    "auto-complete": {
        "type": "string", // For multi-select this can be "array"
        "title": "Example Auto Complete",
        "enum": [
            "Yes",
            "No"
        ]
    }
  }
}
  • UI Schema
{
    "auto-complete": {
        "ui:widget": "material-auto-complete",
        "ui:props": { // Available props support come from https://material-ui.com/api/autocomplete/#props
            "disableClearable": false
        }
    }
}
  • Form Data
{}

Previously

3.00-alpha.12

  • This release has a big refactor to modularise most of logic used in react-jsonschema using xstate.
  • This release also introduces a new feature to provide error messages in xhrSchema based on status codes inside ui:errors
    Example:
"ui:errors": {
    "offline": {
       "title": "You are Offline !",
       "message": "Please try again once you are online."
    },
   "500": {
       "title": "Internal Server Error",
       "message": "My error description"
   }
}

3.0.0-alpha.9

This Minor release does not have any features but 2 small package updates

  • Update on Material pickers with support for react 17.
  • Update on React-slate resolves pending vulnerabilities by replacing emotion with styled components.

Now source code is slowly migrating towards typescript with support of jest for running unit tests.

3.0.0-alpha.6

  • Demo updated with vscode editor and live validation changes
  • New interceptors to transform form and uiData using uiSchema - ui:interceptor
  • New xhrSchema feature enabled to make xhr calls onload, onsubmit and onclick to consume or post data
  • type: null support included for custom div support
  • New Tabs and Stepper UI using ui:page -> "ui:layout": "tabs"
  • Integration tests enabled with browserstack
  • Support for latest version of Material UI 4
  • Support for latest version of Nextjs 10 and react 17

Demo URL: https://react-jsonschema-form-material-ui-github56.vercel.app