scaffolder: add input redirect for formFields to templates sub-page
Add a replaces directive to the formFields input on the templates sub-page so that extensions previously attached to page:scaffolder's formFields input are automatically redirected. This ensures the migration to SubPageBlueprint is not a breaking change. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
@@ -45,9 +45,10 @@ export const scaffolderPage = PageBlueprint.make({
|
||||
export const scaffolderTemplatesSubPage = SubPageBlueprint.makeWithOverrides({
|
||||
name: 'templates',
|
||||
inputs: {
|
||||
formFields: createExtensionInput([
|
||||
FormFieldBlueprint.dataRefs.formFieldLoader,
|
||||
]),
|
||||
formFields: createExtensionInput(
|
||||
[FormFieldBlueprint.dataRefs.formFieldLoader],
|
||||
{ replaces: [{ id: 'page:scaffolder', input: 'formFields' }] },
|
||||
),
|
||||
},
|
||||
factory(originalFactory, { apis, inputs }) {
|
||||
const formFieldsApi = apis.get(formFieldsApiRef);
|
||||
|
||||
Reference in New Issue
Block a user