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:
committed by
Rich Barton-Cooper
parent
5d873b8ccc
commit
d0e95a7036
@@ -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`
|
||||
@@ -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'
|
||||
>;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user