export NextLayoutOptions

Signed-off-by: Paul Cowan <paul.cowan@cutting.scot>
This commit is contained in:
Paul Cowan
2022-12-23 16:45:32 +00:00
parent d2ddde2108
commit c8122c42c0
2 changed files with 14 additions and 3 deletions
+12 -1
View File
@@ -159,7 +159,9 @@ export interface FieldSchema<TReturn, TUiOptions> {
export type FormProps = Pick<
FormProps_3,
'transformErrors' | 'noHtml5Validate'
>;
> & {
layouts?: NextLayoutOptions[];
};
// @public
export type LayoutComponent<_TInputProps> = () => null;
@@ -526,6 +528,15 @@ export type TemplateParameterSchema = TemplateParameterSchema_2;
// @public
export const TemplateTypePicker: () => JSX.Element | null;
<<<<<<< HEAD
// @public @deprecated (undocumented)
export const useTemplateSecrets: () => ScaffolderUseTemplateSecrets_2;
=======
// @public
export const useTemplateSecrets: () => ScaffolderUseTemplateSecrets;
// Warnings were encountered during analysis:
//
// src/next/types.d.ts:23:5 - (ae-forgotten-export) The symbol "NextLayoutOptions" needs to be exported by the entry point index.d.ts
>>>>>>> 55041019c8 (export NextLayoutOptions)
```
+2 -2
View File
@@ -25,7 +25,7 @@ import type { FormProps as SchemaFormProps } from '@rjsf/core-v5';
/**
* The field template from \@rjsf/core which is a react component that gets passed \@rjsf/core field related props.
*
* @public
* @alpha
*/
export type NextLayoutTemplate<T = any> = NonNullable<
SchemaFormProps<T>['uiSchema']
@@ -34,7 +34,7 @@ export type NextLayoutTemplate<T = any> = NonNullable<
/**
* The type of layouts that is passed to the TemplateForms
*
* @public
* @alpha
*/
export interface NextLayoutOptions<P = any> {
name: string;