You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update utils based on core refactor and update package.jsons (rjsf-team#2903)
* Update utils based on core refactor and update package.jsons
- Updated the main `package.json` to bump typescript
- Updated the utils `package.json` to bump everything but react
- Updated `SchemaUtilsType` to add the `getValidator()` and `doesSchemaUtilsDiffer()` functions
- Updated `createSchemaUtils()` to implement the new functions and the tests to validate them
- Also updated other types to deal with issues found during core refactor
- Changed `FormValidation` to `ErrorSchema` as needed
- Updated the `Registry` type to remove `definitions` as it is never used and added the `xxxTemplate` props
- Updated many interfaces to make previously required props to be optional
- Switched to using the `React.ComponentType` which incorporates the `FunctionComponent` and `ClassComponent` both
- Fixed a bug in `getDefaultFormState()` by making the `array` defaults use effectively the same logic as it did in `core` but refactored to a function for type safety
- Updated the tests to add one that verifies the bug is fixed
* - rollback typescript to previous version due to `fluent-ui` issue
* - Fixed bug in `getSchemaType()` related to incorrectly defaulting to `string` when no type exists
* - Made `uiSchema` optional in `canExpand()`, `getSubmitButtonOptions()` and `getUiOptions()`
- Updated the required-ness of a smattering of props in interfaces
* - Made all callbacks be required again
* - Made label required again
* - More updates to make `uiSchema` optional
* - Added new `processSelectValue()` utility, refactored from core's `SelectWidget`, with full tests
- Also updated the `UIOptionsType` to add optional `title` and `description` props, typed to `string` to eliminate the need to type cast them
* - Added documentation for the `[key: string]` prop
* - Responded to reviewer feedback
0 commit comments