Skip to content

v2.3.0-alpha.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@edgarmueller edgarmueller released this 12 Jun 14:08
· 631 commits to master since this release
  • [react/material] BREAKING Provide context-based API (#1329)
    • The original JsonForms component used for dispatching has been renamed to JsonFormsDispatch.
    • A new JsonForms component allows usage of JSON Forms without redux. This allows for truly isolated forms, e.g.
  <JsonForms
    data={{ foo: '' }}
    uischema={{ type: 'Control', scope: '#/properties/foo' }}
    schema={schema1}
    renderers={[{ tester: () => 3, renderer: customRenderer1 }]}
  />
  <JsonForms
    data={{ bar: 0 }}
    schema={schema2}
    uischema={{ type: 'Control', scope: '#/properties/bar' }}
    renderers={[{ tester: () => 3, renderer: customRenderer2 }]}
  />

If using redux, you need to wrap the entry point with a new component called JsonFromsReduxContext, the typical usage in this case is as follows:

<Provider store={store}>
  <JsonFormsReduxContext>
    <JsonFormsDispatch />
  </JsonFormsReduxContext>
</Provider>

NOTE: as this is still a alpha the naming is not yet final

As redux is not mandatory anymore you don't need to connect your custom renderers anymore. Instead use the withXXX HOCs from @jsonforms/react.

  • [core] Add support for const (#1254)
  • [material] Update to 4.0.1 (#1394)
  • [material] Add option for enabling move up/down buttons in array layout renderer (#1378)
  • [material] Zero value not displaying in 'number' fields (#1351)
  • [material] Decimals lower than 0.1 are unsupported in 'number' fields (#1352)
  • [react] Export UnknownRenderer (#1361)
  • [core, material] schemaTypeIs tester derives type instead of relying on type keywords, increase ranks of AllOf/AnyOf renderers to 3 (#1354)
  • [angular] Fix object renderer by passing the path property correctly down the component hierarchy (#1366)
  • [angular] Fix l10n support of number renderer (#1365)
  • [angular] No UI schema is generated for objects anymore (#1368)
  • [core, angular] Support for read-only forms (#1371)
  • [dev] Configure and fix linting errors (#1392)