github rjsf-team/react-jsonschema-form v6.2.0
6.2.0

latest releases: 6.2.1, v6.2.1, 6.2.0...
15 hours ago

New features added

  • allowClearTextInputs added GlobalUISchemaOptions to support displaying a clear text input UI
  • omitExtraData() refactored to @rjsf/utils

@rjsf/antd

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Removed deprecated defaultProps from AltDateTimeWidget and AltDateWidget components, preserving all existing behavior

@rjsf/chakra-ui

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Removed deprecated defaultProps from AltDateTimeWidget and AltDateWidget components, preserving all existing behavior

@rjsf/core

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Removed deprecated defaultProps from AltDateTimeWidget and AltDateWidget components, preserving all existing behavior
  • Fixed ObjectFieldTemplate rendering an empty fieldset for pure oneOf/anyOf schemas (schemas with type: "object" and oneOf/anyOf but no properties at root level)
  • Added fieldPathId to FieldTemplate props in SchemaField and LayoutMultiSchemaField, fixing #4897
  • Fixed oneOf/anyOf option switches reverting in controlled forms, fixing #4918
  • Fixed null option not being selectable and defaults not being restored when switching from null back to object option in oneOf/anyOf, fixing #4896 and #4380
  • Refactored the omitExtraData() function to schemaUtils, fixing #4081

@rjsf/daisyui

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Updated FieldTemplate to destructure fieldPathId to prevent passing it to DOM elements, fixing #4897

@rjsf/fluent-ui

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields

@rjsf/mantine

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields

@rjsf/mui

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields

@rjsf/primereact

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields

@rjsf/react-bootstrap

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Updated WrapIfAdditionalTemplate to add maxHeight for the Remove button column, fixing #4684

@rjsf/semantic-ui

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields

@rjsf/shadcn

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Fixed issue "ui:rows" option for textarea elements, fixing #4903.

@rjsf/utils

  • Fixed issue by adding new allowClearTextInputs option to GlobalUISchemaOptions type, fixing #4671
  • Fixed issue with default value not being prefilled when object with if/then is nested inside another object, fixing #4222
  • Fixed issue with schema array with nested dependent fixed-length, fixing #3754
  • Updated CustomValidator type to accept errorSchema, so its implementation can be based on result of ajv validation (#4898)
  • Added fieldPathId to FieldTemplateProps to enable proper use of onChange with the required path parameter, fixing #4897
  • Fixed user formData being overwritten with defaults in schemas combining anyOf/oneOf with $ref and default at multiple levels, fixing #4918
  • Fixed issue where nested if/then/else conditions lost values with liveOmit and omitExtraData enabled, fixing #4450
  • Refactored the omitExtraData() function and its helpers from Form into a new schema/omitExtraData.ts, fixing #4081

@rjsf/validator-ajv8

  • Updated processRawValidationErrors to pass errorSchema to customValidate function (#4898)

Dev / docs / playground

  • Updated unit tests for @rjsf/core to convert them to typescript and jest
  • Updated the utility-functions.md documentation for the omitExtraData() function

Don't miss a new react-jsonschema-form release

NewReleases is sending notifications on new releases.