Hidden Step type back

Signed-off-by: bogdannechyporenko <bogdannechiporenko@gmail.com>
This commit is contained in:
bogdannechyporenko
2022-10-26 22:15:47 +02:00
parent f16fa9b0bf
commit 59f4917e82
3 changed files with 8 additions and 13 deletions
@@ -36,13 +36,18 @@ import { transformSchemaToProps } from './schema';
import cloneDeep from 'lodash/cloneDeep';
import * as fieldOverrides from './FieldOverrides';
import { LayoutOptions } from '../../layouts';
import { ReviewStepProps, Step } from '../types';
import { ReviewStepProps } from '../types';
import { ReviewStep } from './ReviewStep';
import { selectedTemplateRouteRef } from '../../routes';
import { extractSchemaFromStep } from '../../next/TemplateWizardPage/Stepper/schema';
const Form = withTheme(MuiTheme);
type Step = {
schema: JsonObject;
title: string;
} & Partial<Omit<FormProps<any>, 'schema'>>;
/**
* The props for a dynamic form of a scaffolder template.
*/
+1 -1
View File
@@ -19,4 +19,4 @@ export { TemplateTypePicker } from './TemplateTypePicker';
export * from './secrets';
export { TaskPage } from './TaskPage';
export type { RouterProps } from './Router';
export type { ReviewStepProps, Step } from './types';
export type { ReviewStepProps } from './types';
+1 -11
View File
@@ -14,19 +14,9 @@
* limitations under the License.
*/
import { FormProps, UiSchema } from '@rjsf/core';
import { UiSchema } from '@rjsf/core';
import { JsonObject } from '@backstage/types';
/**
* The props for the Step in scaffolder template.
*
* @public
*/
export type Step = {
schema: JsonObject;
title: string;
} & Partial<Omit<FormProps<any>, 'schema'>>;
/**
* The props for the Last Step in scaffolder template form.
* Which represents the summary of the input provided by the end user.