Skip to content

Commit

Permalink
Merge branch 'master' into 2164-fix-renderinfo-labels-for-anyOf-refs
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewHoo authored Aug 9, 2023
2 parents 4226acf + 22d14d3 commit 7ccdfb9
Show file tree
Hide file tree
Showing 17 changed files with 12,151 additions and 4,247 deletions.
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@ Please see the official JSON Forms website, [jsonforms.io](https://jsonforms.io)
For more info about the seed app, please see the corresponding README file of the [seed repo](https://github.com/eclipsesource/jsonforms-react-seed).
For a more detailed tutorial about the usage of JSON Forms, please see [this tutorial](http://jsonforms.io/docs/tutorial).

## Upgrading to JSON Forms 3.0

With version 3.0 of JSON Forms we removed `json-schema-ref-parser` from the core package.
This change only affects users of the React variant (Vue and Angular are not affected) and even for React only a few users will need to adjust their code.
To avoid issues and for more information, please have a look at our [migration guide](https://github.com/eclipsesource/jsonforms/blob/master/MIGRATION.md).

## Feedback, Help and Support

If you encounter any problems feel free to [open an issue](https://github.com/eclipsesource/jsonforms/issues/new/choose) on the repo.
For questions and discussions please use the [JSON Forms board](https://jsonforms.discourse.group).
You can also reach us via [email](mailto:jsonforms@eclipsesource.com?subject=JSON%20Forms).
In addition, EclipseSource also offers [professional support](https://jsonforms.io/support) for JSON Forms.

## Migration

See our [migration guide](https://github.com/eclipsesource/jsonforms/blob/master/MIGRATION.md) when updating JSON Forms.

## Developers Documentation

### First time setup
Expand Down Expand Up @@ -69,7 +67,3 @@ Current status: ![Build status](https://github.com/eclipsesource/jsonforms/actio
## License

The JSON Forms project is licensed under the MIT License. See the [LICENSE file](https://github.com/eclipsesource/jsonforms/blob/master/LICENSE) for more information.

## Migration

See our [migration guide](https://github.com/eclipsesource/jsonforms/blob/master/MIGRATION.md) when updating JSON Forms.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"npmClient": "pnpm",
"useWorkspaces": true
}
6 changes: 3 additions & 3 deletions packages/angular-material/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/angular-material",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"description": "Material Renderer Set for Angular module of JSON Forms",
"repository": "https://github.com/eclipsesource/jsonforms",
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
Expand Down Expand Up @@ -69,8 +69,8 @@
"@angular/material": "^12.0.0 || ^13.0.0 || ^14.0.0",
"@angular/platform-browser": "^12.0.0 || ^13.0.0 || ^14.0.0",
"@angular/router": "^12.0.0 || ^13.0.0 || ^14.0.0",
"@jsonforms/angular": "3.1.0",
"@jsonforms/core": "3.1.0",
"@jsonforms/angular": "3.1.1-alpha.0",
"@jsonforms/core": "3.1.1-alpha.0",
"core-js": "^2.5.3",
"rxjs": "^6.5.3 || ^7.4.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-material/src/controls/number.renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import merge from 'lodash/merge';
(focus)="focused = true"
(focusout)="focused = false"
/>
<mat-hint *ngIf="shouldShowUnfocusedDescription()" || focused>{{
<mat-hint *ngIf="shouldShowUnfocusedDescription() || focused">{{
description
}}</mat-hint>
<mat-error>{{ error }}</mat-error>
Expand Down
11 changes: 10 additions & 1 deletion packages/angular-material/src/other/object.renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ import {
import {
ControlWithDetailProps,
findUISchema,
Generate,
GroupLayout,
isObjectControl,
RankedTester,
rankWith,
setReadonly,
UISchemaElement,
} from '@jsonforms/core';
import { cloneDeep } from 'lodash';

@Component({
selector: 'ObjectRenderer',
Expand All @@ -65,7 +67,14 @@ export class ObjectControlRenderer extends JsonFormsControlWithDetail {
props.schema,
props.uischema.scope,
props.path,
'Group',
() => {
const newSchema = cloneDeep(props.schema);
// delete unsupported operators
delete newSchema.oneOf;
delete newSchema.anyOf;
delete newSchema.allOf;
return Generate.uiSchema(newSchema, 'Group');
},
props.uischema,
props.rootSchema
);
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/angular-test",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"private": true,
"main": "./lib/index.js",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/angular",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"description": "Angular module of JSON Forms",
"repository": "https://github.com/eclipsesource/jsonforms",
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
Expand Down Expand Up @@ -71,7 +71,7 @@
"peerDependencies": {
"@angular/core": "^12.0.0 || ^13.0.0 || ^14.0.0",
"@angular/forms": "^12.0.0 || ^13.0.0 || ^14.0.0",
"@jsonforms/core": "3.1.0",
"@jsonforms/core": "3.1.1-alpha.0",
"rxjs": "^6.5.3 || ^7.4.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/core",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"description": "Core module of JSON Forms",
"repository": "https://github.com/eclipsesource/jsonforms",
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/examples-app",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"private": true,
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/examples-react",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"private": true,
"dependencies": {
"@jsonforms/core": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/examples",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"description": "JSON Forms Example Data",
"repository": "https://github.com/eclipsesource/jsonforms",
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
Expand Down Expand Up @@ -47,7 +47,7 @@
"lodash": "^4.17.21"
},
"peerDependencies": {
"@jsonforms/core": "3.1.0"
"@jsonforms/core": "3.1.1-alpha.0"
},
"devDependencies": {
"@jsonforms/core": "workspace:*",
Expand Down
6 changes: 3 additions & 3 deletions packages/material-renderers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/material-renderers",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"description": "Material Renderer Set for JSON Forms",
"repository": "https://github.com/eclipsesource/jsonforms",
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
Expand Down Expand Up @@ -85,8 +85,8 @@
"peerDependencies": {
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@jsonforms/core": "3.1.0",
"@jsonforms/react": "3.1.0",
"@jsonforms/core": "3.1.1-alpha.0",
"@jsonforms/react": "3.1.1-alpha.0",
"@mui/icons-material": "~5.11.16",
"@mui/material": "~5.13.0",
"@mui/x-date-pickers": "^6.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/react",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"description": "React module of JSON Forms",
"repository": "https://github.com/eclipsesource/jsonforms",
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
Expand Down Expand Up @@ -86,7 +86,7 @@
"lodash": "^4.17.21"
},
"peerDependencies": {
"@jsonforms/core": "3.1.0",
"@jsonforms/core": "3.1.1-alpha.0",
"react": "^16.12.0 || ^17.0.0 || ^18.0.0"
},
"optionalPeerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/vanilla-renderers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/vanilla-renderers",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"description": "Default Renderer Set for JSON Forms",
"repository": "https://github.com/eclipsesource/jsonforms",
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
Expand Down Expand Up @@ -47,8 +47,8 @@
"lodash": "^4.17.21"
},
"peerDependencies": {
"@jsonforms/core": "3.1.0",
"@jsonforms/react": "3.1.0",
"@jsonforms/core": "3.1.1-alpha.0",
"@jsonforms/react": "3.1.1-alpha.0",
"react": "^16.12.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/vue/vue-vanilla/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/vue-vanilla",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"description": "Vue 3 Vanilla renderers for JSON Forms",
"repository": "https://github.com/eclipsesource/jsonforms",
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
Expand Down Expand Up @@ -62,8 +62,8 @@
"@jsonforms/vue": "workspace:*",
"@types/chai": "^4.2.11",
"@types/jest": "^27.4.1",
"@types/node": "^16.18.34",
"@types/mocha": "^5.2.4",
"@types/node": "^16.18.34",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@vue/cli-plugin-babel": "~4.5.19",
Expand Down Expand Up @@ -97,8 +97,8 @@
"vue-jest": "^5.0.0-0"
},
"peerDependencies": {
"@jsonforms/core": "3.1.0",
"@jsonforms/vue": "3.1.0",
"@jsonforms/core": "3.1.1-alpha.0",
"@jsonforms/vue": "3.1.1-alpha.0",
"vue": "^3.2.26"
}
}
6 changes: 3 additions & 3 deletions packages/vue/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsonforms/vue",
"version": "3.1.0",
"version": "3.1.1-alpha.0",
"description": "Vue 3 module of JSON Forms",
"repository": "https://github.com/eclipsesource/jsonforms",
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
Expand Down Expand Up @@ -61,8 +61,8 @@
"@vue/cli-service": "~4.5.19",
"@vue/compiler-sfc": "^3.2.26",
"@vue/eslint-config-typescript": "^11.0.2",
"@vue/vue3-jest": "^27.0.0",
"@vue/test-utils": "^2.0.2",
"@vue/vue3-jest": "^27.0.0",
"core-js": "^3.9.1",
"cross-env": "^7.0.2",
"eslint": "^7.32.0",
Expand All @@ -86,7 +86,7 @@
"vue": "^3.2.26"
},
"peerDependencies": {
"@jsonforms/core": "3.1.0",
"@jsonforms/core": "3.1.1-alpha.0",
"vue": "^3.2.26"
}
}
Loading

0 comments on commit 7ccdfb9

Please sign in to comment.