;
+}
+
+// @public
+export type FormProps = Pick<
+ FormProps_2,
+ 'transformErrors' | 'noHtml5Validate'
+>;
+
// @public
export type LayoutComponent<_TInputProps> = () => null;
@@ -105,7 +143,7 @@ export interface LayoutOptions {
// @public
export type LayoutTemplate = NonNullable<
- FormProps['uiSchema']
+ FormProps_2['uiSchema']
>['ui:ObjectFieldTemplate'];
// @public
@@ -124,6 +162,20 @@ export type LogEvent = {
taskId: string;
};
+// @public
+export type ReviewStepProps = {
+ disableButtons: boolean;
+ formData: JsonObject;
+ handleBack: () => void;
+ handleReset: () => void;
+ handleCreate: () => void;
+ steps: {
+ uiSchema: UiSchema;
+ mergedSchema: JsonObject;
+ schema: JsonObject;
+ }[];
+};
+
// @public
export interface ScaffolderApi {
cancelTask(taskId: string): Promise;
@@ -186,8 +238,8 @@ export interface ScaffolderDryRunResponse {
}
// @public
-export const ScaffolderFieldExtensions: React_2.ComponentType<
- React_2.PropsWithChildren<{}>
+export const ScaffolderFieldExtensions: React.ComponentType<
+ React.PropsWithChildren<{}>
>;
// @public
@@ -226,6 +278,113 @@ export type ScaffolderOutputText = {
content?: string;
};
+// @public
+export type ScaffolderRJSFField<
+ T = any,
+ S extends StrictRJSFSchema = RJSFSchema,
+ F extends FormContextType = any,
+> = ComponentType>;
+
+// @public
+export interface ScaffolderRJSFFieldProps<
+ T = any,
+ S extends StrictRJSFSchema = RJSFSchema,
+ F extends FormContextType = any,
+> extends GenericObjectType,
+ Pick<
+ HTMLAttributes,
+ Exclude<
+ keyof HTMLAttributes,
+ 'onBlur' | 'onFocus' | 'onChange'
+ >
+ > {
+ autofocus?: boolean;
+ disabled: boolean;
+ errorSchema?: ErrorSchema;
+ formContext?: F;
+ formData: T;
+ hideError?: boolean;
+ idPrefix?: string;
+ idSchema: IdSchema;
+ idSeparator?: string;
+ name: string;
+ onBlur: (id: string, value: any) => void;
+ onChange: (
+ newFormData: T | undefined,
+ es?: ErrorSchema,
+ id?: string,
+ ) => any;
+ onFocus: (id: string, value: any) => void;
+ rawErrors: string[];
+ readonly: boolean;
+ registry: Registry;
+ required?: boolean;
+ schema: S;
+ uiSchema: UiSchema;
+}
+
+// @public
+export interface ScaffolderRJSFFormProps<
+ T = any,
+ S extends StrictRJSFSchema = RJSFSchema,
+ F extends FormContextType = any,
+> {
+ acceptcharset?: string;
+ action?: string;
+ autoComplete?: string;
+ children?: ReactNode;
+ className?: string;
+ customValidate?: CustomValidator;
+ disabled?: boolean;
+ enctype?: string;
+ experimental_defaultFormStateBehavior?: Experimental_DefaultFormStateBehavior;
+ extraErrors?: ErrorSchema;
+ fields?: ScaffolderRJSFRegistryFieldsType;
+ focusOnFirstError?: boolean | ((error: RJSFValidationError) => void);
+ formContext?: F;
+ formData?: T;
+ id?: string;
+ idPrefix?: string;
+ idSeparator?: string;
+ _internalFormWrapper?: ElementType;
+ liveOmit?: boolean;
+ liveValidate?: boolean;
+ method?: string;
+ name?: string;
+ noHtml5Validate?: boolean;
+ // @deprecated
+ noValidate?: boolean;
+ omitExtraData?: boolean;
+ onBlur?: (id: string, data: any) => void;
+ onChange?: (data: IChangeEvent, id?: string) => void;
+ onError?: (errors: RJSFValidationError[]) => void;
+ onFocus?: (id: string, data: any) => void;
+ onSubmit?: (data: IChangeEvent, event: FormEvent) => void;
+ readonly?: boolean;
+ ref?: Ref