feat: expose uiSchema and formContext in FormProps

This commit exposes two extra fields in the FormProps: `uiSchema` and `formContext`.

Signed-off-by: Rich Barton-Cooper <rich@syntasso.io>
Co-authored-by: Chunyi Lyu <chunyineko@gmail.com>
This commit is contained in:
Rich Barton-Cooper
2024-05-03 16:01:05 +01:00
committed by Rich Barton-Cooper
parent 5d873b8ccc
commit d0e95a7036
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-scaffolder-react': patch
---
Add ability to customise form fields in the UI by exposing `uiSchema` and `formContext` in
`FormProps`
+1 -1
View File
@@ -128,7 +128,7 @@ export interface FieldExtensionUiSchema<TFieldReturnValue, TUiOptions>
// @public
export type FormProps = Pick<
FormProps_2,
'transformErrors' | 'noHtml5Validate'
'transformErrors' | 'noHtml5Validate' | 'uiSchema' | 'formContext'
>;
// @public
@@ -32,7 +32,7 @@ export type TemplateGroupFilter = {
*/
export type FormProps = Pick<
SchemaFormProps,
'transformErrors' | 'noHtml5Validate'
'transformErrors' | 'noHtml5Validate' | 'uiSchema' | 'formContext'
>;
/**