Skip to content

Commit

Permalink
Bump the rjsf group with 4 updates (#3333)
Browse files Browse the repository at this point in the history
* Bump the rjsf group with 4 updates

Bumps the rjsf group with 4 updates: [@rjsf/bootstrap-4](https://github.com/rjsf-team/react-jsonschema-form), [@rjsf/core](https://github.com/rjsf-team/react-jsonschema-form), [@rjsf/utils](https://github.com/rjsf-team/react-jsonschema-form) and [@rjsf/validator-ajv8](https://github.com/rjsf-team/react-jsonschema-form).


Updates `@rjsf/bootstrap-4` from 5.18.5 to 5.21.1
- [Release notes](https://github.com/rjsf-team/react-jsonschema-form/releases)
- [Changelog](https://github.com/rjsf-team/react-jsonschema-form/blob/main/CHANGELOG.md)
- [Commits](rjsf-team/react-jsonschema-form@5.18.5...5.21.1)

Updates `@rjsf/core` from 5.18.4 to 5.21.1
- [Release notes](https://github.com/rjsf-team/react-jsonschema-form/releases)
- [Changelog](https://github.com/rjsf-team/react-jsonschema-form/blob/main/CHANGELOG.md)
- [Commits](rjsf-team/react-jsonschema-form@5.18.4...5.21.1)

Updates `@rjsf/utils` from 5.20.1 to 5.21.1
- [Release notes](https://github.com/rjsf-team/react-jsonschema-form/releases)
- [Changelog](https://github.com/rjsf-team/react-jsonschema-form/blob/main/CHANGELOG.md)
- [Commits](rjsf-team/react-jsonschema-form@5.20.1...5.21.1)

Updates `@rjsf/validator-ajv8` from 5.20.1 to 5.21.1
- [Release notes](https://github.com/rjsf-team/react-jsonschema-form/releases)
- [Changelog](https://github.com/rjsf-team/react-jsonschema-form/blob/main/CHANGELOG.md)
- [Commits](rjsf-team/react-jsonschema-form@5.20.1...5.21.1)

---
updated-dependencies:
- dependency-name: "@rjsf/bootstrap-4"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rjsf
- dependency-name: "@rjsf/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rjsf
- dependency-name: "@rjsf/utils"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rjsf
- dependency-name: "@rjsf/validator-ajv8"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rjsf
...

Signed-off-by: dependabot[bot] <[email protected]>

* Adjusting RecordForm disabled logic based on upstream rjsf changes

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Cottner <[email protected]>
  • Loading branch information
dependabot[bot] and alexcottner authored Sep 17, 2024
1 parent cc93089 commit 581f17e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 29 deletions.
38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
},
"dependencies": {
"@reduxjs/toolkit": "^2.2.1",
"@rjsf/bootstrap-4": "^5.18.4",
"@rjsf/core": "^5.18.4",
"@rjsf/utils": "^5.18.4",
"@rjsf/validator-ajv8": "^5.18.4",
"@rjsf/bootstrap-4": "^5.21.1",
"@rjsf/core": "^5.21.1",
"@rjsf/utils": "^5.21.1",
"@rjsf/validator-ajv8": "^5.21.1",
"@uiw/codemirror-extensions-langs": "^4.21.24",
"@uiw/react-codemirror": "^4.21.24",
"bootstrap": "^4.6.2",
Expand Down
6 changes: 1 addition & 5 deletions src/components/record/RecordForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ export function extendUIWithKintoFields(uiSchema: any, isCreate: boolean): any {
};
}

export function extendUiSchemaWhenDisabled(uiSchema: any, disabled: boolean) {
return { ...uiSchema, "ui:disabled": disabled };
}

type Props = {
bid: string;
bucket: BucketState;
Expand Down Expand Up @@ -190,7 +186,6 @@ export default function RecordForm(props: Props) {
);
let _uiSchema = extendUIWithKintoFields(uiSchema, !record);
_uiSchema = extendUiSchemaWithAttachment(_uiSchema, attachmentConfig);
_uiSchema = extendUiSchemaWhenDisabled(_uiSchema, !allowEditing);

const formCrashMsg = (
<div>
Expand All @@ -209,6 +204,7 @@ export default function RecordForm(props: Props) {
formData={recordData}
onSubmit={handleOnSubmit}
formCrashMsg={formCrashMsg}
disabled={!allowEditing}
>
{buttons}
</BaseForm>
Expand Down
1 change: 0 additions & 1 deletion test/components/BaseForm_test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const testUiSchema = {
"ui:widget": "hidden",
"ui:disabled": true,
},
"ui:disabled": false,
};

describe("BaseForm component", () => {
Expand Down

0 comments on commit 581f17e

Please sign in to comment.