diff --git a/src/prefabs/factories/prefab.ts b/src/prefabs/factories/prefab.ts index ed338187..cbbe9b9a 100644 --- a/src/prefabs/factories/prefab.ts +++ b/src/prefabs/factories/prefab.ts @@ -104,15 +104,9 @@ export const prefab = ( attr: Attributes, beforeCreate: BeforeCreate | undefined, structure: PrefabReference[], - reconfigure?: { - children: PrefabComponent[]; - reconfigureWizardType?: string; - addChildWizardType?: string; - }, ): Prefab => ({ name, ...attr, beforeCreate: beforeCreate?.toString(), structure, - reconfigure, }); diff --git a/src/prefabs/types/options.ts b/src/prefabs/types/options.ts index 19cffd13..250708ae 100644 --- a/src/prefabs/types/options.ts +++ b/src/prefabs/types/options.ts @@ -80,6 +80,8 @@ export interface PrefabWrapperLinkedOption extends PrefabLinkedOptionBase { optionId: string; }; }; + showInReconfigure?: boolean; + showInAddChild?: boolean; } export interface PrefabWrapperLinkedPartialOption @@ -91,6 +93,8 @@ export interface PrefabWrapperLinkedPartialOption componentId: string; }; }; + showInReconfigure?: boolean; + showInAddChild?: boolean; } export type PrefabComponentStyle = { diff --git a/src/prefabs/types/prefabs/prefabs.ts b/src/prefabs/types/prefabs/prefabs.ts index 7925e092..64ea766d 100644 --- a/src/prefabs/types/prefabs/prefabs.ts +++ b/src/prefabs/types/prefabs/prefabs.ts @@ -1,6 +1,6 @@ import { Icon } from './icon'; import { PrefabAction } from '../actions'; -import { PrefabReference, PrefabComponent } from '../component'; +import { PrefabReference } from '../component'; import { PrefabInteraction, PrefabVariable } from '../interactions'; export interface Prefab { @@ -15,9 +15,4 @@ export interface Prefab { variables?: PrefabVariable[]; type?: string; description?: string; - reconfigure?: { - children: PrefabComponent[]; - reconfigureWizardType?: string; - addChildWizardType?: string; - }; }